@pelcro/react-pelcro-js 3.1.0-beta.3 → 3.1.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +494 -829
- package/dist/index.esm.js +495 -824
- package/dist/pelcro.css +0 -22
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3431,9 +3431,9 @@ var paymentMethod_fr = {
|
|
|
3431
3431
|
select: select
|
|
3432
3432
|
};
|
|
3433
3433
|
|
|
3434
|
-
var title$
|
|
3434
|
+
var title$f = "Enter your email to subscribe to our newsletter";
|
|
3435
3435
|
var updateTitle$1 = "Update newsletter selections";
|
|
3436
|
-
var subtitle$
|
|
3436
|
+
var subtitle$7 = "We may use your email for other marketing communication";
|
|
3437
3437
|
var labels$p = {
|
|
3438
3438
|
submit: "Submit",
|
|
3439
3439
|
firstName: "First name",
|
|
@@ -3450,16 +3450,16 @@ var messages$r = {
|
|
|
3450
3450
|
here: "here"
|
|
3451
3451
|
};
|
|
3452
3452
|
var newsletter_en = {
|
|
3453
|
-
title: title$
|
|
3453
|
+
title: title$f,
|
|
3454
3454
|
updateTitle: updateTitle$1,
|
|
3455
|
-
subtitle: subtitle$
|
|
3455
|
+
subtitle: subtitle$7,
|
|
3456
3456
|
labels: labels$p,
|
|
3457
3457
|
messages: messages$r
|
|
3458
3458
|
};
|
|
3459
3459
|
|
|
3460
|
-
var title$
|
|
3460
|
+
var title$e = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
3461
3461
|
var updateTitle = "Mettre à jour son choix d'infolettres";
|
|
3462
|
-
var subtitle$
|
|
3462
|
+
var subtitle$6 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
|
|
3463
3463
|
var labels$o = {
|
|
3464
3464
|
submit: "Lire l’article !",
|
|
3465
3465
|
firstName: "Prénom",
|
|
@@ -3476,9 +3476,9 @@ var messages$q = {
|
|
|
3476
3476
|
here: "ici"
|
|
3477
3477
|
};
|
|
3478
3478
|
var newsletter_fr = {
|
|
3479
|
-
title: title$
|
|
3479
|
+
title: title$e,
|
|
3480
3480
|
updateTitle: updateTitle,
|
|
3481
|
-
subtitle: subtitle$
|
|
3481
|
+
subtitle: subtitle$6,
|
|
3482
3482
|
labels: labels$o,
|
|
3483
3483
|
messages: messages$q
|
|
3484
3484
|
};
|
|
@@ -3735,8 +3735,8 @@ var login_fr = {
|
|
|
3735
3735
|
errors: errors$4
|
|
3736
3736
|
};
|
|
3737
3737
|
|
|
3738
|
-
var title$
|
|
3739
|
-
var subtitle$
|
|
3738
|
+
var title$d = "Create an account";
|
|
3739
|
+
var subtitle$5 = "Enter your email and password below";
|
|
3740
3740
|
var labels$h = {
|
|
3741
3741
|
signUpFacebook: "Sign up with Facebook",
|
|
3742
3742
|
signUpGoogle: "Sign up with Google",
|
|
@@ -3821,8 +3821,8 @@ var redeem$1 = {
|
|
|
3821
3821
|
}
|
|
3822
3822
|
};
|
|
3823
3823
|
var register_en = {
|
|
3824
|
-
title: title$
|
|
3825
|
-
subtitle: subtitle$
|
|
3824
|
+
title: title$d,
|
|
3825
|
+
subtitle: subtitle$5,
|
|
3826
3826
|
labels: labels$h,
|
|
3827
3827
|
messages: messages$h,
|
|
3828
3828
|
errors: errors$3,
|
|
@@ -3830,8 +3830,8 @@ var register_en = {
|
|
|
3830
3830
|
redeem: redeem$1
|
|
3831
3831
|
};
|
|
3832
3832
|
|
|
3833
|
-
var title$
|
|
3834
|
-
var subtitle$
|
|
3833
|
+
var title$c = "Créer un compte";
|
|
3834
|
+
var subtitle$4 = "Entrez votre courriel et votre mot de passe ci-dessous";
|
|
3835
3835
|
var labels$g = {
|
|
3836
3836
|
signUpFacebook: "Inscrivez-vous avec Facebook",
|
|
3837
3837
|
signUpGoogle: "Inscrivez-vous avec Google",
|
|
@@ -3917,8 +3917,8 @@ var redeem = {
|
|
|
3917
3917
|
}
|
|
3918
3918
|
};
|
|
3919
3919
|
var register_fr = {
|
|
3920
|
-
title: title$
|
|
3921
|
-
subtitle: subtitle$
|
|
3920
|
+
title: title$c,
|
|
3921
|
+
subtitle: subtitle$4,
|
|
3922
3922
|
labels: labels$g,
|
|
3923
3923
|
messages: messages$g,
|
|
3924
3924
|
errors: errors$2,
|
|
@@ -3978,7 +3978,7 @@ var userEdit_fr = {
|
|
|
3978
3978
|
messages: messages$e
|
|
3979
3979
|
};
|
|
3980
3980
|
|
|
3981
|
-
var title$
|
|
3981
|
+
var title$b = "Enter your shipping address";
|
|
3982
3982
|
var selectAddressTitle$1 = "Please select an address";
|
|
3983
3983
|
var selectAddressSubtitle$1 = "Select one of your saved addresses, or add a new one";
|
|
3984
3984
|
var labels$d = {
|
|
@@ -4001,7 +4001,7 @@ var messages$d = {
|
|
|
4001
4001
|
subRedeemed: "Your subscription has been redeemed."
|
|
4002
4002
|
};
|
|
4003
4003
|
var address_en = {
|
|
4004
|
-
title: title$
|
|
4004
|
+
title: title$b,
|
|
4005
4005
|
selectAddressTitle: selectAddressTitle$1,
|
|
4006
4006
|
selectAddressSubtitle: selectAddressSubtitle$1,
|
|
4007
4007
|
labels: labels$d,
|
|
@@ -4009,7 +4009,7 @@ var address_en = {
|
|
|
4009
4009
|
messages: messages$d
|
|
4010
4010
|
};
|
|
4011
4011
|
|
|
4012
|
-
var title$
|
|
4012
|
+
var title$a = "Entrez votre adresse de livraison";
|
|
4013
4013
|
var selectAddressTitle = "Veuillez sélectionner une adresse";
|
|
4014
4014
|
var selectAddressSubtitle = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
|
|
4015
4015
|
var labels$c = {
|
|
@@ -4032,7 +4032,7 @@ var messages$c = {
|
|
|
4032
4032
|
subRedeemed: "Votre abonnement a bien été activé."
|
|
4033
4033
|
};
|
|
4034
4034
|
var address_fr = {
|
|
4035
|
-
title: title$
|
|
4035
|
+
title: title$a,
|
|
4036
4036
|
selectAddressTitle: selectAddressTitle,
|
|
4037
4037
|
selectAddressSubtitle: selectAddressSubtitle,
|
|
4038
4038
|
labels: labels$c,
|
|
@@ -4040,8 +4040,8 @@ var address_fr = {
|
|
|
4040
4040
|
messages: messages$c
|
|
4041
4041
|
};
|
|
4042
4042
|
|
|
4043
|
-
var title$
|
|
4044
|
-
var subtitle$
|
|
4043
|
+
var title$9 = "Reset your password";
|
|
4044
|
+
var subtitle$3 = "Enter a new password below";
|
|
4045
4045
|
var email$3 = "Email";
|
|
4046
4046
|
var password$3 = "Password";
|
|
4047
4047
|
var confirmPassword$1 = "Confirm password";
|
|
@@ -4049,8 +4049,8 @@ var submit$5 = "Submit";
|
|
|
4049
4049
|
var required$5 = "Required";
|
|
4050
4050
|
var passwordUpdated$1 = "Password has been updated, please login with the new password";
|
|
4051
4051
|
var passwordReset_en = {
|
|
4052
|
-
title: title$
|
|
4053
|
-
subtitle: subtitle$
|
|
4052
|
+
title: title$9,
|
|
4053
|
+
subtitle: subtitle$3,
|
|
4054
4054
|
email: email$3,
|
|
4055
4055
|
password: password$3,
|
|
4056
4056
|
confirmPassword: confirmPassword$1,
|
|
@@ -4059,8 +4059,8 @@ var passwordReset_en = {
|
|
|
4059
4059
|
passwordUpdated: passwordUpdated$1
|
|
4060
4060
|
};
|
|
4061
4061
|
|
|
4062
|
-
var title$
|
|
4063
|
-
var subtitle$
|
|
4062
|
+
var title$8 = "Réinitialiser votre mot de passe";
|
|
4063
|
+
var subtitle$2 = "Entrez un nouveau mot de passe ci-dessous";
|
|
4064
4064
|
var email$2 = "Adresse courriel";
|
|
4065
4065
|
var password$2 = "Mot de passe";
|
|
4066
4066
|
var confirmPassword = "Confirmer le mot de passe";
|
|
@@ -4068,8 +4068,8 @@ var submit$4 = "Soumettre";
|
|
|
4068
4068
|
var required$4 = "Champs obligatoires";
|
|
4069
4069
|
var passwordUpdated = "Votre mot de passe a été mis à jour, veuillez vous connecter avec celui-ci";
|
|
4070
4070
|
var passwordReset_fr = {
|
|
4071
|
-
title: title$
|
|
4072
|
-
subtitle: subtitle$
|
|
4071
|
+
title: title$8,
|
|
4072
|
+
subtitle: subtitle$2,
|
|
4073
4073
|
email: email$2,
|
|
4074
4074
|
password: password$2,
|
|
4075
4075
|
confirmPassword: confirmPassword,
|
|
@@ -4078,7 +4078,7 @@ var passwordReset_fr = {
|
|
|
4078
4078
|
passwordUpdated: passwordUpdated
|
|
4079
4079
|
};
|
|
4080
4080
|
|
|
4081
|
-
var title$
|
|
4081
|
+
var title$7 = "Forgot your password?";
|
|
4082
4082
|
var email$1 = "Email";
|
|
4083
4083
|
var password$1 = "Password";
|
|
4084
4084
|
var submit$3 = "Submit";
|
|
@@ -4089,7 +4089,7 @@ var messages$b = {
|
|
|
4089
4089
|
loginHere: "login here."
|
|
4090
4090
|
};
|
|
4091
4091
|
var passwordForgot_en = {
|
|
4092
|
-
title: title$
|
|
4092
|
+
title: title$7,
|
|
4093
4093
|
email: email$1,
|
|
4094
4094
|
password: password$1,
|
|
4095
4095
|
submit: submit$3,
|
|
@@ -4098,7 +4098,7 @@ var passwordForgot_en = {
|
|
|
4098
4098
|
messages: messages$b
|
|
4099
4099
|
};
|
|
4100
4100
|
|
|
4101
|
-
var title$
|
|
4101
|
+
var title$6 = "Mot de passe oublié ?";
|
|
4102
4102
|
var email = "Courriel";
|
|
4103
4103
|
var password = "Mot de passe";
|
|
4104
4104
|
var submit$2 = "Soumettre";
|
|
@@ -4109,7 +4109,7 @@ var messages$a = {
|
|
|
4109
4109
|
loginHere: "Connectez-vous ici"
|
|
4110
4110
|
};
|
|
4111
4111
|
var passwordForgot_fr = {
|
|
4112
|
-
title: title$
|
|
4112
|
+
title: title$6,
|
|
4113
4113
|
email: email,
|
|
4114
4114
|
password: password,
|
|
4115
4115
|
submit: submit$2,
|
|
@@ -4118,7 +4118,7 @@ var passwordForgot_fr = {
|
|
|
4118
4118
|
messages: messages$a
|
|
4119
4119
|
};
|
|
4120
4120
|
|
|
4121
|
-
var title$
|
|
4121
|
+
var title$5 = "Change your password";
|
|
4122
4122
|
var currentPassword$1 = "Current password";
|
|
4123
4123
|
var newPassword$1 = "New password";
|
|
4124
4124
|
var confirmNewPassword$1 = "Confirm new password";
|
|
@@ -4128,7 +4128,7 @@ var passwordChanged$1 = "Password has been changed, please login with the new pa
|
|
|
4128
4128
|
var passwordsNotMatching$1 = "Passwords don't match";
|
|
4129
4129
|
var weakPassword$1 = "Your password must contain at least 6 characters";
|
|
4130
4130
|
var passwordChange_en = {
|
|
4131
|
-
title: title$
|
|
4131
|
+
title: title$5,
|
|
4132
4132
|
currentPassword: currentPassword$1,
|
|
4133
4133
|
newPassword: newPassword$1,
|
|
4134
4134
|
confirmNewPassword: confirmNewPassword$1,
|
|
@@ -4139,7 +4139,7 @@ var passwordChange_en = {
|
|
|
4139
4139
|
weakPassword: weakPassword$1
|
|
4140
4140
|
};
|
|
4141
4141
|
|
|
4142
|
-
var title$
|
|
4142
|
+
var title$4 = "Changez votre mot de passe";
|
|
4143
4143
|
var currentPassword = "Mot de passe actuel";
|
|
4144
4144
|
var newPassword = "Nouveau mot de passe";
|
|
4145
4145
|
var confirmNewPassword = "Confirmer le nouveau mot de passe";
|
|
@@ -4149,7 +4149,7 @@ var passwordChanged = "Le mot de passe a été modifié, veuillez vous connecter
|
|
|
4149
4149
|
var passwordsNotMatching = "Les mots de passe ne correspondent pas";
|
|
4150
4150
|
var weakPassword = "Votre mot de passe doit contenir au moins 6";
|
|
4151
4151
|
var passwordChange_fr = {
|
|
4152
|
-
title: title$
|
|
4152
|
+
title: title$4,
|
|
4153
4153
|
currentPassword: currentPassword,
|
|
4154
4154
|
newPassword: newPassword,
|
|
4155
4155
|
confirmNewPassword: confirmNewPassword,
|
|
@@ -4160,8 +4160,8 @@ var passwordChange_fr = {
|
|
|
4160
4160
|
weakPassword: weakPassword
|
|
4161
4161
|
};
|
|
4162
4162
|
|
|
4163
|
-
var title$
|
|
4164
|
-
var subtitle$
|
|
4163
|
+
var title$3 = "Votre panier";
|
|
4164
|
+
var subtitle$1 = "Terminez votre achat ci-dessous";
|
|
4165
4165
|
var name$1 = "Produit";
|
|
4166
4166
|
var quantity$1 = "Quantité";
|
|
4167
4167
|
var price$1 = "Prix";
|
|
@@ -4172,8 +4172,8 @@ var confirm$3 = "Passer à la caisse";
|
|
|
4172
4172
|
var empty$1 = "Votre panier est vide.";
|
|
4173
4173
|
var removeAll$1 = "Vider";
|
|
4174
4174
|
var cart_fr = {
|
|
4175
|
-
title: title$
|
|
4176
|
-
subtitle: subtitle$
|
|
4175
|
+
title: title$3,
|
|
4176
|
+
subtitle: subtitle$1,
|
|
4177
4177
|
name: name$1,
|
|
4178
4178
|
quantity: quantity$1,
|
|
4179
4179
|
price: price$1,
|
|
@@ -4185,8 +4185,8 @@ var cart_fr = {
|
|
|
4185
4185
|
removeAll: removeAll$1
|
|
4186
4186
|
};
|
|
4187
4187
|
|
|
4188
|
-
var title$
|
|
4189
|
-
var subtitle
|
|
4188
|
+
var title$2 = "Your shopping cart";
|
|
4189
|
+
var subtitle = "Comple your purchase below";
|
|
4190
4190
|
var name = "Name";
|
|
4191
4191
|
var quantity = "Quantity";
|
|
4192
4192
|
var price = "Price";
|
|
@@ -4197,8 +4197,8 @@ var confirm$2 = "Checkout";
|
|
|
4197
4197
|
var empty = "Your cart is empty.";
|
|
4198
4198
|
var removeAll = "Remove all";
|
|
4199
4199
|
var cart_en = {
|
|
4200
|
-
title: title$
|
|
4201
|
-
subtitle: subtitle
|
|
4200
|
+
title: title$2,
|
|
4201
|
+
subtitle: subtitle,
|
|
4202
4202
|
name: name,
|
|
4203
4203
|
quantity: quantity,
|
|
4204
4204
|
price: price,
|
|
@@ -4636,7 +4636,7 @@ var verifyEmail_fr = {
|
|
|
4636
4636
|
messages: messages
|
|
4637
4637
|
};
|
|
4638
4638
|
|
|
4639
|
-
var title$
|
|
4639
|
+
var title$1 = "Invoice details";
|
|
4640
4640
|
var labels$1 = {
|
|
4641
4641
|
summary: "Summary",
|
|
4642
4642
|
total: "Total",
|
|
@@ -4649,12 +4649,12 @@ var buttons$1 = {
|
|
|
4649
4649
|
pay: "Pay now"
|
|
4650
4650
|
};
|
|
4651
4651
|
var invoiceDetails_en = {
|
|
4652
|
-
title: title$
|
|
4652
|
+
title: title$1,
|
|
4653
4653
|
labels: labels$1,
|
|
4654
4654
|
buttons: buttons$1
|
|
4655
4655
|
};
|
|
4656
4656
|
|
|
4657
|
-
var title
|
|
4657
|
+
var title = "Invoice details";
|
|
4658
4658
|
var labels = {
|
|
4659
4659
|
summary: "Summary",
|
|
4660
4660
|
total: "Total",
|
|
@@ -4667,37 +4667,11 @@ var buttons = {
|
|
|
4667
4667
|
pay: "Pay now"
|
|
4668
4668
|
};
|
|
4669
4669
|
var invoiceDetails_fr = {
|
|
4670
|
-
title: title
|
|
4670
|
+
title: title,
|
|
4671
4671
|
labels: labels,
|
|
4672
4672
|
buttons: buttons
|
|
4673
4673
|
};
|
|
4674
4674
|
|
|
4675
|
-
var title$1 = "Renewal options";
|
|
4676
|
-
var subtitle$1 = "Select one of the options below to continue";
|
|
4677
|
-
var next$1 = "Next";
|
|
4678
|
-
var addNew$1 = "Add Another Subscription";
|
|
4679
|
-
var renew$1 = "Renew Existing Subscription";
|
|
4680
|
-
var subscriptionOptions_en = {
|
|
4681
|
-
title: title$1,
|
|
4682
|
-
subtitle: subtitle$1,
|
|
4683
|
-
next: next$1,
|
|
4684
|
-
addNew: addNew$1,
|
|
4685
|
-
renew: renew$1
|
|
4686
|
-
};
|
|
4687
|
-
|
|
4688
|
-
var title = "Renewal options";
|
|
4689
|
-
var subtitle = "Select one of the options below to continue";
|
|
4690
|
-
var next = "Next";
|
|
4691
|
-
var addNew = "Add Another Subscription";
|
|
4692
|
-
var renew = "Renew Existing Subscription";
|
|
4693
|
-
var subscriptionOptions_fr = {
|
|
4694
|
-
title: title,
|
|
4695
|
-
subtitle: subtitle,
|
|
4696
|
-
next: next,
|
|
4697
|
-
addNew: addNew,
|
|
4698
|
-
renew: renew
|
|
4699
|
-
};
|
|
4700
|
-
|
|
4701
4675
|
function create$1(createState) {
|
|
4702
4676
|
let state;
|
|
4703
4677
|
const listeners = new Set();
|
|
@@ -6047,7 +6021,7 @@ class PelcroActions {
|
|
|
6047
6021
|
view,
|
|
6048
6022
|
cartItems,
|
|
6049
6023
|
...otherStateFields
|
|
6050
|
-
} = initialState$
|
|
6024
|
+
} = initialState$i;
|
|
6051
6025
|
this.set(otherStateFields);
|
|
6052
6026
|
});
|
|
6053
6027
|
|
|
@@ -6071,16 +6045,6 @@ class PelcroActions {
|
|
|
6071
6045
|
});
|
|
6072
6046
|
}
|
|
6073
6047
|
|
|
6074
|
-
if (view === "subscription-options") {
|
|
6075
|
-
const noRenewableProducts = getRenewableProducts().length === 0;
|
|
6076
|
-
|
|
6077
|
-
if (noRenewableProducts) {
|
|
6078
|
-
return this.set({
|
|
6079
|
-
view: "plan-select"
|
|
6080
|
-
});
|
|
6081
|
-
}
|
|
6082
|
-
}
|
|
6083
|
-
|
|
6084
6048
|
this.set({
|
|
6085
6049
|
view
|
|
6086
6050
|
});
|
|
@@ -6155,26 +6119,6 @@ class PelcroActions {
|
|
|
6155
6119
|
}
|
|
6156
6120
|
});
|
|
6157
6121
|
|
|
6158
|
-
_defineProperty$3(this, "setProductsList", products => {
|
|
6159
|
-
if (!Array.isArray(products)) {
|
|
6160
|
-
return console.error(`setProductsList expects an array of products as an argument, got an argument of type ${typeof products} instead`);
|
|
6161
|
-
}
|
|
6162
|
-
|
|
6163
|
-
const allowedProducts = window.Pelcro.product.list();
|
|
6164
|
-
const validProducts = products.filter(product => {
|
|
6165
|
-
const isValidProduct = allowedProducts.some(allowedProduct => allowedProduct.id === (product === null || product === void 0 ? void 0 : product.id) && allowedProduct.name === (product === null || product === void 0 ? void 0 : product.name));
|
|
6166
|
-
|
|
6167
|
-
if (!isValidProduct) {
|
|
6168
|
-
console.warn(`setProductsList expects an array of products that exist in the list of valid products (window.Pelcro.product.list()), but it recieved a product which doesn't exist in that list:`, product);
|
|
6169
|
-
}
|
|
6170
|
-
|
|
6171
|
-
return isValidProduct;
|
|
6172
|
-
});
|
|
6173
|
-
this.set({
|
|
6174
|
-
productsList: validProducts
|
|
6175
|
-
});
|
|
6176
|
-
});
|
|
6177
|
-
|
|
6178
6122
|
_defineProperty$3(this, "setProduct", id => {
|
|
6179
6123
|
const product = window.Pelcro.product.getById(id);
|
|
6180
6124
|
if (!product) return console.error("invalid product id");
|
|
@@ -6396,12 +6340,10 @@ class PelcroCallbacks {
|
|
|
6396
6340
|
|
|
6397
6341
|
}
|
|
6398
6342
|
|
|
6399
|
-
|
|
6400
|
-
const initialState$j = {
|
|
6343
|
+
const initialState$i = {
|
|
6401
6344
|
// View
|
|
6402
6345
|
view: null,
|
|
6403
6346
|
// Plans
|
|
6404
|
-
productsList: (_window$Pelcro$produc = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : _window$Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [],
|
|
6405
6347
|
product: null,
|
|
6406
6348
|
plan: null,
|
|
6407
6349
|
isGift: false,
|
|
@@ -6428,7 +6370,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
|
|
|
6428
6370
|
return {
|
|
6429
6371
|
// Store setter
|
|
6430
6372
|
set,
|
|
6431
|
-
...initialState$
|
|
6373
|
+
...initialState$i,
|
|
6432
6374
|
// State actions
|
|
6433
6375
|
...actions,
|
|
6434
6376
|
// Callbacks
|
|
@@ -6783,28 +6725,6 @@ function userMustVerifyEmail() {
|
|
|
6783
6725
|
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;
|
|
6784
6726
|
return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
|
|
6785
6727
|
}
|
|
6786
|
-
function getRenewableProducts() {
|
|
6787
|
-
const renewableSubs = window.Pelcro.subscription.list().filter(sub => sub.status === "active" && sub.cancel_at_period_end === 1);
|
|
6788
|
-
const renewableProductsIds = [...new Set(renewableSubs.map(sub => sub.plan.product.id))];
|
|
6789
|
-
const renewablePlansIds = [...new Set(renewableSubs.map(sub => sub.plan.id))];
|
|
6790
|
-
const {
|
|
6791
|
-
productsList
|
|
6792
|
-
} = usePelcro.getStore();
|
|
6793
|
-
return productsList.map(product => {
|
|
6794
|
-
if (renewableProductsIds.includes(product.id)) {
|
|
6795
|
-
const renewablePlans = getRenewablePlansOnly(product);
|
|
6796
|
-
return { ...product,
|
|
6797
|
-
plans: renewablePlans
|
|
6798
|
-
};
|
|
6799
|
-
}
|
|
6800
|
-
}).filter(product => product);
|
|
6801
|
-
|
|
6802
|
-
function getRenewablePlansOnly(product) {
|
|
6803
|
-
var _product$plans$filter, _product$plans;
|
|
6804
|
-
|
|
6805
|
-
return (_product$plans$filter = product === null || product === void 0 ? void 0 : (_product$plans = product.plans) === null || _product$plans === void 0 ? void 0 : _product$plans.filter(plan => renewablePlansIds.includes(plan.id))) !== null && _product$plans$filter !== void 0 ? _product$plans$filter : [];
|
|
6806
|
-
}
|
|
6807
|
-
}
|
|
6808
6728
|
|
|
6809
6729
|
const resources = {
|
|
6810
6730
|
en: {
|
|
@@ -6829,8 +6749,7 @@ const resources = {
|
|
|
6829
6749
|
dashboard: dashboard_en,
|
|
6830
6750
|
select: select_en,
|
|
6831
6751
|
notification: notification_en,
|
|
6832
|
-
invoiceDetails: invoiceDetails_en
|
|
6833
|
-
subscriptionOptions: subscriptionOptions_en
|
|
6752
|
+
invoiceDetails: invoiceDetails_en
|
|
6834
6753
|
},
|
|
6835
6754
|
fr: {
|
|
6836
6755
|
common: common_fr,
|
|
@@ -6854,8 +6773,7 @@ const resources = {
|
|
|
6854
6773
|
dashboard: dashboard_fr,
|
|
6855
6774
|
select: select_fr,
|
|
6856
6775
|
notification: notification_fr,
|
|
6857
|
-
invoiceDetails: invoiceDetails_fr
|
|
6858
|
-
subscriptionOptions: subscriptionOptions_fr
|
|
6776
|
+
invoiceDetails: invoiceDetails_fr
|
|
6859
6777
|
}
|
|
6860
6778
|
}; // set UI language to the page language or default to the language in site settings
|
|
6861
6779
|
|
|
@@ -7146,8 +7064,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
|
|
|
7146
7064
|
|
|
7147
7065
|
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}}
|
|
7148
7066
|
|
|
7149
|
-
function _extends$
|
|
7150
|
-
_extends$
|
|
7067
|
+
function _extends$z() {
|
|
7068
|
+
_extends$z = Object.assign || function (target) {
|
|
7151
7069
|
for (var i = 1; i < arguments.length; i++) {
|
|
7152
7070
|
var source = arguments[i];
|
|
7153
7071
|
|
|
@@ -7161,7 +7079,7 @@ function _extends$A() {
|
|
|
7161
7079
|
return target;
|
|
7162
7080
|
};
|
|
7163
7081
|
|
|
7164
|
-
return _extends$
|
|
7082
|
+
return _extends$z.apply(this, arguments);
|
|
7165
7083
|
}
|
|
7166
7084
|
|
|
7167
7085
|
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
@@ -7251,7 +7169,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
|
|
|
7251
7169
|
var reducer = function reducer(state, action) {
|
|
7252
7170
|
switch (action.type) {
|
|
7253
7171
|
case ActionType.ADD_TOAST:
|
|
7254
|
-
return _extends$
|
|
7172
|
+
return _extends$z({}, state, {
|
|
7255
7173
|
toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
|
|
7256
7174
|
});
|
|
7257
7175
|
|
|
@@ -7261,9 +7179,9 @@ var reducer = function reducer(state, action) {
|
|
|
7261
7179
|
clearFromRemoveQueue(action.toast.id);
|
|
7262
7180
|
}
|
|
7263
7181
|
|
|
7264
|
-
return _extends$
|
|
7182
|
+
return _extends$z({}, state, {
|
|
7265
7183
|
toasts: state.toasts.map(function (t) {
|
|
7266
|
-
return t.id === action.toast.id ? _extends$
|
|
7184
|
+
return t.id === action.toast.id ? _extends$z({}, t, action.toast) : t;
|
|
7267
7185
|
})
|
|
7268
7186
|
});
|
|
7269
7187
|
|
|
@@ -7290,9 +7208,9 @@ var reducer = function reducer(state, action) {
|
|
|
7290
7208
|
});
|
|
7291
7209
|
}
|
|
7292
7210
|
|
|
7293
|
-
return _extends$
|
|
7211
|
+
return _extends$z({}, state, {
|
|
7294
7212
|
toasts: state.toasts.map(function (t) {
|
|
7295
|
-
return t.id === toastId || toastId === undefined ? _extends$
|
|
7213
|
+
return t.id === toastId || toastId === undefined ? _extends$z({}, t, {
|
|
7296
7214
|
visible: false
|
|
7297
7215
|
}) : t;
|
|
7298
7216
|
})
|
|
@@ -7300,28 +7218,28 @@ var reducer = function reducer(state, action) {
|
|
|
7300
7218
|
|
|
7301
7219
|
case ActionType.REMOVE_TOAST:
|
|
7302
7220
|
if (action.toastId === undefined) {
|
|
7303
|
-
return _extends$
|
|
7221
|
+
return _extends$z({}, state, {
|
|
7304
7222
|
toasts: []
|
|
7305
7223
|
});
|
|
7306
7224
|
}
|
|
7307
7225
|
|
|
7308
|
-
return _extends$
|
|
7226
|
+
return _extends$z({}, state, {
|
|
7309
7227
|
toasts: state.toasts.filter(function (t) {
|
|
7310
7228
|
return t.id !== action.toastId;
|
|
7311
7229
|
})
|
|
7312
7230
|
});
|
|
7313
7231
|
|
|
7314
7232
|
case ActionType.START_PAUSE:
|
|
7315
|
-
return _extends$
|
|
7233
|
+
return _extends$z({}, state, {
|
|
7316
7234
|
pausedAt: action.time
|
|
7317
7235
|
});
|
|
7318
7236
|
|
|
7319
7237
|
case ActionType.END_PAUSE:
|
|
7320
7238
|
var diff = action.time - (state.pausedAt || 0);
|
|
7321
|
-
return _extends$
|
|
7239
|
+
return _extends$z({}, state, {
|
|
7322
7240
|
pausedAt: undefined,
|
|
7323
7241
|
toasts: state.toasts.map(function (t) {
|
|
7324
|
-
return _extends$
|
|
7242
|
+
return _extends$z({}, t, {
|
|
7325
7243
|
pauseDuration: t.pauseDuration + diff
|
|
7326
7244
|
});
|
|
7327
7245
|
})
|
|
@@ -7368,12 +7286,12 @@ var useStore = function useStore(toastOptions) {
|
|
|
7368
7286
|
var mergedToasts = state.toasts.map(function (t) {
|
|
7369
7287
|
var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
|
|
7370
7288
|
|
|
7371
|
-
return _extends$
|
|
7289
|
+
return _extends$z({}, toastOptions, toastOptions[t.type], t, {
|
|
7372
7290
|
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],
|
|
7373
|
-
style: _extends$
|
|
7291
|
+
style: _extends$z({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
|
|
7374
7292
|
});
|
|
7375
7293
|
});
|
|
7376
|
-
return _extends$
|
|
7294
|
+
return _extends$z({}, state, {
|
|
7377
7295
|
toasts: mergedToasts
|
|
7378
7296
|
});
|
|
7379
7297
|
};
|
|
@@ -7383,7 +7301,7 @@ var createToast = function createToast(message, type, opts) {
|
|
|
7383
7301
|
type = 'blank';
|
|
7384
7302
|
}
|
|
7385
7303
|
|
|
7386
|
-
return _extends$
|
|
7304
|
+
return _extends$z({
|
|
7387
7305
|
createdAt: Date.now(),
|
|
7388
7306
|
visible: true,
|
|
7389
7307
|
type: type,
|
|
@@ -7433,14 +7351,14 @@ toast.remove = function (toastId) {
|
|
|
7433
7351
|
};
|
|
7434
7352
|
|
|
7435
7353
|
toast.promise = function (promise, msgs, opts) {
|
|
7436
|
-
var id = toast.loading(msgs.loading, _extends$
|
|
7354
|
+
var id = toast.loading(msgs.loading, _extends$z({}, opts, opts == null ? void 0 : opts.loading));
|
|
7437
7355
|
promise.then(function (p) {
|
|
7438
|
-
toast.success(resolveValue(msgs.success, p), _extends$
|
|
7356
|
+
toast.success(resolveValue(msgs.success, p), _extends$z({
|
|
7439
7357
|
id: id
|
|
7440
7358
|
}, opts, opts == null ? void 0 : opts.success));
|
|
7441
7359
|
return p;
|
|
7442
7360
|
})["catch"](function (e) {
|
|
7443
|
-
toast.error(resolveValue(msgs.error, e), _extends$
|
|
7361
|
+
toast.error(resolveValue(msgs.error, e), _extends$z({
|
|
7444
7362
|
id: id
|
|
7445
7363
|
}, opts, opts == null ? void 0 : opts.error));
|
|
7446
7364
|
});
|
|
@@ -7779,7 +7697,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
|
|
|
7779
7697
|
var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
7780
7698
|
return createElement(ToastBarBase, {
|
|
7781
7699
|
className: toast.className,
|
|
7782
|
-
style: _extends$
|
|
7700
|
+
style: _extends$z({}, animationStyle, style, toast.style)
|
|
7783
7701
|
}, typeof children === 'function' ? children({
|
|
7784
7702
|
icon: icon,
|
|
7785
7703
|
message: message
|
|
@@ -7809,7 +7727,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
|
|
|
7809
7727
|
} : position.includes('right') ? {
|
|
7810
7728
|
justifyContent: 'flex-end'
|
|
7811
7729
|
} : {};
|
|
7812
|
-
return _extends$
|
|
7730
|
+
return _extends$z({
|
|
7813
7731
|
left: 0,
|
|
7814
7732
|
right: 0,
|
|
7815
7733
|
display: 'flex',
|
|
@@ -7836,7 +7754,7 @@ var Toaster = function Toaster(_ref) {
|
|
|
7836
7754
|
handlers = _useToaster.handlers;
|
|
7837
7755
|
|
|
7838
7756
|
return createElement("div", {
|
|
7839
|
-
style: _extends$
|
|
7757
|
+
style: _extends$z({
|
|
7840
7758
|
position: 'fixed',
|
|
7841
7759
|
zIndex: 9999,
|
|
7842
7760
|
top: DEFAULT_OFFSET,
|
|
@@ -7871,82 +7789,82 @@ var Toaster = function Toaster(_ref) {
|
|
|
7871
7789
|
}));
|
|
7872
7790
|
};
|
|
7873
7791
|
|
|
7874
|
-
var _path$
|
|
7792
|
+
var _path$w;
|
|
7875
7793
|
|
|
7876
|
-
function _extends$
|
|
7794
|
+
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); }
|
|
7877
7795
|
|
|
7878
7796
|
function SvgCheckSolid(props) {
|
|
7879
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7797
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
7880
7798
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7881
7799
|
className: "h-5 w-5",
|
|
7882
7800
|
viewBox: "0 0 20 20",
|
|
7883
7801
|
fill: "currentColor"
|
|
7884
|
-
}, props), _path$
|
|
7802
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
|
|
7885
7803
|
fillRule: "evenodd",
|
|
7886
7804
|
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",
|
|
7887
7805
|
clipRule: "evenodd"
|
|
7888
7806
|
})));
|
|
7889
7807
|
}
|
|
7890
7808
|
|
|
7891
|
-
var _path$
|
|
7809
|
+
var _path$v;
|
|
7892
7810
|
|
|
7893
|
-
function _extends$
|
|
7811
|
+
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); }
|
|
7894
7812
|
|
|
7895
7813
|
function SvgXIcon(props) {
|
|
7896
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7814
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
7897
7815
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7898
7816
|
viewBox: "0 0 20 20",
|
|
7899
7817
|
fill: "currentColor"
|
|
7900
|
-
}, props), _path$
|
|
7818
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
7901
7819
|
fill: "evenodd",
|
|
7902
7820
|
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",
|
|
7903
7821
|
clipRule: "evenodd"
|
|
7904
7822
|
})));
|
|
7905
7823
|
}
|
|
7906
7824
|
|
|
7907
|
-
var _path$
|
|
7825
|
+
var _path$u;
|
|
7908
7826
|
|
|
7909
|
-
function _extends$
|
|
7827
|
+
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); }
|
|
7910
7828
|
|
|
7911
7829
|
function SvgXIconSolid(props) {
|
|
7912
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7830
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
7913
7831
|
className: "plc-w-4 plc-h-4",
|
|
7914
7832
|
fill: "currentColor",
|
|
7915
7833
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7916
7834
|
viewBox: "0 0 100 100"
|
|
7917
|
-
}, props), _path$
|
|
7835
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
7918
7836
|
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"
|
|
7919
7837
|
})));
|
|
7920
7838
|
}
|
|
7921
7839
|
|
|
7922
|
-
var _path$
|
|
7840
|
+
var _path$t;
|
|
7923
7841
|
|
|
7924
|
-
function _extends$
|
|
7842
|
+
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); }
|
|
7925
7843
|
|
|
7926
7844
|
function SvgExclamation(props) {
|
|
7927
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7845
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
7928
7846
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
7929
7847
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7930
7848
|
viewBox: "0 0 20 20",
|
|
7931
7849
|
fill: "currentColor"
|
|
7932
|
-
}, props), _path$
|
|
7850
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
7933
7851
|
fillRule: "evenodd",
|
|
7934
7852
|
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",
|
|
7935
7853
|
clipRule: "evenodd"
|
|
7936
7854
|
})));
|
|
7937
7855
|
}
|
|
7938
7856
|
|
|
7939
|
-
var _path$
|
|
7857
|
+
var _path$s, _path2$4;
|
|
7940
7858
|
|
|
7941
|
-
function _extends$
|
|
7859
|
+
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); }
|
|
7942
7860
|
|
|
7943
7861
|
function SvgSpinner(props) {
|
|
7944
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7862
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
7945
7863
|
className: "plc-animate-spin",
|
|
7946
7864
|
viewBox: "0 0 24 24",
|
|
7947
7865
|
fill: "currentColor",
|
|
7948
7866
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7949
|
-
}, props), _path$
|
|
7867
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
|
|
7950
7868
|
opacity: 0.2,
|
|
7951
7869
|
fill: "evenodd",
|
|
7952
7870
|
clipRule: "evenodd",
|
|
@@ -8236,9 +8154,7 @@ const init$1 = () => {
|
|
|
8236
8154
|
return switchToAddressView();
|
|
8237
8155
|
});
|
|
8238
8156
|
} else {
|
|
8239
|
-
pelcroSubscribeButtonsByClass[j].addEventListener("click", () =>
|
|
8240
|
-
return switchView("subscription-options");
|
|
8241
|
-
});
|
|
8157
|
+
pelcroSubscribeButtonsByClass[j].addEventListener("click", () => switchView("plan-select"));
|
|
8242
8158
|
}
|
|
8243
8159
|
}
|
|
8244
8160
|
}
|
|
@@ -8400,8 +8316,7 @@ function Link({
|
|
|
8400
8316
|
const init = () => {
|
|
8401
8317
|
const {
|
|
8402
8318
|
switchView,
|
|
8403
|
-
set
|
|
8404
|
-
setProductsList
|
|
8319
|
+
set
|
|
8405
8320
|
} = usePelcro.getStore();
|
|
8406
8321
|
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
8407
8322
|
|
|
@@ -8452,8 +8367,7 @@ const init = () => {
|
|
|
8452
8367
|
}
|
|
8453
8368
|
|
|
8454
8369
|
notify.dismiss(NOTIFICATION_ID);
|
|
8455
|
-
|
|
8456
|
-
switchView("plan-select");
|
|
8370
|
+
switchView("_plan-select-entitlements");
|
|
8457
8371
|
}
|
|
8458
8372
|
}, "Subscribe"), "now to get full page access.")), {
|
|
8459
8373
|
className: "pelcro-notification-entitlement",
|
|
@@ -9258,7 +9172,7 @@ const PelcroModalController = ({
|
|
|
9258
9172
|
type
|
|
9259
9173
|
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "dashboard-open"), React__default.Children.map(children, child => child).find(({
|
|
9260
9174
|
type
|
|
9261
|
-
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-
|
|
9175
|
+
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-entitlements" && React__default.Children.map(children, child => child).find(({
|
|
9262
9176
|
type
|
|
9263
9177
|
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "plan-select"), React__default.Children.map(children, child => child).find(({
|
|
9264
9178
|
type
|
|
@@ -9539,10 +9453,8 @@ const LOAD_PAYMENT_METHODS = "LOAD_PAYMENT_METHODS";
|
|
|
9539
9453
|
const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
|
|
9540
9454
|
const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
|
|
9541
9455
|
const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
|
|
9542
|
-
const SWITCH_TO_RENEW = "SWITCH_TO_RENEW";
|
|
9543
|
-
const SWITCH_TO_NEW = "SWITCH_TO_NEW";
|
|
9544
9456
|
|
|
9545
|
-
const initialState$
|
|
9457
|
+
const initialState$h = {
|
|
9546
9458
|
email: "",
|
|
9547
9459
|
password: "",
|
|
9548
9460
|
emailError: null,
|
|
@@ -9553,10 +9465,10 @@ const initialState$i = {
|
|
|
9553
9465
|
content: ""
|
|
9554
9466
|
}
|
|
9555
9467
|
};
|
|
9556
|
-
const store$
|
|
9468
|
+
const store$h = /*#__PURE__*/createContext(initialState$h);
|
|
9557
9469
|
const {
|
|
9558
|
-
Provider: Provider$
|
|
9559
|
-
} = store$
|
|
9470
|
+
Provider: Provider$h
|
|
9471
|
+
} = store$h;
|
|
9560
9472
|
|
|
9561
9473
|
const LoginContainer = ({
|
|
9562
9474
|
style,
|
|
@@ -9663,7 +9575,7 @@ const LoginContainer = ({
|
|
|
9663
9575
|
});
|
|
9664
9576
|
|
|
9665
9577
|
case RESET_LOGIN_FORM:
|
|
9666
|
-
return initialState$
|
|
9578
|
+
return initialState$h;
|
|
9667
9579
|
|
|
9668
9580
|
case DISABLE_LOGIN_BUTTON:
|
|
9669
9581
|
return lib_7({ ...state,
|
|
@@ -9681,12 +9593,12 @@ const LoginContainer = ({
|
|
|
9681
9593
|
default:
|
|
9682
9594
|
return state;
|
|
9683
9595
|
}
|
|
9684
|
-
}, initialState$
|
|
9596
|
+
}, initialState$h);
|
|
9685
9597
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
9686
9598
|
style: { ...style
|
|
9687
9599
|
},
|
|
9688
9600
|
className: `pelcro-container pelcro-login-container ${className}`
|
|
9689
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
9601
|
+
}, /*#__PURE__*/React__default.createElement(Provider$h, {
|
|
9690
9602
|
value: {
|
|
9691
9603
|
state,
|
|
9692
9604
|
dispatch
|
|
@@ -9694,12 +9606,12 @@ const LoginContainer = ({
|
|
|
9694
9606
|
}, children.length ? children.map((child, i) => {
|
|
9695
9607
|
if (child) {
|
|
9696
9608
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
9697
|
-
store: store$
|
|
9609
|
+
store: store$h,
|
|
9698
9610
|
key: i
|
|
9699
9611
|
});
|
|
9700
9612
|
}
|
|
9701
9613
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
9702
|
-
store: store$
|
|
9614
|
+
store: store$h
|
|
9703
9615
|
})));
|
|
9704
9616
|
};
|
|
9705
9617
|
|
|
@@ -9944,7 +9856,7 @@ const LoginButton = ({
|
|
|
9944
9856
|
buttonDisabled
|
|
9945
9857
|
},
|
|
9946
9858
|
dispatch
|
|
9947
|
-
} = useContext(store$
|
|
9859
|
+
} = useContext(store$h);
|
|
9948
9860
|
const {
|
|
9949
9861
|
t
|
|
9950
9862
|
} = useTranslation("login");
|
|
@@ -9965,23 +9877,23 @@ const LoginButton = ({
|
|
|
9965
9877
|
};
|
|
9966
9878
|
|
|
9967
9879
|
const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
9968
|
-
store: store$
|
|
9880
|
+
store: store$h
|
|
9969
9881
|
}, props));
|
|
9970
9882
|
|
|
9971
9883
|
const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
9972
|
-
store: store$
|
|
9884
|
+
store: store$h
|
|
9973
9885
|
}, props));
|
|
9974
9886
|
|
|
9975
|
-
var _path$
|
|
9887
|
+
var _path$r;
|
|
9976
9888
|
|
|
9977
|
-
function _extends$
|
|
9889
|
+
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); }
|
|
9978
9890
|
|
|
9979
9891
|
function SvgCheck(props) {
|
|
9980
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
9892
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
9981
9893
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9982
9894
|
fill: "currentColor",
|
|
9983
9895
|
viewBox: "0 0 20 20"
|
|
9984
|
-
}, props), _path$
|
|
9896
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
9985
9897
|
fillRule: "evenodd",
|
|
9986
9898
|
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",
|
|
9987
9899
|
clipRule: "evenodd"
|
|
@@ -10046,7 +9958,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
|
10046
9958
|
var FacebookLogin = unwrapExports(facebookLoginRenderProps);
|
|
10047
9959
|
facebookLoginRenderProps.FacebookLogin;
|
|
10048
9960
|
|
|
10049
|
-
const initialState$
|
|
9961
|
+
const initialState$g = {
|
|
10050
9962
|
email: "",
|
|
10051
9963
|
password: "",
|
|
10052
9964
|
emailError: null,
|
|
@@ -10063,10 +9975,10 @@ const initialState$h = {
|
|
|
10063
9975
|
content: ""
|
|
10064
9976
|
}
|
|
10065
9977
|
};
|
|
10066
|
-
const store$
|
|
9978
|
+
const store$g = /*#__PURE__*/createContext(initialState$g);
|
|
10067
9979
|
const {
|
|
10068
|
-
Provider: Provider$
|
|
10069
|
-
} = store$
|
|
9980
|
+
Provider: Provider$g
|
|
9981
|
+
} = store$g;
|
|
10070
9982
|
|
|
10071
9983
|
const RegisterContainer = ({
|
|
10072
9984
|
style,
|
|
@@ -10249,7 +10161,7 @@ const RegisterContainer = ({
|
|
|
10249
10161
|
});
|
|
10250
10162
|
|
|
10251
10163
|
case RESET_LOGIN_FORM:
|
|
10252
|
-
return initialState$
|
|
10164
|
+
return initialState$g;
|
|
10253
10165
|
|
|
10254
10166
|
case DISABLE_REGISTRATION_BUTTON:
|
|
10255
10167
|
return lib_7({ ...state,
|
|
@@ -10267,12 +10179,12 @@ const RegisterContainer = ({
|
|
|
10267
10179
|
default:
|
|
10268
10180
|
return state;
|
|
10269
10181
|
}
|
|
10270
|
-
}, initialState$
|
|
10182
|
+
}, initialState$g);
|
|
10271
10183
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10272
10184
|
style: { ...style
|
|
10273
10185
|
},
|
|
10274
10186
|
className: `pelcro-container pelcro-register-container ${className}`
|
|
10275
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
10187
|
+
}, /*#__PURE__*/React__default.createElement(Provider$g, {
|
|
10276
10188
|
value: {
|
|
10277
10189
|
state,
|
|
10278
10190
|
dispatch
|
|
@@ -10280,12 +10192,12 @@ const RegisterContainer = ({
|
|
|
10280
10192
|
}, children.length ? children.map((child, i) => {
|
|
10281
10193
|
if (child) {
|
|
10282
10194
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
10283
|
-
store: store$
|
|
10195
|
+
store: store$g,
|
|
10284
10196
|
key: i
|
|
10285
10197
|
});
|
|
10286
10198
|
}
|
|
10287
10199
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
10288
|
-
store: store$
|
|
10200
|
+
store: store$g
|
|
10289
10201
|
})));
|
|
10290
10202
|
};
|
|
10291
10203
|
/**
|
|
@@ -10300,15 +10212,15 @@ function hasSecurityTokenEnabled$1() {
|
|
|
10300
10212
|
return hasSecuritySdkLoaded;
|
|
10301
10213
|
}
|
|
10302
10214
|
|
|
10303
|
-
var _path$
|
|
10215
|
+
var _path$q;
|
|
10304
10216
|
|
|
10305
|
-
function _extends$
|
|
10217
|
+
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); }
|
|
10306
10218
|
|
|
10307
10219
|
function SvgFacebookLogo(props) {
|
|
10308
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10220
|
+
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
10309
10221
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10310
10222
|
viewBox: "88.428 12.828 107.543 207.085"
|
|
10311
|
-
}, props), _path$
|
|
10223
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
10312
10224
|
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",
|
|
10313
10225
|
fill: "#3c5a9a"
|
|
10314
10226
|
})));
|
|
@@ -10325,10 +10237,10 @@ const FacebookLoginButton = ({
|
|
|
10325
10237
|
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;
|
|
10326
10238
|
const {
|
|
10327
10239
|
dispatch: loginDispatch
|
|
10328
|
-
} = useContext(store$
|
|
10240
|
+
} = useContext(store$h);
|
|
10329
10241
|
const {
|
|
10330
10242
|
dispatch: registerDispatch
|
|
10331
|
-
} = useContext(store$
|
|
10243
|
+
} = useContext(store$g);
|
|
10332
10244
|
|
|
10333
10245
|
const onSuccess = facebookUser => {
|
|
10334
10246
|
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
@@ -10381,15 +10293,15 @@ var googleLogin = createCommonjsModule(function (module, exports) {
|
|
|
10381
10293
|
unwrapExports(googleLogin);
|
|
10382
10294
|
var googleLogin_1 = googleLogin.GoogleLogin;
|
|
10383
10295
|
|
|
10384
|
-
var _path$
|
|
10296
|
+
var _path$p, _path2$3, _path3$1, _path4;
|
|
10385
10297
|
|
|
10386
|
-
function _extends$
|
|
10298
|
+
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); }
|
|
10387
10299
|
|
|
10388
10300
|
function SvgGoogleLogo(props) {
|
|
10389
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10301
|
+
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
10390
10302
|
viewBox: "0 0 24 24",
|
|
10391
10303
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10392
|
-
}, props), _path$
|
|
10304
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
10393
10305
|
fill: "#4285F4",
|
|
10394
10306
|
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"
|
|
10395
10307
|
})), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -10415,10 +10327,10 @@ const GoogleLoginButton = ({
|
|
|
10415
10327
|
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;
|
|
10416
10328
|
const {
|
|
10417
10329
|
dispatch: loginDispatch
|
|
10418
|
-
} = useContext(store$
|
|
10330
|
+
} = useContext(store$h);
|
|
10419
10331
|
const {
|
|
10420
10332
|
dispatch: registerDispatch
|
|
10421
|
-
} = useContext(store$
|
|
10333
|
+
} = useContext(store$g);
|
|
10422
10334
|
|
|
10423
10335
|
const onSuccess = response => {
|
|
10424
10336
|
var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
|
|
@@ -10466,15 +10378,15 @@ const GoogleLoginButton = ({
|
|
|
10466
10378
|
}) : null;
|
|
10467
10379
|
};
|
|
10468
10380
|
|
|
10469
|
-
var _path$
|
|
10381
|
+
var _path$o;
|
|
10470
10382
|
|
|
10471
|
-
function _extends$
|
|
10383
|
+
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); }
|
|
10472
10384
|
|
|
10473
10385
|
function SvgAuth0Logo(props) {
|
|
10474
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10386
|
+
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
10475
10387
|
viewBox: "0 0 256 285",
|
|
10476
10388
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10477
|
-
}, props), _path$
|
|
10389
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
10478
10390
|
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"
|
|
10479
10391
|
})));
|
|
10480
10392
|
}
|
|
@@ -10514,10 +10426,10 @@ const Auth0LoginButton = ({
|
|
|
10514
10426
|
}, [auth0Enabled, auth0Loaded]);
|
|
10515
10427
|
const {
|
|
10516
10428
|
dispatch: loginDispatch
|
|
10517
|
-
} = useContext(store$
|
|
10429
|
+
} = useContext(store$h);
|
|
10518
10430
|
const {
|
|
10519
10431
|
dispatch: registerDispatch
|
|
10520
|
-
} = useContext(store$
|
|
10432
|
+
} = useContext(store$g);
|
|
10521
10433
|
|
|
10522
10434
|
function handleClick() {
|
|
10523
10435
|
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
@@ -10650,15 +10562,15 @@ function LoginView(props) {
|
|
|
10650
10562
|
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
|
|
10651
10563
|
}
|
|
10652
10564
|
|
|
10653
|
-
var _path$
|
|
10565
|
+
var _path$n, _path2$2, _path3;
|
|
10654
10566
|
|
|
10655
|
-
function _extends$
|
|
10567
|
+
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); }
|
|
10656
10568
|
|
|
10657
10569
|
function SvgPelcroAuthorship(props) {
|
|
10658
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10570
|
+
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
10659
10571
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10660
10572
|
viewBox: "0 -80.652 497.072 179.991"
|
|
10661
|
-
}, props), _path$
|
|
10573
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
10662
10574
|
fill: "none",
|
|
10663
10575
|
stroke: "#4a4a4a",
|
|
10664
10576
|
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"
|
|
@@ -10805,11 +10717,11 @@ function LoginModal({
|
|
|
10805
10717
|
LoginModal.viewId = "login";
|
|
10806
10718
|
|
|
10807
10719
|
const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
10808
|
-
store: store$
|
|
10720
|
+
store: store$g
|
|
10809
10721
|
}, props));
|
|
10810
10722
|
|
|
10811
10723
|
const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
10812
|
-
store: store$
|
|
10724
|
+
store: store$g
|
|
10813
10725
|
}, props));
|
|
10814
10726
|
|
|
10815
10727
|
const RegisterButton = ({
|
|
@@ -10829,7 +10741,7 @@ const RegisterButton = ({
|
|
|
10829
10741
|
buttonDisabled
|
|
10830
10742
|
},
|
|
10831
10743
|
dispatch
|
|
10832
|
-
} = useContext(store$
|
|
10744
|
+
} = useContext(store$g);
|
|
10833
10745
|
const {
|
|
10834
10746
|
t
|
|
10835
10747
|
} = useTranslation("register");
|
|
@@ -10967,7 +10879,7 @@ function FirstName({
|
|
|
10967
10879
|
}
|
|
10968
10880
|
|
|
10969
10881
|
const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
10970
|
-
store: store$
|
|
10882
|
+
store: store$g
|
|
10971
10883
|
}, props));
|
|
10972
10884
|
|
|
10973
10885
|
function LastName({
|
|
@@ -10998,7 +10910,7 @@ function LastName({
|
|
|
10998
10910
|
}
|
|
10999
10911
|
|
|
11000
10912
|
const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
11001
|
-
store: store$
|
|
10913
|
+
store: store$g
|
|
11002
10914
|
}, props));
|
|
11003
10915
|
|
|
11004
10916
|
/**
|
|
@@ -11122,7 +11034,7 @@ function TextInput({
|
|
|
11122
11034
|
|
|
11123
11035
|
const RegisterTextInput = props => {
|
|
11124
11036
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
11125
|
-
store: store$
|
|
11037
|
+
store: store$g
|
|
11126
11038
|
}));
|
|
11127
11039
|
};
|
|
11128
11040
|
|
|
@@ -11269,7 +11181,6 @@ function SelectModalWithHook(props) {
|
|
|
11269
11181
|
(_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
|
|
11270
11182
|
}, []);
|
|
11271
11183
|
const {
|
|
11272
|
-
productsList,
|
|
11273
11184
|
isGift,
|
|
11274
11185
|
plan,
|
|
11275
11186
|
product,
|
|
@@ -11279,12 +11190,11 @@ function SelectModalWithHook(props) {
|
|
|
11279
11190
|
view,
|
|
11280
11191
|
set
|
|
11281
11192
|
} = usePelcro();
|
|
11282
|
-
const
|
|
11193
|
+
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
11194
|
+
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
11283
11195
|
return /*#__PURE__*/React__default.createElement(SelectModalWithTrans, {
|
|
11284
|
-
productsList: productsList,
|
|
11285
11196
|
isGift: isGift,
|
|
11286
|
-
disableGifting: isRenewingGift
|
|
11287
|
-
isRenewingSub: isRenewingSub,
|
|
11197
|
+
disableGifting: isRenewingGift,
|
|
11288
11198
|
plan: plan,
|
|
11289
11199
|
product: product,
|
|
11290
11200
|
onClose: () => {
|
|
@@ -11298,10 +11208,8 @@ function SelectModalWithHook(props) {
|
|
|
11298
11208
|
plan,
|
|
11299
11209
|
isGift
|
|
11300
11210
|
}),
|
|
11301
|
-
|
|
11302
|
-
|
|
11303
|
-
}),
|
|
11304
|
-
setView: switchView
|
|
11211
|
+
setView: switchView,
|
|
11212
|
+
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
11305
11213
|
});
|
|
11306
11214
|
}
|
|
11307
11215
|
SelectModalWithHook.viewId = "plan-select";
|
|
@@ -11333,10 +11241,10 @@ class SelectModal extends Component {
|
|
|
11333
11241
|
});
|
|
11334
11242
|
}
|
|
11335
11243
|
|
|
11336
|
-
if (this.
|
|
11244
|
+
if (this.state.productList.length === 1) {
|
|
11337
11245
|
this.setState({
|
|
11338
|
-
product: this.
|
|
11339
|
-
planList: this.
|
|
11246
|
+
product: this.state.productList[0],
|
|
11247
|
+
planList: this.state.productList[0].plans,
|
|
11340
11248
|
mode: "plan"
|
|
11341
11249
|
});
|
|
11342
11250
|
}
|
|
@@ -11353,7 +11261,7 @@ class SelectModal extends Component {
|
|
|
11353
11261
|
});
|
|
11354
11262
|
|
|
11355
11263
|
_defineProperty$3(this, "onProductChange", e => {
|
|
11356
|
-
const product =
|
|
11264
|
+
const product = window.Pelcro.product.list()[e.target.selectedIndex];
|
|
11357
11265
|
this.setState({
|
|
11358
11266
|
product: product,
|
|
11359
11267
|
plan: product.plans[0]
|
|
@@ -11419,7 +11327,7 @@ class SelectModal extends Component {
|
|
|
11419
11327
|
|
|
11420
11328
|
_defineProperty$3(this, "renderProducts", () => {
|
|
11421
11329
|
const userDidSelectProduct = Boolean(this.state.mode === "plan");
|
|
11422
|
-
const productsToShow = userDidSelectProduct ? [this.state.product] : this.
|
|
11330
|
+
const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
|
|
11423
11331
|
return productsToShow.map((product, index) => {
|
|
11424
11332
|
return this.renderOneProduct(product, index);
|
|
11425
11333
|
});
|
|
@@ -11432,7 +11340,7 @@ class SelectModal extends Component {
|
|
|
11432
11340
|
return this.renderOneProduct(this.state.product);
|
|
11433
11341
|
}
|
|
11434
11342
|
|
|
11435
|
-
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(
|
|
11343
|
+
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(); // Render normal products if there are no available matching products
|
|
11436
11344
|
|
|
11437
11345
|
if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
|
|
11438
11346
|
return this.renderProducts();
|
|
@@ -11448,7 +11356,10 @@ class SelectModal extends Component {
|
|
|
11448
11356
|
className: "plc-text-sm plc-font-semibold"
|
|
11449
11357
|
}, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
|
|
11450
11358
|
|
|
11451
|
-
function productsWithMatchedTaggedFirst(
|
|
11359
|
+
function productsWithMatchedTaggedFirst() {
|
|
11360
|
+
var _window$Pelcro$produc;
|
|
11361
|
+
|
|
11362
|
+
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
11452
11363
|
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
11453
11364
|
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
11454
11365
|
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
@@ -11482,7 +11393,7 @@ class SelectModal extends Component {
|
|
|
11482
11393
|
_defineProperty$3(this, "selectProduct", e => {
|
|
11483
11394
|
const id = e.target.dataset.key;
|
|
11484
11395
|
|
|
11485
|
-
for (const product of this.
|
|
11396
|
+
for (const product of this.state.productList) {
|
|
11486
11397
|
if (+product.id === +id) {
|
|
11487
11398
|
var _this$state$plan;
|
|
11488
11399
|
|
|
@@ -11535,14 +11446,6 @@ class SelectModal extends Component {
|
|
|
11535
11446
|
|
|
11536
11447
|
_defineProperty$3(this, "submitOption", () => {
|
|
11537
11448
|
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
11538
|
-
|
|
11539
|
-
if (this.props.isRenewingSub) {
|
|
11540
|
-
var _matchingSub$id;
|
|
11541
|
-
|
|
11542
|
-
const matchingSub = window.Pelcro.subscription.list().find(sub => sub.plan.id === this.state.plan.id && sub.status === "active" && sub.cancel_at_period_end === 1);
|
|
11543
|
-
this.props.setSubscriptionIdToRenew((_matchingSub$id = matchingSub === null || matchingSub === void 0 ? void 0 : matchingSub.id) !== null && _matchingSub$id !== void 0 ? _matchingSub$id : null);
|
|
11544
|
-
}
|
|
11545
|
-
|
|
11546
11449
|
const {
|
|
11547
11450
|
product,
|
|
11548
11451
|
isGift
|
|
@@ -11580,7 +11483,8 @@ class SelectModal extends Component {
|
|
|
11580
11483
|
plan: {},
|
|
11581
11484
|
isGift: props.isGift,
|
|
11582
11485
|
disabled: true,
|
|
11583
|
-
mode: "product"
|
|
11486
|
+
mode: "product",
|
|
11487
|
+
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
11584
11488
|
};
|
|
11585
11489
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
11586
11490
|
this.locale = this.props.t;
|
|
@@ -11588,7 +11492,7 @@ class SelectModal extends Component {
|
|
|
11588
11492
|
}
|
|
11589
11493
|
|
|
11590
11494
|
render() {
|
|
11591
|
-
var
|
|
11495
|
+
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
11592
11496
|
|
|
11593
11497
|
const {
|
|
11594
11498
|
disableGifting
|
|
@@ -11622,7 +11526,7 @@ class SelectModal extends Component {
|
|
|
11622
11526
|
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
11623
11527
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
11624
11528
|
className: "plc-text-2xl plc-font-semibold"
|
|
11625
|
-
}, this.product && this.product.paywall.select_title || ((
|
|
11529
|
+
}, 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.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.createElement("div", {
|
|
11626
11530
|
className: "pelcro-select-products-wrapper"
|
|
11627
11531
|
}, (_window$Pelcro$site$r = window.Pelcro.site.read()) !== null && _window$Pelcro$site$r !== void 0 && _window$Pelcro$site$r.restrictive_paywall_metatags_enabled ? this.renderMatchingProductsFirst() : this.renderProducts()), this.state.mode === "plan" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
11628
11532
|
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
@@ -13197,7 +13101,7 @@ class PaypalGateWay {
|
|
|
13197
13101
|
|
|
13198
13102
|
/** @type {PaymentStateType} */
|
|
13199
13103
|
|
|
13200
|
-
const initialState$
|
|
13104
|
+
const initialState$f = {
|
|
13201
13105
|
disableSubmit: false,
|
|
13202
13106
|
isLoading: false,
|
|
13203
13107
|
disableCouponButton: false,
|
|
@@ -13216,10 +13120,10 @@ const initialState$g = {
|
|
|
13216
13120
|
content: ""
|
|
13217
13121
|
}
|
|
13218
13122
|
};
|
|
13219
|
-
const store$
|
|
13123
|
+
const store$f = /*#__PURE__*/createContext(initialState$f);
|
|
13220
13124
|
const {
|
|
13221
|
-
Provider: Provider$
|
|
13222
|
-
} = store$
|
|
13125
|
+
Provider: Provider$f
|
|
13126
|
+
} = store$f;
|
|
13223
13127
|
|
|
13224
13128
|
const PaymentMethodContainerWithoutStripe = ({
|
|
13225
13129
|
style,
|
|
@@ -14259,21 +14163,21 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
14259
14163
|
default:
|
|
14260
14164
|
return state;
|
|
14261
14165
|
}
|
|
14262
|
-
}, initialState$
|
|
14166
|
+
}, initialState$f);
|
|
14263
14167
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14264
14168
|
style: { ...style
|
|
14265
14169
|
},
|
|
14266
14170
|
className: `pelcro-container pelcro-payment-container ${className}`
|
|
14267
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
14171
|
+
}, /*#__PURE__*/React__default.createElement(Provider$f, {
|
|
14268
14172
|
value: {
|
|
14269
14173
|
state,
|
|
14270
14174
|
dispatch
|
|
14271
14175
|
}
|
|
14272
14176
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
14273
|
-
store: store$
|
|
14177
|
+
store: store$f,
|
|
14274
14178
|
key: i
|
|
14275
14179
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
14276
|
-
store: store$
|
|
14180
|
+
store: store$f
|
|
14277
14181
|
})));
|
|
14278
14182
|
};
|
|
14279
14183
|
|
|
@@ -14295,7 +14199,7 @@ const PaymentMethodContainer = props => {
|
|
|
14295
14199
|
stripeAccount: window.Pelcro.site.read().account_id,
|
|
14296
14200
|
locale: getPageOrDefaultLanguage()
|
|
14297
14201
|
}, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
|
|
14298
|
-
store: store$
|
|
14202
|
+
store: store$f
|
|
14299
14203
|
}, props))));
|
|
14300
14204
|
}
|
|
14301
14205
|
|
|
@@ -14348,7 +14252,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
14348
14252
|
currentPlan,
|
|
14349
14253
|
updatedPrice
|
|
14350
14254
|
}
|
|
14351
|
-
} = useContext(store$
|
|
14255
|
+
} = useContext(store$f);
|
|
14352
14256
|
|
|
14353
14257
|
const updatePaymentRequest = () => {
|
|
14354
14258
|
// Make sure payment request is up to date, eg. user added a coupon code.
|
|
@@ -14408,7 +14312,7 @@ const DiscountedPrice = props => {
|
|
|
14408
14312
|
taxAmount,
|
|
14409
14313
|
percentOff
|
|
14410
14314
|
}
|
|
14411
|
-
} = useContext(store$
|
|
14315
|
+
} = useContext(store$f);
|
|
14412
14316
|
const {
|
|
14413
14317
|
order,
|
|
14414
14318
|
plan
|
|
@@ -14458,7 +14362,7 @@ const SubmitPaymentMethod = ({
|
|
|
14458
14362
|
isLoading,
|
|
14459
14363
|
updatedPrice
|
|
14460
14364
|
}
|
|
14461
|
-
} = useContext(store$
|
|
14365
|
+
} = useContext(store$f);
|
|
14462
14366
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
14463
14367
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
14464
14368
|
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
@@ -14479,17 +14383,17 @@ const SubmitPaymentMethod = ({
|
|
|
14479
14383
|
}, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
|
|
14480
14384
|
};
|
|
14481
14385
|
|
|
14482
|
-
var _path$
|
|
14386
|
+
var _path$m;
|
|
14483
14387
|
|
|
14484
|
-
function _extends$
|
|
14388
|
+
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); }
|
|
14485
14389
|
|
|
14486
14390
|
function SvgArrowLeft(props) {
|
|
14487
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14391
|
+
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
14488
14392
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14489
14393
|
fill: "none",
|
|
14490
14394
|
viewBox: "0 0 24 24",
|
|
14491
14395
|
stroke: "currentColor"
|
|
14492
|
-
}, props), _path$
|
|
14396
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
|
|
14493
14397
|
strokeLinecap: "round",
|
|
14494
14398
|
strokeLinejoin: "round",
|
|
14495
14399
|
strokeWidth: 2,
|
|
@@ -14508,7 +14412,7 @@ const ApplyCouponButton = ({
|
|
|
14508
14412
|
disableCouponButton
|
|
14509
14413
|
},
|
|
14510
14414
|
dispatch
|
|
14511
|
-
} = useContext(store$
|
|
14415
|
+
} = useContext(store$f);
|
|
14512
14416
|
const {
|
|
14513
14417
|
t
|
|
14514
14418
|
} = useTranslation("checkoutForm");
|
|
@@ -14542,7 +14446,7 @@ const CouponCodeField = props => {
|
|
|
14542
14446
|
couponCode,
|
|
14543
14447
|
couponError
|
|
14544
14448
|
}
|
|
14545
|
-
} = useContext(store$
|
|
14449
|
+
} = useContext(store$f);
|
|
14546
14450
|
|
|
14547
14451
|
const onCouponCodeChange = e => {
|
|
14548
14452
|
dispatch({
|
|
@@ -14571,17 +14475,17 @@ const CouponCodeField = props => {
|
|
|
14571
14475
|
}, props));
|
|
14572
14476
|
};
|
|
14573
14477
|
|
|
14574
|
-
var _path$
|
|
14478
|
+
var _path$l;
|
|
14575
14479
|
|
|
14576
|
-
function _extends$
|
|
14480
|
+
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); }
|
|
14577
14481
|
|
|
14578
14482
|
function SvgTicket(props) {
|
|
14579
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14483
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
14580
14484
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14581
14485
|
fill: "none",
|
|
14582
14486
|
viewBox: "0 0 24 24",
|
|
14583
14487
|
stroke: "currentColor"
|
|
14584
|
-
}, props), _path$
|
|
14488
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
14585
14489
|
strokeLinecap: "round",
|
|
14586
14490
|
strokeLinejoin: "round",
|
|
14587
14491
|
strokeWidth: 2,
|
|
@@ -14598,7 +14502,7 @@ const CouponCode = ({
|
|
|
14598
14502
|
state: {
|
|
14599
14503
|
enableCouponField
|
|
14600
14504
|
}
|
|
14601
|
-
} = useContext(store$
|
|
14505
|
+
} = useContext(store$f);
|
|
14602
14506
|
const {
|
|
14603
14507
|
t
|
|
14604
14508
|
} = useTranslation("checkoutForm");
|
|
@@ -14855,7 +14759,7 @@ const PaypalSubscribeButton = props => {
|
|
|
14855
14759
|
const {
|
|
14856
14760
|
dispatch,
|
|
14857
14761
|
state
|
|
14858
|
-
} = useContext(store$
|
|
14762
|
+
} = useContext(store$f);
|
|
14859
14763
|
const {
|
|
14860
14764
|
product,
|
|
14861
14765
|
plan,
|
|
@@ -14941,16 +14845,16 @@ const BankRedirection = () => {
|
|
|
14941
14845
|
}));
|
|
14942
14846
|
};
|
|
14943
14847
|
|
|
14944
|
-
var _path$
|
|
14848
|
+
var _path$k;
|
|
14945
14849
|
|
|
14946
|
-
function _extends$
|
|
14850
|
+
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); }
|
|
14947
14851
|
|
|
14948
14852
|
function SvgLock(props) {
|
|
14949
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14853
|
+
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
14950
14854
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14951
14855
|
viewBox: "0 0 20 20",
|
|
14952
14856
|
fill: "currentColor"
|
|
14953
|
-
}, props), _path$
|
|
14857
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
|
|
14954
14858
|
fillRule: "evenodd",
|
|
14955
14859
|
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",
|
|
14956
14860
|
clipRule: "evenodd"
|
|
@@ -14967,7 +14871,7 @@ const SelectedPaymentMethod = () => {
|
|
|
14967
14871
|
state: {
|
|
14968
14872
|
isLoading
|
|
14969
14873
|
}
|
|
14970
|
-
} = useContext(store$
|
|
14874
|
+
} = useContext(store$f);
|
|
14971
14875
|
const {
|
|
14972
14876
|
switchView,
|
|
14973
14877
|
selectedPaymentMethodId
|
|
@@ -15009,7 +14913,7 @@ const TaxAmount = () => {
|
|
|
15009
14913
|
state: {
|
|
15010
14914
|
taxAmount
|
|
15011
14915
|
}
|
|
15012
|
-
} = useContext(store$
|
|
14916
|
+
} = useContext(store$f);
|
|
15013
14917
|
const {
|
|
15014
14918
|
plan
|
|
15015
14919
|
} = usePelcro();
|
|
@@ -15172,12 +15076,12 @@ function SubscriptionRenewModal({
|
|
|
15172
15076
|
}
|
|
15173
15077
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
15174
15078
|
|
|
15175
|
-
var _path$
|
|
15079
|
+
var _path$j;
|
|
15176
15080
|
|
|
15177
|
-
function _extends$
|
|
15081
|
+
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); }
|
|
15178
15082
|
|
|
15179
15083
|
function SvgGift(props) {
|
|
15180
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
15084
|
+
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
15181
15085
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
15182
15086
|
fill: "none",
|
|
15183
15087
|
stroke: "currentColor",
|
|
@@ -15186,7 +15090,7 @@ function SvgGift(props) {
|
|
|
15186
15090
|
strokeWidth: 2,
|
|
15187
15091
|
viewBox: "0 0 24 24",
|
|
15188
15092
|
xmlns: "http://www.w3.org/2000/svg"
|
|
15189
|
-
}, props), _path$
|
|
15093
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
15190
15094
|
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"
|
|
15191
15095
|
})));
|
|
15192
15096
|
}
|
|
@@ -15527,7 +15431,7 @@ class DefaultNewsLetter extends Component {
|
|
|
15527
15431
|
|
|
15528
15432
|
const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
|
|
15529
15433
|
|
|
15530
|
-
const initialState$
|
|
15434
|
+
const initialState$e = {
|
|
15531
15435
|
didSubToNewslettersBefore: false,
|
|
15532
15436
|
newsletters: [],
|
|
15533
15437
|
isListLoading: true,
|
|
@@ -15537,10 +15441,10 @@ const initialState$f = {
|
|
|
15537
15441
|
content: ""
|
|
15538
15442
|
}
|
|
15539
15443
|
};
|
|
15540
|
-
const store$
|
|
15444
|
+
const store$e = /*#__PURE__*/createContext(initialState$e);
|
|
15541
15445
|
const {
|
|
15542
|
-
Provider: Provider$
|
|
15543
|
-
} = store$
|
|
15446
|
+
Provider: Provider$e
|
|
15447
|
+
} = store$e;
|
|
15544
15448
|
|
|
15545
15449
|
const NewsletterUpdateContainer = ({
|
|
15546
15450
|
style,
|
|
@@ -15653,7 +15557,7 @@ const NewsletterUpdateContainer = ({
|
|
|
15653
15557
|
default:
|
|
15654
15558
|
return state;
|
|
15655
15559
|
}
|
|
15656
|
-
}, initialState$
|
|
15560
|
+
}, initialState$e);
|
|
15657
15561
|
useEffect(() => {
|
|
15658
15562
|
const getUserNewsletters = () => {
|
|
15659
15563
|
var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
|
|
@@ -15697,7 +15601,7 @@ const NewsletterUpdateContainer = ({
|
|
|
15697
15601
|
style: { ...style
|
|
15698
15602
|
},
|
|
15699
15603
|
className: `pelcro-container pelcro-newsletter-update-container ${className}`
|
|
15700
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
15604
|
+
}, /*#__PURE__*/React__default.createElement(Provider$e, {
|
|
15701
15605
|
value: {
|
|
15702
15606
|
state,
|
|
15703
15607
|
dispatch
|
|
@@ -15705,12 +15609,12 @@ const NewsletterUpdateContainer = ({
|
|
|
15705
15609
|
}, children.length ? children.map((child, i) => {
|
|
15706
15610
|
if (child) {
|
|
15707
15611
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
15708
|
-
store: store$
|
|
15612
|
+
store: store$e,
|
|
15709
15613
|
key: i
|
|
15710
15614
|
});
|
|
15711
15615
|
}
|
|
15712
15616
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
15713
|
-
store: store$
|
|
15617
|
+
store: store$e
|
|
15714
15618
|
})));
|
|
15715
15619
|
};
|
|
15716
15620
|
|
|
@@ -15725,7 +15629,7 @@ const NewsletterUpdateButton = ({
|
|
|
15725
15629
|
isSubmitting,
|
|
15726
15630
|
isListLoading
|
|
15727
15631
|
}
|
|
15728
|
-
} = useContext(store$
|
|
15632
|
+
} = useContext(store$e);
|
|
15729
15633
|
const {
|
|
15730
15634
|
t
|
|
15731
15635
|
} = useTranslation("newsletter");
|
|
@@ -15755,7 +15659,7 @@ const NewsletterUpdateList = () => {
|
|
|
15755
15659
|
newsletters,
|
|
15756
15660
|
isListLoading
|
|
15757
15661
|
}
|
|
15758
|
-
} = useContext(store$
|
|
15662
|
+
} = useContext(store$e);
|
|
15759
15663
|
|
|
15760
15664
|
if (isListLoading) {
|
|
15761
15665
|
return /*#__PURE__*/React__default.createElement(Loader, {
|
|
@@ -15959,7 +15863,7 @@ function SubscriptionCreateModal({
|
|
|
15959
15863
|
SubscriptionCreateModal.viewId = "subscription-create";
|
|
15960
15864
|
|
|
15961
15865
|
var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
|
|
15962
|
-
const initialState$
|
|
15866
|
+
const initialState$d = {
|
|
15963
15867
|
email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
|
|
15964
15868
|
firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
|
|
15965
15869
|
lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
|
|
@@ -15972,10 +15876,10 @@ const initialState$e = {
|
|
|
15972
15876
|
content: ""
|
|
15973
15877
|
}
|
|
15974
15878
|
};
|
|
15975
|
-
const store$
|
|
15879
|
+
const store$d = /*#__PURE__*/createContext(initialState$d);
|
|
15976
15880
|
const {
|
|
15977
|
-
Provider: Provider$
|
|
15978
|
-
} = store$
|
|
15881
|
+
Provider: Provider$d
|
|
15882
|
+
} = store$d;
|
|
15979
15883
|
|
|
15980
15884
|
const UserUpdateContainer = ({
|
|
15981
15885
|
style,
|
|
@@ -16107,27 +16011,27 @@ const UserUpdateContainer = ({
|
|
|
16107
16011
|
default:
|
|
16108
16012
|
return state;
|
|
16109
16013
|
}
|
|
16110
|
-
}, initialState$
|
|
16014
|
+
}, initialState$d);
|
|
16111
16015
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
16112
16016
|
style: { ...style
|
|
16113
16017
|
},
|
|
16114
16018
|
className: `pelcro-container pelcro-user-update-container ${className}`
|
|
16115
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
16019
|
+
}, /*#__PURE__*/React__default.createElement(Provider$d, {
|
|
16116
16020
|
value: {
|
|
16117
16021
|
state,
|
|
16118
16022
|
dispatch
|
|
16119
16023
|
}
|
|
16120
16024
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
16121
|
-
store: store$
|
|
16025
|
+
store: store$d,
|
|
16122
16026
|
key: i
|
|
16123
16027
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
16124
|
-
store: store$
|
|
16028
|
+
store: store$d
|
|
16125
16029
|
})));
|
|
16126
16030
|
};
|
|
16127
16031
|
|
|
16128
16032
|
const UserUpdateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
16129
16033
|
disabled: true,
|
|
16130
|
-
store: store$
|
|
16034
|
+
store: store$d
|
|
16131
16035
|
}, props));
|
|
16132
16036
|
|
|
16133
16037
|
const UserUpdateButton = ({
|
|
@@ -16140,7 +16044,7 @@ const UserUpdateButton = ({
|
|
|
16140
16044
|
buttonDisabled
|
|
16141
16045
|
},
|
|
16142
16046
|
dispatch
|
|
16143
|
-
} = useContext(store$
|
|
16047
|
+
} = useContext(store$d);
|
|
16144
16048
|
const {
|
|
16145
16049
|
t
|
|
16146
16050
|
} = useTranslation("userEdit");
|
|
@@ -16157,11 +16061,11 @@ const UserUpdateButton = ({
|
|
|
16157
16061
|
};
|
|
16158
16062
|
|
|
16159
16063
|
const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
16160
|
-
store: store$
|
|
16064
|
+
store: store$d
|
|
16161
16065
|
}, props));
|
|
16162
16066
|
|
|
16163
16067
|
const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
16164
|
-
store: store$
|
|
16068
|
+
store: store$d
|
|
16165
16069
|
}, props));
|
|
16166
16070
|
|
|
16167
16071
|
function Phone({
|
|
@@ -16190,22 +16094,22 @@ function Phone({
|
|
|
16190
16094
|
}
|
|
16191
16095
|
|
|
16192
16096
|
const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
|
|
16193
|
-
store: store$
|
|
16097
|
+
store: store$d
|
|
16194
16098
|
}, props));
|
|
16195
16099
|
|
|
16196
16100
|
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";
|
|
16197
16101
|
|
|
16198
|
-
var _path$
|
|
16102
|
+
var _path$i;
|
|
16199
16103
|
|
|
16200
|
-
function _extends$
|
|
16104
|
+
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); }
|
|
16201
16105
|
|
|
16202
16106
|
function SvgEdit(props) {
|
|
16203
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
16107
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
16204
16108
|
className: "plc-w-6 plc-h-6",
|
|
16205
16109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16206
16110
|
viewBox: "0 0 20 20",
|
|
16207
16111
|
fill: "currentColor"
|
|
16208
|
-
}, props), _path$
|
|
16112
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
16209
16113
|
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"
|
|
16210
16114
|
})));
|
|
16211
16115
|
}
|
|
@@ -16337,16 +16241,16 @@ function DisplayName({
|
|
|
16337
16241
|
}
|
|
16338
16242
|
|
|
16339
16243
|
const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
|
|
16340
|
-
store: store$
|
|
16244
|
+
store: store$d
|
|
16341
16245
|
}, props));
|
|
16342
16246
|
|
|
16343
16247
|
const UserUpdateTextInput = props => {
|
|
16344
16248
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
16345
|
-
store: store$
|
|
16249
|
+
store: store$d
|
|
16346
16250
|
}));
|
|
16347
16251
|
};
|
|
16348
16252
|
|
|
16349
|
-
const initialState$
|
|
16253
|
+
const initialState$c = {
|
|
16350
16254
|
isSubmitting: false,
|
|
16351
16255
|
firstName: "",
|
|
16352
16256
|
firstNameError: "",
|
|
@@ -16371,10 +16275,10 @@ const initialState$d = {
|
|
|
16371
16275
|
content: ""
|
|
16372
16276
|
}
|
|
16373
16277
|
};
|
|
16374
|
-
const store$
|
|
16278
|
+
const store$c = /*#__PURE__*/createContext(initialState$c);
|
|
16375
16279
|
const {
|
|
16376
|
-
Provider: Provider$
|
|
16377
|
-
} = store$
|
|
16280
|
+
Provider: Provider$c
|
|
16281
|
+
} = store$c;
|
|
16378
16282
|
|
|
16379
16283
|
const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
|
|
16380
16284
|
|
|
@@ -16581,7 +16485,7 @@ const AddressCreateContainer = ({
|
|
|
16581
16485
|
default:
|
|
16582
16486
|
return state;
|
|
16583
16487
|
}
|
|
16584
|
-
}, initialState$
|
|
16488
|
+
}, initialState$c);
|
|
16585
16489
|
useEffect(() => {
|
|
16586
16490
|
const getStates = () => {
|
|
16587
16491
|
dispatch({
|
|
@@ -16613,16 +16517,16 @@ const AddressCreateContainer = ({
|
|
|
16613
16517
|
style: { ...style
|
|
16614
16518
|
},
|
|
16615
16519
|
className: `pelcro-container pelcro-address-create-container ${className}`
|
|
16616
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
16520
|
+
}, /*#__PURE__*/React__default.createElement(Provider$c, {
|
|
16617
16521
|
value: {
|
|
16618
16522
|
state,
|
|
16619
16523
|
dispatch
|
|
16620
16524
|
}
|
|
16621
16525
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
16622
|
-
store: store$
|
|
16526
|
+
store: store$c,
|
|
16623
16527
|
key: i
|
|
16624
16528
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
16625
|
-
store: store$
|
|
16529
|
+
store: store$c
|
|
16626
16530
|
})));
|
|
16627
16531
|
};
|
|
16628
16532
|
|
|
@@ -16633,7 +16537,7 @@ function AddressCreateFirstName(props) {
|
|
|
16633
16537
|
firstName,
|
|
16634
16538
|
firstNameError
|
|
16635
16539
|
}
|
|
16636
|
-
} = useContext(store$
|
|
16540
|
+
} = useContext(store$c);
|
|
16637
16541
|
|
|
16638
16542
|
const handleBlur = () => {
|
|
16639
16543
|
return dispatch({
|
|
@@ -16676,7 +16580,7 @@ function AddressCreateLastName(props) {
|
|
|
16676
16580
|
lastName,
|
|
16677
16581
|
lastNameError
|
|
16678
16582
|
}
|
|
16679
|
-
} = useContext(store$
|
|
16583
|
+
} = useContext(store$c);
|
|
16680
16584
|
|
|
16681
16585
|
const handleBlur = () => {
|
|
16682
16586
|
return dispatch({
|
|
@@ -16719,7 +16623,7 @@ function AddressCreateLine1(props) {
|
|
|
16719
16623
|
line1,
|
|
16720
16624
|
line1Error
|
|
16721
16625
|
}
|
|
16722
|
-
} = useContext(store$
|
|
16626
|
+
} = useContext(store$c);
|
|
16723
16627
|
|
|
16724
16628
|
const handleBlur = () => {
|
|
16725
16629
|
return dispatch({
|
|
@@ -16762,7 +16666,7 @@ function AddressCreateCity(props) {
|
|
|
16762
16666
|
city,
|
|
16763
16667
|
cityError
|
|
16764
16668
|
}
|
|
16765
|
-
} = useContext(store$
|
|
16669
|
+
} = useContext(store$c);
|
|
16766
16670
|
|
|
16767
16671
|
const handleBlur = () => {
|
|
16768
16672
|
return dispatch({
|
|
@@ -16805,7 +16709,7 @@ function AddressCreatePostalCode(props) {
|
|
|
16805
16709
|
postalCode,
|
|
16806
16710
|
postalCodeError
|
|
16807
16711
|
}
|
|
16808
|
-
} = useContext(store$
|
|
16712
|
+
} = useContext(store$c);
|
|
16809
16713
|
|
|
16810
16714
|
const handleBlur = () => {
|
|
16811
16715
|
return dispatch({
|
|
@@ -16851,7 +16755,7 @@ const AddressCreateSubmit = ({
|
|
|
16851
16755
|
state: {
|
|
16852
16756
|
isSubmitting
|
|
16853
16757
|
}
|
|
16854
|
-
} = useContext(store$
|
|
16758
|
+
} = useContext(store$c);
|
|
16855
16759
|
const {
|
|
16856
16760
|
t
|
|
16857
16761
|
} = useTranslation("address");
|
|
@@ -16962,7 +16866,7 @@ function CountrySelect({
|
|
|
16962
16866
|
}
|
|
16963
16867
|
|
|
16964
16868
|
const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
16965
|
-
store: store$
|
|
16869
|
+
store: store$c
|
|
16966
16870
|
}, props));
|
|
16967
16871
|
|
|
16968
16872
|
function StateSelect({
|
|
@@ -17050,7 +16954,7 @@ function StateSelect({
|
|
|
17050
16954
|
}
|
|
17051
16955
|
|
|
17052
16956
|
const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
17053
|
-
store: store$
|
|
16957
|
+
store: store$c
|
|
17054
16958
|
}, props));
|
|
17055
16959
|
|
|
17056
16960
|
const AddressCreateView = props => {
|
|
@@ -17155,18 +17059,18 @@ AddressCreateModal.viewId = "address-create";
|
|
|
17155
17059
|
|
|
17156
17060
|
const AddressCreateTextInput = props => {
|
|
17157
17061
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
17158
|
-
store: store$
|
|
17062
|
+
store: store$c
|
|
17159
17063
|
}));
|
|
17160
17064
|
};
|
|
17161
17065
|
|
|
17162
17066
|
const AddressCreateLine2 = props => {
|
|
17163
17067
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
17164
17068
|
fieldName: "line2",
|
|
17165
|
-
store: store$
|
|
17069
|
+
store: store$c
|
|
17166
17070
|
}, props));
|
|
17167
17071
|
};
|
|
17168
17072
|
|
|
17169
|
-
const initialState$
|
|
17073
|
+
const initialState$b = {
|
|
17170
17074
|
isSubmitting: false,
|
|
17171
17075
|
firstName: "",
|
|
17172
17076
|
firstNameError: "",
|
|
@@ -17191,10 +17095,10 @@ const initialState$c = {
|
|
|
17191
17095
|
content: ""
|
|
17192
17096
|
}
|
|
17193
17097
|
};
|
|
17194
|
-
const store$
|
|
17098
|
+
const store$b = /*#__PURE__*/createContext(initialState$b);
|
|
17195
17099
|
const {
|
|
17196
|
-
Provider: Provider$
|
|
17197
|
-
} = store$
|
|
17100
|
+
Provider: Provider$b
|
|
17101
|
+
} = store$b;
|
|
17198
17102
|
|
|
17199
17103
|
const AddressUpdateContainer = ({
|
|
17200
17104
|
style,
|
|
@@ -17246,7 +17150,7 @@ const AddressUpdateContainer = ({
|
|
|
17246
17150
|
const thisAddress = addresses[address];
|
|
17247
17151
|
|
|
17248
17152
|
if (+thisAddress.id === +addressId) {
|
|
17249
|
-
const newState = { ...initialState$
|
|
17153
|
+
const newState = { ...initialState$b,
|
|
17250
17154
|
firstName: thisAddress.first_name,
|
|
17251
17155
|
lastName: thisAddress.last_name,
|
|
17252
17156
|
line1: thisAddress.line1,
|
|
@@ -17379,7 +17283,7 @@ const AddressUpdateContainer = ({
|
|
|
17379
17283
|
default:
|
|
17380
17284
|
return state;
|
|
17381
17285
|
}
|
|
17382
|
-
}, initialState$
|
|
17286
|
+
}, initialState$b);
|
|
17383
17287
|
useEffect(() => {
|
|
17384
17288
|
const getStates = () => {
|
|
17385
17289
|
dispatch({
|
|
@@ -17411,21 +17315,21 @@ const AddressUpdateContainer = ({
|
|
|
17411
17315
|
style: { ...style
|
|
17412
17316
|
},
|
|
17413
17317
|
className: `pelcro-container pelcro-address-update-container ${className}`
|
|
17414
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
17318
|
+
}, /*#__PURE__*/React__default.createElement(Provider$b, {
|
|
17415
17319
|
value: {
|
|
17416
17320
|
state,
|
|
17417
17321
|
dispatch
|
|
17418
17322
|
}
|
|
17419
17323
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
17420
|
-
store: store$
|
|
17324
|
+
store: store$b,
|
|
17421
17325
|
key: i
|
|
17422
17326
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
17423
|
-
store: store$
|
|
17327
|
+
store: store$b
|
|
17424
17328
|
})));
|
|
17425
17329
|
};
|
|
17426
17330
|
|
|
17427
17331
|
const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
17428
|
-
store: store$
|
|
17332
|
+
store: store$b
|
|
17429
17333
|
}, props));
|
|
17430
17334
|
|
|
17431
17335
|
function AddressUpdateFirstName(props) {
|
|
@@ -17435,7 +17339,7 @@ function AddressUpdateFirstName(props) {
|
|
|
17435
17339
|
firstName,
|
|
17436
17340
|
firstNameError
|
|
17437
17341
|
}
|
|
17438
|
-
} = useContext(store$
|
|
17342
|
+
} = useContext(store$b);
|
|
17439
17343
|
|
|
17440
17344
|
const handleBlur = () => {
|
|
17441
17345
|
return dispatch({
|
|
@@ -17478,7 +17382,7 @@ function AddressUpdateLastName(props) {
|
|
|
17478
17382
|
lastName,
|
|
17479
17383
|
lastNameError
|
|
17480
17384
|
}
|
|
17481
|
-
} = useContext(store$
|
|
17385
|
+
} = useContext(store$b);
|
|
17482
17386
|
|
|
17483
17387
|
const handleBlur = () => {
|
|
17484
17388
|
return dispatch({
|
|
@@ -17521,7 +17425,7 @@ function AddressUpdateLine1(props) {
|
|
|
17521
17425
|
line1,
|
|
17522
17426
|
line1Error
|
|
17523
17427
|
}
|
|
17524
|
-
} = useContext(store$
|
|
17428
|
+
} = useContext(store$b);
|
|
17525
17429
|
|
|
17526
17430
|
const handleBlur = () => {
|
|
17527
17431
|
return dispatch({
|
|
@@ -17561,7 +17465,7 @@ const AddressUpdateLine2 = props => {
|
|
|
17561
17465
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
17562
17466
|
fieldName: "line2"
|
|
17563
17467
|
}, props, {
|
|
17564
|
-
store: store$
|
|
17468
|
+
store: store$b
|
|
17565
17469
|
}));
|
|
17566
17470
|
};
|
|
17567
17471
|
|
|
@@ -17572,7 +17476,7 @@ function AddressUpdateCity(props) {
|
|
|
17572
17476
|
city,
|
|
17573
17477
|
cityError
|
|
17574
17478
|
}
|
|
17575
|
-
} = useContext(store$
|
|
17479
|
+
} = useContext(store$b);
|
|
17576
17480
|
|
|
17577
17481
|
const handleBlur = () => {
|
|
17578
17482
|
return dispatch({
|
|
@@ -17615,7 +17519,7 @@ function AddressUpdatePostalCode(props) {
|
|
|
17615
17519
|
postalCode,
|
|
17616
17520
|
postalCodeError
|
|
17617
17521
|
}
|
|
17618
|
-
} = useContext(store$
|
|
17522
|
+
} = useContext(store$b);
|
|
17619
17523
|
|
|
17620
17524
|
const handleBlur = () => {
|
|
17621
17525
|
return dispatch({
|
|
@@ -17661,7 +17565,7 @@ const AddressUpdateSubmit = ({
|
|
|
17661
17565
|
state: {
|
|
17662
17566
|
isSubmitting
|
|
17663
17567
|
}
|
|
17664
|
-
} = useContext(store$
|
|
17568
|
+
} = useContext(store$b);
|
|
17665
17569
|
const {
|
|
17666
17570
|
t
|
|
17667
17571
|
} = useTranslation("address");
|
|
@@ -17677,7 +17581,7 @@ const AddressUpdateSubmit = ({
|
|
|
17677
17581
|
};
|
|
17678
17582
|
|
|
17679
17583
|
const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
17680
|
-
store: store$
|
|
17584
|
+
store: store$b
|
|
17681
17585
|
}, props));
|
|
17682
17586
|
|
|
17683
17587
|
const AddressUpdateView = props => {
|
|
@@ -17760,7 +17664,7 @@ AddressUpdateModal.viewId = "address-edit";
|
|
|
17760
17664
|
|
|
17761
17665
|
const AddressUpdateTextInput = props => {
|
|
17762
17666
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
17763
|
-
store: store$
|
|
17667
|
+
store: store$b
|
|
17764
17668
|
}));
|
|
17765
17669
|
};
|
|
17766
17670
|
|
|
@@ -17843,7 +17747,7 @@ const PaymentMethodUpdateModal = props => {
|
|
|
17843
17747
|
};
|
|
17844
17748
|
PaymentMethodUpdateModal.viewId = "payment-method-update";
|
|
17845
17749
|
|
|
17846
|
-
const initialState$
|
|
17750
|
+
const initialState$a = {
|
|
17847
17751
|
email: "",
|
|
17848
17752
|
password: "",
|
|
17849
17753
|
passwordError: null,
|
|
@@ -17856,10 +17760,10 @@ const initialState$b = {
|
|
|
17856
17760
|
content: ""
|
|
17857
17761
|
}
|
|
17858
17762
|
};
|
|
17859
|
-
const store$
|
|
17763
|
+
const store$a = /*#__PURE__*/createContext(initialState$a);
|
|
17860
17764
|
const {
|
|
17861
|
-
Provider: Provider$
|
|
17862
|
-
} = store$
|
|
17765
|
+
Provider: Provider$a
|
|
17766
|
+
} = store$a;
|
|
17863
17767
|
|
|
17864
17768
|
const PasswordResetContainer = ({
|
|
17865
17769
|
style,
|
|
@@ -17916,7 +17820,7 @@ const PasswordResetContainer = ({
|
|
|
17916
17820
|
type: SET_EMAIL,
|
|
17917
17821
|
payload: window.Pelcro.helpers.getURLParameter("email")
|
|
17918
17822
|
});
|
|
17919
|
-
initialState$
|
|
17823
|
+
initialState$a.email = window.Pelcro.helpers.getURLParameter("email");
|
|
17920
17824
|
dispatch({
|
|
17921
17825
|
type: SET_TOKEN,
|
|
17922
17826
|
payload: window.Pelcro.helpers.getURLParameter("token")
|
|
@@ -17976,26 +17880,26 @@ const PasswordResetContainer = ({
|
|
|
17976
17880
|
default:
|
|
17977
17881
|
return state;
|
|
17978
17882
|
}
|
|
17979
|
-
}, initialState$
|
|
17883
|
+
}, initialState$a);
|
|
17980
17884
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
17981
17885
|
style: { ...style
|
|
17982
17886
|
},
|
|
17983
17887
|
className: `pelcro-container pelcro-password-reset-container ${className}`
|
|
17984
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
17888
|
+
}, /*#__PURE__*/React__default.createElement(Provider$a, {
|
|
17985
17889
|
value: {
|
|
17986
17890
|
state,
|
|
17987
17891
|
dispatch
|
|
17988
17892
|
}
|
|
17989
17893
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
17990
|
-
store: store$
|
|
17894
|
+
store: store$a,
|
|
17991
17895
|
key: i
|
|
17992
17896
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
17993
|
-
store: store$
|
|
17897
|
+
store: store$a
|
|
17994
17898
|
})));
|
|
17995
17899
|
};
|
|
17996
17900
|
|
|
17997
17901
|
const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
17998
|
-
store: store$
|
|
17902
|
+
store: store$a
|
|
17999
17903
|
}, props));
|
|
18000
17904
|
|
|
18001
17905
|
const PasswordResetButton = ({
|
|
@@ -18008,7 +17912,7 @@ const PasswordResetButton = ({
|
|
|
18008
17912
|
buttonDisabled
|
|
18009
17913
|
},
|
|
18010
17914
|
dispatch
|
|
18011
|
-
} = useContext(store$
|
|
17915
|
+
} = useContext(store$a);
|
|
18012
17916
|
const {
|
|
18013
17917
|
t
|
|
18014
17918
|
} = useTranslation("passwordReset");
|
|
@@ -18025,14 +17929,14 @@ const PasswordResetButton = ({
|
|
|
18025
17929
|
};
|
|
18026
17930
|
|
|
18027
17931
|
const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
18028
|
-
store: store$
|
|
17932
|
+
store: store$a
|
|
18029
17933
|
}, props, {
|
|
18030
17934
|
value: window.Pelcro.helpers.getURLParameter("email"),
|
|
18031
17935
|
disabled: true
|
|
18032
17936
|
}));
|
|
18033
17937
|
|
|
18034
17938
|
const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
|
|
18035
|
-
store: store$
|
|
17939
|
+
store: store$a
|
|
18036
17940
|
}, props));
|
|
18037
17941
|
|
|
18038
17942
|
const PasswordResetView = props => {
|
|
@@ -18084,7 +17988,7 @@ const PasswordResetModal = ({
|
|
|
18084
17988
|
};
|
|
18085
17989
|
PasswordResetModal.viewId = "password-reset";
|
|
18086
17990
|
|
|
18087
|
-
const initialState$
|
|
17991
|
+
const initialState$9 = {
|
|
18088
17992
|
email: "",
|
|
18089
17993
|
emailError: null,
|
|
18090
17994
|
buttonDisabled: false,
|
|
@@ -18093,10 +17997,10 @@ const initialState$a = {
|
|
|
18093
17997
|
content: ""
|
|
18094
17998
|
}
|
|
18095
17999
|
};
|
|
18096
|
-
const store$
|
|
18000
|
+
const store$9 = /*#__PURE__*/createContext(initialState$9);
|
|
18097
18001
|
const {
|
|
18098
|
-
Provider: Provider$
|
|
18099
|
-
} = store$
|
|
18002
|
+
Provider: Provider$9
|
|
18003
|
+
} = store$9;
|
|
18100
18004
|
|
|
18101
18005
|
const PasswordForgotContainer = ({
|
|
18102
18006
|
style,
|
|
@@ -18174,21 +18078,21 @@ const PasswordForgotContainer = ({
|
|
|
18174
18078
|
default:
|
|
18175
18079
|
return state;
|
|
18176
18080
|
}
|
|
18177
|
-
}, initialState$
|
|
18081
|
+
}, initialState$9);
|
|
18178
18082
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18179
18083
|
style: { ...style
|
|
18180
18084
|
},
|
|
18181
18085
|
className: `pelcro-container pelcro-password-forgot-container ${className}`
|
|
18182
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18086
|
+
}, /*#__PURE__*/React__default.createElement(Provider$9, {
|
|
18183
18087
|
value: {
|
|
18184
18088
|
state,
|
|
18185
18089
|
dispatch
|
|
18186
18090
|
}
|
|
18187
18091
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18188
|
-
store: store$
|
|
18092
|
+
store: store$9,
|
|
18189
18093
|
key: i
|
|
18190
18094
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18191
|
-
store: store$
|
|
18095
|
+
store: store$9
|
|
18192
18096
|
})));
|
|
18193
18097
|
};
|
|
18194
18098
|
|
|
@@ -18204,7 +18108,7 @@ const PasswordForgotButton = ({
|
|
|
18204
18108
|
emailError
|
|
18205
18109
|
},
|
|
18206
18110
|
dispatch
|
|
18207
|
-
} = useContext(store$
|
|
18111
|
+
} = useContext(store$9);
|
|
18208
18112
|
const {
|
|
18209
18113
|
t
|
|
18210
18114
|
} = useTranslation("passwordForgot");
|
|
@@ -18225,7 +18129,7 @@ const PasswordForgotButton = ({
|
|
|
18225
18129
|
};
|
|
18226
18130
|
|
|
18227
18131
|
const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
18228
|
-
store: store$
|
|
18132
|
+
store: store$9
|
|
18229
18133
|
}, props));
|
|
18230
18134
|
|
|
18231
18135
|
const PasswordForgotView = props => {
|
|
@@ -18275,7 +18179,7 @@ const PasswordForgotModal = ({
|
|
|
18275
18179
|
};
|
|
18276
18180
|
PasswordForgotModal.viewId = "password-forgot";
|
|
18277
18181
|
|
|
18278
|
-
const initialState$
|
|
18182
|
+
const initialState$8 = {
|
|
18279
18183
|
currentPassword: "",
|
|
18280
18184
|
newPassword: "",
|
|
18281
18185
|
confirmNewPassword: "",
|
|
@@ -18289,10 +18193,10 @@ const initialState$9 = {
|
|
|
18289
18193
|
content: ""
|
|
18290
18194
|
}
|
|
18291
18195
|
};
|
|
18292
|
-
const store$
|
|
18196
|
+
const store$8 = /*#__PURE__*/createContext(initialState$8);
|
|
18293
18197
|
const {
|
|
18294
|
-
Provider: Provider$
|
|
18295
|
-
} = store$
|
|
18198
|
+
Provider: Provider$8
|
|
18199
|
+
} = store$8;
|
|
18296
18200
|
const PasswordChangeContainer = ({
|
|
18297
18201
|
style,
|
|
18298
18202
|
className = "",
|
|
@@ -18444,21 +18348,21 @@ const PasswordChangeContainer = ({
|
|
|
18444
18348
|
default:
|
|
18445
18349
|
return state;
|
|
18446
18350
|
}
|
|
18447
|
-
}, initialState$
|
|
18351
|
+
}, initialState$8);
|
|
18448
18352
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18449
18353
|
style: { ...style
|
|
18450
18354
|
},
|
|
18451
18355
|
className: `pelcro-container pelcro-password-change-container ${className}`
|
|
18452
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18356
|
+
}, /*#__PURE__*/React__default.createElement(Provider$8, {
|
|
18453
18357
|
value: {
|
|
18454
18358
|
state,
|
|
18455
18359
|
dispatch
|
|
18456
18360
|
}
|
|
18457
18361
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18458
|
-
store: store$
|
|
18362
|
+
store: store$8,
|
|
18459
18363
|
key: i
|
|
18460
18364
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18461
|
-
store: store$
|
|
18365
|
+
store: store$8
|
|
18462
18366
|
})));
|
|
18463
18367
|
};
|
|
18464
18368
|
|
|
@@ -18469,7 +18373,7 @@ function PasswordChangeCurrentPassword(props) {
|
|
|
18469
18373
|
currentPassword,
|
|
18470
18374
|
currentPasswordError
|
|
18471
18375
|
}
|
|
18472
|
-
} = useContext(store$
|
|
18376
|
+
} = useContext(store$8);
|
|
18473
18377
|
const handleBlur = useCallback(() => {
|
|
18474
18378
|
return dispatch({
|
|
18475
18379
|
type: VALIDATE_PASSWORD
|
|
@@ -18503,7 +18407,7 @@ function PasswordChangeNewPassword(props) {
|
|
|
18503
18407
|
newPassword,
|
|
18504
18408
|
newPasswordError
|
|
18505
18409
|
}
|
|
18506
|
-
} = useContext(store$
|
|
18410
|
+
} = useContext(store$8);
|
|
18507
18411
|
const handleBlur = useCallback(() => {
|
|
18508
18412
|
return dispatch({
|
|
18509
18413
|
type: VALIDATE_NEW_PASSWORD
|
|
@@ -18537,7 +18441,7 @@ function PasswordChangeConfirmNewPassword(props) {
|
|
|
18537
18441
|
confirmNewPassword,
|
|
18538
18442
|
confirmNewPasswordError
|
|
18539
18443
|
}
|
|
18540
|
-
} = useContext(store$
|
|
18444
|
+
} = useContext(store$8);
|
|
18541
18445
|
const handleBlur = useCallback(() => {
|
|
18542
18446
|
return dispatch({
|
|
18543
18447
|
type: VALIDATE_CONFIRM_NEW_PASSWORD
|
|
@@ -18578,7 +18482,7 @@ const PasswordChangeButton = ({
|
|
|
18578
18482
|
confirmNewPasswordError
|
|
18579
18483
|
},
|
|
18580
18484
|
dispatch
|
|
18581
|
-
} = useContext(store$
|
|
18485
|
+
} = useContext(store$8);
|
|
18582
18486
|
const {
|
|
18583
18487
|
t
|
|
18584
18488
|
} = useTranslation("passwordChange");
|
|
@@ -18644,17 +18548,17 @@ const PasswordChangeModal = ({
|
|
|
18644
18548
|
};
|
|
18645
18549
|
PasswordChangeModal.viewId = "password-change";
|
|
18646
18550
|
|
|
18647
|
-
const initialState$
|
|
18551
|
+
const initialState$7 = {
|
|
18648
18552
|
buttonDisabled: false,
|
|
18649
18553
|
alert: {
|
|
18650
18554
|
type: "error",
|
|
18651
18555
|
content: ""
|
|
18652
18556
|
}
|
|
18653
18557
|
};
|
|
18654
|
-
const store$
|
|
18558
|
+
const store$7 = /*#__PURE__*/createContext(initialState$7);
|
|
18655
18559
|
const {
|
|
18656
|
-
Provider: Provider$
|
|
18657
|
-
} = store$
|
|
18560
|
+
Provider: Provider$7
|
|
18561
|
+
} = store$7;
|
|
18658
18562
|
|
|
18659
18563
|
const CartContainer = ({
|
|
18660
18564
|
style,
|
|
@@ -18745,21 +18649,21 @@ const CartContainer = ({
|
|
|
18745
18649
|
default:
|
|
18746
18650
|
return state;
|
|
18747
18651
|
}
|
|
18748
|
-
}, initialState$
|
|
18652
|
+
}, initialState$7);
|
|
18749
18653
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18750
18654
|
style: { ...style
|
|
18751
18655
|
},
|
|
18752
18656
|
className: `pelcro-container pelcro-cart-container ${className}`
|
|
18753
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18657
|
+
}, /*#__PURE__*/React__default.createElement(Provider$7, {
|
|
18754
18658
|
value: {
|
|
18755
18659
|
state,
|
|
18756
18660
|
dispatch
|
|
18757
18661
|
}
|
|
18758
18662
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18759
|
-
store: store$
|
|
18663
|
+
store: store$7,
|
|
18760
18664
|
key: i
|
|
18761
18665
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18762
|
-
store: store$
|
|
18666
|
+
store: store$7
|
|
18763
18667
|
})));
|
|
18764
18668
|
};
|
|
18765
18669
|
|
|
@@ -18796,7 +18700,7 @@ const CartSubmit = ({
|
|
|
18796
18700
|
buttonDisabled
|
|
18797
18701
|
},
|
|
18798
18702
|
dispatch
|
|
18799
|
-
} = useContext(store$
|
|
18703
|
+
} = useContext(store$7);
|
|
18800
18704
|
const {
|
|
18801
18705
|
t
|
|
18802
18706
|
} = useTranslation("cart");
|
|
@@ -18827,7 +18731,7 @@ const CartTotalPrice = () => {
|
|
|
18827
18731
|
state: {
|
|
18828
18732
|
alert
|
|
18829
18733
|
}
|
|
18830
|
-
} = useContext(store$
|
|
18734
|
+
} = useContext(store$7);
|
|
18831
18735
|
const {
|
|
18832
18736
|
cartItems
|
|
18833
18737
|
} = usePelcro();
|
|
@@ -19140,7 +19044,7 @@ const OrderConfirmModal = props => {
|
|
|
19140
19044
|
};
|
|
19141
19045
|
OrderConfirmModal.viewId = "order-confirm";
|
|
19142
19046
|
|
|
19143
|
-
const initialState$
|
|
19047
|
+
const initialState$6 = {
|
|
19144
19048
|
email: "",
|
|
19145
19049
|
firstName: "",
|
|
19146
19050
|
lastName: "",
|
|
@@ -19152,10 +19056,10 @@ const initialState$7 = {
|
|
|
19152
19056
|
content: ""
|
|
19153
19057
|
}
|
|
19154
19058
|
};
|
|
19155
|
-
const store$
|
|
19059
|
+
const store$6 = /*#__PURE__*/createContext(initialState$6);
|
|
19156
19060
|
const {
|
|
19157
|
-
Provider: Provider$
|
|
19158
|
-
} = store$
|
|
19061
|
+
Provider: Provider$6
|
|
19062
|
+
} = store$6;
|
|
19159
19063
|
|
|
19160
19064
|
const GiftCreateContainer = ({
|
|
19161
19065
|
style,
|
|
@@ -19259,21 +19163,21 @@ const GiftCreateContainer = ({
|
|
|
19259
19163
|
default:
|
|
19260
19164
|
return state;
|
|
19261
19165
|
}
|
|
19262
|
-
}, initialState$
|
|
19166
|
+
}, initialState$6);
|
|
19263
19167
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19264
19168
|
style: { ...style
|
|
19265
19169
|
},
|
|
19266
19170
|
className: `pelcro-container pelcro-gift-create-container ${className}`
|
|
19267
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19171
|
+
}, /*#__PURE__*/React__default.createElement(Provider$6, {
|
|
19268
19172
|
value: {
|
|
19269
19173
|
state,
|
|
19270
19174
|
dispatch
|
|
19271
19175
|
}
|
|
19272
19176
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19273
|
-
store: store$
|
|
19177
|
+
store: store$6,
|
|
19274
19178
|
key: i
|
|
19275
19179
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19276
|
-
store: store$
|
|
19180
|
+
store: store$6
|
|
19277
19181
|
})));
|
|
19278
19182
|
};
|
|
19279
19183
|
|
|
@@ -19287,7 +19191,7 @@ const GiftCreateSubmitButton = ({
|
|
|
19287
19191
|
state: {
|
|
19288
19192
|
disableSubmit
|
|
19289
19193
|
}
|
|
19290
|
-
} = useContext(store$
|
|
19194
|
+
} = useContext(store$6);
|
|
19291
19195
|
const {
|
|
19292
19196
|
t
|
|
19293
19197
|
} = useTranslation("register");
|
|
@@ -19304,29 +19208,29 @@ const GiftCreateSubmitButton = ({
|
|
|
19304
19208
|
|
|
19305
19209
|
const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
19306
19210
|
initWithUserEmail: false,
|
|
19307
|
-
store: store$
|
|
19211
|
+
store: store$6
|
|
19308
19212
|
}, props));
|
|
19309
19213
|
|
|
19310
19214
|
const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
19311
|
-
store: store$
|
|
19215
|
+
store: store$6
|
|
19312
19216
|
}, props));
|
|
19313
19217
|
|
|
19314
19218
|
const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
19315
|
-
store: store$
|
|
19219
|
+
store: store$6
|
|
19316
19220
|
}, props));
|
|
19317
19221
|
|
|
19318
|
-
var _path$
|
|
19222
|
+
var _path$h;
|
|
19319
19223
|
|
|
19320
|
-
function _extends$
|
|
19224
|
+
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); }
|
|
19321
19225
|
|
|
19322
19226
|
function SvgInfoCircle(props) {
|
|
19323
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
19227
|
+
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
19324
19228
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19325
19229
|
className: "plc-w-5 plc-h-5",
|
|
19326
19230
|
fill: "none",
|
|
19327
19231
|
viewBox: "0 0 24 24",
|
|
19328
19232
|
stroke: "currentColor"
|
|
19329
|
-
}, props), _path$
|
|
19233
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
19330
19234
|
strokeLinecap: "round",
|
|
19331
19235
|
strokeLinejoin: "round",
|
|
19332
19236
|
strokeWidth: 2,
|
|
@@ -19397,7 +19301,7 @@ const GiftCreateStartDate = props => {
|
|
|
19397
19301
|
const {
|
|
19398
19302
|
dispatch,
|
|
19399
19303
|
state
|
|
19400
|
-
} = useContext(store$
|
|
19304
|
+
} = useContext(store$6);
|
|
19401
19305
|
|
|
19402
19306
|
const handleInputChange = value => {
|
|
19403
19307
|
dispatch({
|
|
@@ -19470,7 +19374,7 @@ function GiftCreateMessage(props) {
|
|
|
19470
19374
|
const {
|
|
19471
19375
|
dispatch,
|
|
19472
19376
|
state
|
|
19473
|
-
} = useContext(store$
|
|
19377
|
+
} = useContext(store$6);
|
|
19474
19378
|
const MAX_CHARS_COUNT = 200;
|
|
19475
19379
|
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;
|
|
19476
19380
|
|
|
@@ -19594,7 +19498,7 @@ const GiftCreateModal = ({
|
|
|
19594
19498
|
};
|
|
19595
19499
|
GiftCreateModal.viewId = "gift-create";
|
|
19596
19500
|
|
|
19597
|
-
const initialState$
|
|
19501
|
+
const initialState$5 = {
|
|
19598
19502
|
giftCode: "",
|
|
19599
19503
|
buttonDisabled: true,
|
|
19600
19504
|
alert: {
|
|
@@ -19602,10 +19506,10 @@ const initialState$6 = {
|
|
|
19602
19506
|
content: ""
|
|
19603
19507
|
}
|
|
19604
19508
|
};
|
|
19605
|
-
const store$
|
|
19509
|
+
const store$5 = /*#__PURE__*/createContext(initialState$5);
|
|
19606
19510
|
const {
|
|
19607
|
-
Provider: Provider$
|
|
19608
|
-
} = store$
|
|
19511
|
+
Provider: Provider$5
|
|
19512
|
+
} = store$5;
|
|
19609
19513
|
|
|
19610
19514
|
const GiftRedeemContainer = ({
|
|
19611
19515
|
style,
|
|
@@ -19670,21 +19574,21 @@ const GiftRedeemContainer = ({
|
|
|
19670
19574
|
default:
|
|
19671
19575
|
return state;
|
|
19672
19576
|
}
|
|
19673
|
-
}, initialState$
|
|
19577
|
+
}, initialState$5);
|
|
19674
19578
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19675
19579
|
style: { ...style
|
|
19676
19580
|
},
|
|
19677
19581
|
className: `pelcro-container pelcro-gift-redeem-container ${className}`
|
|
19678
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19582
|
+
}, /*#__PURE__*/React__default.createElement(Provider$5, {
|
|
19679
19583
|
value: {
|
|
19680
19584
|
state,
|
|
19681
19585
|
dispatch
|
|
19682
19586
|
}
|
|
19683
19587
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19684
|
-
store: store$
|
|
19588
|
+
store: store$5,
|
|
19685
19589
|
key: i
|
|
19686
19590
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19687
|
-
store: store$
|
|
19591
|
+
store: store$5
|
|
19688
19592
|
})));
|
|
19689
19593
|
};
|
|
19690
19594
|
|
|
@@ -19721,7 +19625,7 @@ function GiftCode({
|
|
|
19721
19625
|
}
|
|
19722
19626
|
|
|
19723
19627
|
const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
|
|
19724
|
-
store: store$
|
|
19628
|
+
store: store$5
|
|
19725
19629
|
}, props));
|
|
19726
19630
|
|
|
19727
19631
|
const GiftRedeemSubmitButton = ({
|
|
@@ -19734,7 +19638,7 @@ const GiftRedeemSubmitButton = ({
|
|
|
19734
19638
|
state: {
|
|
19735
19639
|
disableSubmit
|
|
19736
19640
|
}
|
|
19737
|
-
} = useContext(store$
|
|
19641
|
+
} = useContext(store$5);
|
|
19738
19642
|
const {
|
|
19739
19643
|
t
|
|
19740
19644
|
} = useTranslation("register");
|
|
@@ -19827,7 +19731,7 @@ const moveDefaultAddressToStart = addresses => {
|
|
|
19827
19731
|
return [defaultAddress, ...addressesWithoutDefault];
|
|
19828
19732
|
};
|
|
19829
19733
|
|
|
19830
|
-
const initialState$
|
|
19734
|
+
const initialState$4 = {
|
|
19831
19735
|
addresses: [],
|
|
19832
19736
|
selectedAddressId: null,
|
|
19833
19737
|
isSubmitting: false,
|
|
@@ -19836,10 +19740,10 @@ const initialState$5 = {
|
|
|
19836
19740
|
content: ""
|
|
19837
19741
|
}
|
|
19838
19742
|
};
|
|
19839
|
-
const store$
|
|
19743
|
+
const store$4 = /*#__PURE__*/createContext(initialState$4);
|
|
19840
19744
|
const {
|
|
19841
|
-
Provider: Provider$
|
|
19842
|
-
} = store$
|
|
19745
|
+
Provider: Provider$4
|
|
19746
|
+
} = store$4;
|
|
19843
19747
|
|
|
19844
19748
|
const AddressSelectContainer = ({
|
|
19845
19749
|
style,
|
|
@@ -19934,7 +19838,7 @@ const AddressSelectContainer = ({
|
|
|
19934
19838
|
default:
|
|
19935
19839
|
return state;
|
|
19936
19840
|
}
|
|
19937
|
-
}, initialState$
|
|
19841
|
+
}, initialState$4);
|
|
19938
19842
|
useEffect(() => {
|
|
19939
19843
|
var _window$Pelcro$user$r;
|
|
19940
19844
|
|
|
@@ -19947,16 +19851,16 @@ const AddressSelectContainer = ({
|
|
|
19947
19851
|
style: { ...style
|
|
19948
19852
|
},
|
|
19949
19853
|
className: `pelcro-container pelcro-address-select-container ${className}`
|
|
19950
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19854
|
+
}, /*#__PURE__*/React__default.createElement(Provider$4, {
|
|
19951
19855
|
value: {
|
|
19952
19856
|
state,
|
|
19953
19857
|
dispatch
|
|
19954
19858
|
}
|
|
19955
19859
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19956
|
-
store: store$
|
|
19860
|
+
store: store$4,
|
|
19957
19861
|
key: i
|
|
19958
19862
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19959
|
-
store: store$
|
|
19863
|
+
store: store$4
|
|
19960
19864
|
})));
|
|
19961
19865
|
};
|
|
19962
19866
|
|
|
@@ -19967,7 +19871,7 @@ const AddressSelectList = () => {
|
|
|
19967
19871
|
addresses,
|
|
19968
19872
|
selectedAddressId
|
|
19969
19873
|
}
|
|
19970
|
-
} = useContext(store$
|
|
19874
|
+
} = useContext(store$4);
|
|
19971
19875
|
|
|
19972
19876
|
const handleAddressSelect = event => {
|
|
19973
19877
|
dispatch({
|
|
@@ -20011,7 +19915,7 @@ const AddressSelectSubmit = ({
|
|
|
20011
19915
|
selectedAddressId,
|
|
20012
19916
|
isSubmitting
|
|
20013
19917
|
}
|
|
20014
|
-
} = useContext(store$
|
|
19918
|
+
} = useContext(store$4);
|
|
20015
19919
|
const {
|
|
20016
19920
|
t
|
|
20017
19921
|
} = useTranslation("address");
|
|
@@ -20107,7 +20011,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
|
|
|
20107
20011
|
return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
|
|
20108
20012
|
};
|
|
20109
20013
|
|
|
20110
|
-
const initialState$
|
|
20014
|
+
const initialState$3 = {
|
|
20111
20015
|
paymentMethods: [],
|
|
20112
20016
|
selectedPaymentMethodId: null,
|
|
20113
20017
|
isSubmitting: false,
|
|
@@ -20116,10 +20020,10 @@ const initialState$4 = {
|
|
|
20116
20020
|
content: ""
|
|
20117
20021
|
}
|
|
20118
20022
|
};
|
|
20119
|
-
const store$
|
|
20023
|
+
const store$3 = /*#__PURE__*/createContext(initialState$3);
|
|
20120
20024
|
const {
|
|
20121
|
-
Provider: Provider$
|
|
20122
|
-
} = store$
|
|
20025
|
+
Provider: Provider$3
|
|
20026
|
+
} = store$3;
|
|
20123
20027
|
|
|
20124
20028
|
const PaymentMethodSelectContainer = ({
|
|
20125
20029
|
style,
|
|
@@ -20178,7 +20082,7 @@ const PaymentMethodSelectContainer = ({
|
|
|
20178
20082
|
default:
|
|
20179
20083
|
return state;
|
|
20180
20084
|
}
|
|
20181
|
-
}, initialState$
|
|
20085
|
+
}, initialState$3);
|
|
20182
20086
|
useEffect(() => {
|
|
20183
20087
|
var _window$Pelcro$user$r3;
|
|
20184
20088
|
|
|
@@ -20191,16 +20095,16 @@ const PaymentMethodSelectContainer = ({
|
|
|
20191
20095
|
style: { ...style
|
|
20192
20096
|
},
|
|
20193
20097
|
className: `pelcro-container pelcro-payment-select-container ${className}`
|
|
20194
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
20098
|
+
}, /*#__PURE__*/React__default.createElement(Provider$3, {
|
|
20195
20099
|
value: {
|
|
20196
20100
|
state,
|
|
20197
20101
|
dispatch
|
|
20198
20102
|
}
|
|
20199
20103
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
20200
|
-
store: store$
|
|
20104
|
+
store: store$3,
|
|
20201
20105
|
key: i
|
|
20202
20106
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
20203
|
-
store: store$
|
|
20107
|
+
store: store$3
|
|
20204
20108
|
})));
|
|
20205
20109
|
};
|
|
20206
20110
|
|
|
@@ -20214,7 +20118,7 @@ const PaymentMethodSelectList = () => {
|
|
|
20214
20118
|
paymentMethods,
|
|
20215
20119
|
selectedPaymentMethodId
|
|
20216
20120
|
}
|
|
20217
|
-
} = useContext(store$
|
|
20121
|
+
} = useContext(store$3);
|
|
20218
20122
|
|
|
20219
20123
|
const handlePaymentMethodSelect = event => {
|
|
20220
20124
|
dispatch({
|
|
@@ -20264,7 +20168,7 @@ const PaymentMethodSelectSubmit = ({
|
|
|
20264
20168
|
selectedPaymentMethodId,
|
|
20265
20169
|
isSubmitting
|
|
20266
20170
|
}
|
|
20267
|
-
} = useContext(store$
|
|
20171
|
+
} = useContext(store$3);
|
|
20268
20172
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
20269
20173
|
onClick: () => {
|
|
20270
20174
|
dispatch({
|
|
@@ -20338,8 +20242,8 @@ const PaymentMethodSelectModal = ({
|
|
|
20338
20242
|
};
|
|
20339
20243
|
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
20340
20244
|
|
|
20341
|
-
function _extends$
|
|
20342
|
-
_extends$
|
|
20245
|
+
function _extends$i() {
|
|
20246
|
+
_extends$i = Object.assign || function (target) {
|
|
20343
20247
|
for (var i = 1; i < arguments.length; i++) {
|
|
20344
20248
|
var source = arguments[i];
|
|
20345
20249
|
|
|
@@ -20353,7 +20257,7 @@ function _extends$j() {
|
|
|
20353
20257
|
return target;
|
|
20354
20258
|
};
|
|
20355
20259
|
|
|
20356
|
-
return _extends$
|
|
20260
|
+
return _extends$i.apply(this, arguments);
|
|
20357
20261
|
}
|
|
20358
20262
|
|
|
20359
20263
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -20537,7 +20441,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
20537
20441
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
20538
20442
|
return null;
|
|
20539
20443
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
20540
|
-
return _render(_extends$
|
|
20444
|
+
return _render(_extends$i({}, _rest, {
|
|
20541
20445
|
hidden: true,
|
|
20542
20446
|
style: {
|
|
20543
20447
|
display: 'none'
|
|
@@ -21065,7 +20969,7 @@ function TransitionChild(props) {
|
|
|
21065
20969
|
var passthroughProps = rest;
|
|
21066
20970
|
return React__default.createElement(NestingContext.Provider, {
|
|
21067
20971
|
value: nesting
|
|
21068
|
-
}, render(_extends$
|
|
20972
|
+
}, render(_extends$i({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
21069
20973
|
}
|
|
21070
20974
|
|
|
21071
20975
|
function Transition(props) {
|
|
@@ -21109,7 +21013,7 @@ function Transition(props) {
|
|
|
21109
21013
|
value: nestingBag
|
|
21110
21014
|
}, React__default.createElement(TransitionContext.Provider, {
|
|
21111
21015
|
value: transitionBag
|
|
21112
|
-
}, render(_extends$
|
|
21016
|
+
}, render(_extends$i({}, sharedProps, {
|
|
21113
21017
|
as: Fragment,
|
|
21114
21018
|
children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
21115
21019
|
}), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -21236,12 +21140,12 @@ var ActionTypes;
|
|
|
21236
21140
|
})(ActionTypes || (ActionTypes = {}));
|
|
21237
21141
|
|
|
21238
21142
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
21239
|
-
return _extends$
|
|
21143
|
+
return _extends$i({}, state, {
|
|
21240
21144
|
activeItemIndex: null,
|
|
21241
21145
|
menuState: MenuStates.Closed
|
|
21242
21146
|
});
|
|
21243
21147
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
21244
|
-
return _extends$
|
|
21148
|
+
return _extends$i({}, state, {
|
|
21245
21149
|
menuState: MenuStates.Open
|
|
21246
21150
|
});
|
|
21247
21151
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -21260,7 +21164,7 @@ var ActionTypes;
|
|
|
21260
21164
|
}
|
|
21261
21165
|
});
|
|
21262
21166
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
21263
|
-
return _extends$
|
|
21167
|
+
return _extends$i({}, state, {
|
|
21264
21168
|
searchQuery: '',
|
|
21265
21169
|
activeItemIndex: activeItemIndex
|
|
21266
21170
|
});
|
|
@@ -21271,19 +21175,19 @@ var ActionTypes;
|
|
|
21271
21175
|
|
|
21272
21176
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
21273
21177
|
});
|
|
21274
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
21178
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$i({}, state, {
|
|
21275
21179
|
searchQuery: searchQuery
|
|
21276
21180
|
});
|
|
21277
|
-
return _extends$
|
|
21181
|
+
return _extends$i({}, state, {
|
|
21278
21182
|
searchQuery: searchQuery,
|
|
21279
21183
|
activeItemIndex: match
|
|
21280
21184
|
});
|
|
21281
21185
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
21282
|
-
return _extends$
|
|
21186
|
+
return _extends$i({}, state, {
|
|
21283
21187
|
searchQuery: ''
|
|
21284
21188
|
});
|
|
21285
21189
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
21286
|
-
return _extends$
|
|
21190
|
+
return _extends$i({}, state, {
|
|
21287
21191
|
items: [].concat(state.items, [{
|
|
21288
21192
|
id: action.id,
|
|
21289
21193
|
dataRef: action.dataRef
|
|
@@ -21296,7 +21200,7 @@ var ActionTypes;
|
|
|
21296
21200
|
return a.id === action.id;
|
|
21297
21201
|
});
|
|
21298
21202
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
21299
|
-
return _extends$
|
|
21203
|
+
return _extends$i({}, state, {
|
|
21300
21204
|
items: nextItems,
|
|
21301
21205
|
activeItemIndex: function () {
|
|
21302
21206
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -21335,19 +21239,19 @@ var ActionTypes$1;
|
|
|
21335
21239
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
21336
21240
|
if (state.disabled) return state;
|
|
21337
21241
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
21338
|
-
return _extends$
|
|
21242
|
+
return _extends$i({}, state, {
|
|
21339
21243
|
activeOptionIndex: null,
|
|
21340
21244
|
listboxState: ListboxStates.Closed
|
|
21341
21245
|
});
|
|
21342
21246
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
21343
21247
|
if (state.disabled) return state;
|
|
21344
21248
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
21345
|
-
return _extends$
|
|
21249
|
+
return _extends$i({}, state, {
|
|
21346
21250
|
listboxState: ListboxStates.Open
|
|
21347
21251
|
});
|
|
21348
21252
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
21349
21253
|
if (state.disabled === action.disabled) return state;
|
|
21350
|
-
return _extends$
|
|
21254
|
+
return _extends$i({}, state, {
|
|
21351
21255
|
disabled: action.disabled
|
|
21352
21256
|
});
|
|
21353
21257
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -21368,7 +21272,7 @@ var ActionTypes$1;
|
|
|
21368
21272
|
}
|
|
21369
21273
|
});
|
|
21370
21274
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
21371
|
-
return _extends$
|
|
21275
|
+
return _extends$i({}, state, {
|
|
21372
21276
|
searchQuery: '',
|
|
21373
21277
|
activeOptionIndex: activeOptionIndex
|
|
21374
21278
|
});
|
|
@@ -21381,10 +21285,10 @@ var ActionTypes$1;
|
|
|
21381
21285
|
|
|
21382
21286
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
21383
21287
|
});
|
|
21384
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
21288
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$i({}, state, {
|
|
21385
21289
|
searchQuery: searchQuery
|
|
21386
21290
|
});
|
|
21387
|
-
return _extends$
|
|
21291
|
+
return _extends$i({}, state, {
|
|
21388
21292
|
searchQuery: searchQuery,
|
|
21389
21293
|
activeOptionIndex: match
|
|
21390
21294
|
});
|
|
@@ -21392,11 +21296,11 @@ var ActionTypes$1;
|
|
|
21392
21296
|
if (state.disabled) return state;
|
|
21393
21297
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
21394
21298
|
if (state.searchQuery === '') return state;
|
|
21395
|
-
return _extends$
|
|
21299
|
+
return _extends$i({}, state, {
|
|
21396
21300
|
searchQuery: ''
|
|
21397
21301
|
});
|
|
21398
21302
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
21399
|
-
return _extends$
|
|
21303
|
+
return _extends$i({}, state, {
|
|
21400
21304
|
options: [].concat(state.options, [{
|
|
21401
21305
|
id: action.id,
|
|
21402
21306
|
dataRef: action.dataRef
|
|
@@ -21409,7 +21313,7 @@ var ActionTypes$1;
|
|
|
21409
21313
|
return a.id === action.id;
|
|
21410
21314
|
});
|
|
21411
21315
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
21412
|
-
return _extends$
|
|
21316
|
+
return _extends$i({}, state, {
|
|
21413
21317
|
options: nextOptions,
|
|
21414
21318
|
activeOptionIndex: function () {
|
|
21415
21319
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -21470,18 +21374,18 @@ const getPaymentCardIcon = name => {
|
|
|
21470
21374
|
}));
|
|
21471
21375
|
};
|
|
21472
21376
|
|
|
21473
|
-
var _path$
|
|
21377
|
+
var _path$g;
|
|
21474
21378
|
|
|
21475
|
-
function _extends$
|
|
21379
|
+
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); }
|
|
21476
21380
|
|
|
21477
21381
|
function SvgChevronRight(props) {
|
|
21478
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21382
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
21479
21383
|
className: "plc-w-6 plc-h-6",
|
|
21480
21384
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21481
21385
|
fill: "none",
|
|
21482
21386
|
viewBox: "0 0 24 24",
|
|
21483
21387
|
stroke: "currentColor"
|
|
21484
|
-
}, props), _path$
|
|
21388
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
21485
21389
|
strokeLinecap: "round",
|
|
21486
21390
|
strokeLinejoin: "round",
|
|
21487
21391
|
strokeWidth: 2,
|
|
@@ -21697,18 +21601,18 @@ const SavedItems = ({
|
|
|
21697
21601
|
});
|
|
21698
21602
|
};
|
|
21699
21603
|
|
|
21700
|
-
var _path$
|
|
21604
|
+
var _path$f;
|
|
21701
21605
|
|
|
21702
|
-
function _extends$
|
|
21606
|
+
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); }
|
|
21703
21607
|
|
|
21704
21608
|
function SvgRefresh(props) {
|
|
21705
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21609
|
+
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
21706
21610
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21707
21611
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21708
21612
|
fill: "none",
|
|
21709
21613
|
viewBox: "0 0 24 24",
|
|
21710
21614
|
stroke: "currentColor"
|
|
21711
|
-
}, props), _path$
|
|
21615
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
|
|
21712
21616
|
strokeLinecap: "round",
|
|
21713
21617
|
strokeLinejoin: "round",
|
|
21714
21618
|
strokeWidth: 2,
|
|
@@ -21716,35 +21620,35 @@ function SvgRefresh(props) {
|
|
|
21716
21620
|
})));
|
|
21717
21621
|
}
|
|
21718
21622
|
|
|
21719
|
-
var _path$
|
|
21623
|
+
var _path$e;
|
|
21720
21624
|
|
|
21721
|
-
function _extends$
|
|
21625
|
+
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); }
|
|
21722
21626
|
|
|
21723
21627
|
function SvgCalendar(props) {
|
|
21724
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21628
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
21725
21629
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21726
21630
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
21727
21631
|
viewBox: "0 0 20 20",
|
|
21728
21632
|
fill: "currentColor"
|
|
21729
|
-
}, props), _path$
|
|
21633
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
|
|
21730
21634
|
fillRule: "evenodd",
|
|
21731
21635
|
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",
|
|
21732
21636
|
clipRule: "evenodd"
|
|
21733
21637
|
})));
|
|
21734
21638
|
}
|
|
21735
21639
|
|
|
21736
|
-
var _path$
|
|
21640
|
+
var _path$d;
|
|
21737
21641
|
|
|
21738
|
-
function _extends$
|
|
21642
|
+
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); }
|
|
21739
21643
|
|
|
21740
21644
|
function SvgPlus(props) {
|
|
21741
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21645
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
21742
21646
|
className: "plc-w-5 plc-h-5",
|
|
21743
21647
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21744
21648
|
fill: "none",
|
|
21745
21649
|
viewBox: "0 0 24 24",
|
|
21746
21650
|
stroke: "currentColor"
|
|
21747
|
-
}, props), _path$
|
|
21651
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
21748
21652
|
strokeLinecap: "round",
|
|
21749
21653
|
strokeLinejoin: "round",
|
|
21750
21654
|
strokeWidth: 2,
|
|
@@ -21752,17 +21656,17 @@ function SvgPlus(props) {
|
|
|
21752
21656
|
})));
|
|
21753
21657
|
}
|
|
21754
21658
|
|
|
21755
|
-
var _path$
|
|
21659
|
+
var _path$c;
|
|
21756
21660
|
|
|
21757
|
-
function _extends$
|
|
21661
|
+
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); }
|
|
21758
21662
|
|
|
21759
21663
|
function SvgCheckMark(props) {
|
|
21760
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21664
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
21761
21665
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21762
21666
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21763
21667
|
viewBox: "0 0 20 20",
|
|
21764
21668
|
fill: "currentColor"
|
|
21765
|
-
}, props), _path$
|
|
21669
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
21766
21670
|
fillRule: "evenodd",
|
|
21767
21671
|
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",
|
|
21768
21672
|
clipRule: "evenodd"
|
|
@@ -21826,8 +21730,7 @@ const SubscriptionsItems = ({
|
|
|
21826
21730
|
} = useTranslation("dashboard");
|
|
21827
21731
|
const {
|
|
21828
21732
|
switchView,
|
|
21829
|
-
|
|
21830
|
-
switchToPaymentView
|
|
21733
|
+
isAuthenticated
|
|
21831
21734
|
} = usePelcro();
|
|
21832
21735
|
const subs = getNonDonationSubs();
|
|
21833
21736
|
if (subs.length === 0) return null;
|
|
@@ -21869,12 +21772,7 @@ const SubscriptionsItems = ({
|
|
|
21869
21772
|
const plan = window.Pelcro.plan.getById(plan_id);
|
|
21870
21773
|
setProductAndPlan(product, plan);
|
|
21871
21774
|
setSubscriptionIdToRenew(sub.id);
|
|
21872
|
-
|
|
21873
|
-
if (product.address_required) {
|
|
21874
|
-
return switchToAddressView();
|
|
21875
|
-
}
|
|
21876
|
-
|
|
21877
|
-
return switchToPaymentView();
|
|
21775
|
+
setView("plan-select");
|
|
21878
21776
|
};
|
|
21879
21777
|
|
|
21880
21778
|
const getPhases = () => {
|
|
@@ -22063,18 +21961,18 @@ Accordion.item = function AccordionItem({
|
|
|
22063
21961
|
}, content)) : null;
|
|
22064
21962
|
};
|
|
22065
21963
|
|
|
22066
|
-
var _path$
|
|
21964
|
+
var _path$b;
|
|
22067
21965
|
|
|
22068
|
-
function _extends$
|
|
21966
|
+
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); }
|
|
22069
21967
|
|
|
22070
21968
|
function SvgExit(props) {
|
|
22071
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21969
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
22072
21970
|
className: "plc-w-6 plc-h-6",
|
|
22073
21971
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22074
21972
|
fill: "none",
|
|
22075
21973
|
viewBox: "0 0 24 24",
|
|
22076
21974
|
stroke: "currentColor"
|
|
22077
|
-
}, props), _path$
|
|
21975
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
|
|
22078
21976
|
strokeLinecap: "round",
|
|
22079
21977
|
strokeLinejoin: "round",
|
|
22080
21978
|
strokeWidth: 2,
|
|
@@ -22082,17 +21980,17 @@ function SvgExit(props) {
|
|
|
22082
21980
|
})));
|
|
22083
21981
|
}
|
|
22084
21982
|
|
|
22085
|
-
var _path$
|
|
21983
|
+
var _path$a;
|
|
22086
21984
|
|
|
22087
|
-
function _extends$
|
|
21985
|
+
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); }
|
|
22088
21986
|
|
|
22089
21987
|
function SvgUser(props) {
|
|
22090
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21988
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
22091
21989
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22092
21990
|
fill: "none",
|
|
22093
21991
|
viewBox: "0 0 24 24",
|
|
22094
21992
|
stroke: "currentColor"
|
|
22095
|
-
}, props), _path$
|
|
21993
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
22096
21994
|
strokeLinecap: "round",
|
|
22097
21995
|
strokeLinejoin: "round",
|
|
22098
21996
|
strokeWidth: 2,
|
|
@@ -22100,18 +21998,18 @@ function SvgUser(props) {
|
|
|
22100
21998
|
})));
|
|
22101
21999
|
}
|
|
22102
22000
|
|
|
22103
|
-
var _path$
|
|
22001
|
+
var _path$9;
|
|
22104
22002
|
|
|
22105
|
-
function _extends$
|
|
22003
|
+
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); }
|
|
22106
22004
|
|
|
22107
22005
|
function SvgNewsletter(props) {
|
|
22108
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22006
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
22109
22007
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22110
22008
|
className: "plc-h-5 plc-w-5",
|
|
22111
22009
|
fill: "none",
|
|
22112
22010
|
viewBox: "0 0 24 24",
|
|
22113
22011
|
stroke: "currentColor"
|
|
22114
|
-
}, props), _path$
|
|
22012
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
22115
22013
|
strokeLinecap: "round",
|
|
22116
22014
|
strokeLinejoin: "round",
|
|
22117
22015
|
strokeWidth: 2,
|
|
@@ -22119,18 +22017,18 @@ function SvgNewsletter(props) {
|
|
|
22119
22017
|
})));
|
|
22120
22018
|
}
|
|
22121
22019
|
|
|
22122
|
-
var _path$
|
|
22020
|
+
var _path$8;
|
|
22123
22021
|
|
|
22124
|
-
function _extends$
|
|
22022
|
+
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); }
|
|
22125
22023
|
|
|
22126
22024
|
function SvgDocument(props) {
|
|
22127
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22025
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
22128
22026
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22129
22027
|
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
22130
22028
|
fill: "none",
|
|
22131
22029
|
viewBox: "0 0 24 24",
|
|
22132
22030
|
stroke: "currentColor"
|
|
22133
|
-
}, props), _path$
|
|
22031
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
22134
22032
|
strokeLinecap: "round",
|
|
22135
22033
|
strokeLinejoin: "round",
|
|
22136
22034
|
strokeWidth: 2,
|
|
@@ -22138,18 +22036,18 @@ function SvgDocument(props) {
|
|
|
22138
22036
|
})));
|
|
22139
22037
|
}
|
|
22140
22038
|
|
|
22141
|
-
var _path$
|
|
22039
|
+
var _path$7;
|
|
22142
22040
|
|
|
22143
|
-
function _extends$
|
|
22041
|
+
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); }
|
|
22144
22042
|
|
|
22145
22043
|
function SvgPaymentCard(props) {
|
|
22146
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22044
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
22147
22045
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22148
22046
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22149
22047
|
fill: "none",
|
|
22150
22048
|
viewBox: "0 0 24 24",
|
|
22151
22049
|
stroke: "currentColor"
|
|
22152
|
-
}, props), _path$
|
|
22050
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
|
|
22153
22051
|
strokeLinecap: "round",
|
|
22154
22052
|
strokeLinejoin: "round",
|
|
22155
22053
|
strokeWidth: 2,
|
|
@@ -22157,18 +22055,18 @@ function SvgPaymentCard(props) {
|
|
|
22157
22055
|
})));
|
|
22158
22056
|
}
|
|
22159
22057
|
|
|
22160
|
-
var _path$
|
|
22058
|
+
var _path$6, _path2$1;
|
|
22161
22059
|
|
|
22162
|
-
function _extends$
|
|
22060
|
+
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); }
|
|
22163
22061
|
|
|
22164
22062
|
function SvgLocationPin(props) {
|
|
22165
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22063
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
22166
22064
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22167
22065
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22168
22066
|
fill: "none",
|
|
22169
22067
|
viewBox: "0 0 24 24",
|
|
22170
22068
|
stroke: "currentColor"
|
|
22171
|
-
}, props), _path$
|
|
22069
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
22172
22070
|
strokeLinecap: "round",
|
|
22173
22071
|
strokeLinejoin: "round",
|
|
22174
22072
|
strokeWidth: 2,
|
|
@@ -22183,10 +22081,10 @@ function SvgLocationPin(props) {
|
|
|
22183
22081
|
|
|
22184
22082
|
var _switch;
|
|
22185
22083
|
|
|
22186
|
-
function _extends$
|
|
22084
|
+
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); }
|
|
22187
22085
|
|
|
22188
22086
|
function SvgSubscription(props) {
|
|
22189
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22087
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
22190
22088
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22191
22089
|
viewBox: "0 0 100 125",
|
|
22192
22090
|
fill: "currentColor"
|
|
@@ -22201,18 +22099,18 @@ function SvgSubscription(props) {
|
|
|
22201
22099
|
}))))));
|
|
22202
22100
|
}
|
|
22203
22101
|
|
|
22204
|
-
var _path$
|
|
22102
|
+
var _path$5;
|
|
22205
22103
|
|
|
22206
|
-
function _extends$
|
|
22104
|
+
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); }
|
|
22207
22105
|
|
|
22208
22106
|
function SvgShopping(props) {
|
|
22209
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22107
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
22210
22108
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22211
22109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22212
22110
|
fill: "none",
|
|
22213
22111
|
viewBox: "0 0 24 24",
|
|
22214
22112
|
stroke: "currentColor"
|
|
22215
|
-
}, props), _path$
|
|
22113
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
22216
22114
|
strokeLinecap: "round",
|
|
22217
22115
|
strokeLinejoin: "round",
|
|
22218
22116
|
strokeWidth: 2,
|
|
@@ -22220,18 +22118,18 @@ function SvgShopping(props) {
|
|
|
22220
22118
|
})));
|
|
22221
22119
|
}
|
|
22222
22120
|
|
|
22223
|
-
var _path$
|
|
22121
|
+
var _path$4;
|
|
22224
22122
|
|
|
22225
|
-
function _extends$
|
|
22123
|
+
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); }
|
|
22226
22124
|
|
|
22227
22125
|
function SvgBookmark(props) {
|
|
22228
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22126
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
22229
22127
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22230
22128
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22231
22129
|
fill: "none",
|
|
22232
22130
|
viewBox: "0 0 24 24",
|
|
22233
22131
|
stroke: "currentColor"
|
|
22234
|
-
}, props), _path$
|
|
22132
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
22235
22133
|
strokeLinecap: "round",
|
|
22236
22134
|
strokeLinejoin: "round",
|
|
22237
22135
|
strokeWidth: 2,
|
|
@@ -22239,33 +22137,33 @@ function SvgBookmark(props) {
|
|
|
22239
22137
|
})));
|
|
22240
22138
|
}
|
|
22241
22139
|
|
|
22242
|
-
var _path$
|
|
22140
|
+
var _path$3;
|
|
22243
22141
|
|
|
22244
|
-
function _extends$
|
|
22142
|
+
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); }
|
|
22245
22143
|
|
|
22246
22144
|
function SvgKey(props) {
|
|
22247
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22145
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
22248
22146
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22249
22147
|
viewBox: "0 0 20 20",
|
|
22250
22148
|
fill: "currentColor"
|
|
22251
|
-
}, props), _path$
|
|
22149
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
22252
22150
|
fillRule: "evenodd",
|
|
22253
22151
|
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",
|
|
22254
22152
|
clipRule: "evenodd"
|
|
22255
22153
|
})));
|
|
22256
22154
|
}
|
|
22257
22155
|
|
|
22258
|
-
var _path$
|
|
22156
|
+
var _path$2;
|
|
22259
22157
|
|
|
22260
|
-
function _extends$
|
|
22158
|
+
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); }
|
|
22261
22159
|
|
|
22262
22160
|
function SvgDonate(props) {
|
|
22263
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22161
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
22264
22162
|
width: 24,
|
|
22265
22163
|
height: 24,
|
|
22266
22164
|
fill: "currentColor",
|
|
22267
22165
|
xmlns: "http://www.w3.org/2000/svg"
|
|
22268
|
-
}, props), _path$
|
|
22166
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
22269
22167
|
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"
|
|
22270
22168
|
})));
|
|
22271
22169
|
}
|
|
@@ -22592,10 +22490,9 @@ class Dashboard extends Component {
|
|
|
22592
22490
|
}) => {
|
|
22593
22491
|
if (isGift) {
|
|
22594
22492
|
this.props.setProductAndPlan(null, null, true);
|
|
22595
|
-
return this.props.setView("plan-select");
|
|
22596
22493
|
}
|
|
22597
22494
|
|
|
22598
|
-
return this.props.setView("
|
|
22495
|
+
return this.props.setView("plan-select");
|
|
22599
22496
|
});
|
|
22600
22497
|
|
|
22601
22498
|
_defineProperty$3(this, "displayAddressCreate", () => {
|
|
@@ -23061,7 +22958,7 @@ const DashboardOpenButton = () => {
|
|
|
23061
22958
|
};
|
|
23062
22959
|
DashboardOpenButton.viewId = "dashboard-open";
|
|
23063
22960
|
|
|
23064
|
-
const initialState$
|
|
22961
|
+
const initialState$2 = {
|
|
23065
22962
|
imageSrc: null,
|
|
23066
22963
|
crop: {
|
|
23067
22964
|
x: 0,
|
|
@@ -23075,10 +22972,10 @@ const initialState$3 = {
|
|
|
23075
22972
|
content: ""
|
|
23076
22973
|
}
|
|
23077
22974
|
};
|
|
23078
|
-
const store$
|
|
22975
|
+
const store$2 = /*#__PURE__*/createContext(initialState$2);
|
|
23079
22976
|
const {
|
|
23080
|
-
Provider: Provider$
|
|
23081
|
-
} = store$
|
|
22977
|
+
Provider: Provider$2
|
|
22978
|
+
} = store$2;
|
|
23082
22979
|
|
|
23083
22980
|
const ProfilePicChangeContainer = ({
|
|
23084
22981
|
style,
|
|
@@ -23212,21 +23109,21 @@ const ProfilePicChangeContainer = ({
|
|
|
23212
23109
|
default:
|
|
23213
23110
|
return state;
|
|
23214
23111
|
}
|
|
23215
|
-
}, initialState$
|
|
23112
|
+
}, initialState$2);
|
|
23216
23113
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
23217
23114
|
style: { ...style
|
|
23218
23115
|
},
|
|
23219
23116
|
className: `pelcro-container pelcro-profile-picture-container ${className}`
|
|
23220
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
23117
|
+
}, /*#__PURE__*/React__default.createElement(Provider$2, {
|
|
23221
23118
|
value: {
|
|
23222
23119
|
state,
|
|
23223
23120
|
dispatch
|
|
23224
23121
|
}
|
|
23225
23122
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
23226
|
-
store: store$
|
|
23123
|
+
store: store$2,
|
|
23227
23124
|
key: i
|
|
23228
23125
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
23229
|
-
store: store$
|
|
23126
|
+
store: store$2
|
|
23230
23127
|
})));
|
|
23231
23128
|
};
|
|
23232
23129
|
/**
|
|
@@ -23288,7 +23185,7 @@ const ProfilePicChangeButton = ({
|
|
|
23288
23185
|
isSubmitting
|
|
23289
23186
|
},
|
|
23290
23187
|
dispatch
|
|
23291
|
-
} = useContext(store$
|
|
23188
|
+
} = useContext(store$2);
|
|
23292
23189
|
const {
|
|
23293
23190
|
t
|
|
23294
23191
|
} = useTranslation("userEdit");
|
|
@@ -24656,7 +24553,7 @@ const ProfilePicChangeCropper = ({
|
|
|
24656
24553
|
zoom
|
|
24657
24554
|
},
|
|
24658
24555
|
dispatch
|
|
24659
|
-
} = useContext(store$
|
|
24556
|
+
} = useContext(store$2);
|
|
24660
24557
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
24661
24558
|
className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
|
|
24662
24559
|
}, /*#__PURE__*/React__default.createElement(Cropper, Object.assign({
|
|
@@ -24698,7 +24595,7 @@ const ProfilePicChangeZoom = ({
|
|
|
24698
24595
|
zoom
|
|
24699
24596
|
},
|
|
24700
24597
|
dispatch
|
|
24701
|
-
} = useContext(store$
|
|
24598
|
+
} = useContext(store$2);
|
|
24702
24599
|
const {
|
|
24703
24600
|
t
|
|
24704
24601
|
} = useTranslation("userEdit");
|
|
@@ -24721,18 +24618,18 @@ const ProfilePicChangeZoom = ({
|
|
|
24721
24618
|
}, otherProps)));
|
|
24722
24619
|
};
|
|
24723
24620
|
|
|
24724
|
-
var _path$
|
|
24621
|
+
var _path$1;
|
|
24725
24622
|
|
|
24726
|
-
function _extends$
|
|
24623
|
+
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); }
|
|
24727
24624
|
|
|
24728
24625
|
function SvgPhotograph(props) {
|
|
24729
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24626
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
24730
24627
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24731
24628
|
className: "plc-h-6 plc-w-6",
|
|
24732
24629
|
fill: "none",
|
|
24733
24630
|
viewBox: "0 0 24 24",
|
|
24734
24631
|
stroke: "currentColor"
|
|
24735
|
-
}, props), _path$
|
|
24632
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
24736
24633
|
strokeLinecap: "round",
|
|
24737
24634
|
strokeLinejoin: "round",
|
|
24738
24635
|
strokeWidth: 2,
|
|
@@ -24750,7 +24647,7 @@ const ProfilePicChangeSelectButton = ({
|
|
|
24750
24647
|
state: {
|
|
24751
24648
|
isSubmitting
|
|
24752
24649
|
}
|
|
24753
|
-
} = useContext(store$
|
|
24650
|
+
} = useContext(store$2);
|
|
24754
24651
|
const {
|
|
24755
24652
|
t
|
|
24756
24653
|
} = useTranslation("userEdit");
|
|
@@ -24792,7 +24689,7 @@ const ProfilePicChangeRemoveButton = ({
|
|
|
24792
24689
|
state: {
|
|
24793
24690
|
isSubmitting
|
|
24794
24691
|
}
|
|
24795
|
-
} = useContext(store$
|
|
24692
|
+
} = useContext(store$2);
|
|
24796
24693
|
const {
|
|
24797
24694
|
t
|
|
24798
24695
|
} = useTranslation("userEdit");
|
|
@@ -24815,7 +24712,7 @@ const ProfilePicChangeWrapper = () => {
|
|
|
24815
24712
|
state: {
|
|
24816
24713
|
imageSrc
|
|
24817
24714
|
}
|
|
24818
|
-
} = useContext(store$
|
|
24715
|
+
} = useContext(store$2);
|
|
24819
24716
|
const {
|
|
24820
24717
|
t
|
|
24821
24718
|
} = useTranslation("userEdit");
|
|
@@ -24877,17 +24774,17 @@ function ProfilePicChangeModal({
|
|
|
24877
24774
|
}
|
|
24878
24775
|
ProfilePicChangeModal.viewId = "profile-picture";
|
|
24879
24776
|
|
|
24880
|
-
const initialState$
|
|
24777
|
+
const initialState$1 = {
|
|
24881
24778
|
isSubmitting: false,
|
|
24882
24779
|
alert: {
|
|
24883
24780
|
type: "error",
|
|
24884
24781
|
content: ""
|
|
24885
24782
|
}
|
|
24886
24783
|
};
|
|
24887
|
-
const store$
|
|
24784
|
+
const store$1 = /*#__PURE__*/createContext(initialState$1);
|
|
24888
24785
|
const {
|
|
24889
|
-
Provider: Provider$
|
|
24890
|
-
} = store$
|
|
24786
|
+
Provider: Provider$1
|
|
24787
|
+
} = store$1;
|
|
24891
24788
|
|
|
24892
24789
|
const EmailVerifyContainer = ({
|
|
24893
24790
|
style,
|
|
@@ -24950,21 +24847,21 @@ const EmailVerifyContainer = ({
|
|
|
24950
24847
|
default:
|
|
24951
24848
|
return state;
|
|
24952
24849
|
}
|
|
24953
|
-
}, initialState$
|
|
24850
|
+
}, initialState$1);
|
|
24954
24851
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
24955
24852
|
style: { ...style
|
|
24956
24853
|
},
|
|
24957
24854
|
className: `pelcro-container pelcro-email-verify-container ${className}`
|
|
24958
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
24855
|
+
}, /*#__PURE__*/React__default.createElement(Provider$1, {
|
|
24959
24856
|
value: {
|
|
24960
24857
|
state,
|
|
24961
24858
|
dispatch
|
|
24962
24859
|
}
|
|
24963
24860
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
24964
|
-
store: store$
|
|
24861
|
+
store: store$1,
|
|
24965
24862
|
key: i
|
|
24966
24863
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
24967
|
-
store: store$
|
|
24864
|
+
store: store$1
|
|
24968
24865
|
})));
|
|
24969
24866
|
};
|
|
24970
24867
|
|
|
@@ -24978,7 +24875,7 @@ const EmailVerifyResendButton = ({
|
|
|
24978
24875
|
state: {
|
|
24979
24876
|
isSubmitting
|
|
24980
24877
|
}
|
|
24981
|
-
} = useContext(store$
|
|
24878
|
+
} = useContext(store$1);
|
|
24982
24879
|
const {
|
|
24983
24880
|
t
|
|
24984
24881
|
} = useTranslation("verifyEmail");
|
|
@@ -24993,16 +24890,16 @@ const EmailVerifyResendButton = ({
|
|
|
24993
24890
|
}, otherProps), name !== null && name !== void 0 ? name : t("labels.resend"));
|
|
24994
24891
|
};
|
|
24995
24892
|
|
|
24996
|
-
var _path
|
|
24893
|
+
var _path, _path2;
|
|
24997
24894
|
|
|
24998
|
-
function _extends
|
|
24895
|
+
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); }
|
|
24999
24896
|
|
|
25000
24897
|
function SvgEmailVerify(props) {
|
|
25001
|
-
return /*#__PURE__*/React.createElement("svg", _extends
|
|
24898
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
25002
24899
|
className: "plc-w-6 plc-h-6",
|
|
25003
24900
|
viewBox: "0 0 700 700",
|
|
25004
24901
|
xmlns: "http://www.w3.org/2000/svg"
|
|
25005
|
-
}, props), _path
|
|
24902
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
25006
24903
|
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"
|
|
25007
24904
|
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
25008
24905
|
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"
|
|
@@ -25106,11 +25003,11 @@ const invoicePaymentSubmitButton = props => {
|
|
|
25106
25003
|
return /*#__PURE__*/React__default.createElement(SubmitPaymentMethod, props);
|
|
25107
25004
|
};
|
|
25108
25005
|
|
|
25109
|
-
const initialState
|
|
25110
|
-
const store
|
|
25006
|
+
const initialState = {};
|
|
25007
|
+
const store = /*#__PURE__*/createContext(initialState);
|
|
25111
25008
|
const {
|
|
25112
|
-
Provider
|
|
25113
|
-
} = store
|
|
25009
|
+
Provider
|
|
25010
|
+
} = store;
|
|
25114
25011
|
|
|
25115
25012
|
const InvoiceDetailsContainer = ({
|
|
25116
25013
|
style,
|
|
@@ -25131,21 +25028,21 @@ const InvoiceDetailsContainer = ({
|
|
|
25131
25028
|
default:
|
|
25132
25029
|
return state;
|
|
25133
25030
|
}
|
|
25134
|
-
}, initialState
|
|
25031
|
+
}, initialState);
|
|
25135
25032
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25136
25033
|
style: { ...style
|
|
25137
25034
|
},
|
|
25138
25035
|
className: `pelcro-container pelcro-invoice-details-container ${className}`
|
|
25139
|
-
}, /*#__PURE__*/React__default.createElement(Provider
|
|
25036
|
+
}, /*#__PURE__*/React__default.createElement(Provider, {
|
|
25140
25037
|
value: {
|
|
25141
25038
|
state,
|
|
25142
25039
|
dispatch
|
|
25143
25040
|
}
|
|
25144
25041
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25145
|
-
store
|
|
25042
|
+
store,
|
|
25146
25043
|
key: i
|
|
25147
25044
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25148
|
-
store
|
|
25045
|
+
store
|
|
25149
25046
|
})));
|
|
25150
25047
|
};
|
|
25151
25048
|
|
|
@@ -25177,7 +25074,7 @@ const InvoiceDetailsPayButton = ({
|
|
|
25177
25074
|
}) => {
|
|
25178
25075
|
const {
|
|
25179
25076
|
dispatch
|
|
25180
|
-
} = useContext(store
|
|
25077
|
+
} = useContext(store);
|
|
25181
25078
|
const {
|
|
25182
25079
|
t
|
|
25183
25080
|
} = useTranslation("invoiceDetails");
|
|
@@ -25282,230 +25179,4 @@ const InvoiceDetailsModal = ({
|
|
|
25282
25179
|
};
|
|
25283
25180
|
InvoiceDetailsModal.viewId = "invoice-details";
|
|
25284
25181
|
|
|
25285
|
-
|
|
25286
|
-
selectedOption: ""
|
|
25287
|
-
};
|
|
25288
|
-
const store = /*#__PURE__*/createContext(initialState);
|
|
25289
|
-
const {
|
|
25290
|
-
Provider
|
|
25291
|
-
} = store;
|
|
25292
|
-
|
|
25293
|
-
const SubscriptionOptionsContainer = ({
|
|
25294
|
-
style,
|
|
25295
|
-
className = "",
|
|
25296
|
-
onRenewSubSuccess = () => {},
|
|
25297
|
-
onNewSubSuccess = () => {},
|
|
25298
|
-
children,
|
|
25299
|
-
...props
|
|
25300
|
-
}) => {
|
|
25301
|
-
const submit = ({
|
|
25302
|
-
selectedOption
|
|
25303
|
-
}, dispatch) => {
|
|
25304
|
-
if (selectedOption === "renew") return onRenewSubSuccess();
|
|
25305
|
-
if (selectedOption === "new") return onNewSubSuccess();
|
|
25306
|
-
};
|
|
25307
|
-
|
|
25308
|
-
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
25309
|
-
switch (action.type) {
|
|
25310
|
-
case SWITCH_TO_NEW:
|
|
25311
|
-
return lib_7({ ...state,
|
|
25312
|
-
selectedOption: "new"
|
|
25313
|
-
});
|
|
25314
|
-
|
|
25315
|
-
case SWITCH_TO_RENEW:
|
|
25316
|
-
return lib_7({ ...state,
|
|
25317
|
-
selectedOption: "renew"
|
|
25318
|
-
});
|
|
25319
|
-
|
|
25320
|
-
case HANDLE_SUBMIT:
|
|
25321
|
-
return lib_4((state, dispatch) => submit(state));
|
|
25322
|
-
|
|
25323
|
-
default:
|
|
25324
|
-
return state;
|
|
25325
|
-
}
|
|
25326
|
-
}, initialState);
|
|
25327
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
25328
|
-
style: { ...style
|
|
25329
|
-
},
|
|
25330
|
-
className: `pelcro-container pelcro-subscription-options-container ${className}`
|
|
25331
|
-
}, /*#__PURE__*/React__default.createElement(Provider, {
|
|
25332
|
-
value: {
|
|
25333
|
-
state,
|
|
25334
|
-
dispatch
|
|
25335
|
-
}
|
|
25336
|
-
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25337
|
-
store,
|
|
25338
|
-
key: i
|
|
25339
|
-
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25340
|
-
store
|
|
25341
|
-
})));
|
|
25342
|
-
};
|
|
25343
|
-
|
|
25344
|
-
var _path;
|
|
25345
|
-
|
|
25346
|
-
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); }
|
|
25347
|
-
|
|
25348
|
-
function SvgPlusCircle(props) {
|
|
25349
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
25350
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
25351
|
-
className: "plc-h-6 plc-w-6",
|
|
25352
|
-
fill: "none",
|
|
25353
|
-
viewBox: "0 0 24 24",
|
|
25354
|
-
stroke: "currentColor",
|
|
25355
|
-
strokeWidth: 2
|
|
25356
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
25357
|
-
strokeLinecap: "round",
|
|
25358
|
-
strokeLinejoin: "round",
|
|
25359
|
-
d: "M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
25360
|
-
})));
|
|
25361
|
-
}
|
|
25362
|
-
|
|
25363
|
-
const SubscriptionOptionsNewButton = ({
|
|
25364
|
-
name,
|
|
25365
|
-
onClick,
|
|
25366
|
-
...otherProps
|
|
25367
|
-
}) => {
|
|
25368
|
-
const {
|
|
25369
|
-
dispatch,
|
|
25370
|
-
state: {
|
|
25371
|
-
selectedOption
|
|
25372
|
-
}
|
|
25373
|
-
} = useContext(store);
|
|
25374
|
-
const {
|
|
25375
|
-
t
|
|
25376
|
-
} = useTranslation("subscriptionOptions");
|
|
25377
|
-
const isChecked = selectedOption === "new";
|
|
25378
|
-
return /*#__PURE__*/React__default.createElement(Radio, Object.assign({
|
|
25379
|
-
className: "plc-hidden pelcro-new-sub-option",
|
|
25380
|
-
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"}`,
|
|
25381
|
-
id: "pelcro-new-sub-option",
|
|
25382
|
-
name: "option",
|
|
25383
|
-
onChange: () => {
|
|
25384
|
-
dispatch({
|
|
25385
|
-
type: SWITCH_TO_NEW
|
|
25386
|
-
});
|
|
25387
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25388
|
-
},
|
|
25389
|
-
checked: isChecked
|
|
25390
|
-
}, otherProps), name !== null && name !== void 0 ? name : t("addNew"), /*#__PURE__*/React__default.createElement(SvgPlusCircle, {
|
|
25391
|
-
className: "plc-w-full plc-h-full plc-mr-0"
|
|
25392
|
-
}));
|
|
25393
|
-
};
|
|
25394
|
-
|
|
25395
|
-
const SubscriptionOptionsRenewButton = ({
|
|
25396
|
-
name,
|
|
25397
|
-
onClick,
|
|
25398
|
-
...otherProps
|
|
25399
|
-
}) => {
|
|
25400
|
-
const {
|
|
25401
|
-
dispatch,
|
|
25402
|
-
state: {
|
|
25403
|
-
selectedOption
|
|
25404
|
-
}
|
|
25405
|
-
} = useContext(store);
|
|
25406
|
-
const {
|
|
25407
|
-
t
|
|
25408
|
-
} = useTranslation("subscriptionOptions");
|
|
25409
|
-
const isChecked = selectedOption === "renew";
|
|
25410
|
-
return /*#__PURE__*/React__default.createElement(Radio, Object.assign({
|
|
25411
|
-
className: "plc-hidden pelcro-renew-sub-option",
|
|
25412
|
-
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"}`,
|
|
25413
|
-
id: "pelcro-renew-sub-option",
|
|
25414
|
-
name: "option",
|
|
25415
|
-
onChange: () => {
|
|
25416
|
-
dispatch({
|
|
25417
|
-
type: SWITCH_TO_RENEW
|
|
25418
|
-
});
|
|
25419
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25420
|
-
},
|
|
25421
|
-
checked: isChecked
|
|
25422
|
-
}, otherProps), name !== null && name !== void 0 ? name : t("renew"), /*#__PURE__*/React__default.createElement(SvgRefresh, {
|
|
25423
|
-
className: "plc-w-full plc-h-full plc-mr-0"
|
|
25424
|
-
}));
|
|
25425
|
-
};
|
|
25426
|
-
|
|
25427
|
-
const SubscriptionOptionsSubmit = ({
|
|
25428
|
-
name,
|
|
25429
|
-
onClick,
|
|
25430
|
-
...otherProps
|
|
25431
|
-
}) => {
|
|
25432
|
-
const {
|
|
25433
|
-
dispatch,
|
|
25434
|
-
state: {
|
|
25435
|
-
selectedOption
|
|
25436
|
-
}
|
|
25437
|
-
} = useContext(store);
|
|
25438
|
-
const {
|
|
25439
|
-
t
|
|
25440
|
-
} = useTranslation("subscriptionOptions");
|
|
25441
|
-
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
25442
|
-
onClick: () => {
|
|
25443
|
-
dispatch({
|
|
25444
|
-
type: HANDLE_SUBMIT
|
|
25445
|
-
});
|
|
25446
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25447
|
-
},
|
|
25448
|
-
disabled: !selectedOption
|
|
25449
|
-
}, otherProps), name !== null && name !== void 0 ? name : t("next"));
|
|
25450
|
-
};
|
|
25451
|
-
|
|
25452
|
-
const SubscriptionOptionsView = props => {
|
|
25453
|
-
const {
|
|
25454
|
-
t
|
|
25455
|
-
} = useTranslation("subscriptionOptions");
|
|
25456
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
25457
|
-
id: "pelcro-subscription-options-view"
|
|
25458
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25459
|
-
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
25460
|
-
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
25461
|
-
className: "plc-text-2xl plc-font-semibold"
|
|
25462
|
-
}, t("title")), /*#__PURE__*/React__default.createElement("p", null, t("subtitle"))), /*#__PURE__*/React__default.createElement("form", {
|
|
25463
|
-
action: "javascript:void(0);",
|
|
25464
|
-
className: "plc-mt-2 pelcro-form"
|
|
25465
|
-
}, /*#__PURE__*/React__default.createElement(SubscriptionOptionsContainer, props, /*#__PURE__*/React__default.createElement("div", {
|
|
25466
|
-
className: "plc-flex plc-justify-between plc-items-center"
|
|
25467
|
-
}, /*#__PURE__*/React__default.createElement(SubscriptionOptionsRenewButton, null), /*#__PURE__*/React__default.createElement(SubscriptionOptionsNewButton, null)), /*#__PURE__*/React__default.createElement(SubscriptionOptionsSubmit, {
|
|
25468
|
-
role: "submit",
|
|
25469
|
-
className: "plc-mt-4 plc-w-full",
|
|
25470
|
-
name: t("next"),
|
|
25471
|
-
id: "pelcro-submit"
|
|
25472
|
-
}))));
|
|
25473
|
-
};
|
|
25474
|
-
|
|
25475
|
-
const SubscriptionOptionsModal = ({
|
|
25476
|
-
onDisplay,
|
|
25477
|
-
onClose,
|
|
25478
|
-
...otherProps
|
|
25479
|
-
}) => {
|
|
25480
|
-
const {
|
|
25481
|
-
switchView,
|
|
25482
|
-
setProductsList
|
|
25483
|
-
} = usePelcro();
|
|
25484
|
-
|
|
25485
|
-
const onRenewSubSuccess = () => {
|
|
25486
|
-
var _otherProps$onRenewSu;
|
|
25487
|
-
|
|
25488
|
-
(_otherProps$onRenewSu = otherProps.onRenewSubSuccess) === null || _otherProps$onRenewSu === void 0 ? void 0 : _otherProps$onRenewSu.call(otherProps);
|
|
25489
|
-
setProductsList(getRenewableProducts());
|
|
25490
|
-
switchView("_plan-select-renew");
|
|
25491
|
-
};
|
|
25492
|
-
|
|
25493
|
-
const onNewSubSuccess = () => {
|
|
25494
|
-
var _otherProps$onNewSubS;
|
|
25495
|
-
|
|
25496
|
-
(_otherProps$onNewSubS = otherProps.onNewSubSuccess) === null || _otherProps$onNewSubS === void 0 ? void 0 : _otherProps$onNewSubS.call(otherProps);
|
|
25497
|
-
switchView("plan-select");
|
|
25498
|
-
};
|
|
25499
|
-
|
|
25500
|
-
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
25501
|
-
onDisplay: onDisplay,
|
|
25502
|
-
onClose: onClose,
|
|
25503
|
-
id: "pelcro-subscription-options-modal"
|
|
25504
|
-
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionOptionsView, Object.assign({}, otherProps, {
|
|
25505
|
-
onNewSubSuccess: onNewSubSuccess,
|
|
25506
|
-
onRenewSubSuccess: onRenewSubSuccess
|
|
25507
|
-
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
25508
|
-
};
|
|
25509
|
-
SubscriptionOptionsModal.viewId = "subscription-options";
|
|
25510
|
-
|
|
25511
|
-
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionOptionsContainer, SubscriptionOptionsModal, SubscriptionOptionsNewButton, SubscriptionOptionsRenewButton, SubscriptionOptionsSubmit, SubscriptionOptionsView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
|
|
25182
|
+
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
|