@pelcro/react-pelcro-js 3.2.0-beta.10 → 3.2.0-beta.13
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 +540 -850
- package/dist/index.esm.js +541 -845
- package/dist/pelcro.css +0 -22
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2544,7 +2544,7 @@ var voidElements = {
|
|
|
2544
2544
|
"wbr": true
|
|
2545
2545
|
};
|
|
2546
2546
|
|
|
2547
|
-
var t$
|
|
2547
|
+
var t$2=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function n$1(n){var r={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=n.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(r.name=i[1],(voidElements[i[1]]||"/"===n.charAt(n.length-2))&&(r.voidElement=!0),r.name.startsWith("!--"))){var s=n.indexOf("--\x3e");return {type:"comment",comment:-1!==s?n.slice(4,s):""}}for(var a=new RegExp(t$2),c=null;null!==(c=a.exec(n));)if(c[0].trim())if(c[1]){var o=c[1].trim(),l=[o,""];o.indexOf("=")>-1&&(l=o.split("=")),r.attrs[l[0]]=l[1],a.lastIndex--;}else c[2]&&(r.attrs[c[2]]=c[3].trim().substring(1,c[3].length-1));return r}var r=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,i$1=/^\s*$/,s$1=Object.create(null);function a$1(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(a$1,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var c$2={parse:function(e,t){t||(t={}),t.components||(t.components=s$1);var a,c=[],o=[],l=-1,m=!1;if(0!==e.indexOf("<")){var u=e.indexOf("<");c.push({type:"text",content:-1===u?e:e.substring(0,u)});}return e.replace(r,function(r,s){if(m){if(r!=="</"+a.name+">")return;m=!1;}var u,f="/"!==r.charAt(1),h=r.startsWith("\x3c!--"),p=s+r.length,d=e.charAt(p);if(h){var v=n$1(r);return l<0?(c.push(v),c):((u=o[l]).children.push(v),c)}if(f&&(l++,"tag"===(a=n$1(r)).type&&t.components[a.name]&&(a.type="component",m=!0),a.voidElement||m||!d||"<"===d||a.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===l&&c.push(a),(u=o[l-1])&&u.children.push(a),o[l]=a),(!f||a.voidElement)&&(l>-1&&(a.voidElement||a.name===r.slice(2,-1))&&(l--,a=-1===l?c:o[l]),!m&&"<"!==d&&d)){u=-1===l?c:o[l].children;var x=e.indexOf("<",p),g=e.slice(p,-1===x?void 0:x);i$1.test(g)&&(g=" "),(x>-1&&l+u.length>=0||" "!==g)&&u.push({type:"text",content:g});}}),c},stringify:function(e){return e.reduce(function(e,t){return e+a$1("",t)},"")}};
|
|
2548
2548
|
|
|
2549
2549
|
var classCallCheck = createCommonjsModule(function (module) {
|
|
2550
2550
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -3214,7 +3214,8 @@ function withTranslation(ns) {
|
|
|
3214
3214
|
var validation$1 = {
|
|
3215
3215
|
validEmail: "le courriel n’est pas valide",
|
|
3216
3216
|
enterEmail: "Un courriel est requis.",
|
|
3217
|
-
enterPassword: "Mot de passe requis."
|
|
3217
|
+
enterPassword: "Mot de passe requis.",
|
|
3218
|
+
confirmPassword: "Confirmer le mot de passe requis."
|
|
3218
3219
|
};
|
|
3219
3220
|
var buttons$9 = {
|
|
3220
3221
|
account: "Accès abonné(e)s",
|
|
@@ -3302,7 +3303,8 @@ var common_fr = {
|
|
|
3302
3303
|
var validation = {
|
|
3303
3304
|
validEmail: "Email address is not valid.",
|
|
3304
3305
|
enterEmail: "Email address is required.",
|
|
3305
|
-
enterPassword: "Password is required."
|
|
3306
|
+
enterPassword: "Password is required.",
|
|
3307
|
+
confirmPassword: "Confirm password is required."
|
|
3306
3308
|
};
|
|
3307
3309
|
var buttons$8 = {
|
|
3308
3310
|
account: "My account",
|
|
@@ -3431,9 +3433,9 @@ var paymentMethod_fr = {
|
|
|
3431
3433
|
select: select
|
|
3432
3434
|
};
|
|
3433
3435
|
|
|
3434
|
-
var title$
|
|
3436
|
+
var title$f = "Enter your email to subscribe to our newsletter";
|
|
3435
3437
|
var updateTitle$1 = "Update newsletter selections";
|
|
3436
|
-
var subtitle$
|
|
3438
|
+
var subtitle$7 = "We may use your email for other marketing communication";
|
|
3437
3439
|
var labels$p = {
|
|
3438
3440
|
submit: "Submit",
|
|
3439
3441
|
firstName: "First name",
|
|
@@ -3450,16 +3452,16 @@ var messages$r = {
|
|
|
3450
3452
|
here: "here"
|
|
3451
3453
|
};
|
|
3452
3454
|
var newsletter_en = {
|
|
3453
|
-
title: title$
|
|
3455
|
+
title: title$f,
|
|
3454
3456
|
updateTitle: updateTitle$1,
|
|
3455
|
-
subtitle: subtitle$
|
|
3457
|
+
subtitle: subtitle$7,
|
|
3456
3458
|
labels: labels$p,
|
|
3457
3459
|
messages: messages$r
|
|
3458
3460
|
};
|
|
3459
3461
|
|
|
3460
|
-
var title$
|
|
3462
|
+
var title$e = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
3461
3463
|
var updateTitle = "Mettre à jour son choix d'infolettres";
|
|
3462
|
-
var subtitle$
|
|
3464
|
+
var subtitle$6 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
|
|
3463
3465
|
var labels$o = {
|
|
3464
3466
|
submit: "Lire l’article !",
|
|
3465
3467
|
firstName: "Prénom",
|
|
@@ -3476,9 +3478,9 @@ var messages$q = {
|
|
|
3476
3478
|
here: "ici"
|
|
3477
3479
|
};
|
|
3478
3480
|
var newsletter_fr = {
|
|
3479
|
-
title: title$
|
|
3481
|
+
title: title$e,
|
|
3480
3482
|
updateTitle: updateTitle,
|
|
3481
|
-
subtitle: subtitle$
|
|
3483
|
+
subtitle: subtitle$6,
|
|
3482
3484
|
labels: labels$o,
|
|
3483
3485
|
messages: messages$q
|
|
3484
3486
|
};
|
|
@@ -3735,8 +3737,8 @@ var login_fr = {
|
|
|
3735
3737
|
errors: errors$4
|
|
3736
3738
|
};
|
|
3737
3739
|
|
|
3738
|
-
var title$
|
|
3739
|
-
var subtitle$
|
|
3740
|
+
var title$d = "Create an account";
|
|
3741
|
+
var subtitle$5 = "Enter your email and password below";
|
|
3740
3742
|
var labels$h = {
|
|
3741
3743
|
signUpFacebook: "Sign up with Facebook",
|
|
3742
3744
|
signUpGoogle: "Sign up with Google",
|
|
@@ -3821,8 +3823,8 @@ var redeem$1 = {
|
|
|
3821
3823
|
}
|
|
3822
3824
|
};
|
|
3823
3825
|
var register_en = {
|
|
3824
|
-
title: title$
|
|
3825
|
-
subtitle: subtitle$
|
|
3826
|
+
title: title$d,
|
|
3827
|
+
subtitle: subtitle$5,
|
|
3826
3828
|
labels: labels$h,
|
|
3827
3829
|
messages: messages$h,
|
|
3828
3830
|
errors: errors$3,
|
|
@@ -3830,8 +3832,8 @@ var register_en = {
|
|
|
3830
3832
|
redeem: redeem$1
|
|
3831
3833
|
};
|
|
3832
3834
|
|
|
3833
|
-
var title$
|
|
3834
|
-
var subtitle$
|
|
3835
|
+
var title$c = "Créer un compte";
|
|
3836
|
+
var subtitle$4 = "Entrez votre courriel et votre mot de passe ci-dessous";
|
|
3835
3837
|
var labels$g = {
|
|
3836
3838
|
signUpFacebook: "Inscrivez-vous avec Facebook",
|
|
3837
3839
|
signUpGoogle: "Inscrivez-vous avec Google",
|
|
@@ -3917,8 +3919,8 @@ var redeem = {
|
|
|
3917
3919
|
}
|
|
3918
3920
|
};
|
|
3919
3921
|
var register_fr = {
|
|
3920
|
-
title: title$
|
|
3921
|
-
subtitle: subtitle$
|
|
3922
|
+
title: title$c,
|
|
3923
|
+
subtitle: subtitle$4,
|
|
3922
3924
|
labels: labels$g,
|
|
3923
3925
|
messages: messages$g,
|
|
3924
3926
|
errors: errors$2,
|
|
@@ -3978,7 +3980,7 @@ var userEdit_fr = {
|
|
|
3978
3980
|
messages: messages$e
|
|
3979
3981
|
};
|
|
3980
3982
|
|
|
3981
|
-
var title$
|
|
3983
|
+
var title$b = "Enter your shipping address";
|
|
3982
3984
|
var selectAddressTitle$1 = "Please select an address";
|
|
3983
3985
|
var selectAddressSubtitle$1 = "Select one of your saved addresses, or add a new one";
|
|
3984
3986
|
var labels$d = {
|
|
@@ -4001,7 +4003,7 @@ var messages$d = {
|
|
|
4001
4003
|
subRedeemed: "Your subscription has been redeemed."
|
|
4002
4004
|
};
|
|
4003
4005
|
var address_en = {
|
|
4004
|
-
title: title$
|
|
4006
|
+
title: title$b,
|
|
4005
4007
|
selectAddressTitle: selectAddressTitle$1,
|
|
4006
4008
|
selectAddressSubtitle: selectAddressSubtitle$1,
|
|
4007
4009
|
labels: labels$d,
|
|
@@ -4009,7 +4011,7 @@ var address_en = {
|
|
|
4009
4011
|
messages: messages$d
|
|
4010
4012
|
};
|
|
4011
4013
|
|
|
4012
|
-
var title$
|
|
4014
|
+
var title$a = "Entrez votre adresse de livraison";
|
|
4013
4015
|
var selectAddressTitle = "Veuillez sélectionner une adresse";
|
|
4014
4016
|
var selectAddressSubtitle = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
|
|
4015
4017
|
var labels$c = {
|
|
@@ -4032,7 +4034,7 @@ var messages$c = {
|
|
|
4032
4034
|
subRedeemed: "Votre abonnement a bien été activé."
|
|
4033
4035
|
};
|
|
4034
4036
|
var address_fr = {
|
|
4035
|
-
title: title$
|
|
4037
|
+
title: title$a,
|
|
4036
4038
|
selectAddressTitle: selectAddressTitle,
|
|
4037
4039
|
selectAddressSubtitle: selectAddressSubtitle,
|
|
4038
4040
|
labels: labels$c,
|
|
@@ -4040,8 +4042,8 @@ var address_fr = {
|
|
|
4040
4042
|
messages: messages$c
|
|
4041
4043
|
};
|
|
4042
4044
|
|
|
4043
|
-
var title$
|
|
4044
|
-
var subtitle$
|
|
4045
|
+
var title$9 = "Reset your password";
|
|
4046
|
+
var subtitle$3 = "Enter a new password below";
|
|
4045
4047
|
var email$3 = "Email";
|
|
4046
4048
|
var password$3 = "Password";
|
|
4047
4049
|
var confirmPassword$1 = "Confirm password";
|
|
@@ -4049,8 +4051,8 @@ var submit$5 = "Submit";
|
|
|
4049
4051
|
var required$5 = "Required";
|
|
4050
4052
|
var passwordUpdated$1 = "Password has been updated, please login with the new password";
|
|
4051
4053
|
var passwordReset_en = {
|
|
4052
|
-
title: title$
|
|
4053
|
-
subtitle: subtitle$
|
|
4054
|
+
title: title$9,
|
|
4055
|
+
subtitle: subtitle$3,
|
|
4054
4056
|
email: email$3,
|
|
4055
4057
|
password: password$3,
|
|
4056
4058
|
confirmPassword: confirmPassword$1,
|
|
@@ -4059,8 +4061,8 @@ var passwordReset_en = {
|
|
|
4059
4061
|
passwordUpdated: passwordUpdated$1
|
|
4060
4062
|
};
|
|
4061
4063
|
|
|
4062
|
-
var title$
|
|
4063
|
-
var subtitle$
|
|
4064
|
+
var title$8 = "Réinitialiser votre mot de passe";
|
|
4065
|
+
var subtitle$2 = "Entrez un nouveau mot de passe ci-dessous";
|
|
4064
4066
|
var email$2 = "Adresse courriel";
|
|
4065
4067
|
var password$2 = "Mot de passe";
|
|
4066
4068
|
var confirmPassword = "Confirmer le mot de passe";
|
|
@@ -4068,8 +4070,8 @@ var submit$4 = "Soumettre";
|
|
|
4068
4070
|
var required$4 = "Champs obligatoires";
|
|
4069
4071
|
var passwordUpdated = "Votre mot de passe a été mis à jour, veuillez vous connecter avec celui-ci";
|
|
4070
4072
|
var passwordReset_fr = {
|
|
4071
|
-
title: title$
|
|
4072
|
-
subtitle: subtitle$
|
|
4073
|
+
title: title$8,
|
|
4074
|
+
subtitle: subtitle$2,
|
|
4073
4075
|
email: email$2,
|
|
4074
4076
|
password: password$2,
|
|
4075
4077
|
confirmPassword: confirmPassword,
|
|
@@ -4078,7 +4080,7 @@ var passwordReset_fr = {
|
|
|
4078
4080
|
passwordUpdated: passwordUpdated
|
|
4079
4081
|
};
|
|
4080
4082
|
|
|
4081
|
-
var title$
|
|
4083
|
+
var title$7 = "Forgot your password?";
|
|
4082
4084
|
var email$1 = "Email";
|
|
4083
4085
|
var password$1 = "Password";
|
|
4084
4086
|
var submit$3 = "Submit";
|
|
@@ -4089,7 +4091,7 @@ var messages$b = {
|
|
|
4089
4091
|
loginHere: "login here."
|
|
4090
4092
|
};
|
|
4091
4093
|
var passwordForgot_en = {
|
|
4092
|
-
title: title$
|
|
4094
|
+
title: title$7,
|
|
4093
4095
|
email: email$1,
|
|
4094
4096
|
password: password$1,
|
|
4095
4097
|
submit: submit$3,
|
|
@@ -4098,7 +4100,7 @@ var passwordForgot_en = {
|
|
|
4098
4100
|
messages: messages$b
|
|
4099
4101
|
};
|
|
4100
4102
|
|
|
4101
|
-
var title$
|
|
4103
|
+
var title$6 = "Mot de passe oublié ?";
|
|
4102
4104
|
var email = "Courriel";
|
|
4103
4105
|
var password = "Mot de passe";
|
|
4104
4106
|
var submit$2 = "Soumettre";
|
|
@@ -4109,7 +4111,7 @@ var messages$a = {
|
|
|
4109
4111
|
loginHere: "Connectez-vous ici"
|
|
4110
4112
|
};
|
|
4111
4113
|
var passwordForgot_fr = {
|
|
4112
|
-
title: title$
|
|
4114
|
+
title: title$6,
|
|
4113
4115
|
email: email,
|
|
4114
4116
|
password: password,
|
|
4115
4117
|
submit: submit$2,
|
|
@@ -4118,7 +4120,7 @@ var passwordForgot_fr = {
|
|
|
4118
4120
|
messages: messages$a
|
|
4119
4121
|
};
|
|
4120
4122
|
|
|
4121
|
-
var title$
|
|
4123
|
+
var title$5 = "Change your password";
|
|
4122
4124
|
var currentPassword$1 = "Current password";
|
|
4123
4125
|
var newPassword$1 = "New password";
|
|
4124
4126
|
var confirmNewPassword$1 = "Confirm new password";
|
|
@@ -4128,7 +4130,7 @@ var passwordChanged$1 = "Password has been changed, please login with the new pa
|
|
|
4128
4130
|
var passwordsNotMatching$1 = "Passwords don't match";
|
|
4129
4131
|
var weakPassword$1 = "Your password must contain at least 6 characters";
|
|
4130
4132
|
var passwordChange_en = {
|
|
4131
|
-
title: title$
|
|
4133
|
+
title: title$5,
|
|
4132
4134
|
currentPassword: currentPassword$1,
|
|
4133
4135
|
newPassword: newPassword$1,
|
|
4134
4136
|
confirmNewPassword: confirmNewPassword$1,
|
|
@@ -4139,7 +4141,7 @@ var passwordChange_en = {
|
|
|
4139
4141
|
weakPassword: weakPassword$1
|
|
4140
4142
|
};
|
|
4141
4143
|
|
|
4142
|
-
var title$
|
|
4144
|
+
var title$4 = "Changez votre mot de passe";
|
|
4143
4145
|
var currentPassword = "Mot de passe actuel";
|
|
4144
4146
|
var newPassword = "Nouveau mot de passe";
|
|
4145
4147
|
var confirmNewPassword = "Confirmer le nouveau mot de passe";
|
|
@@ -4149,7 +4151,7 @@ var passwordChanged = "Le mot de passe a été modifié, veuillez vous connecter
|
|
|
4149
4151
|
var passwordsNotMatching = "Les mots de passe ne correspondent pas";
|
|
4150
4152
|
var weakPassword = "Votre mot de passe doit contenir au moins 6";
|
|
4151
4153
|
var passwordChange_fr = {
|
|
4152
|
-
title: title$
|
|
4154
|
+
title: title$4,
|
|
4153
4155
|
currentPassword: currentPassword,
|
|
4154
4156
|
newPassword: newPassword,
|
|
4155
4157
|
confirmNewPassword: confirmNewPassword,
|
|
@@ -4160,8 +4162,8 @@ var passwordChange_fr = {
|
|
|
4160
4162
|
weakPassword: weakPassword
|
|
4161
4163
|
};
|
|
4162
4164
|
|
|
4163
|
-
var title$
|
|
4164
|
-
var subtitle$
|
|
4165
|
+
var title$3 = "Votre panier";
|
|
4166
|
+
var subtitle$1 = "Terminez votre achat ci-dessous";
|
|
4165
4167
|
var name$1 = "Produit";
|
|
4166
4168
|
var quantity$1 = "Quantité";
|
|
4167
4169
|
var price$1 = "Prix";
|
|
@@ -4172,8 +4174,8 @@ var confirm$3 = "Passer à la caisse";
|
|
|
4172
4174
|
var empty$1 = "Votre panier est vide.";
|
|
4173
4175
|
var removeAll$1 = "Vider";
|
|
4174
4176
|
var cart_fr = {
|
|
4175
|
-
title: title$
|
|
4176
|
-
subtitle: subtitle$
|
|
4177
|
+
title: title$3,
|
|
4178
|
+
subtitle: subtitle$1,
|
|
4177
4179
|
name: name$1,
|
|
4178
4180
|
quantity: quantity$1,
|
|
4179
4181
|
price: price$1,
|
|
@@ -4185,8 +4187,8 @@ var cart_fr = {
|
|
|
4185
4187
|
removeAll: removeAll$1
|
|
4186
4188
|
};
|
|
4187
4189
|
|
|
4188
|
-
var title$
|
|
4189
|
-
var subtitle
|
|
4190
|
+
var title$2 = "Your shopping cart";
|
|
4191
|
+
var subtitle = "Comple your purchase below";
|
|
4190
4192
|
var name = "Name";
|
|
4191
4193
|
var quantity = "Quantity";
|
|
4192
4194
|
var price = "Price";
|
|
@@ -4197,8 +4199,8 @@ var confirm$2 = "Checkout";
|
|
|
4197
4199
|
var empty = "Your cart is empty.";
|
|
4198
4200
|
var removeAll = "Remove all";
|
|
4199
4201
|
var cart_en = {
|
|
4200
|
-
title: title$
|
|
4201
|
-
subtitle: subtitle
|
|
4202
|
+
title: title$2,
|
|
4203
|
+
subtitle: subtitle,
|
|
4202
4204
|
name: name,
|
|
4203
4205
|
quantity: quantity,
|
|
4204
4206
|
price: price,
|
|
@@ -4636,7 +4638,7 @@ var verifyEmail_fr = {
|
|
|
4636
4638
|
messages: messages
|
|
4637
4639
|
};
|
|
4638
4640
|
|
|
4639
|
-
var title$
|
|
4641
|
+
var title$1 = "Invoice details";
|
|
4640
4642
|
var labels$1 = {
|
|
4641
4643
|
summary: "Summary",
|
|
4642
4644
|
total: "Total",
|
|
@@ -4649,12 +4651,12 @@ var buttons$1 = {
|
|
|
4649
4651
|
pay: "Pay now"
|
|
4650
4652
|
};
|
|
4651
4653
|
var invoiceDetails_en = {
|
|
4652
|
-
title: title$
|
|
4654
|
+
title: title$1,
|
|
4653
4655
|
labels: labels$1,
|
|
4654
4656
|
buttons: buttons$1
|
|
4655
4657
|
};
|
|
4656
4658
|
|
|
4657
|
-
var title
|
|
4659
|
+
var title = "Détails de la facture";
|
|
4658
4660
|
var labels = {
|
|
4659
4661
|
summary: "Résumé",
|
|
4660
4662
|
total: "Total",
|
|
@@ -4667,37 +4669,11 @@ var buttons = {
|
|
|
4667
4669
|
pay: "Payer"
|
|
4668
4670
|
};
|
|
4669
4671
|
var invoiceDetails_fr = {
|
|
4670
|
-
title: title
|
|
4672
|
+
title: title,
|
|
4671
4673
|
labels: labels,
|
|
4672
4674
|
buttons: buttons
|
|
4673
4675
|
};
|
|
4674
4676
|
|
|
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
4677
|
function create$1(createState) {
|
|
4702
4678
|
let state;
|
|
4703
4679
|
const listeners = new Set();
|
|
@@ -6047,7 +6023,7 @@ class PelcroActions {
|
|
|
6047
6023
|
view,
|
|
6048
6024
|
cartItems,
|
|
6049
6025
|
...otherStateFields
|
|
6050
|
-
} = initialState$
|
|
6026
|
+
} = initialState$i;
|
|
6051
6027
|
this.set(otherStateFields);
|
|
6052
6028
|
});
|
|
6053
6029
|
|
|
@@ -6071,16 +6047,6 @@ class PelcroActions {
|
|
|
6071
6047
|
});
|
|
6072
6048
|
}
|
|
6073
6049
|
|
|
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
6050
|
this.set({
|
|
6085
6051
|
view
|
|
6086
6052
|
});
|
|
@@ -6155,26 +6121,6 @@ class PelcroActions {
|
|
|
6155
6121
|
}
|
|
6156
6122
|
});
|
|
6157
6123
|
|
|
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
6124
|
_defineProperty$3(this, "setProduct", id => {
|
|
6179
6125
|
const product = window.Pelcro.product.getById(id);
|
|
6180
6126
|
if (!product) return console.error("invalid product id");
|
|
@@ -6396,12 +6342,10 @@ class PelcroCallbacks {
|
|
|
6396
6342
|
|
|
6397
6343
|
}
|
|
6398
6344
|
|
|
6399
|
-
|
|
6400
|
-
const initialState$j = {
|
|
6345
|
+
const initialState$i = {
|
|
6401
6346
|
// View
|
|
6402
6347
|
view: null,
|
|
6403
6348
|
// 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
6349
|
product: null,
|
|
6406
6350
|
plan: null,
|
|
6407
6351
|
isGift: false,
|
|
@@ -6428,7 +6372,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
|
|
|
6428
6372
|
return {
|
|
6429
6373
|
// Store setter
|
|
6430
6374
|
set,
|
|
6431
|
-
...initialState$
|
|
6375
|
+
...initialState$i,
|
|
6432
6376
|
// State actions
|
|
6433
6377
|
...actions,
|
|
6434
6378
|
// Callbacks
|
|
@@ -6783,30 +6727,6 @@ function userMustVerifyEmail() {
|
|
|
6783
6727
|
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
6728
|
return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
|
|
6785
6729
|
}
|
|
6786
|
-
function getRenewableProducts() {
|
|
6787
|
-
var _window$Pelcro$subscr, _window$Pelcro$subscr2;
|
|
6788
|
-
|
|
6789
|
-
const renewableSubs = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription.list()) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : _window$Pelcro$subscr2.filter(sub => sub.status === "active" && sub.cancel_at_period_end === 1)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
6790
|
-
const renewableProductsIds = [...new Set(renewableSubs.map(sub => sub.plan.product.id))];
|
|
6791
|
-
const renewablePlansIds = [...new Set(renewableSubs.map(sub => sub.plan.id))];
|
|
6792
|
-
const {
|
|
6793
|
-
productsList
|
|
6794
|
-
} = usePelcro.getStore();
|
|
6795
|
-
return productsList.map(product => {
|
|
6796
|
-
if (renewableProductsIds.includes(product.id)) {
|
|
6797
|
-
const renewablePlans = getRenewablePlansOnly(product);
|
|
6798
|
-
return { ...product,
|
|
6799
|
-
plans: renewablePlans
|
|
6800
|
-
};
|
|
6801
|
-
}
|
|
6802
|
-
}).filter(product => product);
|
|
6803
|
-
|
|
6804
|
-
function getRenewablePlansOnly(product) {
|
|
6805
|
-
var _product$plans$filter, _product$plans;
|
|
6806
|
-
|
|
6807
|
-
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 : [];
|
|
6808
|
-
}
|
|
6809
|
-
}
|
|
6810
6730
|
|
|
6811
6731
|
const resources = {
|
|
6812
6732
|
en: {
|
|
@@ -6831,8 +6751,7 @@ const resources = {
|
|
|
6831
6751
|
dashboard: dashboard_en,
|
|
6832
6752
|
select: select_en,
|
|
6833
6753
|
notification: notification_en,
|
|
6834
|
-
invoiceDetails: invoiceDetails_en
|
|
6835
|
-
subscriptionOptions: subscriptionOptions_en
|
|
6754
|
+
invoiceDetails: invoiceDetails_en
|
|
6836
6755
|
},
|
|
6837
6756
|
fr: {
|
|
6838
6757
|
common: common_fr,
|
|
@@ -6856,8 +6775,7 @@ const resources = {
|
|
|
6856
6775
|
dashboard: dashboard_fr,
|
|
6857
6776
|
select: select_fr,
|
|
6858
6777
|
notification: notification_fr,
|
|
6859
|
-
invoiceDetails: invoiceDetails_fr
|
|
6860
|
-
subscriptionOptions: subscriptionOptions_fr
|
|
6778
|
+
invoiceDetails: invoiceDetails_fr
|
|
6861
6779
|
}
|
|
6862
6780
|
}; // set UI language to the page language or default to the language in site settings
|
|
6863
6781
|
|
|
@@ -7146,10 +7064,10 @@ class SaveToMetadataButtonClass {
|
|
|
7146
7064
|
|
|
7147
7065
|
const saveToMetadataButton = new SaveToMetadataButtonClass();
|
|
7148
7066
|
|
|
7149
|
-
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}}
|
|
7067
|
+
let e={data:""},t$1=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$1(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}}
|
|
7150
7068
|
|
|
7151
|
-
function _extends$
|
|
7152
|
-
_extends$
|
|
7069
|
+
function _extends$z() {
|
|
7070
|
+
_extends$z = Object.assign || function (target) {
|
|
7153
7071
|
for (var i = 1; i < arguments.length; i++) {
|
|
7154
7072
|
var source = arguments[i];
|
|
7155
7073
|
|
|
@@ -7163,7 +7081,7 @@ function _extends$A() {
|
|
|
7163
7081
|
return target;
|
|
7164
7082
|
};
|
|
7165
7083
|
|
|
7166
|
-
return _extends$
|
|
7084
|
+
return _extends$z.apply(this, arguments);
|
|
7167
7085
|
}
|
|
7168
7086
|
|
|
7169
7087
|
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
@@ -7253,7 +7171,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
|
|
|
7253
7171
|
var reducer = function reducer(state, action) {
|
|
7254
7172
|
switch (action.type) {
|
|
7255
7173
|
case ActionType.ADD_TOAST:
|
|
7256
|
-
return _extends$
|
|
7174
|
+
return _extends$z({}, state, {
|
|
7257
7175
|
toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
|
|
7258
7176
|
});
|
|
7259
7177
|
|
|
@@ -7263,9 +7181,9 @@ var reducer = function reducer(state, action) {
|
|
|
7263
7181
|
clearFromRemoveQueue(action.toast.id);
|
|
7264
7182
|
}
|
|
7265
7183
|
|
|
7266
|
-
return _extends$
|
|
7184
|
+
return _extends$z({}, state, {
|
|
7267
7185
|
toasts: state.toasts.map(function (t) {
|
|
7268
|
-
return t.id === action.toast.id ? _extends$
|
|
7186
|
+
return t.id === action.toast.id ? _extends$z({}, t, action.toast) : t;
|
|
7269
7187
|
})
|
|
7270
7188
|
});
|
|
7271
7189
|
|
|
@@ -7292,9 +7210,9 @@ var reducer = function reducer(state, action) {
|
|
|
7292
7210
|
});
|
|
7293
7211
|
}
|
|
7294
7212
|
|
|
7295
|
-
return _extends$
|
|
7213
|
+
return _extends$z({}, state, {
|
|
7296
7214
|
toasts: state.toasts.map(function (t) {
|
|
7297
|
-
return t.id === toastId || toastId === undefined ? _extends$
|
|
7215
|
+
return t.id === toastId || toastId === undefined ? _extends$z({}, t, {
|
|
7298
7216
|
visible: false
|
|
7299
7217
|
}) : t;
|
|
7300
7218
|
})
|
|
@@ -7302,28 +7220,28 @@ var reducer = function reducer(state, action) {
|
|
|
7302
7220
|
|
|
7303
7221
|
case ActionType.REMOVE_TOAST:
|
|
7304
7222
|
if (action.toastId === undefined) {
|
|
7305
|
-
return _extends$
|
|
7223
|
+
return _extends$z({}, state, {
|
|
7306
7224
|
toasts: []
|
|
7307
7225
|
});
|
|
7308
7226
|
}
|
|
7309
7227
|
|
|
7310
|
-
return _extends$
|
|
7228
|
+
return _extends$z({}, state, {
|
|
7311
7229
|
toasts: state.toasts.filter(function (t) {
|
|
7312
7230
|
return t.id !== action.toastId;
|
|
7313
7231
|
})
|
|
7314
7232
|
});
|
|
7315
7233
|
|
|
7316
7234
|
case ActionType.START_PAUSE:
|
|
7317
|
-
return _extends$
|
|
7235
|
+
return _extends$z({}, state, {
|
|
7318
7236
|
pausedAt: action.time
|
|
7319
7237
|
});
|
|
7320
7238
|
|
|
7321
7239
|
case ActionType.END_PAUSE:
|
|
7322
7240
|
var diff = action.time - (state.pausedAt || 0);
|
|
7323
|
-
return _extends$
|
|
7241
|
+
return _extends$z({}, state, {
|
|
7324
7242
|
pausedAt: undefined,
|
|
7325
7243
|
toasts: state.toasts.map(function (t) {
|
|
7326
|
-
return _extends$
|
|
7244
|
+
return _extends$z({}, t, {
|
|
7327
7245
|
pauseDuration: t.pauseDuration + diff
|
|
7328
7246
|
});
|
|
7329
7247
|
})
|
|
@@ -7370,12 +7288,12 @@ var useStore = function useStore(toastOptions) {
|
|
|
7370
7288
|
var mergedToasts = state.toasts.map(function (t) {
|
|
7371
7289
|
var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
|
|
7372
7290
|
|
|
7373
|
-
return _extends$
|
|
7291
|
+
return _extends$z({}, toastOptions, toastOptions[t.type], t, {
|
|
7374
7292
|
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],
|
|
7375
|
-
style: _extends$
|
|
7293
|
+
style: _extends$z({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
|
|
7376
7294
|
});
|
|
7377
7295
|
});
|
|
7378
|
-
return _extends$
|
|
7296
|
+
return _extends$z({}, state, {
|
|
7379
7297
|
toasts: mergedToasts
|
|
7380
7298
|
});
|
|
7381
7299
|
};
|
|
@@ -7385,7 +7303,7 @@ var createToast = function createToast(message, type, opts) {
|
|
|
7385
7303
|
type = 'blank';
|
|
7386
7304
|
}
|
|
7387
7305
|
|
|
7388
|
-
return _extends$
|
|
7306
|
+
return _extends$z({
|
|
7389
7307
|
createdAt: Date.now(),
|
|
7390
7308
|
visible: true,
|
|
7391
7309
|
type: type,
|
|
@@ -7435,14 +7353,14 @@ toast.remove = function (toastId) {
|
|
|
7435
7353
|
};
|
|
7436
7354
|
|
|
7437
7355
|
toast.promise = function (promise, msgs, opts) {
|
|
7438
|
-
var id = toast.loading(msgs.loading, _extends$
|
|
7356
|
+
var id = toast.loading(msgs.loading, _extends$z({}, opts, opts == null ? void 0 : opts.loading));
|
|
7439
7357
|
promise.then(function (p) {
|
|
7440
|
-
toast.success(resolveValue(msgs.success, p), _extends$
|
|
7358
|
+
toast.success(resolveValue(msgs.success, p), _extends$z({
|
|
7441
7359
|
id: id
|
|
7442
7360
|
}, opts, opts == null ? void 0 : opts.success));
|
|
7443
7361
|
return p;
|
|
7444
7362
|
})["catch"](function (e) {
|
|
7445
|
-
toast.error(resolveValue(msgs.error, e), _extends$
|
|
7363
|
+
toast.error(resolveValue(msgs.error, e), _extends$z({
|
|
7446
7364
|
id: id
|
|
7447
7365
|
}, opts, opts == null ? void 0 : opts.error));
|
|
7448
7366
|
});
|
|
@@ -7781,7 +7699,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
|
|
|
7781
7699
|
var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
7782
7700
|
return createElement(ToastBarBase, {
|
|
7783
7701
|
className: toast.className,
|
|
7784
|
-
style: _extends$
|
|
7702
|
+
style: _extends$z({}, animationStyle, style, toast.style)
|
|
7785
7703
|
}, typeof children === 'function' ? children({
|
|
7786
7704
|
icon: icon,
|
|
7787
7705
|
message: message
|
|
@@ -7811,7 +7729,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
|
|
|
7811
7729
|
} : position.includes('right') ? {
|
|
7812
7730
|
justifyContent: 'flex-end'
|
|
7813
7731
|
} : {};
|
|
7814
|
-
return _extends$
|
|
7732
|
+
return _extends$z({
|
|
7815
7733
|
left: 0,
|
|
7816
7734
|
right: 0,
|
|
7817
7735
|
display: 'flex',
|
|
@@ -7838,7 +7756,7 @@ var Toaster = function Toaster(_ref) {
|
|
|
7838
7756
|
handlers = _useToaster.handlers;
|
|
7839
7757
|
|
|
7840
7758
|
return createElement("div", {
|
|
7841
|
-
style: _extends$
|
|
7759
|
+
style: _extends$z({
|
|
7842
7760
|
position: 'fixed',
|
|
7843
7761
|
zIndex: 9999,
|
|
7844
7762
|
top: DEFAULT_OFFSET,
|
|
@@ -7873,82 +7791,82 @@ var Toaster = function Toaster(_ref) {
|
|
|
7873
7791
|
}));
|
|
7874
7792
|
};
|
|
7875
7793
|
|
|
7876
|
-
var _path$
|
|
7794
|
+
var _path$w;
|
|
7877
7795
|
|
|
7878
|
-
function _extends$
|
|
7796
|
+
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); }
|
|
7879
7797
|
|
|
7880
7798
|
function SvgCheckSolid(props) {
|
|
7881
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7799
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
7882
7800
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7883
7801
|
className: "h-5 w-5",
|
|
7884
7802
|
viewBox: "0 0 20 20",
|
|
7885
7803
|
fill: "currentColor"
|
|
7886
|
-
}, props), _path$
|
|
7804
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
|
|
7887
7805
|
fillRule: "evenodd",
|
|
7888
7806
|
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",
|
|
7889
7807
|
clipRule: "evenodd"
|
|
7890
7808
|
})));
|
|
7891
7809
|
}
|
|
7892
7810
|
|
|
7893
|
-
var _path$
|
|
7811
|
+
var _path$v;
|
|
7894
7812
|
|
|
7895
|
-
function _extends$
|
|
7813
|
+
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); }
|
|
7896
7814
|
|
|
7897
7815
|
function SvgXIcon(props) {
|
|
7898
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7816
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
7899
7817
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7900
7818
|
viewBox: "0 0 20 20",
|
|
7901
7819
|
fill: "currentColor"
|
|
7902
|
-
}, props), _path$
|
|
7820
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
7903
7821
|
fill: "evenodd",
|
|
7904
7822
|
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",
|
|
7905
7823
|
clipRule: "evenodd"
|
|
7906
7824
|
})));
|
|
7907
7825
|
}
|
|
7908
7826
|
|
|
7909
|
-
var _path$
|
|
7827
|
+
var _path$u;
|
|
7910
7828
|
|
|
7911
|
-
function _extends$
|
|
7829
|
+
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); }
|
|
7912
7830
|
|
|
7913
7831
|
function SvgXIconSolid(props) {
|
|
7914
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7832
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
7915
7833
|
className: "plc-w-4 plc-h-4",
|
|
7916
7834
|
fill: "currentColor",
|
|
7917
7835
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7918
7836
|
viewBox: "0 0 100 100"
|
|
7919
|
-
}, props), _path$
|
|
7837
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
7920
7838
|
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"
|
|
7921
7839
|
})));
|
|
7922
7840
|
}
|
|
7923
7841
|
|
|
7924
|
-
var _path$
|
|
7842
|
+
var _path$t;
|
|
7925
7843
|
|
|
7926
|
-
function _extends$
|
|
7844
|
+
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); }
|
|
7927
7845
|
|
|
7928
7846
|
function SvgExclamation(props) {
|
|
7929
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7847
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
7930
7848
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
7931
7849
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7932
7850
|
viewBox: "0 0 20 20",
|
|
7933
7851
|
fill: "currentColor"
|
|
7934
|
-
}, props), _path$
|
|
7852
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
7935
7853
|
fillRule: "evenodd",
|
|
7936
7854
|
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",
|
|
7937
7855
|
clipRule: "evenodd"
|
|
7938
7856
|
})));
|
|
7939
7857
|
}
|
|
7940
7858
|
|
|
7941
|
-
var _path$
|
|
7859
|
+
var _path$s, _path2$4;
|
|
7942
7860
|
|
|
7943
|
-
function _extends$
|
|
7861
|
+
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); }
|
|
7944
7862
|
|
|
7945
7863
|
function SvgSpinner(props) {
|
|
7946
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7864
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
7947
7865
|
className: "plc-animate-spin",
|
|
7948
7866
|
viewBox: "0 0 24 24",
|
|
7949
7867
|
fill: "currentColor",
|
|
7950
7868
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7951
|
-
}, props), _path$
|
|
7869
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
|
|
7952
7870
|
opacity: 0.2,
|
|
7953
7871
|
fill: "evenodd",
|
|
7954
7872
|
clipRule: "evenodd",
|
|
@@ -8238,9 +8156,7 @@ const init$1 = () => {
|
|
|
8238
8156
|
return switchToAddressView();
|
|
8239
8157
|
});
|
|
8240
8158
|
} else {
|
|
8241
|
-
pelcroSubscribeButtonsByClass[j].addEventListener("click", () =>
|
|
8242
|
-
return switchView("subscription-options");
|
|
8243
|
-
});
|
|
8159
|
+
pelcroSubscribeButtonsByClass[j].addEventListener("click", () => switchView("plan-select"));
|
|
8244
8160
|
}
|
|
8245
8161
|
}
|
|
8246
8162
|
}
|
|
@@ -8402,8 +8318,7 @@ function Link({
|
|
|
8402
8318
|
const init = () => {
|
|
8403
8319
|
const {
|
|
8404
8320
|
switchView,
|
|
8405
|
-
set
|
|
8406
|
-
setProductsList
|
|
8321
|
+
set
|
|
8407
8322
|
} = usePelcro.getStore();
|
|
8408
8323
|
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
8409
8324
|
|
|
@@ -8454,8 +8369,7 @@ const init = () => {
|
|
|
8454
8369
|
}
|
|
8455
8370
|
|
|
8456
8371
|
notify.dismiss(NOTIFICATION_ID);
|
|
8457
|
-
|
|
8458
|
-
switchView("plan-select");
|
|
8372
|
+
switchView("_plan-select-entitlements");
|
|
8459
8373
|
}
|
|
8460
8374
|
}, "Subscribe"), "now to get full page access.")), {
|
|
8461
8375
|
className: "pelcro-notification-entitlement",
|
|
@@ -8707,17 +8621,21 @@ const getErrorMessages = error => {
|
|
|
8707
8621
|
return error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.error) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2.message;
|
|
8708
8622
|
}
|
|
8709
8623
|
|
|
8710
|
-
if (error !== null && error !== void 0 && error.
|
|
8711
|
-
|
|
8712
|
-
}
|
|
8624
|
+
if (error !== null && error !== void 0 && (_error$response5 = error.response) !== null && _error$response5 !== void 0 && (_error$response5$data = _error$response5.data) !== null && _error$response5$data !== void 0 && _error$response5$data.errors) {
|
|
8625
|
+
var _error$response6, _error$response6$data;
|
|
8713
8626
|
|
|
8714
|
-
|
|
8627
|
+
const errorMessages = []; // enumerable error (ex: validation errors)
|
|
8715
8628
|
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8629
|
+
Object.values(error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : _error$response6$data.errors).forEach(([errorMessage]) => {
|
|
8630
|
+
errorMessages.push(errorMessage);
|
|
8631
|
+
}); // convert to multiline string
|
|
8719
8632
|
|
|
8720
|
-
|
|
8633
|
+
return errorMessages.join("\n");
|
|
8634
|
+
}
|
|
8635
|
+
|
|
8636
|
+
if (error !== null && error !== void 0 && error.message) {
|
|
8637
|
+
return error.message;
|
|
8638
|
+
}
|
|
8721
8639
|
};
|
|
8722
8640
|
/**
|
|
8723
8641
|
* Executes function after a wait time of inactivity
|
|
@@ -9290,7 +9208,7 @@ const PelcroModalController = ({
|
|
|
9290
9208
|
type
|
|
9291
9209
|
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "dashboard-open"), React__default.Children.map(children, child => child).find(({
|
|
9292
9210
|
type
|
|
9293
|
-
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-
|
|
9211
|
+
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-entitlements" && React__default.Children.map(children, child => child).find(({
|
|
9294
9212
|
type
|
|
9295
9213
|
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "plan-select"), React__default.Children.map(children, child => child).find(({
|
|
9296
9214
|
type
|
|
@@ -9571,10 +9489,8 @@ const LOAD_PAYMENT_METHODS = "LOAD_PAYMENT_METHODS";
|
|
|
9571
9489
|
const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
|
|
9572
9490
|
const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
|
|
9573
9491
|
const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
|
|
9574
|
-
const SWITCH_TO_RENEW = "SWITCH_TO_RENEW";
|
|
9575
|
-
const SWITCH_TO_NEW = "SWITCH_TO_NEW";
|
|
9576
9492
|
|
|
9577
|
-
const initialState$
|
|
9493
|
+
const initialState$h = {
|
|
9578
9494
|
email: "",
|
|
9579
9495
|
password: "",
|
|
9580
9496
|
emailError: null,
|
|
@@ -9585,10 +9501,10 @@ const initialState$i = {
|
|
|
9585
9501
|
content: ""
|
|
9586
9502
|
}
|
|
9587
9503
|
};
|
|
9588
|
-
const store$
|
|
9504
|
+
const store$h = /*#__PURE__*/createContext(initialState$h);
|
|
9589
9505
|
const {
|
|
9590
|
-
Provider: Provider$
|
|
9591
|
-
} = store$
|
|
9506
|
+
Provider: Provider$h
|
|
9507
|
+
} = store$h;
|
|
9592
9508
|
|
|
9593
9509
|
const LoginContainer = ({
|
|
9594
9510
|
style,
|
|
@@ -9695,7 +9611,7 @@ const LoginContainer = ({
|
|
|
9695
9611
|
});
|
|
9696
9612
|
|
|
9697
9613
|
case RESET_LOGIN_FORM:
|
|
9698
|
-
return initialState$
|
|
9614
|
+
return initialState$h;
|
|
9699
9615
|
|
|
9700
9616
|
case DISABLE_LOGIN_BUTTON:
|
|
9701
9617
|
return lib_7({ ...state,
|
|
@@ -9713,12 +9629,12 @@ const LoginContainer = ({
|
|
|
9713
9629
|
default:
|
|
9714
9630
|
return state;
|
|
9715
9631
|
}
|
|
9716
|
-
}, initialState$
|
|
9632
|
+
}, initialState$h);
|
|
9717
9633
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
9718
9634
|
style: { ...style
|
|
9719
9635
|
},
|
|
9720
9636
|
className: `pelcro-container pelcro-login-container ${className}`
|
|
9721
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
9637
|
+
}, /*#__PURE__*/React__default.createElement(Provider$h, {
|
|
9722
9638
|
value: {
|
|
9723
9639
|
state,
|
|
9724
9640
|
dispatch
|
|
@@ -9726,12 +9642,12 @@ const LoginContainer = ({
|
|
|
9726
9642
|
}, children.length ? children.map((child, i) => {
|
|
9727
9643
|
if (child) {
|
|
9728
9644
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
9729
|
-
store: store$
|
|
9645
|
+
store: store$h,
|
|
9730
9646
|
key: i
|
|
9731
9647
|
});
|
|
9732
9648
|
}
|
|
9733
9649
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
9734
|
-
store: store$
|
|
9650
|
+
store: store$h
|
|
9735
9651
|
})));
|
|
9736
9652
|
};
|
|
9737
9653
|
|
|
@@ -9925,7 +9841,7 @@ function ConfirmPassword({
|
|
|
9925
9841
|
} else if (finishedTyping) {
|
|
9926
9842
|
dispatch({
|
|
9927
9843
|
type: SET_CONFIRM_PASSWORD_ERROR,
|
|
9928
|
-
payload: "
|
|
9844
|
+
payload: t("validation.confirmPassword")
|
|
9929
9845
|
});
|
|
9930
9846
|
}
|
|
9931
9847
|
}, [dispatch, password, finishedTyping]);
|
|
@@ -9976,7 +9892,7 @@ const LoginButton = ({
|
|
|
9976
9892
|
buttonDisabled
|
|
9977
9893
|
},
|
|
9978
9894
|
dispatch
|
|
9979
|
-
} = useContext(store$
|
|
9895
|
+
} = useContext(store$h);
|
|
9980
9896
|
const {
|
|
9981
9897
|
t
|
|
9982
9898
|
} = useTranslation("login");
|
|
@@ -9997,23 +9913,23 @@ const LoginButton = ({
|
|
|
9997
9913
|
};
|
|
9998
9914
|
|
|
9999
9915
|
const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
10000
|
-
store: store$
|
|
9916
|
+
store: store$h
|
|
10001
9917
|
}, props));
|
|
10002
9918
|
|
|
10003
9919
|
const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
10004
|
-
store: store$
|
|
9920
|
+
store: store$h
|
|
10005
9921
|
}, props));
|
|
10006
9922
|
|
|
10007
|
-
var _path$
|
|
9923
|
+
var _path$r;
|
|
10008
9924
|
|
|
10009
|
-
function _extends$
|
|
9925
|
+
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); }
|
|
10010
9926
|
|
|
10011
9927
|
function SvgCheck(props) {
|
|
10012
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
9928
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
10013
9929
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10014
9930
|
fill: "currentColor",
|
|
10015
9931
|
viewBox: "0 0 20 20"
|
|
10016
|
-
}, props), _path$
|
|
9932
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
10017
9933
|
fillRule: "evenodd",
|
|
10018
9934
|
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",
|
|
10019
9935
|
clipRule: "evenodd"
|
|
@@ -10078,7 +9994,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
|
10078
9994
|
var FacebookLogin = unwrapExports(facebookLoginRenderProps);
|
|
10079
9995
|
facebookLoginRenderProps.FacebookLogin;
|
|
10080
9996
|
|
|
10081
|
-
const initialState$
|
|
9997
|
+
const initialState$g = {
|
|
10082
9998
|
email: "",
|
|
10083
9999
|
password: "",
|
|
10084
10000
|
emailError: null,
|
|
@@ -10095,10 +10011,10 @@ const initialState$h = {
|
|
|
10095
10011
|
content: ""
|
|
10096
10012
|
}
|
|
10097
10013
|
};
|
|
10098
|
-
const store$
|
|
10014
|
+
const store$g = /*#__PURE__*/createContext(initialState$g);
|
|
10099
10015
|
const {
|
|
10100
|
-
Provider: Provider$
|
|
10101
|
-
} = store$
|
|
10016
|
+
Provider: Provider$g
|
|
10017
|
+
} = store$g;
|
|
10102
10018
|
|
|
10103
10019
|
const RegisterContainer = ({
|
|
10104
10020
|
style,
|
|
@@ -10281,7 +10197,7 @@ const RegisterContainer = ({
|
|
|
10281
10197
|
});
|
|
10282
10198
|
|
|
10283
10199
|
case RESET_LOGIN_FORM:
|
|
10284
|
-
return initialState$
|
|
10200
|
+
return initialState$g;
|
|
10285
10201
|
|
|
10286
10202
|
case DISABLE_REGISTRATION_BUTTON:
|
|
10287
10203
|
return lib_7({ ...state,
|
|
@@ -10299,12 +10215,12 @@ const RegisterContainer = ({
|
|
|
10299
10215
|
default:
|
|
10300
10216
|
return state;
|
|
10301
10217
|
}
|
|
10302
|
-
}, initialState$
|
|
10218
|
+
}, initialState$g);
|
|
10303
10219
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10304
10220
|
style: { ...style
|
|
10305
10221
|
},
|
|
10306
10222
|
className: `pelcro-container pelcro-register-container ${className}`
|
|
10307
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
10223
|
+
}, /*#__PURE__*/React__default.createElement(Provider$g, {
|
|
10308
10224
|
value: {
|
|
10309
10225
|
state,
|
|
10310
10226
|
dispatch
|
|
@@ -10312,12 +10228,12 @@ const RegisterContainer = ({
|
|
|
10312
10228
|
}, children.length ? children.map((child, i) => {
|
|
10313
10229
|
if (child) {
|
|
10314
10230
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
10315
|
-
store: store$
|
|
10231
|
+
store: store$g,
|
|
10316
10232
|
key: i
|
|
10317
10233
|
});
|
|
10318
10234
|
}
|
|
10319
10235
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
10320
|
-
store: store$
|
|
10236
|
+
store: store$g
|
|
10321
10237
|
})));
|
|
10322
10238
|
};
|
|
10323
10239
|
/**
|
|
@@ -10332,15 +10248,15 @@ function hasSecurityTokenEnabled$1() {
|
|
|
10332
10248
|
return hasSecuritySdkLoaded;
|
|
10333
10249
|
}
|
|
10334
10250
|
|
|
10335
|
-
var _path$
|
|
10251
|
+
var _path$q;
|
|
10336
10252
|
|
|
10337
|
-
function _extends$
|
|
10253
|
+
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); }
|
|
10338
10254
|
|
|
10339
10255
|
function SvgFacebookLogo(props) {
|
|
10340
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10256
|
+
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
10341
10257
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10342
10258
|
viewBox: "88.428 12.828 107.543 207.085"
|
|
10343
|
-
}, props), _path$
|
|
10259
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
10344
10260
|
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",
|
|
10345
10261
|
fill: "#3c5a9a"
|
|
10346
10262
|
})));
|
|
@@ -10357,10 +10273,10 @@ const FacebookLoginButton = ({
|
|
|
10357
10273
|
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;
|
|
10358
10274
|
const {
|
|
10359
10275
|
dispatch: loginDispatch
|
|
10360
|
-
} = useContext(store$
|
|
10276
|
+
} = useContext(store$h);
|
|
10361
10277
|
const {
|
|
10362
10278
|
dispatch: registerDispatch
|
|
10363
|
-
} = useContext(store$
|
|
10279
|
+
} = useContext(store$g);
|
|
10364
10280
|
|
|
10365
10281
|
const onSuccess = facebookUser => {
|
|
10366
10282
|
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
@@ -10413,15 +10329,15 @@ var googleLogin = createCommonjsModule(function (module, exports) {
|
|
|
10413
10329
|
unwrapExports(googleLogin);
|
|
10414
10330
|
var googleLogin_1 = googleLogin.GoogleLogin;
|
|
10415
10331
|
|
|
10416
|
-
var _path$
|
|
10332
|
+
var _path$p, _path2$3, _path3$1, _path4;
|
|
10417
10333
|
|
|
10418
|
-
function _extends$
|
|
10334
|
+
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); }
|
|
10419
10335
|
|
|
10420
10336
|
function SvgGoogleLogo(props) {
|
|
10421
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10337
|
+
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
10422
10338
|
viewBox: "0 0 24 24",
|
|
10423
10339
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10424
|
-
}, props), _path$
|
|
10340
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
10425
10341
|
fill: "#4285F4",
|
|
10426
10342
|
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"
|
|
10427
10343
|
})), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -10447,10 +10363,10 @@ const GoogleLoginButton = ({
|
|
|
10447
10363
|
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;
|
|
10448
10364
|
const {
|
|
10449
10365
|
dispatch: loginDispatch
|
|
10450
|
-
} = useContext(store$
|
|
10366
|
+
} = useContext(store$h);
|
|
10451
10367
|
const {
|
|
10452
10368
|
dispatch: registerDispatch
|
|
10453
|
-
} = useContext(store$
|
|
10369
|
+
} = useContext(store$g);
|
|
10454
10370
|
|
|
10455
10371
|
const onSuccess = response => {
|
|
10456
10372
|
var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
|
|
@@ -10498,15 +10414,15 @@ const GoogleLoginButton = ({
|
|
|
10498
10414
|
}) : null;
|
|
10499
10415
|
};
|
|
10500
10416
|
|
|
10501
|
-
var _path$
|
|
10417
|
+
var _path$o;
|
|
10502
10418
|
|
|
10503
|
-
function _extends$
|
|
10419
|
+
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); }
|
|
10504
10420
|
|
|
10505
10421
|
function SvgAuth0Logo(props) {
|
|
10506
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10422
|
+
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
10507
10423
|
viewBox: "0 0 256 285",
|
|
10508
10424
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10509
|
-
}, props), _path$
|
|
10425
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
10510
10426
|
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"
|
|
10511
10427
|
})));
|
|
10512
10428
|
}
|
|
@@ -10546,10 +10462,10 @@ const Auth0LoginButton = ({
|
|
|
10546
10462
|
}, [auth0Enabled, auth0Loaded]);
|
|
10547
10463
|
const {
|
|
10548
10464
|
dispatch: loginDispatch
|
|
10549
|
-
} = useContext(store$
|
|
10465
|
+
} = useContext(store$h);
|
|
10550
10466
|
const {
|
|
10551
10467
|
dispatch: registerDispatch
|
|
10552
|
-
} = useContext(store$
|
|
10468
|
+
} = useContext(store$g);
|
|
10553
10469
|
|
|
10554
10470
|
function handleClick() {
|
|
10555
10471
|
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
@@ -10682,15 +10598,15 @@ function LoginView(props) {
|
|
|
10682
10598
|
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
|
|
10683
10599
|
}
|
|
10684
10600
|
|
|
10685
|
-
var _path$
|
|
10601
|
+
var _path$n, _path2$2, _path3;
|
|
10686
10602
|
|
|
10687
|
-
function _extends$
|
|
10603
|
+
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); }
|
|
10688
10604
|
|
|
10689
10605
|
function SvgPelcroAuthorship(props) {
|
|
10690
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10606
|
+
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
10691
10607
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10692
10608
|
viewBox: "0 -80.652 497.072 179.991"
|
|
10693
|
-
}, props), _path$
|
|
10609
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
10694
10610
|
fill: "none",
|
|
10695
10611
|
stroke: "#4a4a4a",
|
|
10696
10612
|
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"
|
|
@@ -10837,11 +10753,11 @@ function LoginModal({
|
|
|
10837
10753
|
LoginModal.viewId = "login";
|
|
10838
10754
|
|
|
10839
10755
|
const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
10840
|
-
store: store$
|
|
10756
|
+
store: store$g
|
|
10841
10757
|
}, props));
|
|
10842
10758
|
|
|
10843
10759
|
const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
10844
|
-
store: store$
|
|
10760
|
+
store: store$g
|
|
10845
10761
|
}, props));
|
|
10846
10762
|
|
|
10847
10763
|
const RegisterButton = ({
|
|
@@ -10861,7 +10777,7 @@ const RegisterButton = ({
|
|
|
10861
10777
|
buttonDisabled
|
|
10862
10778
|
},
|
|
10863
10779
|
dispatch
|
|
10864
|
-
} = useContext(store$
|
|
10780
|
+
} = useContext(store$g);
|
|
10865
10781
|
const {
|
|
10866
10782
|
t
|
|
10867
10783
|
} = useTranslation("register");
|
|
@@ -10999,7 +10915,7 @@ function FirstName({
|
|
|
10999
10915
|
}
|
|
11000
10916
|
|
|
11001
10917
|
const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
11002
|
-
store: store$
|
|
10918
|
+
store: store$g
|
|
11003
10919
|
}, props));
|
|
11004
10920
|
|
|
11005
10921
|
function LastName({
|
|
@@ -11030,7 +10946,7 @@ function LastName({
|
|
|
11030
10946
|
}
|
|
11031
10947
|
|
|
11032
10948
|
const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
11033
|
-
store: store$
|
|
10949
|
+
store: store$g
|
|
11034
10950
|
}, props));
|
|
11035
10951
|
|
|
11036
10952
|
/**
|
|
@@ -11154,7 +11070,7 @@ function TextInput({
|
|
|
11154
11070
|
|
|
11155
11071
|
const RegisterTextInput = props => {
|
|
11156
11072
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
11157
|
-
store: store$
|
|
11073
|
+
store: store$g
|
|
11158
11074
|
}));
|
|
11159
11075
|
};
|
|
11160
11076
|
|
|
@@ -11301,7 +11217,6 @@ function SelectModalWithHook(props) {
|
|
|
11301
11217
|
(_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
|
|
11302
11218
|
}, []);
|
|
11303
11219
|
const {
|
|
11304
|
-
productsList,
|
|
11305
11220
|
isGift,
|
|
11306
11221
|
plan,
|
|
11307
11222
|
product,
|
|
@@ -11311,12 +11226,11 @@ function SelectModalWithHook(props) {
|
|
|
11311
11226
|
view,
|
|
11312
11227
|
set
|
|
11313
11228
|
} = usePelcro();
|
|
11314
|
-
const
|
|
11229
|
+
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
11230
|
+
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
11315
11231
|
return /*#__PURE__*/React__default.createElement(SelectModalWithTrans, {
|
|
11316
|
-
productsList: productsList,
|
|
11317
11232
|
isGift: isGift,
|
|
11318
|
-
disableGifting: isRenewingGift
|
|
11319
|
-
isRenewingSub: isRenewingSub,
|
|
11233
|
+
disableGifting: isRenewingGift,
|
|
11320
11234
|
plan: plan,
|
|
11321
11235
|
product: product,
|
|
11322
11236
|
onClose: () => {
|
|
@@ -11330,10 +11244,8 @@ function SelectModalWithHook(props) {
|
|
|
11330
11244
|
plan,
|
|
11331
11245
|
isGift
|
|
11332
11246
|
}),
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
}),
|
|
11336
|
-
setView: switchView
|
|
11247
|
+
setView: switchView,
|
|
11248
|
+
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
11337
11249
|
});
|
|
11338
11250
|
}
|
|
11339
11251
|
SelectModalWithHook.viewId = "plan-select";
|
|
@@ -11365,10 +11277,10 @@ class SelectModal extends Component {
|
|
|
11365
11277
|
});
|
|
11366
11278
|
}
|
|
11367
11279
|
|
|
11368
|
-
if (this.
|
|
11280
|
+
if (this.state.productList.length === 1) {
|
|
11369
11281
|
this.setState({
|
|
11370
|
-
product: this.
|
|
11371
|
-
planList: this.
|
|
11282
|
+
product: this.state.productList[0],
|
|
11283
|
+
planList: this.state.productList[0].plans,
|
|
11372
11284
|
mode: "plan"
|
|
11373
11285
|
});
|
|
11374
11286
|
}
|
|
@@ -11385,7 +11297,7 @@ class SelectModal extends Component {
|
|
|
11385
11297
|
});
|
|
11386
11298
|
|
|
11387
11299
|
_defineProperty$3(this, "onProductChange", e => {
|
|
11388
|
-
const product =
|
|
11300
|
+
const product = window.Pelcro.product.list()[e.target.selectedIndex];
|
|
11389
11301
|
this.setState({
|
|
11390
11302
|
product: product,
|
|
11391
11303
|
plan: product.plans[0]
|
|
@@ -11451,7 +11363,7 @@ class SelectModal extends Component {
|
|
|
11451
11363
|
|
|
11452
11364
|
_defineProperty$3(this, "renderProducts", () => {
|
|
11453
11365
|
const userDidSelectProduct = Boolean(this.state.mode === "plan");
|
|
11454
|
-
const productsToShow = userDidSelectProduct ? [this.state.product] : this.
|
|
11366
|
+
const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
|
|
11455
11367
|
return productsToShow.map((product, index) => {
|
|
11456
11368
|
return this.renderOneProduct(product, index);
|
|
11457
11369
|
});
|
|
@@ -11464,7 +11376,7 @@ class SelectModal extends Component {
|
|
|
11464
11376
|
return this.renderOneProduct(this.state.product);
|
|
11465
11377
|
}
|
|
11466
11378
|
|
|
11467
|
-
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(
|
|
11379
|
+
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(); // Render normal products if there are no available matching products
|
|
11468
11380
|
|
|
11469
11381
|
if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
|
|
11470
11382
|
return this.renderProducts();
|
|
@@ -11480,7 +11392,10 @@ class SelectModal extends Component {
|
|
|
11480
11392
|
className: "plc-text-sm plc-font-semibold"
|
|
11481
11393
|
}, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
|
|
11482
11394
|
|
|
11483
|
-
function productsWithMatchedTaggedFirst(
|
|
11395
|
+
function productsWithMatchedTaggedFirst() {
|
|
11396
|
+
var _window$Pelcro$produc;
|
|
11397
|
+
|
|
11398
|
+
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
11484
11399
|
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
11485
11400
|
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
11486
11401
|
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
@@ -11514,7 +11429,7 @@ class SelectModal extends Component {
|
|
|
11514
11429
|
_defineProperty$3(this, "selectProduct", e => {
|
|
11515
11430
|
const id = e.target.dataset.key;
|
|
11516
11431
|
|
|
11517
|
-
for (const product of this.
|
|
11432
|
+
for (const product of this.state.productList) {
|
|
11518
11433
|
if (+product.id === +id) {
|
|
11519
11434
|
var _this$state$plan;
|
|
11520
11435
|
|
|
@@ -11567,14 +11482,6 @@ class SelectModal extends Component {
|
|
|
11567
11482
|
|
|
11568
11483
|
_defineProperty$3(this, "submitOption", () => {
|
|
11569
11484
|
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
11570
|
-
|
|
11571
|
-
if (this.props.isRenewingSub) {
|
|
11572
|
-
var _matchingSub$id;
|
|
11573
|
-
|
|
11574
|
-
const matchingSub = window.Pelcro.subscription.list().find(sub => sub.plan.id === this.state.plan.id && sub.status === "active" && sub.cancel_at_period_end === 1);
|
|
11575
|
-
this.props.setSubscriptionIdToRenew((_matchingSub$id = matchingSub === null || matchingSub === void 0 ? void 0 : matchingSub.id) !== null && _matchingSub$id !== void 0 ? _matchingSub$id : null);
|
|
11576
|
-
}
|
|
11577
|
-
|
|
11578
11485
|
const {
|
|
11579
11486
|
product,
|
|
11580
11487
|
isGift
|
|
@@ -11612,7 +11519,8 @@ class SelectModal extends Component {
|
|
|
11612
11519
|
plan: {},
|
|
11613
11520
|
isGift: props.isGift,
|
|
11614
11521
|
disabled: true,
|
|
11615
|
-
mode: "product"
|
|
11522
|
+
mode: "product",
|
|
11523
|
+
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
11616
11524
|
};
|
|
11617
11525
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
11618
11526
|
this.locale = this.props.t;
|
|
@@ -11620,7 +11528,7 @@ class SelectModal extends Component {
|
|
|
11620
11528
|
}
|
|
11621
11529
|
|
|
11622
11530
|
render() {
|
|
11623
|
-
var
|
|
11531
|
+
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
11624
11532
|
|
|
11625
11533
|
const {
|
|
11626
11534
|
disableGifting
|
|
@@ -11654,7 +11562,7 @@ class SelectModal extends Component {
|
|
|
11654
11562
|
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
11655
11563
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
11656
11564
|
className: "plc-text-2xl plc-font-semibold"
|
|
11657
|
-
}, this.product && this.product.paywall.select_title || ((
|
|
11565
|
+
}, 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", {
|
|
11658
11566
|
className: "pelcro-select-products-wrapper"
|
|
11659
11567
|
}, (_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", {
|
|
11660
11568
|
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
@@ -13506,7 +13414,7 @@ class VantivGateway {
|
|
|
13506
13414
|
|
|
13507
13415
|
/** @type {PaymentStateType} */
|
|
13508
13416
|
|
|
13509
|
-
const initialState$
|
|
13417
|
+
const initialState$f = {
|
|
13510
13418
|
disableSubmit: false,
|
|
13511
13419
|
isLoading: false,
|
|
13512
13420
|
disableCouponButton: false,
|
|
@@ -13525,10 +13433,10 @@ const initialState$g = {
|
|
|
13525
13433
|
content: ""
|
|
13526
13434
|
}
|
|
13527
13435
|
};
|
|
13528
|
-
const store$
|
|
13436
|
+
const store$f = /*#__PURE__*/createContext(initialState$f);
|
|
13529
13437
|
const {
|
|
13530
|
-
Provider: Provider$
|
|
13531
|
-
} = store$
|
|
13438
|
+
Provider: Provider$f
|
|
13439
|
+
} = store$f;
|
|
13532
13440
|
|
|
13533
13441
|
const PaymentMethodContainerWithoutStripe = ({
|
|
13534
13442
|
style,
|
|
@@ -14780,21 +14688,21 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
14780
14688
|
default:
|
|
14781
14689
|
return state;
|
|
14782
14690
|
}
|
|
14783
|
-
}, initialState$
|
|
14691
|
+
}, initialState$f);
|
|
14784
14692
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14785
14693
|
style: { ...style
|
|
14786
14694
|
},
|
|
14787
14695
|
className: `pelcro-container pelcro-payment-container ${className}`
|
|
14788
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
14696
|
+
}, /*#__PURE__*/React__default.createElement(Provider$f, {
|
|
14789
14697
|
value: {
|
|
14790
14698
|
state,
|
|
14791
14699
|
dispatch
|
|
14792
14700
|
}
|
|
14793
14701
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
14794
|
-
store: store$
|
|
14702
|
+
store: store$f,
|
|
14795
14703
|
key: i
|
|
14796
14704
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
14797
|
-
store: store$
|
|
14705
|
+
store: store$f
|
|
14798
14706
|
})));
|
|
14799
14707
|
};
|
|
14800
14708
|
|
|
@@ -14816,7 +14724,7 @@ const PaymentMethodContainer = props => {
|
|
|
14816
14724
|
stripeAccount: window.Pelcro.site.read().account_id,
|
|
14817
14725
|
locale: getPageOrDefaultLanguage()
|
|
14818
14726
|
}, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
|
|
14819
|
-
store: store$
|
|
14727
|
+
store: store$f
|
|
14820
14728
|
}, props))));
|
|
14821
14729
|
}
|
|
14822
14730
|
|
|
@@ -14869,7 +14777,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
14869
14777
|
currentPlan,
|
|
14870
14778
|
updatedPrice
|
|
14871
14779
|
}
|
|
14872
|
-
} = useContext(store$
|
|
14780
|
+
} = useContext(store$f);
|
|
14873
14781
|
|
|
14874
14782
|
const updatePaymentRequest = () => {
|
|
14875
14783
|
// Make sure payment request is up to date, eg. user added a coupon code.
|
|
@@ -14945,7 +14853,7 @@ const DiscountedPrice = props => {
|
|
|
14945
14853
|
taxAmount,
|
|
14946
14854
|
percentOff
|
|
14947
14855
|
}
|
|
14948
|
-
} = useContext(store$
|
|
14856
|
+
} = useContext(store$f);
|
|
14949
14857
|
const {
|
|
14950
14858
|
order,
|
|
14951
14859
|
plan
|
|
@@ -14995,7 +14903,7 @@ const SubmitPaymentMethod = ({
|
|
|
14995
14903
|
isLoading,
|
|
14996
14904
|
updatedPrice
|
|
14997
14905
|
}
|
|
14998
|
-
} = useContext(store$
|
|
14906
|
+
} = useContext(store$f);
|
|
14999
14907
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
15000
14908
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
15001
14909
|
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
@@ -15016,17 +14924,17 @@ const SubmitPaymentMethod = ({
|
|
|
15016
14924
|
}, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
|
|
15017
14925
|
};
|
|
15018
14926
|
|
|
15019
|
-
var _path$
|
|
14927
|
+
var _path$m;
|
|
15020
14928
|
|
|
15021
|
-
function _extends$
|
|
14929
|
+
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); }
|
|
15022
14930
|
|
|
15023
14931
|
function SvgArrowLeft(props) {
|
|
15024
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14932
|
+
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
15025
14933
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15026
14934
|
fill: "none",
|
|
15027
14935
|
viewBox: "0 0 24 24",
|
|
15028
14936
|
stroke: "currentColor"
|
|
15029
|
-
}, props), _path$
|
|
14937
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
|
|
15030
14938
|
strokeLinecap: "round",
|
|
15031
14939
|
strokeLinejoin: "round",
|
|
15032
14940
|
strokeWidth: 2,
|
|
@@ -15045,7 +14953,7 @@ const ApplyCouponButton = ({
|
|
|
15045
14953
|
disableCouponButton
|
|
15046
14954
|
},
|
|
15047
14955
|
dispatch
|
|
15048
|
-
} = useContext(store$
|
|
14956
|
+
} = useContext(store$f);
|
|
15049
14957
|
const {
|
|
15050
14958
|
t
|
|
15051
14959
|
} = useTranslation("checkoutForm");
|
|
@@ -15079,7 +14987,7 @@ const CouponCodeField = props => {
|
|
|
15079
14987
|
couponCode,
|
|
15080
14988
|
couponError
|
|
15081
14989
|
}
|
|
15082
|
-
} = useContext(store$
|
|
14990
|
+
} = useContext(store$f);
|
|
15083
14991
|
|
|
15084
14992
|
const onCouponCodeChange = e => {
|
|
15085
14993
|
dispatch({
|
|
@@ -15108,17 +15016,17 @@ const CouponCodeField = props => {
|
|
|
15108
15016
|
}, props));
|
|
15109
15017
|
};
|
|
15110
15018
|
|
|
15111
|
-
var _path$
|
|
15019
|
+
var _path$l;
|
|
15112
15020
|
|
|
15113
|
-
function _extends$
|
|
15021
|
+
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); }
|
|
15114
15022
|
|
|
15115
15023
|
function SvgTicket(props) {
|
|
15116
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
15024
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
15117
15025
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15118
15026
|
fill: "none",
|
|
15119
15027
|
viewBox: "0 0 24 24",
|
|
15120
15028
|
stroke: "currentColor"
|
|
15121
|
-
}, props), _path$
|
|
15029
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
15122
15030
|
strokeLinecap: "round",
|
|
15123
15031
|
strokeLinejoin: "round",
|
|
15124
15032
|
strokeWidth: 2,
|
|
@@ -15135,7 +15043,7 @@ const CouponCode = ({
|
|
|
15135
15043
|
state: {
|
|
15136
15044
|
enableCouponField
|
|
15137
15045
|
}
|
|
15138
|
-
} = useContext(store$
|
|
15046
|
+
} = useContext(store$f);
|
|
15139
15047
|
const {
|
|
15140
15048
|
t
|
|
15141
15049
|
} = useTranslation("checkoutForm");
|
|
@@ -15392,7 +15300,7 @@ const PaypalSubscribeButton = props => {
|
|
|
15392
15300
|
const {
|
|
15393
15301
|
dispatch,
|
|
15394
15302
|
state
|
|
15395
|
-
} = useContext(store$
|
|
15303
|
+
} = useContext(store$f);
|
|
15396
15304
|
const {
|
|
15397
15305
|
product,
|
|
15398
15306
|
plan,
|
|
@@ -15407,7 +15315,7 @@ const PaypalSubscribeButton = props => {
|
|
|
15407
15315
|
const selectedAddress = getAddressById((_props$selectedAddres = props.selectedAddressId) !== null && _props$selectedAddres !== void 0 ? _props$selectedAddres : selectedAddressId); // initialize paypal client, then render paypal button.
|
|
15408
15316
|
|
|
15409
15317
|
const initializePaypal = async () => {
|
|
15410
|
-
var _props$buttonElementI, _props$product$addres, _props$product
|
|
15318
|
+
var _props$buttonElementI, _props$product$addres, _props$product;
|
|
15411
15319
|
|
|
15412
15320
|
const paypalCheckoutInstance = new PaypalClient({
|
|
15413
15321
|
buttonElementID: (_props$buttonElementI = props.buttonElementID) !== null && _props$buttonElementI !== void 0 ? _props$buttonElementI : "pelcro-paypal-button",
|
|
@@ -15417,13 +15325,34 @@ const PaypalSubscribeButton = props => {
|
|
|
15417
15325
|
displayName: props.merchantDisplayName,
|
|
15418
15326
|
locale: props.locale,
|
|
15419
15327
|
billingAgreementDescription: props.billingDescription
|
|
15420
|
-
});
|
|
15328
|
+
});
|
|
15421
15329
|
|
|
15422
|
-
|
|
15330
|
+
const getProduct = () => {
|
|
15331
|
+
if (invoice) {
|
|
15332
|
+
invoice.plan = null;
|
|
15423
15333
|
|
|
15424
|
-
|
|
15425
|
-
|
|
15426
|
-
|
|
15334
|
+
if (invoice.plan) {
|
|
15335
|
+
return invoice.plan;
|
|
15336
|
+
} else {
|
|
15337
|
+
// standalone invoices dont have a plan
|
|
15338
|
+
return {
|
|
15339
|
+
currency: invoice.currency,
|
|
15340
|
+
nickname: `invoice #${invoice.id}`
|
|
15341
|
+
};
|
|
15342
|
+
}
|
|
15343
|
+
} else if (props.plan) {
|
|
15344
|
+
return props.plan;
|
|
15345
|
+
} else {
|
|
15346
|
+
return plan;
|
|
15347
|
+
}
|
|
15348
|
+
}; // Await building paypal instance
|
|
15349
|
+
|
|
15350
|
+
|
|
15351
|
+
await paypalCheckoutInstance.build(); // Create paypal payment
|
|
15352
|
+
|
|
15353
|
+
paypalCheckoutInstance.createPayment({
|
|
15354
|
+
product: getProduct(),
|
|
15355
|
+
amount: updatedPrice,
|
|
15427
15356
|
address: invoice ? null : selectedAddress,
|
|
15428
15357
|
onButtonClick: () => {
|
|
15429
15358
|
dispatch({
|
|
@@ -15478,16 +15407,16 @@ const BankRedirection = () => {
|
|
|
15478
15407
|
}));
|
|
15479
15408
|
};
|
|
15480
15409
|
|
|
15481
|
-
var _path$
|
|
15410
|
+
var _path$k;
|
|
15482
15411
|
|
|
15483
|
-
function _extends$
|
|
15412
|
+
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); }
|
|
15484
15413
|
|
|
15485
15414
|
function SvgLock(props) {
|
|
15486
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
15415
|
+
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
15487
15416
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15488
15417
|
viewBox: "0 0 20 20",
|
|
15489
15418
|
fill: "currentColor"
|
|
15490
|
-
}, props), _path$
|
|
15419
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
|
|
15491
15420
|
fillRule: "evenodd",
|
|
15492
15421
|
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",
|
|
15493
15422
|
clipRule: "evenodd"
|
|
@@ -15504,7 +15433,7 @@ const SelectedPaymentMethod = () => {
|
|
|
15504
15433
|
state: {
|
|
15505
15434
|
isLoading
|
|
15506
15435
|
}
|
|
15507
|
-
} = useContext(store$
|
|
15436
|
+
} = useContext(store$f);
|
|
15508
15437
|
const {
|
|
15509
15438
|
switchView,
|
|
15510
15439
|
selectedPaymentMethodId
|
|
@@ -15546,7 +15475,7 @@ const TaxAmount = () => {
|
|
|
15546
15475
|
state: {
|
|
15547
15476
|
taxAmount
|
|
15548
15477
|
}
|
|
15549
|
-
} = useContext(store$
|
|
15478
|
+
} = useContext(store$f);
|
|
15550
15479
|
const {
|
|
15551
15480
|
plan
|
|
15552
15481
|
} = usePelcro();
|
|
@@ -15710,12 +15639,12 @@ function SubscriptionRenewModal({
|
|
|
15710
15639
|
}
|
|
15711
15640
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
15712
15641
|
|
|
15713
|
-
var _path$
|
|
15642
|
+
var _path$j;
|
|
15714
15643
|
|
|
15715
|
-
function _extends$
|
|
15644
|
+
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); }
|
|
15716
15645
|
|
|
15717
15646
|
function SvgGift(props) {
|
|
15718
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
15647
|
+
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
15719
15648
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
15720
15649
|
fill: "none",
|
|
15721
15650
|
stroke: "currentColor",
|
|
@@ -15724,7 +15653,7 @@ function SvgGift(props) {
|
|
|
15724
15653
|
strokeWidth: 2,
|
|
15725
15654
|
viewBox: "0 0 24 24",
|
|
15726
15655
|
xmlns: "http://www.w3.org/2000/svg"
|
|
15727
|
-
}, props), _path$
|
|
15656
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
15728
15657
|
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"
|
|
15729
15658
|
})));
|
|
15730
15659
|
}
|
|
@@ -16065,7 +15994,7 @@ class DefaultNewsLetter extends Component {
|
|
|
16065
15994
|
|
|
16066
15995
|
const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
|
|
16067
15996
|
|
|
16068
|
-
const initialState$
|
|
15997
|
+
const initialState$e = {
|
|
16069
15998
|
didSubToNewslettersBefore: false,
|
|
16070
15999
|
newsletters: [],
|
|
16071
16000
|
isListLoading: true,
|
|
@@ -16075,10 +16004,10 @@ const initialState$f = {
|
|
|
16075
16004
|
content: ""
|
|
16076
16005
|
}
|
|
16077
16006
|
};
|
|
16078
|
-
const store$
|
|
16007
|
+
const store$e = /*#__PURE__*/createContext(initialState$e);
|
|
16079
16008
|
const {
|
|
16080
|
-
Provider: Provider$
|
|
16081
|
-
} = store$
|
|
16009
|
+
Provider: Provider$e
|
|
16010
|
+
} = store$e;
|
|
16082
16011
|
|
|
16083
16012
|
const NewsletterUpdateContainer = ({
|
|
16084
16013
|
style,
|
|
@@ -16191,7 +16120,7 @@ const NewsletterUpdateContainer = ({
|
|
|
16191
16120
|
default:
|
|
16192
16121
|
return state;
|
|
16193
16122
|
}
|
|
16194
|
-
}, initialState$
|
|
16123
|
+
}, initialState$e);
|
|
16195
16124
|
useEffect(() => {
|
|
16196
16125
|
const getUserNewsletters = () => {
|
|
16197
16126
|
var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
|
|
@@ -16235,7 +16164,7 @@ const NewsletterUpdateContainer = ({
|
|
|
16235
16164
|
style: { ...style
|
|
16236
16165
|
},
|
|
16237
16166
|
className: `pelcro-container pelcro-newsletter-update-container ${className}`
|
|
16238
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
16167
|
+
}, /*#__PURE__*/React__default.createElement(Provider$e, {
|
|
16239
16168
|
value: {
|
|
16240
16169
|
state,
|
|
16241
16170
|
dispatch
|
|
@@ -16243,12 +16172,12 @@ const NewsletterUpdateContainer = ({
|
|
|
16243
16172
|
}, children.length ? children.map((child, i) => {
|
|
16244
16173
|
if (child) {
|
|
16245
16174
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
16246
|
-
store: store$
|
|
16175
|
+
store: store$e,
|
|
16247
16176
|
key: i
|
|
16248
16177
|
});
|
|
16249
16178
|
}
|
|
16250
16179
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
16251
|
-
store: store$
|
|
16180
|
+
store: store$e
|
|
16252
16181
|
})));
|
|
16253
16182
|
};
|
|
16254
16183
|
|
|
@@ -16263,7 +16192,7 @@ const NewsletterUpdateButton = ({
|
|
|
16263
16192
|
isSubmitting,
|
|
16264
16193
|
isListLoading
|
|
16265
16194
|
}
|
|
16266
|
-
} = useContext(store$
|
|
16195
|
+
} = useContext(store$e);
|
|
16267
16196
|
const {
|
|
16268
16197
|
t
|
|
16269
16198
|
} = useTranslation("newsletter");
|
|
@@ -16293,7 +16222,7 @@ const NewsletterUpdateList = () => {
|
|
|
16293
16222
|
newsletters,
|
|
16294
16223
|
isListLoading
|
|
16295
16224
|
}
|
|
16296
|
-
} = useContext(store$
|
|
16225
|
+
} = useContext(store$e);
|
|
16297
16226
|
|
|
16298
16227
|
if (isListLoading) {
|
|
16299
16228
|
return /*#__PURE__*/React__default.createElement(Loader, {
|
|
@@ -16497,7 +16426,7 @@ function SubscriptionCreateModal({
|
|
|
16497
16426
|
SubscriptionCreateModal.viewId = "subscription-create";
|
|
16498
16427
|
|
|
16499
16428
|
var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
|
|
16500
|
-
const initialState$
|
|
16429
|
+
const initialState$d = {
|
|
16501
16430
|
email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
|
|
16502
16431
|
firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
|
|
16503
16432
|
lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
|
|
@@ -16510,10 +16439,10 @@ const initialState$e = {
|
|
|
16510
16439
|
content: ""
|
|
16511
16440
|
}
|
|
16512
16441
|
};
|
|
16513
|
-
const store$
|
|
16442
|
+
const store$d = /*#__PURE__*/createContext(initialState$d);
|
|
16514
16443
|
const {
|
|
16515
|
-
Provider: Provider$
|
|
16516
|
-
} = store$
|
|
16444
|
+
Provider: Provider$d
|
|
16445
|
+
} = store$d;
|
|
16517
16446
|
|
|
16518
16447
|
const UserUpdateContainer = ({
|
|
16519
16448
|
style,
|
|
@@ -16645,27 +16574,27 @@ const UserUpdateContainer = ({
|
|
|
16645
16574
|
default:
|
|
16646
16575
|
return state;
|
|
16647
16576
|
}
|
|
16648
|
-
}, initialState$
|
|
16577
|
+
}, initialState$d);
|
|
16649
16578
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
16650
16579
|
style: { ...style
|
|
16651
16580
|
},
|
|
16652
16581
|
className: `pelcro-container pelcro-user-update-container ${className}`
|
|
16653
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
16582
|
+
}, /*#__PURE__*/React__default.createElement(Provider$d, {
|
|
16654
16583
|
value: {
|
|
16655
16584
|
state,
|
|
16656
16585
|
dispatch
|
|
16657
16586
|
}
|
|
16658
16587
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
16659
|
-
store: store$
|
|
16588
|
+
store: store$d,
|
|
16660
16589
|
key: i
|
|
16661
16590
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
16662
|
-
store: store$
|
|
16591
|
+
store: store$d
|
|
16663
16592
|
})));
|
|
16664
16593
|
};
|
|
16665
16594
|
|
|
16666
16595
|
const UserUpdateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
16667
16596
|
disabled: true,
|
|
16668
|
-
store: store$
|
|
16597
|
+
store: store$d
|
|
16669
16598
|
}, props));
|
|
16670
16599
|
|
|
16671
16600
|
const UserUpdateButton = ({
|
|
@@ -16678,7 +16607,7 @@ const UserUpdateButton = ({
|
|
|
16678
16607
|
buttonDisabled
|
|
16679
16608
|
},
|
|
16680
16609
|
dispatch
|
|
16681
|
-
} = useContext(store$
|
|
16610
|
+
} = useContext(store$d);
|
|
16682
16611
|
const {
|
|
16683
16612
|
t
|
|
16684
16613
|
} = useTranslation("userEdit");
|
|
@@ -16695,11 +16624,11 @@ const UserUpdateButton = ({
|
|
|
16695
16624
|
};
|
|
16696
16625
|
|
|
16697
16626
|
const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
16698
|
-
store: store$
|
|
16627
|
+
store: store$d
|
|
16699
16628
|
}, props));
|
|
16700
16629
|
|
|
16701
16630
|
const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
16702
|
-
store: store$
|
|
16631
|
+
store: store$d
|
|
16703
16632
|
}, props));
|
|
16704
16633
|
|
|
16705
16634
|
function Phone({
|
|
@@ -16728,22 +16657,22 @@ function Phone({
|
|
|
16728
16657
|
}
|
|
16729
16658
|
|
|
16730
16659
|
const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
|
|
16731
|
-
store: store$
|
|
16660
|
+
store: store$d
|
|
16732
16661
|
}, props));
|
|
16733
16662
|
|
|
16734
16663
|
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";
|
|
16735
16664
|
|
|
16736
|
-
var _path$
|
|
16665
|
+
var _path$i;
|
|
16737
16666
|
|
|
16738
|
-
function _extends$
|
|
16667
|
+
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); }
|
|
16739
16668
|
|
|
16740
16669
|
function SvgEdit(props) {
|
|
16741
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
16670
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
16742
16671
|
className: "plc-w-6 plc-h-6",
|
|
16743
16672
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16744
16673
|
viewBox: "0 0 20 20",
|
|
16745
16674
|
fill: "currentColor"
|
|
16746
|
-
}, props), _path$
|
|
16675
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
16747
16676
|
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"
|
|
16748
16677
|
})));
|
|
16749
16678
|
}
|
|
@@ -16875,16 +16804,16 @@ function DisplayName({
|
|
|
16875
16804
|
}
|
|
16876
16805
|
|
|
16877
16806
|
const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
|
|
16878
|
-
store: store$
|
|
16807
|
+
store: store$d
|
|
16879
16808
|
}, props));
|
|
16880
16809
|
|
|
16881
16810
|
const UserUpdateTextInput = props => {
|
|
16882
16811
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
16883
|
-
store: store$
|
|
16812
|
+
store: store$d
|
|
16884
16813
|
}));
|
|
16885
16814
|
};
|
|
16886
16815
|
|
|
16887
|
-
const initialState$
|
|
16816
|
+
const initialState$c = {
|
|
16888
16817
|
isSubmitting: false,
|
|
16889
16818
|
firstName: "",
|
|
16890
16819
|
firstNameError: "",
|
|
@@ -16909,10 +16838,10 @@ const initialState$d = {
|
|
|
16909
16838
|
content: ""
|
|
16910
16839
|
}
|
|
16911
16840
|
};
|
|
16912
|
-
const store$
|
|
16841
|
+
const store$c = /*#__PURE__*/createContext(initialState$c);
|
|
16913
16842
|
const {
|
|
16914
|
-
Provider: Provider$
|
|
16915
|
-
} = store$
|
|
16843
|
+
Provider: Provider$c
|
|
16844
|
+
} = store$c;
|
|
16916
16845
|
|
|
16917
16846
|
const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
|
|
16918
16847
|
|
|
@@ -17119,7 +17048,7 @@ const AddressCreateContainer = ({
|
|
|
17119
17048
|
default:
|
|
17120
17049
|
return state;
|
|
17121
17050
|
}
|
|
17122
|
-
}, initialState$
|
|
17051
|
+
}, initialState$c);
|
|
17123
17052
|
useEffect(() => {
|
|
17124
17053
|
const getStates = () => {
|
|
17125
17054
|
dispatch({
|
|
@@ -17151,16 +17080,16 @@ const AddressCreateContainer = ({
|
|
|
17151
17080
|
style: { ...style
|
|
17152
17081
|
},
|
|
17153
17082
|
className: `pelcro-container pelcro-address-create-container ${className}`
|
|
17154
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
17083
|
+
}, /*#__PURE__*/React__default.createElement(Provider$c, {
|
|
17155
17084
|
value: {
|
|
17156
17085
|
state,
|
|
17157
17086
|
dispatch
|
|
17158
17087
|
}
|
|
17159
17088
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
17160
|
-
store: store$
|
|
17089
|
+
store: store$c,
|
|
17161
17090
|
key: i
|
|
17162
17091
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
17163
|
-
store: store$
|
|
17092
|
+
store: store$c
|
|
17164
17093
|
})));
|
|
17165
17094
|
};
|
|
17166
17095
|
|
|
@@ -17171,7 +17100,7 @@ function AddressCreateFirstName(props) {
|
|
|
17171
17100
|
firstName,
|
|
17172
17101
|
firstNameError
|
|
17173
17102
|
}
|
|
17174
|
-
} = useContext(store$
|
|
17103
|
+
} = useContext(store$c);
|
|
17175
17104
|
|
|
17176
17105
|
const handleBlur = () => {
|
|
17177
17106
|
return dispatch({
|
|
@@ -17214,7 +17143,7 @@ function AddressCreateLastName(props) {
|
|
|
17214
17143
|
lastName,
|
|
17215
17144
|
lastNameError
|
|
17216
17145
|
}
|
|
17217
|
-
} = useContext(store$
|
|
17146
|
+
} = useContext(store$c);
|
|
17218
17147
|
|
|
17219
17148
|
const handleBlur = () => {
|
|
17220
17149
|
return dispatch({
|
|
@@ -17257,7 +17186,7 @@ function AddressCreateLine1(props) {
|
|
|
17257
17186
|
line1,
|
|
17258
17187
|
line1Error
|
|
17259
17188
|
}
|
|
17260
|
-
} = useContext(store$
|
|
17189
|
+
} = useContext(store$c);
|
|
17261
17190
|
|
|
17262
17191
|
const handleBlur = () => {
|
|
17263
17192
|
return dispatch({
|
|
@@ -17300,7 +17229,7 @@ function AddressCreateCity(props) {
|
|
|
17300
17229
|
city,
|
|
17301
17230
|
cityError
|
|
17302
17231
|
}
|
|
17303
|
-
} = useContext(store$
|
|
17232
|
+
} = useContext(store$c);
|
|
17304
17233
|
|
|
17305
17234
|
const handleBlur = () => {
|
|
17306
17235
|
return dispatch({
|
|
@@ -17343,7 +17272,7 @@ function AddressCreatePostalCode(props) {
|
|
|
17343
17272
|
postalCode,
|
|
17344
17273
|
postalCodeError
|
|
17345
17274
|
}
|
|
17346
|
-
} = useContext(store$
|
|
17275
|
+
} = useContext(store$c);
|
|
17347
17276
|
|
|
17348
17277
|
const handleBlur = () => {
|
|
17349
17278
|
return dispatch({
|
|
@@ -17389,7 +17318,7 @@ const AddressCreateSubmit = ({
|
|
|
17389
17318
|
state: {
|
|
17390
17319
|
isSubmitting
|
|
17391
17320
|
}
|
|
17392
|
-
} = useContext(store$
|
|
17321
|
+
} = useContext(store$c);
|
|
17393
17322
|
const {
|
|
17394
17323
|
t
|
|
17395
17324
|
} = useTranslation("address");
|
|
@@ -17500,7 +17429,7 @@ function CountrySelect({
|
|
|
17500
17429
|
}
|
|
17501
17430
|
|
|
17502
17431
|
const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
17503
|
-
store: store$
|
|
17432
|
+
store: store$c
|
|
17504
17433
|
}, props));
|
|
17505
17434
|
|
|
17506
17435
|
function StateSelect({
|
|
@@ -17588,7 +17517,7 @@ function StateSelect({
|
|
|
17588
17517
|
}
|
|
17589
17518
|
|
|
17590
17519
|
const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
17591
|
-
store: store$
|
|
17520
|
+
store: store$c
|
|
17592
17521
|
}, props));
|
|
17593
17522
|
|
|
17594
17523
|
const AddressCreateView = props => {
|
|
@@ -17693,18 +17622,18 @@ AddressCreateModal.viewId = "address-create";
|
|
|
17693
17622
|
|
|
17694
17623
|
const AddressCreateTextInput = props => {
|
|
17695
17624
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
17696
|
-
store: store$
|
|
17625
|
+
store: store$c
|
|
17697
17626
|
}));
|
|
17698
17627
|
};
|
|
17699
17628
|
|
|
17700
17629
|
const AddressCreateLine2 = props => {
|
|
17701
17630
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
17702
17631
|
fieldName: "line2",
|
|
17703
|
-
store: store$
|
|
17632
|
+
store: store$c
|
|
17704
17633
|
}, props));
|
|
17705
17634
|
};
|
|
17706
17635
|
|
|
17707
|
-
const initialState$
|
|
17636
|
+
const initialState$b = {
|
|
17708
17637
|
isSubmitting: false,
|
|
17709
17638
|
firstName: "",
|
|
17710
17639
|
firstNameError: "",
|
|
@@ -17729,10 +17658,10 @@ const initialState$c = {
|
|
|
17729
17658
|
content: ""
|
|
17730
17659
|
}
|
|
17731
17660
|
};
|
|
17732
|
-
const store$
|
|
17661
|
+
const store$b = /*#__PURE__*/createContext(initialState$b);
|
|
17733
17662
|
const {
|
|
17734
|
-
Provider: Provider$
|
|
17735
|
-
} = store$
|
|
17663
|
+
Provider: Provider$b
|
|
17664
|
+
} = store$b;
|
|
17736
17665
|
|
|
17737
17666
|
const AddressUpdateContainer = ({
|
|
17738
17667
|
style,
|
|
@@ -17784,7 +17713,7 @@ const AddressUpdateContainer = ({
|
|
|
17784
17713
|
const thisAddress = addresses[address];
|
|
17785
17714
|
|
|
17786
17715
|
if (+thisAddress.id === +addressId) {
|
|
17787
|
-
const newState = { ...initialState$
|
|
17716
|
+
const newState = { ...initialState$b,
|
|
17788
17717
|
firstName: thisAddress.first_name,
|
|
17789
17718
|
lastName: thisAddress.last_name,
|
|
17790
17719
|
line1: thisAddress.line1,
|
|
@@ -17917,7 +17846,7 @@ const AddressUpdateContainer = ({
|
|
|
17917
17846
|
default:
|
|
17918
17847
|
return state;
|
|
17919
17848
|
}
|
|
17920
|
-
}, initialState$
|
|
17849
|
+
}, initialState$b);
|
|
17921
17850
|
useEffect(() => {
|
|
17922
17851
|
const getStates = () => {
|
|
17923
17852
|
dispatch({
|
|
@@ -17949,21 +17878,21 @@ const AddressUpdateContainer = ({
|
|
|
17949
17878
|
style: { ...style
|
|
17950
17879
|
},
|
|
17951
17880
|
className: `pelcro-container pelcro-address-update-container ${className}`
|
|
17952
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
17881
|
+
}, /*#__PURE__*/React__default.createElement(Provider$b, {
|
|
17953
17882
|
value: {
|
|
17954
17883
|
state,
|
|
17955
17884
|
dispatch
|
|
17956
17885
|
}
|
|
17957
17886
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
17958
|
-
store: store$
|
|
17887
|
+
store: store$b,
|
|
17959
17888
|
key: i
|
|
17960
17889
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
17961
|
-
store: store$
|
|
17890
|
+
store: store$b
|
|
17962
17891
|
})));
|
|
17963
17892
|
};
|
|
17964
17893
|
|
|
17965
17894
|
const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
17966
|
-
store: store$
|
|
17895
|
+
store: store$b
|
|
17967
17896
|
}, props));
|
|
17968
17897
|
|
|
17969
17898
|
function AddressUpdateFirstName(props) {
|
|
@@ -17973,7 +17902,7 @@ function AddressUpdateFirstName(props) {
|
|
|
17973
17902
|
firstName,
|
|
17974
17903
|
firstNameError
|
|
17975
17904
|
}
|
|
17976
|
-
} = useContext(store$
|
|
17905
|
+
} = useContext(store$b);
|
|
17977
17906
|
|
|
17978
17907
|
const handleBlur = () => {
|
|
17979
17908
|
return dispatch({
|
|
@@ -18016,7 +17945,7 @@ function AddressUpdateLastName(props) {
|
|
|
18016
17945
|
lastName,
|
|
18017
17946
|
lastNameError
|
|
18018
17947
|
}
|
|
18019
|
-
} = useContext(store$
|
|
17948
|
+
} = useContext(store$b);
|
|
18020
17949
|
|
|
18021
17950
|
const handleBlur = () => {
|
|
18022
17951
|
return dispatch({
|
|
@@ -18059,7 +17988,7 @@ function AddressUpdateLine1(props) {
|
|
|
18059
17988
|
line1,
|
|
18060
17989
|
line1Error
|
|
18061
17990
|
}
|
|
18062
|
-
} = useContext(store$
|
|
17991
|
+
} = useContext(store$b);
|
|
18063
17992
|
|
|
18064
17993
|
const handleBlur = () => {
|
|
18065
17994
|
return dispatch({
|
|
@@ -18099,7 +18028,7 @@ const AddressUpdateLine2 = props => {
|
|
|
18099
18028
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
18100
18029
|
fieldName: "line2"
|
|
18101
18030
|
}, props, {
|
|
18102
|
-
store: store$
|
|
18031
|
+
store: store$b
|
|
18103
18032
|
}));
|
|
18104
18033
|
};
|
|
18105
18034
|
|
|
@@ -18110,7 +18039,7 @@ function AddressUpdateCity(props) {
|
|
|
18110
18039
|
city,
|
|
18111
18040
|
cityError
|
|
18112
18041
|
}
|
|
18113
|
-
} = useContext(store$
|
|
18042
|
+
} = useContext(store$b);
|
|
18114
18043
|
|
|
18115
18044
|
const handleBlur = () => {
|
|
18116
18045
|
return dispatch({
|
|
@@ -18153,7 +18082,7 @@ function AddressUpdatePostalCode(props) {
|
|
|
18153
18082
|
postalCode,
|
|
18154
18083
|
postalCodeError
|
|
18155
18084
|
}
|
|
18156
|
-
} = useContext(store$
|
|
18085
|
+
} = useContext(store$b);
|
|
18157
18086
|
|
|
18158
18087
|
const handleBlur = () => {
|
|
18159
18088
|
return dispatch({
|
|
@@ -18199,7 +18128,7 @@ const AddressUpdateSubmit = ({
|
|
|
18199
18128
|
state: {
|
|
18200
18129
|
isSubmitting
|
|
18201
18130
|
}
|
|
18202
|
-
} = useContext(store$
|
|
18131
|
+
} = useContext(store$b);
|
|
18203
18132
|
const {
|
|
18204
18133
|
t
|
|
18205
18134
|
} = useTranslation("address");
|
|
@@ -18215,7 +18144,7 @@ const AddressUpdateSubmit = ({
|
|
|
18215
18144
|
};
|
|
18216
18145
|
|
|
18217
18146
|
const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
18218
|
-
store: store$
|
|
18147
|
+
store: store$b
|
|
18219
18148
|
}, props));
|
|
18220
18149
|
|
|
18221
18150
|
const AddressUpdateView = props => {
|
|
@@ -18298,7 +18227,7 @@ AddressUpdateModal.viewId = "address-edit";
|
|
|
18298
18227
|
|
|
18299
18228
|
const AddressUpdateTextInput = props => {
|
|
18300
18229
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
18301
|
-
store: store$
|
|
18230
|
+
store: store$b
|
|
18302
18231
|
}));
|
|
18303
18232
|
};
|
|
18304
18233
|
|
|
@@ -18381,7 +18310,7 @@ const PaymentMethodUpdateModal = props => {
|
|
|
18381
18310
|
};
|
|
18382
18311
|
PaymentMethodUpdateModal.viewId = "payment-method-update";
|
|
18383
18312
|
|
|
18384
|
-
const initialState$
|
|
18313
|
+
const initialState$a = {
|
|
18385
18314
|
email: "",
|
|
18386
18315
|
password: "",
|
|
18387
18316
|
passwordError: null,
|
|
@@ -18394,10 +18323,10 @@ const initialState$b = {
|
|
|
18394
18323
|
content: ""
|
|
18395
18324
|
}
|
|
18396
18325
|
};
|
|
18397
|
-
const store$
|
|
18326
|
+
const store$a = /*#__PURE__*/createContext(initialState$a);
|
|
18398
18327
|
const {
|
|
18399
|
-
Provider: Provider$
|
|
18400
|
-
} = store$
|
|
18328
|
+
Provider: Provider$a
|
|
18329
|
+
} = store$a;
|
|
18401
18330
|
|
|
18402
18331
|
const PasswordResetContainer = ({
|
|
18403
18332
|
style,
|
|
@@ -18454,7 +18383,7 @@ const PasswordResetContainer = ({
|
|
|
18454
18383
|
type: SET_EMAIL,
|
|
18455
18384
|
payload: window.Pelcro.helpers.getURLParameter("email")
|
|
18456
18385
|
});
|
|
18457
|
-
initialState$
|
|
18386
|
+
initialState$a.email = window.Pelcro.helpers.getURLParameter("email");
|
|
18458
18387
|
dispatch({
|
|
18459
18388
|
type: SET_TOKEN,
|
|
18460
18389
|
payload: window.Pelcro.helpers.getURLParameter("token")
|
|
@@ -18514,26 +18443,26 @@ const PasswordResetContainer = ({
|
|
|
18514
18443
|
default:
|
|
18515
18444
|
return state;
|
|
18516
18445
|
}
|
|
18517
|
-
}, initialState$
|
|
18446
|
+
}, initialState$a);
|
|
18518
18447
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18519
18448
|
style: { ...style
|
|
18520
18449
|
},
|
|
18521
18450
|
className: `pelcro-container pelcro-password-reset-container ${className}`
|
|
18522
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18451
|
+
}, /*#__PURE__*/React__default.createElement(Provider$a, {
|
|
18523
18452
|
value: {
|
|
18524
18453
|
state,
|
|
18525
18454
|
dispatch
|
|
18526
18455
|
}
|
|
18527
18456
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18528
|
-
store: store$
|
|
18457
|
+
store: store$a,
|
|
18529
18458
|
key: i
|
|
18530
18459
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18531
|
-
store: store$
|
|
18460
|
+
store: store$a
|
|
18532
18461
|
})));
|
|
18533
18462
|
};
|
|
18534
18463
|
|
|
18535
18464
|
const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
18536
|
-
store: store$
|
|
18465
|
+
store: store$a
|
|
18537
18466
|
}, props));
|
|
18538
18467
|
|
|
18539
18468
|
const PasswordResetButton = ({
|
|
@@ -18546,7 +18475,7 @@ const PasswordResetButton = ({
|
|
|
18546
18475
|
buttonDisabled
|
|
18547
18476
|
},
|
|
18548
18477
|
dispatch
|
|
18549
|
-
} = useContext(store$
|
|
18478
|
+
} = useContext(store$a);
|
|
18550
18479
|
const {
|
|
18551
18480
|
t
|
|
18552
18481
|
} = useTranslation("passwordReset");
|
|
@@ -18563,14 +18492,14 @@ const PasswordResetButton = ({
|
|
|
18563
18492
|
};
|
|
18564
18493
|
|
|
18565
18494
|
const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
18566
|
-
store: store$
|
|
18495
|
+
store: store$a
|
|
18567
18496
|
}, props, {
|
|
18568
18497
|
value: window.Pelcro.helpers.getURLParameter("email"),
|
|
18569
18498
|
disabled: true
|
|
18570
18499
|
}));
|
|
18571
18500
|
|
|
18572
18501
|
const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
|
|
18573
|
-
store: store$
|
|
18502
|
+
store: store$a
|
|
18574
18503
|
}, props));
|
|
18575
18504
|
|
|
18576
18505
|
const PasswordResetView = props => {
|
|
@@ -18622,7 +18551,7 @@ const PasswordResetModal = ({
|
|
|
18622
18551
|
};
|
|
18623
18552
|
PasswordResetModal.viewId = "password-reset";
|
|
18624
18553
|
|
|
18625
|
-
const initialState$
|
|
18554
|
+
const initialState$9 = {
|
|
18626
18555
|
email: "",
|
|
18627
18556
|
emailError: null,
|
|
18628
18557
|
buttonDisabled: false,
|
|
@@ -18631,10 +18560,10 @@ const initialState$a = {
|
|
|
18631
18560
|
content: ""
|
|
18632
18561
|
}
|
|
18633
18562
|
};
|
|
18634
|
-
const store$
|
|
18563
|
+
const store$9 = /*#__PURE__*/createContext(initialState$9);
|
|
18635
18564
|
const {
|
|
18636
|
-
Provider: Provider$
|
|
18637
|
-
} = store$
|
|
18565
|
+
Provider: Provider$9
|
|
18566
|
+
} = store$9;
|
|
18638
18567
|
|
|
18639
18568
|
const PasswordForgotContainer = ({
|
|
18640
18569
|
style,
|
|
@@ -18712,21 +18641,21 @@ const PasswordForgotContainer = ({
|
|
|
18712
18641
|
default:
|
|
18713
18642
|
return state;
|
|
18714
18643
|
}
|
|
18715
|
-
}, initialState$
|
|
18644
|
+
}, initialState$9);
|
|
18716
18645
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18717
18646
|
style: { ...style
|
|
18718
18647
|
},
|
|
18719
18648
|
className: `pelcro-container pelcro-password-forgot-container ${className}`
|
|
18720
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18649
|
+
}, /*#__PURE__*/React__default.createElement(Provider$9, {
|
|
18721
18650
|
value: {
|
|
18722
18651
|
state,
|
|
18723
18652
|
dispatch
|
|
18724
18653
|
}
|
|
18725
18654
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18726
|
-
store: store$
|
|
18655
|
+
store: store$9,
|
|
18727
18656
|
key: i
|
|
18728
18657
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18729
|
-
store: store$
|
|
18658
|
+
store: store$9
|
|
18730
18659
|
})));
|
|
18731
18660
|
};
|
|
18732
18661
|
|
|
@@ -18742,7 +18671,7 @@ const PasswordForgotButton = ({
|
|
|
18742
18671
|
emailError
|
|
18743
18672
|
},
|
|
18744
18673
|
dispatch
|
|
18745
|
-
} = useContext(store$
|
|
18674
|
+
} = useContext(store$9);
|
|
18746
18675
|
const {
|
|
18747
18676
|
t
|
|
18748
18677
|
} = useTranslation("passwordForgot");
|
|
@@ -18763,7 +18692,7 @@ const PasswordForgotButton = ({
|
|
|
18763
18692
|
};
|
|
18764
18693
|
|
|
18765
18694
|
const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
18766
|
-
store: store$
|
|
18695
|
+
store: store$9
|
|
18767
18696
|
}, props));
|
|
18768
18697
|
|
|
18769
18698
|
const PasswordForgotView = props => {
|
|
@@ -18813,7 +18742,7 @@ const PasswordForgotModal = ({
|
|
|
18813
18742
|
};
|
|
18814
18743
|
PasswordForgotModal.viewId = "password-forgot";
|
|
18815
18744
|
|
|
18816
|
-
const initialState$
|
|
18745
|
+
const initialState$8 = {
|
|
18817
18746
|
currentPassword: "",
|
|
18818
18747
|
newPassword: "",
|
|
18819
18748
|
confirmNewPassword: "",
|
|
@@ -18827,10 +18756,10 @@ const initialState$9 = {
|
|
|
18827
18756
|
content: ""
|
|
18828
18757
|
}
|
|
18829
18758
|
};
|
|
18830
|
-
const store$
|
|
18759
|
+
const store$8 = /*#__PURE__*/createContext(initialState$8);
|
|
18831
18760
|
const {
|
|
18832
|
-
Provider: Provider$
|
|
18833
|
-
} = store$
|
|
18761
|
+
Provider: Provider$8
|
|
18762
|
+
} = store$8;
|
|
18834
18763
|
const PasswordChangeContainer = ({
|
|
18835
18764
|
style,
|
|
18836
18765
|
className = "",
|
|
@@ -18982,21 +18911,21 @@ const PasswordChangeContainer = ({
|
|
|
18982
18911
|
default:
|
|
18983
18912
|
return state;
|
|
18984
18913
|
}
|
|
18985
|
-
}, initialState$
|
|
18914
|
+
}, initialState$8);
|
|
18986
18915
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18987
18916
|
style: { ...style
|
|
18988
18917
|
},
|
|
18989
18918
|
className: `pelcro-container pelcro-password-change-container ${className}`
|
|
18990
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18919
|
+
}, /*#__PURE__*/React__default.createElement(Provider$8, {
|
|
18991
18920
|
value: {
|
|
18992
18921
|
state,
|
|
18993
18922
|
dispatch
|
|
18994
18923
|
}
|
|
18995
18924
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18996
|
-
store: store$
|
|
18925
|
+
store: store$8,
|
|
18997
18926
|
key: i
|
|
18998
18927
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18999
|
-
store: store$
|
|
18928
|
+
store: store$8
|
|
19000
18929
|
})));
|
|
19001
18930
|
};
|
|
19002
18931
|
|
|
@@ -19007,7 +18936,7 @@ function PasswordChangeCurrentPassword(props) {
|
|
|
19007
18936
|
currentPassword,
|
|
19008
18937
|
currentPasswordError
|
|
19009
18938
|
}
|
|
19010
|
-
} = useContext(store$
|
|
18939
|
+
} = useContext(store$8);
|
|
19011
18940
|
const handleBlur = useCallback(() => {
|
|
19012
18941
|
return dispatch({
|
|
19013
18942
|
type: VALIDATE_PASSWORD
|
|
@@ -19041,7 +18970,7 @@ function PasswordChangeNewPassword(props) {
|
|
|
19041
18970
|
newPassword,
|
|
19042
18971
|
newPasswordError
|
|
19043
18972
|
}
|
|
19044
|
-
} = useContext(store$
|
|
18973
|
+
} = useContext(store$8);
|
|
19045
18974
|
const handleBlur = useCallback(() => {
|
|
19046
18975
|
return dispatch({
|
|
19047
18976
|
type: VALIDATE_NEW_PASSWORD
|
|
@@ -19075,7 +19004,7 @@ function PasswordChangeConfirmNewPassword(props) {
|
|
|
19075
19004
|
confirmNewPassword,
|
|
19076
19005
|
confirmNewPasswordError
|
|
19077
19006
|
}
|
|
19078
|
-
} = useContext(store$
|
|
19007
|
+
} = useContext(store$8);
|
|
19079
19008
|
const handleBlur = useCallback(() => {
|
|
19080
19009
|
return dispatch({
|
|
19081
19010
|
type: VALIDATE_CONFIRM_NEW_PASSWORD
|
|
@@ -19116,7 +19045,7 @@ const PasswordChangeButton = ({
|
|
|
19116
19045
|
confirmNewPasswordError
|
|
19117
19046
|
},
|
|
19118
19047
|
dispatch
|
|
19119
|
-
} = useContext(store$
|
|
19048
|
+
} = useContext(store$8);
|
|
19120
19049
|
const {
|
|
19121
19050
|
t
|
|
19122
19051
|
} = useTranslation("passwordChange");
|
|
@@ -19182,17 +19111,17 @@ const PasswordChangeModal = ({
|
|
|
19182
19111
|
};
|
|
19183
19112
|
PasswordChangeModal.viewId = "password-change";
|
|
19184
19113
|
|
|
19185
|
-
const initialState$
|
|
19114
|
+
const initialState$7 = {
|
|
19186
19115
|
buttonDisabled: false,
|
|
19187
19116
|
alert: {
|
|
19188
19117
|
type: "error",
|
|
19189
19118
|
content: ""
|
|
19190
19119
|
}
|
|
19191
19120
|
};
|
|
19192
|
-
const store$
|
|
19121
|
+
const store$7 = /*#__PURE__*/createContext(initialState$7);
|
|
19193
19122
|
const {
|
|
19194
|
-
Provider: Provider$
|
|
19195
|
-
} = store$
|
|
19123
|
+
Provider: Provider$7
|
|
19124
|
+
} = store$7;
|
|
19196
19125
|
|
|
19197
19126
|
const CartContainer = ({
|
|
19198
19127
|
style,
|
|
@@ -19283,21 +19212,21 @@ const CartContainer = ({
|
|
|
19283
19212
|
default:
|
|
19284
19213
|
return state;
|
|
19285
19214
|
}
|
|
19286
|
-
}, initialState$
|
|
19215
|
+
}, initialState$7);
|
|
19287
19216
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19288
19217
|
style: { ...style
|
|
19289
19218
|
},
|
|
19290
19219
|
className: `pelcro-container pelcro-cart-container ${className}`
|
|
19291
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19220
|
+
}, /*#__PURE__*/React__default.createElement(Provider$7, {
|
|
19292
19221
|
value: {
|
|
19293
19222
|
state,
|
|
19294
19223
|
dispatch
|
|
19295
19224
|
}
|
|
19296
19225
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19297
|
-
store: store$
|
|
19226
|
+
store: store$7,
|
|
19298
19227
|
key: i
|
|
19299
19228
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19300
|
-
store: store$
|
|
19229
|
+
store: store$7
|
|
19301
19230
|
})));
|
|
19302
19231
|
};
|
|
19303
19232
|
|
|
@@ -19334,7 +19263,7 @@ const CartSubmit = ({
|
|
|
19334
19263
|
buttonDisabled
|
|
19335
19264
|
},
|
|
19336
19265
|
dispatch
|
|
19337
|
-
} = useContext(store$
|
|
19266
|
+
} = useContext(store$7);
|
|
19338
19267
|
const {
|
|
19339
19268
|
t
|
|
19340
19269
|
} = useTranslation("cart");
|
|
@@ -19365,7 +19294,7 @@ const CartTotalPrice = () => {
|
|
|
19365
19294
|
state: {
|
|
19366
19295
|
alert
|
|
19367
19296
|
}
|
|
19368
|
-
} = useContext(store$
|
|
19297
|
+
} = useContext(store$7);
|
|
19369
19298
|
const {
|
|
19370
19299
|
cartItems
|
|
19371
19300
|
} = usePelcro();
|
|
@@ -19678,7 +19607,7 @@ const OrderConfirmModal = props => {
|
|
|
19678
19607
|
};
|
|
19679
19608
|
OrderConfirmModal.viewId = "order-confirm";
|
|
19680
19609
|
|
|
19681
|
-
const initialState$
|
|
19610
|
+
const initialState$6 = {
|
|
19682
19611
|
email: "",
|
|
19683
19612
|
firstName: "",
|
|
19684
19613
|
lastName: "",
|
|
@@ -19690,10 +19619,10 @@ const initialState$7 = {
|
|
|
19690
19619
|
content: ""
|
|
19691
19620
|
}
|
|
19692
19621
|
};
|
|
19693
|
-
const store$
|
|
19622
|
+
const store$6 = /*#__PURE__*/createContext(initialState$6);
|
|
19694
19623
|
const {
|
|
19695
|
-
Provider: Provider$
|
|
19696
|
-
} = store$
|
|
19624
|
+
Provider: Provider$6
|
|
19625
|
+
} = store$6;
|
|
19697
19626
|
|
|
19698
19627
|
const GiftCreateContainer = ({
|
|
19699
19628
|
style,
|
|
@@ -19797,21 +19726,21 @@ const GiftCreateContainer = ({
|
|
|
19797
19726
|
default:
|
|
19798
19727
|
return state;
|
|
19799
19728
|
}
|
|
19800
|
-
}, initialState$
|
|
19729
|
+
}, initialState$6);
|
|
19801
19730
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19802
19731
|
style: { ...style
|
|
19803
19732
|
},
|
|
19804
19733
|
className: `pelcro-container pelcro-gift-create-container ${className}`
|
|
19805
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19734
|
+
}, /*#__PURE__*/React__default.createElement(Provider$6, {
|
|
19806
19735
|
value: {
|
|
19807
19736
|
state,
|
|
19808
19737
|
dispatch
|
|
19809
19738
|
}
|
|
19810
19739
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19811
|
-
store: store$
|
|
19740
|
+
store: store$6,
|
|
19812
19741
|
key: i
|
|
19813
19742
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19814
|
-
store: store$
|
|
19743
|
+
store: store$6
|
|
19815
19744
|
})));
|
|
19816
19745
|
};
|
|
19817
19746
|
|
|
@@ -19825,7 +19754,7 @@ const GiftCreateSubmitButton = ({
|
|
|
19825
19754
|
state: {
|
|
19826
19755
|
disableSubmit
|
|
19827
19756
|
}
|
|
19828
|
-
} = useContext(store$
|
|
19757
|
+
} = useContext(store$6);
|
|
19829
19758
|
const {
|
|
19830
19759
|
t
|
|
19831
19760
|
} = useTranslation("register");
|
|
@@ -19842,29 +19771,29 @@ const GiftCreateSubmitButton = ({
|
|
|
19842
19771
|
|
|
19843
19772
|
const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
19844
19773
|
initWithUserEmail: false,
|
|
19845
|
-
store: store$
|
|
19774
|
+
store: store$6
|
|
19846
19775
|
}, props));
|
|
19847
19776
|
|
|
19848
19777
|
const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
19849
|
-
store: store$
|
|
19778
|
+
store: store$6
|
|
19850
19779
|
}, props));
|
|
19851
19780
|
|
|
19852
19781
|
const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
19853
|
-
store: store$
|
|
19782
|
+
store: store$6
|
|
19854
19783
|
}, props));
|
|
19855
19784
|
|
|
19856
|
-
var _path$
|
|
19785
|
+
var _path$h;
|
|
19857
19786
|
|
|
19858
|
-
function _extends$
|
|
19787
|
+
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); }
|
|
19859
19788
|
|
|
19860
19789
|
function SvgInfoCircle(props) {
|
|
19861
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
19790
|
+
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
19862
19791
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19863
19792
|
className: "plc-w-5 plc-h-5",
|
|
19864
19793
|
fill: "none",
|
|
19865
19794
|
viewBox: "0 0 24 24",
|
|
19866
19795
|
stroke: "currentColor"
|
|
19867
|
-
}, props), _path$
|
|
19796
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
19868
19797
|
strokeLinecap: "round",
|
|
19869
19798
|
strokeLinejoin: "round",
|
|
19870
19799
|
strokeWidth: 2,
|
|
@@ -19935,7 +19864,7 @@ const GiftCreateStartDate = props => {
|
|
|
19935
19864
|
const {
|
|
19936
19865
|
dispatch,
|
|
19937
19866
|
state
|
|
19938
|
-
} = useContext(store$
|
|
19867
|
+
} = useContext(store$6);
|
|
19939
19868
|
|
|
19940
19869
|
const handleInputChange = value => {
|
|
19941
19870
|
dispatch({
|
|
@@ -20008,7 +19937,7 @@ function GiftCreateMessage(props) {
|
|
|
20008
19937
|
const {
|
|
20009
19938
|
dispatch,
|
|
20010
19939
|
state
|
|
20011
|
-
} = useContext(store$
|
|
19940
|
+
} = useContext(store$6);
|
|
20012
19941
|
const MAX_CHARS_COUNT = 200;
|
|
20013
19942
|
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;
|
|
20014
19943
|
|
|
@@ -20132,7 +20061,7 @@ const GiftCreateModal = ({
|
|
|
20132
20061
|
};
|
|
20133
20062
|
GiftCreateModal.viewId = "gift-create";
|
|
20134
20063
|
|
|
20135
|
-
const initialState$
|
|
20064
|
+
const initialState$5 = {
|
|
20136
20065
|
giftCode: "",
|
|
20137
20066
|
buttonDisabled: true,
|
|
20138
20067
|
alert: {
|
|
@@ -20140,10 +20069,10 @@ const initialState$6 = {
|
|
|
20140
20069
|
content: ""
|
|
20141
20070
|
}
|
|
20142
20071
|
};
|
|
20143
|
-
const store$
|
|
20072
|
+
const store$5 = /*#__PURE__*/createContext(initialState$5);
|
|
20144
20073
|
const {
|
|
20145
|
-
Provider: Provider$
|
|
20146
|
-
} = store$
|
|
20074
|
+
Provider: Provider$5
|
|
20075
|
+
} = store$5;
|
|
20147
20076
|
|
|
20148
20077
|
const GiftRedeemContainer = ({
|
|
20149
20078
|
style,
|
|
@@ -20208,21 +20137,21 @@ const GiftRedeemContainer = ({
|
|
|
20208
20137
|
default:
|
|
20209
20138
|
return state;
|
|
20210
20139
|
}
|
|
20211
|
-
}, initialState$
|
|
20140
|
+
}, initialState$5);
|
|
20212
20141
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
20213
20142
|
style: { ...style
|
|
20214
20143
|
},
|
|
20215
20144
|
className: `pelcro-container pelcro-gift-redeem-container ${className}`
|
|
20216
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
20145
|
+
}, /*#__PURE__*/React__default.createElement(Provider$5, {
|
|
20217
20146
|
value: {
|
|
20218
20147
|
state,
|
|
20219
20148
|
dispatch
|
|
20220
20149
|
}
|
|
20221
20150
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
20222
|
-
store: store$
|
|
20151
|
+
store: store$5,
|
|
20223
20152
|
key: i
|
|
20224
20153
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
20225
|
-
store: store$
|
|
20154
|
+
store: store$5
|
|
20226
20155
|
})));
|
|
20227
20156
|
};
|
|
20228
20157
|
|
|
@@ -20259,7 +20188,7 @@ function GiftCode({
|
|
|
20259
20188
|
}
|
|
20260
20189
|
|
|
20261
20190
|
const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
|
|
20262
|
-
store: store$
|
|
20191
|
+
store: store$5
|
|
20263
20192
|
}, props));
|
|
20264
20193
|
|
|
20265
20194
|
const GiftRedeemSubmitButton = ({
|
|
@@ -20272,7 +20201,7 @@ const GiftRedeemSubmitButton = ({
|
|
|
20272
20201
|
state: {
|
|
20273
20202
|
disableSubmit
|
|
20274
20203
|
}
|
|
20275
|
-
} = useContext(store$
|
|
20204
|
+
} = useContext(store$5);
|
|
20276
20205
|
const {
|
|
20277
20206
|
t
|
|
20278
20207
|
} = useTranslation("register");
|
|
@@ -20365,7 +20294,7 @@ const moveDefaultAddressToStart = addresses => {
|
|
|
20365
20294
|
return [defaultAddress, ...addressesWithoutDefault];
|
|
20366
20295
|
};
|
|
20367
20296
|
|
|
20368
|
-
const initialState$
|
|
20297
|
+
const initialState$4 = {
|
|
20369
20298
|
addresses: [],
|
|
20370
20299
|
selectedAddressId: null,
|
|
20371
20300
|
isSubmitting: false,
|
|
@@ -20374,10 +20303,10 @@ const initialState$5 = {
|
|
|
20374
20303
|
content: ""
|
|
20375
20304
|
}
|
|
20376
20305
|
};
|
|
20377
|
-
const store$
|
|
20306
|
+
const store$4 = /*#__PURE__*/createContext(initialState$4);
|
|
20378
20307
|
const {
|
|
20379
|
-
Provider: Provider$
|
|
20380
|
-
} = store$
|
|
20308
|
+
Provider: Provider$4
|
|
20309
|
+
} = store$4;
|
|
20381
20310
|
|
|
20382
20311
|
const AddressSelectContainer = ({
|
|
20383
20312
|
style,
|
|
@@ -20472,7 +20401,7 @@ const AddressSelectContainer = ({
|
|
|
20472
20401
|
default:
|
|
20473
20402
|
return state;
|
|
20474
20403
|
}
|
|
20475
|
-
}, initialState$
|
|
20404
|
+
}, initialState$4);
|
|
20476
20405
|
useEffect(() => {
|
|
20477
20406
|
var _window$Pelcro$user$r;
|
|
20478
20407
|
|
|
@@ -20485,16 +20414,16 @@ const AddressSelectContainer = ({
|
|
|
20485
20414
|
style: { ...style
|
|
20486
20415
|
},
|
|
20487
20416
|
className: `pelcro-container pelcro-address-select-container ${className}`
|
|
20488
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
20417
|
+
}, /*#__PURE__*/React__default.createElement(Provider$4, {
|
|
20489
20418
|
value: {
|
|
20490
20419
|
state,
|
|
20491
20420
|
dispatch
|
|
20492
20421
|
}
|
|
20493
20422
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
20494
|
-
store: store$
|
|
20423
|
+
store: store$4,
|
|
20495
20424
|
key: i
|
|
20496
20425
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
20497
|
-
store: store$
|
|
20426
|
+
store: store$4
|
|
20498
20427
|
})));
|
|
20499
20428
|
};
|
|
20500
20429
|
|
|
@@ -20505,7 +20434,7 @@ const AddressSelectList = () => {
|
|
|
20505
20434
|
addresses,
|
|
20506
20435
|
selectedAddressId
|
|
20507
20436
|
}
|
|
20508
|
-
} = useContext(store$
|
|
20437
|
+
} = useContext(store$4);
|
|
20509
20438
|
|
|
20510
20439
|
const handleAddressSelect = event => {
|
|
20511
20440
|
dispatch({
|
|
@@ -20549,7 +20478,7 @@ const AddressSelectSubmit = ({
|
|
|
20549
20478
|
selectedAddressId,
|
|
20550
20479
|
isSubmitting
|
|
20551
20480
|
}
|
|
20552
|
-
} = useContext(store$
|
|
20481
|
+
} = useContext(store$4);
|
|
20553
20482
|
const {
|
|
20554
20483
|
t
|
|
20555
20484
|
} = useTranslation("address");
|
|
@@ -20645,7 +20574,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
|
|
|
20645
20574
|
return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
|
|
20646
20575
|
};
|
|
20647
20576
|
|
|
20648
|
-
const initialState$
|
|
20577
|
+
const initialState$3 = {
|
|
20649
20578
|
paymentMethods: [],
|
|
20650
20579
|
selectedPaymentMethodId: null,
|
|
20651
20580
|
isSubmitting: false,
|
|
@@ -20654,10 +20583,10 @@ const initialState$4 = {
|
|
|
20654
20583
|
content: ""
|
|
20655
20584
|
}
|
|
20656
20585
|
};
|
|
20657
|
-
const store$
|
|
20586
|
+
const store$3 = /*#__PURE__*/createContext(initialState$3);
|
|
20658
20587
|
const {
|
|
20659
|
-
Provider: Provider$
|
|
20660
|
-
} = store$
|
|
20588
|
+
Provider: Provider$3
|
|
20589
|
+
} = store$3;
|
|
20661
20590
|
|
|
20662
20591
|
const PaymentMethodSelectContainer = ({
|
|
20663
20592
|
style,
|
|
@@ -20716,7 +20645,7 @@ const PaymentMethodSelectContainer = ({
|
|
|
20716
20645
|
default:
|
|
20717
20646
|
return state;
|
|
20718
20647
|
}
|
|
20719
|
-
}, initialState$
|
|
20648
|
+
}, initialState$3);
|
|
20720
20649
|
useEffect(() => {
|
|
20721
20650
|
var _window$Pelcro$user$r3;
|
|
20722
20651
|
|
|
@@ -20729,16 +20658,16 @@ const PaymentMethodSelectContainer = ({
|
|
|
20729
20658
|
style: { ...style
|
|
20730
20659
|
},
|
|
20731
20660
|
className: `pelcro-container pelcro-payment-select-container ${className}`
|
|
20732
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
20661
|
+
}, /*#__PURE__*/React__default.createElement(Provider$3, {
|
|
20733
20662
|
value: {
|
|
20734
20663
|
state,
|
|
20735
20664
|
dispatch
|
|
20736
20665
|
}
|
|
20737
20666
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
20738
|
-
store: store$
|
|
20667
|
+
store: store$3,
|
|
20739
20668
|
key: i
|
|
20740
20669
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
20741
|
-
store: store$
|
|
20670
|
+
store: store$3
|
|
20742
20671
|
})));
|
|
20743
20672
|
};
|
|
20744
20673
|
|
|
@@ -20752,7 +20681,7 @@ const PaymentMethodSelectList = () => {
|
|
|
20752
20681
|
paymentMethods,
|
|
20753
20682
|
selectedPaymentMethodId
|
|
20754
20683
|
}
|
|
20755
|
-
} = useContext(store$
|
|
20684
|
+
} = useContext(store$3);
|
|
20756
20685
|
|
|
20757
20686
|
const handlePaymentMethodSelect = event => {
|
|
20758
20687
|
dispatch({
|
|
@@ -20802,7 +20731,7 @@ const PaymentMethodSelectSubmit = ({
|
|
|
20802
20731
|
selectedPaymentMethodId,
|
|
20803
20732
|
isSubmitting
|
|
20804
20733
|
}
|
|
20805
|
-
} = useContext(store$
|
|
20734
|
+
} = useContext(store$3);
|
|
20806
20735
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
20807
20736
|
onClick: () => {
|
|
20808
20737
|
dispatch({
|
|
@@ -20876,8 +20805,8 @@ const PaymentMethodSelectModal = ({
|
|
|
20876
20805
|
};
|
|
20877
20806
|
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
20878
20807
|
|
|
20879
|
-
function _extends$
|
|
20880
|
-
_extends$
|
|
20808
|
+
function _extends$i() {
|
|
20809
|
+
_extends$i = Object.assign || function (target) {
|
|
20881
20810
|
for (var i = 1; i < arguments.length; i++) {
|
|
20882
20811
|
var source = arguments[i];
|
|
20883
20812
|
|
|
@@ -20891,7 +20820,7 @@ function _extends$j() {
|
|
|
20891
20820
|
return target;
|
|
20892
20821
|
};
|
|
20893
20822
|
|
|
20894
|
-
return _extends$
|
|
20823
|
+
return _extends$i.apply(this, arguments);
|
|
20895
20824
|
}
|
|
20896
20825
|
|
|
20897
20826
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -21075,7 +21004,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
21075
21004
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
21076
21005
|
return null;
|
|
21077
21006
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
21078
|
-
return _render(_extends$
|
|
21007
|
+
return _render(_extends$i({}, _rest, {
|
|
21079
21008
|
hidden: true,
|
|
21080
21009
|
style: {
|
|
21081
21010
|
display: 'none'
|
|
@@ -21603,7 +21532,7 @@ function TransitionChild(props) {
|
|
|
21603
21532
|
var passthroughProps = rest;
|
|
21604
21533
|
return React__default.createElement(NestingContext.Provider, {
|
|
21605
21534
|
value: nesting
|
|
21606
|
-
}, render(_extends$
|
|
21535
|
+
}, render(_extends$i({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
21607
21536
|
}
|
|
21608
21537
|
|
|
21609
21538
|
function Transition(props) {
|
|
@@ -21647,7 +21576,7 @@ function Transition(props) {
|
|
|
21647
21576
|
value: nestingBag
|
|
21648
21577
|
}, React__default.createElement(TransitionContext.Provider, {
|
|
21649
21578
|
value: transitionBag
|
|
21650
|
-
}, render(_extends$
|
|
21579
|
+
}, render(_extends$i({}, sharedProps, {
|
|
21651
21580
|
as: Fragment,
|
|
21652
21581
|
children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
21653
21582
|
}), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -21774,12 +21703,12 @@ var ActionTypes;
|
|
|
21774
21703
|
})(ActionTypes || (ActionTypes = {}));
|
|
21775
21704
|
|
|
21776
21705
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
21777
|
-
return _extends$
|
|
21706
|
+
return _extends$i({}, state, {
|
|
21778
21707
|
activeItemIndex: null,
|
|
21779
21708
|
menuState: MenuStates.Closed
|
|
21780
21709
|
});
|
|
21781
21710
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
21782
|
-
return _extends$
|
|
21711
|
+
return _extends$i({}, state, {
|
|
21783
21712
|
menuState: MenuStates.Open
|
|
21784
21713
|
});
|
|
21785
21714
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -21798,7 +21727,7 @@ var ActionTypes;
|
|
|
21798
21727
|
}
|
|
21799
21728
|
});
|
|
21800
21729
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
21801
|
-
return _extends$
|
|
21730
|
+
return _extends$i({}, state, {
|
|
21802
21731
|
searchQuery: '',
|
|
21803
21732
|
activeItemIndex: activeItemIndex
|
|
21804
21733
|
});
|
|
@@ -21809,19 +21738,19 @@ var ActionTypes;
|
|
|
21809
21738
|
|
|
21810
21739
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
21811
21740
|
});
|
|
21812
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
21741
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$i({}, state, {
|
|
21813
21742
|
searchQuery: searchQuery
|
|
21814
21743
|
});
|
|
21815
|
-
return _extends$
|
|
21744
|
+
return _extends$i({}, state, {
|
|
21816
21745
|
searchQuery: searchQuery,
|
|
21817
21746
|
activeItemIndex: match
|
|
21818
21747
|
});
|
|
21819
21748
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
21820
|
-
return _extends$
|
|
21749
|
+
return _extends$i({}, state, {
|
|
21821
21750
|
searchQuery: ''
|
|
21822
21751
|
});
|
|
21823
21752
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
21824
|
-
return _extends$
|
|
21753
|
+
return _extends$i({}, state, {
|
|
21825
21754
|
items: [].concat(state.items, [{
|
|
21826
21755
|
id: action.id,
|
|
21827
21756
|
dataRef: action.dataRef
|
|
@@ -21834,7 +21763,7 @@ var ActionTypes;
|
|
|
21834
21763
|
return a.id === action.id;
|
|
21835
21764
|
});
|
|
21836
21765
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
21837
|
-
return _extends$
|
|
21766
|
+
return _extends$i({}, state, {
|
|
21838
21767
|
items: nextItems,
|
|
21839
21768
|
activeItemIndex: function () {
|
|
21840
21769
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -21873,19 +21802,19 @@ var ActionTypes$1;
|
|
|
21873
21802
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
21874
21803
|
if (state.disabled) return state;
|
|
21875
21804
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
21876
|
-
return _extends$
|
|
21805
|
+
return _extends$i({}, state, {
|
|
21877
21806
|
activeOptionIndex: null,
|
|
21878
21807
|
listboxState: ListboxStates.Closed
|
|
21879
21808
|
});
|
|
21880
21809
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
21881
21810
|
if (state.disabled) return state;
|
|
21882
21811
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
21883
|
-
return _extends$
|
|
21812
|
+
return _extends$i({}, state, {
|
|
21884
21813
|
listboxState: ListboxStates.Open
|
|
21885
21814
|
});
|
|
21886
21815
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
21887
21816
|
if (state.disabled === action.disabled) return state;
|
|
21888
|
-
return _extends$
|
|
21817
|
+
return _extends$i({}, state, {
|
|
21889
21818
|
disabled: action.disabled
|
|
21890
21819
|
});
|
|
21891
21820
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -21906,7 +21835,7 @@ var ActionTypes$1;
|
|
|
21906
21835
|
}
|
|
21907
21836
|
});
|
|
21908
21837
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
21909
|
-
return _extends$
|
|
21838
|
+
return _extends$i({}, state, {
|
|
21910
21839
|
searchQuery: '',
|
|
21911
21840
|
activeOptionIndex: activeOptionIndex
|
|
21912
21841
|
});
|
|
@@ -21919,10 +21848,10 @@ var ActionTypes$1;
|
|
|
21919
21848
|
|
|
21920
21849
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
21921
21850
|
});
|
|
21922
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
21851
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$i({}, state, {
|
|
21923
21852
|
searchQuery: searchQuery
|
|
21924
21853
|
});
|
|
21925
|
-
return _extends$
|
|
21854
|
+
return _extends$i({}, state, {
|
|
21926
21855
|
searchQuery: searchQuery,
|
|
21927
21856
|
activeOptionIndex: match
|
|
21928
21857
|
});
|
|
@@ -21930,11 +21859,11 @@ var ActionTypes$1;
|
|
|
21930
21859
|
if (state.disabled) return state;
|
|
21931
21860
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
21932
21861
|
if (state.searchQuery === '') return state;
|
|
21933
|
-
return _extends$
|
|
21862
|
+
return _extends$i({}, state, {
|
|
21934
21863
|
searchQuery: ''
|
|
21935
21864
|
});
|
|
21936
21865
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
21937
|
-
return _extends$
|
|
21866
|
+
return _extends$i({}, state, {
|
|
21938
21867
|
options: [].concat(state.options, [{
|
|
21939
21868
|
id: action.id,
|
|
21940
21869
|
dataRef: action.dataRef
|
|
@@ -21947,7 +21876,7 @@ var ActionTypes$1;
|
|
|
21947
21876
|
return a.id === action.id;
|
|
21948
21877
|
});
|
|
21949
21878
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
21950
|
-
return _extends$
|
|
21879
|
+
return _extends$i({}, state, {
|
|
21951
21880
|
options: nextOptions,
|
|
21952
21881
|
activeOptionIndex: function () {
|
|
21953
21882
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -22008,18 +21937,18 @@ const getPaymentCardIcon = name => {
|
|
|
22008
21937
|
}));
|
|
22009
21938
|
};
|
|
22010
21939
|
|
|
22011
|
-
var _path$
|
|
21940
|
+
var _path$g;
|
|
22012
21941
|
|
|
22013
|
-
function _extends$
|
|
21942
|
+
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); }
|
|
22014
21943
|
|
|
22015
21944
|
function SvgChevronRight(props) {
|
|
22016
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21945
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
22017
21946
|
className: "plc-w-6 plc-h-6",
|
|
22018
21947
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22019
21948
|
fill: "none",
|
|
22020
21949
|
viewBox: "0 0 24 24",
|
|
22021
21950
|
stroke: "currentColor"
|
|
22022
|
-
}, props), _path$
|
|
21951
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
22023
21952
|
strokeLinecap: "round",
|
|
22024
21953
|
strokeLinejoin: "round",
|
|
22025
21954
|
strokeWidth: 2,
|
|
@@ -22235,18 +22164,18 @@ const SavedItems = ({
|
|
|
22235
22164
|
});
|
|
22236
22165
|
};
|
|
22237
22166
|
|
|
22238
|
-
var _path$
|
|
22167
|
+
var _path$f;
|
|
22239
22168
|
|
|
22240
|
-
function _extends$
|
|
22169
|
+
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); }
|
|
22241
22170
|
|
|
22242
22171
|
function SvgRefresh(props) {
|
|
22243
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22172
|
+
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
22244
22173
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
22245
22174
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22246
22175
|
fill: "none",
|
|
22247
22176
|
viewBox: "0 0 24 24",
|
|
22248
22177
|
stroke: "currentColor"
|
|
22249
|
-
}, props), _path$
|
|
22178
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
|
|
22250
22179
|
strokeLinecap: "round",
|
|
22251
22180
|
strokeLinejoin: "round",
|
|
22252
22181
|
strokeWidth: 2,
|
|
@@ -22254,35 +22183,35 @@ function SvgRefresh(props) {
|
|
|
22254
22183
|
})));
|
|
22255
22184
|
}
|
|
22256
22185
|
|
|
22257
|
-
var _path$
|
|
22186
|
+
var _path$e;
|
|
22258
22187
|
|
|
22259
|
-
function _extends$
|
|
22188
|
+
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); }
|
|
22260
22189
|
|
|
22261
22190
|
function SvgCalendar(props) {
|
|
22262
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22191
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
22263
22192
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22264
22193
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
22265
22194
|
viewBox: "0 0 20 20",
|
|
22266
22195
|
fill: "currentColor"
|
|
22267
|
-
}, props), _path$
|
|
22196
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
|
|
22268
22197
|
fillRule: "evenodd",
|
|
22269
22198
|
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",
|
|
22270
22199
|
clipRule: "evenodd"
|
|
22271
22200
|
})));
|
|
22272
22201
|
}
|
|
22273
22202
|
|
|
22274
|
-
var _path$
|
|
22203
|
+
var _path$d;
|
|
22275
22204
|
|
|
22276
|
-
function _extends$
|
|
22205
|
+
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); }
|
|
22277
22206
|
|
|
22278
22207
|
function SvgPlus(props) {
|
|
22279
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22208
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
22280
22209
|
className: "plc-w-5 plc-h-5",
|
|
22281
22210
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22282
22211
|
fill: "none",
|
|
22283
22212
|
viewBox: "0 0 24 24",
|
|
22284
22213
|
stroke: "currentColor"
|
|
22285
|
-
}, props), _path$
|
|
22214
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
22286
22215
|
strokeLinecap: "round",
|
|
22287
22216
|
strokeLinejoin: "round",
|
|
22288
22217
|
strokeWidth: 2,
|
|
@@ -22290,17 +22219,17 @@ function SvgPlus(props) {
|
|
|
22290
22219
|
})));
|
|
22291
22220
|
}
|
|
22292
22221
|
|
|
22293
|
-
var _path$
|
|
22222
|
+
var _path$c;
|
|
22294
22223
|
|
|
22295
|
-
function _extends$
|
|
22224
|
+
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); }
|
|
22296
22225
|
|
|
22297
22226
|
function SvgCheckMark(props) {
|
|
22298
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22227
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
22299
22228
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
22300
22229
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22301
22230
|
viewBox: "0 0 20 20",
|
|
22302
22231
|
fill: "currentColor"
|
|
22303
|
-
}, props), _path$
|
|
22232
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
22304
22233
|
fillRule: "evenodd",
|
|
22305
22234
|
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",
|
|
22306
22235
|
clipRule: "evenodd"
|
|
@@ -22364,8 +22293,7 @@ const SubscriptionsItems = ({
|
|
|
22364
22293
|
} = useTranslation("dashboard");
|
|
22365
22294
|
const {
|
|
22366
22295
|
switchView,
|
|
22367
|
-
|
|
22368
|
-
switchToPaymentView
|
|
22296
|
+
isAuthenticated
|
|
22369
22297
|
} = usePelcro();
|
|
22370
22298
|
const subs = getNonDonationSubs();
|
|
22371
22299
|
if (subs.length === 0) return null;
|
|
@@ -22407,12 +22335,7 @@ const SubscriptionsItems = ({
|
|
|
22407
22335
|
const plan = window.Pelcro.plan.getById(plan_id);
|
|
22408
22336
|
setProductAndPlan(product, plan);
|
|
22409
22337
|
setSubscriptionIdToRenew(sub.id);
|
|
22410
|
-
|
|
22411
|
-
if (product.address_required) {
|
|
22412
|
-
return switchToAddressView();
|
|
22413
|
-
}
|
|
22414
|
-
|
|
22415
|
-
return switchToPaymentView();
|
|
22338
|
+
setView("plan-select");
|
|
22416
22339
|
};
|
|
22417
22340
|
|
|
22418
22341
|
const getPhases = () => {
|
|
@@ -22601,18 +22524,18 @@ Accordion.item = function AccordionItem({
|
|
|
22601
22524
|
}, content)) : null;
|
|
22602
22525
|
};
|
|
22603
22526
|
|
|
22604
|
-
var _path$
|
|
22527
|
+
var _path$b;
|
|
22605
22528
|
|
|
22606
|
-
function _extends$
|
|
22529
|
+
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); }
|
|
22607
22530
|
|
|
22608
22531
|
function SvgExit(props) {
|
|
22609
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22532
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
22610
22533
|
className: "plc-w-6 plc-h-6",
|
|
22611
22534
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22612
22535
|
fill: "none",
|
|
22613
22536
|
viewBox: "0 0 24 24",
|
|
22614
22537
|
stroke: "currentColor"
|
|
22615
|
-
}, props), _path$
|
|
22538
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
|
|
22616
22539
|
strokeLinecap: "round",
|
|
22617
22540
|
strokeLinejoin: "round",
|
|
22618
22541
|
strokeWidth: 2,
|
|
@@ -22620,17 +22543,17 @@ function SvgExit(props) {
|
|
|
22620
22543
|
})));
|
|
22621
22544
|
}
|
|
22622
22545
|
|
|
22623
|
-
var _path$
|
|
22546
|
+
var _path$a;
|
|
22624
22547
|
|
|
22625
|
-
function _extends$
|
|
22548
|
+
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); }
|
|
22626
22549
|
|
|
22627
22550
|
function SvgUser(props) {
|
|
22628
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22551
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
22629
22552
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22630
22553
|
fill: "none",
|
|
22631
22554
|
viewBox: "0 0 24 24",
|
|
22632
22555
|
stroke: "currentColor"
|
|
22633
|
-
}, props), _path$
|
|
22556
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
22634
22557
|
strokeLinecap: "round",
|
|
22635
22558
|
strokeLinejoin: "round",
|
|
22636
22559
|
strokeWidth: 2,
|
|
@@ -22638,18 +22561,18 @@ function SvgUser(props) {
|
|
|
22638
22561
|
})));
|
|
22639
22562
|
}
|
|
22640
22563
|
|
|
22641
|
-
var _path$
|
|
22564
|
+
var _path$9;
|
|
22642
22565
|
|
|
22643
|
-
function _extends$
|
|
22566
|
+
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); }
|
|
22644
22567
|
|
|
22645
22568
|
function SvgNewsletter(props) {
|
|
22646
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22569
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
22647
22570
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22648
22571
|
className: "plc-h-5 plc-w-5",
|
|
22649
22572
|
fill: "none",
|
|
22650
22573
|
viewBox: "0 0 24 24",
|
|
22651
22574
|
stroke: "currentColor"
|
|
22652
|
-
}, props), _path$
|
|
22575
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
22653
22576
|
strokeLinecap: "round",
|
|
22654
22577
|
strokeLinejoin: "round",
|
|
22655
22578
|
strokeWidth: 2,
|
|
@@ -22657,18 +22580,18 @@ function SvgNewsletter(props) {
|
|
|
22657
22580
|
})));
|
|
22658
22581
|
}
|
|
22659
22582
|
|
|
22660
|
-
var _path$
|
|
22583
|
+
var _path$8;
|
|
22661
22584
|
|
|
22662
|
-
function _extends$
|
|
22585
|
+
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); }
|
|
22663
22586
|
|
|
22664
22587
|
function SvgDocument(props) {
|
|
22665
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22588
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
22666
22589
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22667
22590
|
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
22668
22591
|
fill: "none",
|
|
22669
22592
|
viewBox: "0 0 24 24",
|
|
22670
22593
|
stroke: "currentColor"
|
|
22671
|
-
}, props), _path$
|
|
22594
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
22672
22595
|
strokeLinecap: "round",
|
|
22673
22596
|
strokeLinejoin: "round",
|
|
22674
22597
|
strokeWidth: 2,
|
|
@@ -22676,18 +22599,18 @@ function SvgDocument(props) {
|
|
|
22676
22599
|
})));
|
|
22677
22600
|
}
|
|
22678
22601
|
|
|
22679
|
-
var _path$
|
|
22602
|
+
var _path$7;
|
|
22680
22603
|
|
|
22681
|
-
function _extends$
|
|
22604
|
+
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); }
|
|
22682
22605
|
|
|
22683
22606
|
function SvgPaymentCard(props) {
|
|
22684
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22607
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
22685
22608
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22686
22609
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22687
22610
|
fill: "none",
|
|
22688
22611
|
viewBox: "0 0 24 24",
|
|
22689
22612
|
stroke: "currentColor"
|
|
22690
|
-
}, props), _path$
|
|
22613
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
|
|
22691
22614
|
strokeLinecap: "round",
|
|
22692
22615
|
strokeLinejoin: "round",
|
|
22693
22616
|
strokeWidth: 2,
|
|
@@ -22695,18 +22618,18 @@ function SvgPaymentCard(props) {
|
|
|
22695
22618
|
})));
|
|
22696
22619
|
}
|
|
22697
22620
|
|
|
22698
|
-
var _path$
|
|
22621
|
+
var _path$6, _path2$1;
|
|
22699
22622
|
|
|
22700
|
-
function _extends$
|
|
22623
|
+
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); }
|
|
22701
22624
|
|
|
22702
22625
|
function SvgLocationPin(props) {
|
|
22703
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22626
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
22704
22627
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22705
22628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22706
22629
|
fill: "none",
|
|
22707
22630
|
viewBox: "0 0 24 24",
|
|
22708
22631
|
stroke: "currentColor"
|
|
22709
|
-
}, props), _path$
|
|
22632
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
22710
22633
|
strokeLinecap: "round",
|
|
22711
22634
|
strokeLinejoin: "round",
|
|
22712
22635
|
strokeWidth: 2,
|
|
@@ -22721,10 +22644,10 @@ function SvgLocationPin(props) {
|
|
|
22721
22644
|
|
|
22722
22645
|
var _switch;
|
|
22723
22646
|
|
|
22724
|
-
function _extends$
|
|
22647
|
+
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); }
|
|
22725
22648
|
|
|
22726
22649
|
function SvgSubscription(props) {
|
|
22727
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22650
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
22728
22651
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22729
22652
|
viewBox: "0 0 100 125",
|
|
22730
22653
|
fill: "currentColor"
|
|
@@ -22739,18 +22662,18 @@ function SvgSubscription(props) {
|
|
|
22739
22662
|
}))))));
|
|
22740
22663
|
}
|
|
22741
22664
|
|
|
22742
|
-
var _path$
|
|
22665
|
+
var _path$5;
|
|
22743
22666
|
|
|
22744
|
-
function _extends$
|
|
22667
|
+
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); }
|
|
22745
22668
|
|
|
22746
22669
|
function SvgShopping(props) {
|
|
22747
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22670
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
22748
22671
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22749
22672
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22750
22673
|
fill: "none",
|
|
22751
22674
|
viewBox: "0 0 24 24",
|
|
22752
22675
|
stroke: "currentColor"
|
|
22753
|
-
}, props), _path$
|
|
22676
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
22754
22677
|
strokeLinecap: "round",
|
|
22755
22678
|
strokeLinejoin: "round",
|
|
22756
22679
|
strokeWidth: 2,
|
|
@@ -22758,18 +22681,18 @@ function SvgShopping(props) {
|
|
|
22758
22681
|
})));
|
|
22759
22682
|
}
|
|
22760
22683
|
|
|
22761
|
-
var _path$
|
|
22684
|
+
var _path$4;
|
|
22762
22685
|
|
|
22763
|
-
function _extends$
|
|
22686
|
+
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); }
|
|
22764
22687
|
|
|
22765
22688
|
function SvgBookmark(props) {
|
|
22766
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22689
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
22767
22690
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22768
22691
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22769
22692
|
fill: "none",
|
|
22770
22693
|
viewBox: "0 0 24 24",
|
|
22771
22694
|
stroke: "currentColor"
|
|
22772
|
-
}, props), _path$
|
|
22695
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
22773
22696
|
strokeLinecap: "round",
|
|
22774
22697
|
strokeLinejoin: "round",
|
|
22775
22698
|
strokeWidth: 2,
|
|
@@ -22777,33 +22700,33 @@ function SvgBookmark(props) {
|
|
|
22777
22700
|
})));
|
|
22778
22701
|
}
|
|
22779
22702
|
|
|
22780
|
-
var _path$
|
|
22703
|
+
var _path$3;
|
|
22781
22704
|
|
|
22782
|
-
function _extends$
|
|
22705
|
+
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); }
|
|
22783
22706
|
|
|
22784
22707
|
function SvgKey(props) {
|
|
22785
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22708
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
22786
22709
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22787
22710
|
viewBox: "0 0 20 20",
|
|
22788
22711
|
fill: "currentColor"
|
|
22789
|
-
}, props), _path$
|
|
22712
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
22790
22713
|
fillRule: "evenodd",
|
|
22791
22714
|
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",
|
|
22792
22715
|
clipRule: "evenodd"
|
|
22793
22716
|
})));
|
|
22794
22717
|
}
|
|
22795
22718
|
|
|
22796
|
-
var _path$
|
|
22719
|
+
var _path$2;
|
|
22797
22720
|
|
|
22798
|
-
function _extends$
|
|
22721
|
+
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); }
|
|
22799
22722
|
|
|
22800
22723
|
function SvgDonate(props) {
|
|
22801
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22724
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
22802
22725
|
width: 24,
|
|
22803
22726
|
height: 24,
|
|
22804
22727
|
fill: "currentColor",
|
|
22805
22728
|
xmlns: "http://www.w3.org/2000/svg"
|
|
22806
|
-
}, props), _path$
|
|
22729
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
22807
22730
|
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"
|
|
22808
22731
|
})));
|
|
22809
22732
|
}
|
|
@@ -23130,10 +23053,9 @@ class Dashboard extends Component {
|
|
|
23130
23053
|
}) => {
|
|
23131
23054
|
if (isGift) {
|
|
23132
23055
|
this.props.setProductAndPlan(null, null, true);
|
|
23133
|
-
return this.props.setView("plan-select");
|
|
23134
23056
|
}
|
|
23135
23057
|
|
|
23136
|
-
return this.props.setView("
|
|
23058
|
+
return this.props.setView("plan-select");
|
|
23137
23059
|
});
|
|
23138
23060
|
|
|
23139
23061
|
_defineProperty$3(this, "displayAddressCreate", () => {
|
|
@@ -23601,7 +23523,7 @@ const DashboardOpenButton = () => {
|
|
|
23601
23523
|
};
|
|
23602
23524
|
DashboardOpenButton.viewId = "dashboard-open";
|
|
23603
23525
|
|
|
23604
|
-
const initialState$
|
|
23526
|
+
const initialState$2 = {
|
|
23605
23527
|
imageSrc: null,
|
|
23606
23528
|
crop: {
|
|
23607
23529
|
x: 0,
|
|
@@ -23615,10 +23537,10 @@ const initialState$3 = {
|
|
|
23615
23537
|
content: ""
|
|
23616
23538
|
}
|
|
23617
23539
|
};
|
|
23618
|
-
const store$
|
|
23540
|
+
const store$2 = /*#__PURE__*/createContext(initialState$2);
|
|
23619
23541
|
const {
|
|
23620
|
-
Provider: Provider$
|
|
23621
|
-
} = store$
|
|
23542
|
+
Provider: Provider$2
|
|
23543
|
+
} = store$2;
|
|
23622
23544
|
|
|
23623
23545
|
const ProfilePicChangeContainer = ({
|
|
23624
23546
|
style,
|
|
@@ -23752,21 +23674,21 @@ const ProfilePicChangeContainer = ({
|
|
|
23752
23674
|
default:
|
|
23753
23675
|
return state;
|
|
23754
23676
|
}
|
|
23755
|
-
}, initialState$
|
|
23677
|
+
}, initialState$2);
|
|
23756
23678
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
23757
23679
|
style: { ...style
|
|
23758
23680
|
},
|
|
23759
23681
|
className: `pelcro-container pelcro-profile-picture-container ${className}`
|
|
23760
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
23682
|
+
}, /*#__PURE__*/React__default.createElement(Provider$2, {
|
|
23761
23683
|
value: {
|
|
23762
23684
|
state,
|
|
23763
23685
|
dispatch
|
|
23764
23686
|
}
|
|
23765
23687
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
23766
|
-
store: store$
|
|
23688
|
+
store: store$2,
|
|
23767
23689
|
key: i
|
|
23768
23690
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
23769
|
-
store: store$
|
|
23691
|
+
store: store$2
|
|
23770
23692
|
})));
|
|
23771
23693
|
};
|
|
23772
23694
|
/**
|
|
@@ -23828,7 +23750,7 @@ const ProfilePicChangeButton = ({
|
|
|
23828
23750
|
isSubmitting
|
|
23829
23751
|
},
|
|
23830
23752
|
dispatch
|
|
23831
|
-
} = useContext(store$
|
|
23753
|
+
} = useContext(store$2);
|
|
23832
23754
|
const {
|
|
23833
23755
|
t
|
|
23834
23756
|
} = useTranslation("userEdit");
|
|
@@ -25196,7 +25118,7 @@ const ProfilePicChangeCropper = ({
|
|
|
25196
25118
|
zoom
|
|
25197
25119
|
},
|
|
25198
25120
|
dispatch
|
|
25199
|
-
} = useContext(store$
|
|
25121
|
+
} = useContext(store$2);
|
|
25200
25122
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25201
25123
|
className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
|
|
25202
25124
|
}, /*#__PURE__*/React__default.createElement(Cropper, Object.assign({
|
|
@@ -25238,7 +25160,7 @@ const ProfilePicChangeZoom = ({
|
|
|
25238
25160
|
zoom
|
|
25239
25161
|
},
|
|
25240
25162
|
dispatch
|
|
25241
|
-
} = useContext(store$
|
|
25163
|
+
} = useContext(store$2);
|
|
25242
25164
|
const {
|
|
25243
25165
|
t
|
|
25244
25166
|
} = useTranslation("userEdit");
|
|
@@ -25261,18 +25183,18 @@ const ProfilePicChangeZoom = ({
|
|
|
25261
25183
|
}, otherProps)));
|
|
25262
25184
|
};
|
|
25263
25185
|
|
|
25264
|
-
var _path$
|
|
25186
|
+
var _path$1;
|
|
25265
25187
|
|
|
25266
|
-
function _extends$
|
|
25188
|
+
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); }
|
|
25267
25189
|
|
|
25268
25190
|
function SvgPhotograph(props) {
|
|
25269
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
25191
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
25270
25192
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25271
25193
|
className: "plc-h-6 plc-w-6",
|
|
25272
25194
|
fill: "none",
|
|
25273
25195
|
viewBox: "0 0 24 24",
|
|
25274
25196
|
stroke: "currentColor"
|
|
25275
|
-
}, props), _path$
|
|
25197
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
25276
25198
|
strokeLinecap: "round",
|
|
25277
25199
|
strokeLinejoin: "round",
|
|
25278
25200
|
strokeWidth: 2,
|
|
@@ -25290,7 +25212,7 @@ const ProfilePicChangeSelectButton = ({
|
|
|
25290
25212
|
state: {
|
|
25291
25213
|
isSubmitting
|
|
25292
25214
|
}
|
|
25293
|
-
} = useContext(store$
|
|
25215
|
+
} = useContext(store$2);
|
|
25294
25216
|
const {
|
|
25295
25217
|
t
|
|
25296
25218
|
} = useTranslation("userEdit");
|
|
@@ -25332,7 +25254,7 @@ const ProfilePicChangeRemoveButton = ({
|
|
|
25332
25254
|
state: {
|
|
25333
25255
|
isSubmitting
|
|
25334
25256
|
}
|
|
25335
|
-
} = useContext(store$
|
|
25257
|
+
} = useContext(store$2);
|
|
25336
25258
|
const {
|
|
25337
25259
|
t
|
|
25338
25260
|
} = useTranslation("userEdit");
|
|
@@ -25355,7 +25277,7 @@ const ProfilePicChangeWrapper = () => {
|
|
|
25355
25277
|
state: {
|
|
25356
25278
|
imageSrc
|
|
25357
25279
|
}
|
|
25358
|
-
} = useContext(store$
|
|
25280
|
+
} = useContext(store$2);
|
|
25359
25281
|
const {
|
|
25360
25282
|
t
|
|
25361
25283
|
} = useTranslation("userEdit");
|
|
@@ -25417,17 +25339,17 @@ function ProfilePicChangeModal({
|
|
|
25417
25339
|
}
|
|
25418
25340
|
ProfilePicChangeModal.viewId = "profile-picture";
|
|
25419
25341
|
|
|
25420
|
-
const initialState$
|
|
25342
|
+
const initialState$1 = {
|
|
25421
25343
|
isSubmitting: false,
|
|
25422
25344
|
alert: {
|
|
25423
25345
|
type: "error",
|
|
25424
25346
|
content: ""
|
|
25425
25347
|
}
|
|
25426
25348
|
};
|
|
25427
|
-
const store$
|
|
25349
|
+
const store$1 = /*#__PURE__*/createContext(initialState$1);
|
|
25428
25350
|
const {
|
|
25429
|
-
Provider: Provider$
|
|
25430
|
-
} = store$
|
|
25351
|
+
Provider: Provider$1
|
|
25352
|
+
} = store$1;
|
|
25431
25353
|
|
|
25432
25354
|
const EmailVerifyContainer = ({
|
|
25433
25355
|
style,
|
|
@@ -25490,21 +25412,21 @@ const EmailVerifyContainer = ({
|
|
|
25490
25412
|
default:
|
|
25491
25413
|
return state;
|
|
25492
25414
|
}
|
|
25493
|
-
}, initialState$
|
|
25415
|
+
}, initialState$1);
|
|
25494
25416
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25495
25417
|
style: { ...style
|
|
25496
25418
|
},
|
|
25497
25419
|
className: `pelcro-container pelcro-email-verify-container ${className}`
|
|
25498
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
25420
|
+
}, /*#__PURE__*/React__default.createElement(Provider$1, {
|
|
25499
25421
|
value: {
|
|
25500
25422
|
state,
|
|
25501
25423
|
dispatch
|
|
25502
25424
|
}
|
|
25503
25425
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25504
|
-
store: store$
|
|
25426
|
+
store: store$1,
|
|
25505
25427
|
key: i
|
|
25506
25428
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25507
|
-
store: store$
|
|
25429
|
+
store: store$1
|
|
25508
25430
|
})));
|
|
25509
25431
|
};
|
|
25510
25432
|
|
|
@@ -25518,7 +25440,7 @@ const EmailVerifyResendButton = ({
|
|
|
25518
25440
|
state: {
|
|
25519
25441
|
isSubmitting
|
|
25520
25442
|
}
|
|
25521
|
-
} = useContext(store$
|
|
25443
|
+
} = useContext(store$1);
|
|
25522
25444
|
const {
|
|
25523
25445
|
t
|
|
25524
25446
|
} = useTranslation("verifyEmail");
|
|
@@ -25533,16 +25455,16 @@ const EmailVerifyResendButton = ({
|
|
|
25533
25455
|
}, otherProps), name !== null && name !== void 0 ? name : t("labels.resend"));
|
|
25534
25456
|
};
|
|
25535
25457
|
|
|
25536
|
-
var _path
|
|
25458
|
+
var _path, _path2;
|
|
25537
25459
|
|
|
25538
|
-
function _extends
|
|
25460
|
+
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); }
|
|
25539
25461
|
|
|
25540
25462
|
function SvgEmailVerify(props) {
|
|
25541
|
-
return /*#__PURE__*/React.createElement("svg", _extends
|
|
25463
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
25542
25464
|
className: "plc-w-6 plc-h-6",
|
|
25543
25465
|
viewBox: "0 0 700 700",
|
|
25544
25466
|
xmlns: "http://www.w3.org/2000/svg"
|
|
25545
|
-
}, props), _path
|
|
25467
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
25546
25468
|
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"
|
|
25547
25469
|
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
25548
25470
|
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"
|
|
@@ -25646,11 +25568,11 @@ const invoicePaymentSubmitButton = props => {
|
|
|
25646
25568
|
return /*#__PURE__*/React__default.createElement(SubmitPaymentMethod, props);
|
|
25647
25569
|
};
|
|
25648
25570
|
|
|
25649
|
-
const initialState
|
|
25650
|
-
const store
|
|
25571
|
+
const initialState = {};
|
|
25572
|
+
const store = /*#__PURE__*/createContext(initialState);
|
|
25651
25573
|
const {
|
|
25652
|
-
Provider
|
|
25653
|
-
} = store
|
|
25574
|
+
Provider
|
|
25575
|
+
} = store;
|
|
25654
25576
|
|
|
25655
25577
|
const InvoiceDetailsContainer = ({
|
|
25656
25578
|
style,
|
|
@@ -25671,21 +25593,21 @@ const InvoiceDetailsContainer = ({
|
|
|
25671
25593
|
default:
|
|
25672
25594
|
return state;
|
|
25673
25595
|
}
|
|
25674
|
-
}, initialState
|
|
25596
|
+
}, initialState);
|
|
25675
25597
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25676
25598
|
style: { ...style
|
|
25677
25599
|
},
|
|
25678
25600
|
className: `pelcro-container pelcro-invoice-details-container ${className}`
|
|
25679
|
-
}, /*#__PURE__*/React__default.createElement(Provider
|
|
25601
|
+
}, /*#__PURE__*/React__default.createElement(Provider, {
|
|
25680
25602
|
value: {
|
|
25681
25603
|
state,
|
|
25682
25604
|
dispatch
|
|
25683
25605
|
}
|
|
25684
25606
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25685
|
-
store
|
|
25607
|
+
store,
|
|
25686
25608
|
key: i
|
|
25687
25609
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25688
|
-
store
|
|
25610
|
+
store
|
|
25689
25611
|
})));
|
|
25690
25612
|
};
|
|
25691
25613
|
|
|
@@ -25717,7 +25639,7 @@ const InvoiceDetailsPayButton = ({
|
|
|
25717
25639
|
}) => {
|
|
25718
25640
|
const {
|
|
25719
25641
|
dispatch
|
|
25720
|
-
} = useContext(store
|
|
25642
|
+
} = useContext(store);
|
|
25721
25643
|
const {
|
|
25722
25644
|
t
|
|
25723
25645
|
} = useTranslation("invoiceDetails");
|
|
@@ -25824,230 +25746,4 @@ const InvoiceDetailsModal = ({
|
|
|
25824
25746
|
};
|
|
25825
25747
|
InvoiceDetailsModal.viewId = "invoice-details";
|
|
25826
25748
|
|
|
25827
|
-
|
|
25828
|
-
selectedOption: ""
|
|
25829
|
-
};
|
|
25830
|
-
const store = /*#__PURE__*/createContext(initialState);
|
|
25831
|
-
const {
|
|
25832
|
-
Provider
|
|
25833
|
-
} = store;
|
|
25834
|
-
|
|
25835
|
-
const SubscriptionOptionsContainer = ({
|
|
25836
|
-
style,
|
|
25837
|
-
className = "",
|
|
25838
|
-
onRenewSubSuccess = () => {},
|
|
25839
|
-
onNewSubSuccess = () => {},
|
|
25840
|
-
children,
|
|
25841
|
-
...props
|
|
25842
|
-
}) => {
|
|
25843
|
-
const submit = ({
|
|
25844
|
-
selectedOption
|
|
25845
|
-
}, dispatch) => {
|
|
25846
|
-
if (selectedOption === "renew") return onRenewSubSuccess();
|
|
25847
|
-
if (selectedOption === "new") return onNewSubSuccess();
|
|
25848
|
-
};
|
|
25849
|
-
|
|
25850
|
-
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
25851
|
-
switch (action.type) {
|
|
25852
|
-
case SWITCH_TO_NEW:
|
|
25853
|
-
return lib_7({ ...state,
|
|
25854
|
-
selectedOption: "new"
|
|
25855
|
-
});
|
|
25856
|
-
|
|
25857
|
-
case SWITCH_TO_RENEW:
|
|
25858
|
-
return lib_7({ ...state,
|
|
25859
|
-
selectedOption: "renew"
|
|
25860
|
-
});
|
|
25861
|
-
|
|
25862
|
-
case HANDLE_SUBMIT:
|
|
25863
|
-
return lib_4((state, dispatch) => submit(state));
|
|
25864
|
-
|
|
25865
|
-
default:
|
|
25866
|
-
return state;
|
|
25867
|
-
}
|
|
25868
|
-
}, initialState);
|
|
25869
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
25870
|
-
style: { ...style
|
|
25871
|
-
},
|
|
25872
|
-
className: `pelcro-container pelcro-subscription-options-container ${className}`
|
|
25873
|
-
}, /*#__PURE__*/React__default.createElement(Provider, {
|
|
25874
|
-
value: {
|
|
25875
|
-
state,
|
|
25876
|
-
dispatch
|
|
25877
|
-
}
|
|
25878
|
-
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25879
|
-
store,
|
|
25880
|
-
key: i
|
|
25881
|
-
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25882
|
-
store
|
|
25883
|
-
})));
|
|
25884
|
-
};
|
|
25885
|
-
|
|
25886
|
-
var _path;
|
|
25887
|
-
|
|
25888
|
-
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); }
|
|
25889
|
-
|
|
25890
|
-
function SvgPlusCircle(props) {
|
|
25891
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
25892
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
25893
|
-
className: "plc-h-6 plc-w-6",
|
|
25894
|
-
fill: "none",
|
|
25895
|
-
viewBox: "0 0 24 24",
|
|
25896
|
-
stroke: "currentColor",
|
|
25897
|
-
strokeWidth: 2
|
|
25898
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
25899
|
-
strokeLinecap: "round",
|
|
25900
|
-
strokeLinejoin: "round",
|
|
25901
|
-
d: "M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
25902
|
-
})));
|
|
25903
|
-
}
|
|
25904
|
-
|
|
25905
|
-
const SubscriptionOptionsNewButton = ({
|
|
25906
|
-
name,
|
|
25907
|
-
onClick,
|
|
25908
|
-
...otherProps
|
|
25909
|
-
}) => {
|
|
25910
|
-
const {
|
|
25911
|
-
dispatch,
|
|
25912
|
-
state: {
|
|
25913
|
-
selectedOption
|
|
25914
|
-
}
|
|
25915
|
-
} = useContext(store);
|
|
25916
|
-
const {
|
|
25917
|
-
t
|
|
25918
|
-
} = useTranslation("subscriptionOptions");
|
|
25919
|
-
const isChecked = selectedOption === "new";
|
|
25920
|
-
return /*#__PURE__*/React__default.createElement(Radio, Object.assign({
|
|
25921
|
-
className: "plc-hidden pelcro-new-sub-option",
|
|
25922
|
-
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"}`,
|
|
25923
|
-
id: "pelcro-new-sub-option",
|
|
25924
|
-
name: "option",
|
|
25925
|
-
onChange: () => {
|
|
25926
|
-
dispatch({
|
|
25927
|
-
type: SWITCH_TO_NEW
|
|
25928
|
-
});
|
|
25929
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25930
|
-
},
|
|
25931
|
-
checked: isChecked
|
|
25932
|
-
}, otherProps), name !== null && name !== void 0 ? name : t("addNew"), /*#__PURE__*/React__default.createElement(SvgPlusCircle, {
|
|
25933
|
-
className: "plc-w-full plc-h-full plc-mr-0"
|
|
25934
|
-
}));
|
|
25935
|
-
};
|
|
25936
|
-
|
|
25937
|
-
const SubscriptionOptionsRenewButton = ({
|
|
25938
|
-
name,
|
|
25939
|
-
onClick,
|
|
25940
|
-
...otherProps
|
|
25941
|
-
}) => {
|
|
25942
|
-
const {
|
|
25943
|
-
dispatch,
|
|
25944
|
-
state: {
|
|
25945
|
-
selectedOption
|
|
25946
|
-
}
|
|
25947
|
-
} = useContext(store);
|
|
25948
|
-
const {
|
|
25949
|
-
t
|
|
25950
|
-
} = useTranslation("subscriptionOptions");
|
|
25951
|
-
const isChecked = selectedOption === "renew";
|
|
25952
|
-
return /*#__PURE__*/React__default.createElement(Radio, Object.assign({
|
|
25953
|
-
className: "plc-hidden pelcro-renew-sub-option",
|
|
25954
|
-
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"}`,
|
|
25955
|
-
id: "pelcro-renew-sub-option",
|
|
25956
|
-
name: "option",
|
|
25957
|
-
onChange: () => {
|
|
25958
|
-
dispatch({
|
|
25959
|
-
type: SWITCH_TO_RENEW
|
|
25960
|
-
});
|
|
25961
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25962
|
-
},
|
|
25963
|
-
checked: isChecked
|
|
25964
|
-
}, otherProps), name !== null && name !== void 0 ? name : t("renew"), /*#__PURE__*/React__default.createElement(SvgRefresh, {
|
|
25965
|
-
className: "plc-w-full plc-h-full plc-mr-0"
|
|
25966
|
-
}));
|
|
25967
|
-
};
|
|
25968
|
-
|
|
25969
|
-
const SubscriptionOptionsSubmit = ({
|
|
25970
|
-
name,
|
|
25971
|
-
onClick,
|
|
25972
|
-
...otherProps
|
|
25973
|
-
}) => {
|
|
25974
|
-
const {
|
|
25975
|
-
dispatch,
|
|
25976
|
-
state: {
|
|
25977
|
-
selectedOption
|
|
25978
|
-
}
|
|
25979
|
-
} = useContext(store);
|
|
25980
|
-
const {
|
|
25981
|
-
t
|
|
25982
|
-
} = useTranslation("subscriptionOptions");
|
|
25983
|
-
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
25984
|
-
onClick: () => {
|
|
25985
|
-
dispatch({
|
|
25986
|
-
type: HANDLE_SUBMIT
|
|
25987
|
-
});
|
|
25988
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25989
|
-
},
|
|
25990
|
-
disabled: !selectedOption
|
|
25991
|
-
}, otherProps), name !== null && name !== void 0 ? name : t("next"));
|
|
25992
|
-
};
|
|
25993
|
-
|
|
25994
|
-
const SubscriptionOptionsView = props => {
|
|
25995
|
-
const {
|
|
25996
|
-
t
|
|
25997
|
-
} = useTranslation("subscriptionOptions");
|
|
25998
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
25999
|
-
id: "pelcro-subscription-options-view"
|
|
26000
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
26001
|
-
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
26002
|
-
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
26003
|
-
className: "plc-text-2xl plc-font-semibold"
|
|
26004
|
-
}, t("title")), /*#__PURE__*/React__default.createElement("p", null, t("subtitle"))), /*#__PURE__*/React__default.createElement("form", {
|
|
26005
|
-
action: "javascript:void(0);",
|
|
26006
|
-
className: "plc-mt-2 pelcro-form"
|
|
26007
|
-
}, /*#__PURE__*/React__default.createElement(SubscriptionOptionsContainer, props, /*#__PURE__*/React__default.createElement("div", {
|
|
26008
|
-
className: "plc-flex plc-justify-between plc-items-center"
|
|
26009
|
-
}, /*#__PURE__*/React__default.createElement(SubscriptionOptionsRenewButton, null), /*#__PURE__*/React__default.createElement(SubscriptionOptionsNewButton, null)), /*#__PURE__*/React__default.createElement(SubscriptionOptionsSubmit, {
|
|
26010
|
-
role: "submit",
|
|
26011
|
-
className: "plc-mt-4 plc-w-full",
|
|
26012
|
-
name: t("next"),
|
|
26013
|
-
id: "pelcro-submit"
|
|
26014
|
-
}))));
|
|
26015
|
-
};
|
|
26016
|
-
|
|
26017
|
-
const SubscriptionOptionsModal = ({
|
|
26018
|
-
onDisplay,
|
|
26019
|
-
onClose,
|
|
26020
|
-
...otherProps
|
|
26021
|
-
}) => {
|
|
26022
|
-
const {
|
|
26023
|
-
switchView,
|
|
26024
|
-
setProductsList
|
|
26025
|
-
} = usePelcro();
|
|
26026
|
-
|
|
26027
|
-
const onRenewSubSuccess = () => {
|
|
26028
|
-
var _otherProps$onRenewSu;
|
|
26029
|
-
|
|
26030
|
-
(_otherProps$onRenewSu = otherProps.onRenewSubSuccess) === null || _otherProps$onRenewSu === void 0 ? void 0 : _otherProps$onRenewSu.call(otherProps);
|
|
26031
|
-
setProductsList(getRenewableProducts());
|
|
26032
|
-
switchView("_plan-select-renew");
|
|
26033
|
-
};
|
|
26034
|
-
|
|
26035
|
-
const onNewSubSuccess = () => {
|
|
26036
|
-
var _otherProps$onNewSubS;
|
|
26037
|
-
|
|
26038
|
-
(_otherProps$onNewSubS = otherProps.onNewSubSuccess) === null || _otherProps$onNewSubS === void 0 ? void 0 : _otherProps$onNewSubS.call(otherProps);
|
|
26039
|
-
switchView("plan-select");
|
|
26040
|
-
};
|
|
26041
|
-
|
|
26042
|
-
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
26043
|
-
onDisplay: onDisplay,
|
|
26044
|
-
onClose: onClose,
|
|
26045
|
-
id: "pelcro-subscription-options-modal"
|
|
26046
|
-
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionOptionsView, Object.assign({}, otherProps, {
|
|
26047
|
-
onNewSubSuccess: onNewSubSuccess,
|
|
26048
|
-
onRenewSubSuccess: onRenewSubSuccess
|
|
26049
|
-
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
26050
|
-
};
|
|
26051
|
-
SubscriptionOptionsModal.viewId = "subscription-options";
|
|
26052
|
-
|
|
26053
|
-
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 };
|
|
25749
|
+
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 };
|