@pelcro/react-pelcro-js 3.2.0-beta.15 → 3.2.0-beta.19
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 +496 -275
- package/dist/index.esm.js +493 -276
- package/dist/pelcro.css +4 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3466,7 +3466,7 @@ var paymentMethod_fr = {
|
|
|
3466
3466
|
var title$f = "Enter your email to subscribe to our newsletter";
|
|
3467
3467
|
var updateTitle$1 = "Update newsletter selections";
|
|
3468
3468
|
var subtitle$7 = "We may use your email for other marketing communication";
|
|
3469
|
-
var labels$
|
|
3469
|
+
var labels$r = {
|
|
3470
3470
|
submit: "Submit",
|
|
3471
3471
|
firstName: "First name",
|
|
3472
3472
|
lastName: "Last name",
|
|
@@ -3474,7 +3474,7 @@ var labels$p = {
|
|
|
3474
3474
|
postalCode: "Postal code",
|
|
3475
3475
|
required: "required"
|
|
3476
3476
|
};
|
|
3477
|
-
var messages$
|
|
3477
|
+
var messages$t = {
|
|
3478
3478
|
alreadyHaveAccount: "Already have an account?",
|
|
3479
3479
|
success: "Newsletters were successfully updated",
|
|
3480
3480
|
loginHere: "Login here.",
|
|
@@ -3485,14 +3485,14 @@ var newsletter_en = {
|
|
|
3485
3485
|
title: title$f,
|
|
3486
3486
|
updateTitle: updateTitle$1,
|
|
3487
3487
|
subtitle: subtitle$7,
|
|
3488
|
-
labels: labels$
|
|
3489
|
-
messages: messages$
|
|
3488
|
+
labels: labels$r,
|
|
3489
|
+
messages: messages$t
|
|
3490
3490
|
};
|
|
3491
3491
|
|
|
3492
3492
|
var title$e = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
3493
3493
|
var updateTitle = "Mettre à jour son choix d'infolettres";
|
|
3494
3494
|
var subtitle$6 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
|
|
3495
|
-
var labels$
|
|
3495
|
+
var labels$q = {
|
|
3496
3496
|
submit: "Lire l’article !",
|
|
3497
3497
|
firstName: "Prénom",
|
|
3498
3498
|
lastName: "Nom de famille",
|
|
@@ -3500,7 +3500,7 @@ var labels$o = {
|
|
|
3500
3500
|
postalCode: "Code postal",
|
|
3501
3501
|
required: "Champs obligatoires"
|
|
3502
3502
|
};
|
|
3503
|
-
var messages$
|
|
3503
|
+
var messages$s = {
|
|
3504
3504
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
3505
3505
|
success: "Votre choix d'infolettres à été mis à jour",
|
|
3506
3506
|
loginHere: "Connectez-vous ici",
|
|
@@ -3511,14 +3511,14 @@ var newsletter_fr = {
|
|
|
3511
3511
|
title: title$e,
|
|
3512
3512
|
updateTitle: updateTitle,
|
|
3513
3513
|
subtitle: subtitle$6,
|
|
3514
|
-
labels: labels$
|
|
3515
|
-
messages: messages$
|
|
3514
|
+
labels: labels$q,
|
|
3515
|
+
messages: messages$s
|
|
3516
3516
|
};
|
|
3517
3517
|
|
|
3518
|
-
var labels$
|
|
3518
|
+
var labels$p = {
|
|
3519
3519
|
"continue": "Continue to content"
|
|
3520
3520
|
};
|
|
3521
|
-
var messages$
|
|
3521
|
+
var messages$r = {
|
|
3522
3522
|
yourFreeTrial: "Subscription successful!",
|
|
3523
3523
|
youHaveAccess: "Hope you enjoy the subscription. Please contact us if you have any questions or concerns.",
|
|
3524
3524
|
clickToLearn: {
|
|
@@ -3544,15 +3544,15 @@ var errors$9 = {
|
|
|
3544
3544
|
"": ""
|
|
3545
3545
|
};
|
|
3546
3546
|
var success_en = {
|
|
3547
|
-
labels: labels$
|
|
3548
|
-
messages: messages$
|
|
3547
|
+
labels: labels$p,
|
|
3548
|
+
messages: messages$r,
|
|
3549
3549
|
errors: errors$9
|
|
3550
3550
|
};
|
|
3551
3551
|
|
|
3552
|
-
var labels$
|
|
3552
|
+
var labels$o = {
|
|
3553
3553
|
"continue": "Abonnement réussi !"
|
|
3554
3554
|
};
|
|
3555
|
-
var messages$
|
|
3555
|
+
var messages$q = {
|
|
3556
3556
|
yourFreeTrial: "Votre essai gratuit vient de débuter",
|
|
3557
3557
|
youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
|
|
3558
3558
|
clickToLearn: {
|
|
@@ -3578,12 +3578,12 @@ var errors$8 = {
|
|
|
3578
3578
|
"": ""
|
|
3579
3579
|
};
|
|
3580
3580
|
var success_fr = {
|
|
3581
|
-
labels: labels$
|
|
3582
|
-
messages: messages$
|
|
3581
|
+
labels: labels$o,
|
|
3582
|
+
messages: messages$q,
|
|
3583
3583
|
errors: errors$8
|
|
3584
3584
|
};
|
|
3585
3585
|
|
|
3586
|
-
var messages$
|
|
3586
|
+
var messages$p = {
|
|
3587
3587
|
freeVisits: "Free visits left:",
|
|
3588
3588
|
subscribeNow: "Subscribe",
|
|
3589
3589
|
alreadyHaveAccount: "Already have an account?",
|
|
@@ -3593,11 +3593,11 @@ var errors$7 = {
|
|
|
3593
3593
|
"": ""
|
|
3594
3594
|
};
|
|
3595
3595
|
var meter_en = {
|
|
3596
|
-
messages: messages$
|
|
3596
|
+
messages: messages$p,
|
|
3597
3597
|
errors: errors$7
|
|
3598
3598
|
};
|
|
3599
3599
|
|
|
3600
|
-
var messages$
|
|
3600
|
+
var messages$o = {
|
|
3601
3601
|
freeVisits: "Visites gratuites restantes:",
|
|
3602
3602
|
subscribeNow: "Abonnez-vous maintenant !",
|
|
3603
3603
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
@@ -3607,15 +3607,15 @@ var errors$6 = {
|
|
|
3607
3607
|
"": ""
|
|
3608
3608
|
};
|
|
3609
3609
|
var meter_fr = {
|
|
3610
|
-
messages: messages$
|
|
3610
|
+
messages: messages$o,
|
|
3611
3611
|
errors: errors$6
|
|
3612
3612
|
};
|
|
3613
3613
|
|
|
3614
|
-
var messages$
|
|
3614
|
+
var messages$n = {
|
|
3615
3615
|
youAreSafe: "You're safe - PCI compliant 128 SSL by",
|
|
3616
3616
|
bankRedirection: "Please hold, redirecting you to your bank."
|
|
3617
3617
|
};
|
|
3618
|
-
var labels$
|
|
3618
|
+
var labels$n = {
|
|
3619
3619
|
card: "Enter card number",
|
|
3620
3620
|
date: "Expiration date",
|
|
3621
3621
|
CVC: "CVC",
|
|
@@ -3634,15 +3634,15 @@ var labels$l = {
|
|
|
3634
3634
|
removeCoupon: "REMOVE"
|
|
3635
3635
|
};
|
|
3636
3636
|
var checkoutForm_en = {
|
|
3637
|
-
messages: messages$
|
|
3638
|
-
labels: labels$
|
|
3637
|
+
messages: messages$n,
|
|
3638
|
+
labels: labels$n
|
|
3639
3639
|
};
|
|
3640
3640
|
|
|
3641
|
-
var messages$
|
|
3641
|
+
var messages$m = {
|
|
3642
3642
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
3643
3643
|
bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque."
|
|
3644
3644
|
};
|
|
3645
|
-
var labels$
|
|
3645
|
+
var labels$m = {
|
|
3646
3646
|
card: "Entrez le numéro de carte",
|
|
3647
3647
|
date: "Date d’expiration",
|
|
3648
3648
|
CVC: "CVC",
|
|
@@ -3661,8 +3661,8 @@ var labels$k = {
|
|
|
3661
3661
|
removeCoupon: "RETIRER"
|
|
3662
3662
|
};
|
|
3663
3663
|
var checkoutForm_fr = {
|
|
3664
|
-
messages: messages$
|
|
3665
|
-
labels: labels$
|
|
3664
|
+
messages: messages$m,
|
|
3665
|
+
labels: labels$m
|
|
3666
3666
|
};
|
|
3667
3667
|
|
|
3668
3668
|
var youAreSafe$1 = "You're safe - PCI compliant 128 SSL by";
|
|
@@ -3703,7 +3703,7 @@ var messages_fr = {
|
|
|
3703
3703
|
zeroTotalInvoice: zeroTotalInvoice
|
|
3704
3704
|
};
|
|
3705
3705
|
|
|
3706
|
-
var labels$
|
|
3706
|
+
var labels$l = {
|
|
3707
3707
|
email: "Enter email",
|
|
3708
3708
|
password: "Enter password",
|
|
3709
3709
|
required: "required",
|
|
@@ -3711,7 +3711,7 @@ var labels$j = {
|
|
|
3711
3711
|
passwordPlaceholder: "Password",
|
|
3712
3712
|
login: "Login"
|
|
3713
3713
|
};
|
|
3714
|
-
var messages$
|
|
3714
|
+
var messages$l = {
|
|
3715
3715
|
loginTo: "Login to your account",
|
|
3716
3716
|
welcome: "Welcome back, sign in with your existing account.",
|
|
3717
3717
|
dontHaveAccount: "Don't have an account yet?",
|
|
@@ -3730,12 +3730,12 @@ var errors$5 = {
|
|
|
3730
3730
|
"": ""
|
|
3731
3731
|
};
|
|
3732
3732
|
var login_en = {
|
|
3733
|
-
labels: labels$
|
|
3734
|
-
messages: messages$
|
|
3733
|
+
labels: labels$l,
|
|
3734
|
+
messages: messages$l,
|
|
3735
3735
|
errors: errors$5
|
|
3736
3736
|
};
|
|
3737
3737
|
|
|
3738
|
-
var labels$
|
|
3738
|
+
var labels$k = {
|
|
3739
3739
|
email: "Entrez votre adresse courriel",
|
|
3740
3740
|
password: "Entrez votre mot de passe",
|
|
3741
3741
|
required: "Champs obligatoires",
|
|
@@ -3743,7 +3743,7 @@ var labels$i = {
|
|
|
3743
3743
|
passwordPlaceholder: "Mot de passe",
|
|
3744
3744
|
login: "Connexion"
|
|
3745
3745
|
};
|
|
3746
|
-
var messages$
|
|
3746
|
+
var messages$k = {
|
|
3747
3747
|
loginTo: "Connectez-vous à votre compte",
|
|
3748
3748
|
welcome: "Bienvenue, connectez-vous avec votre compte existant.",
|
|
3749
3749
|
dontHaveAccount: "Vous n’avez pas encore de compte ?",
|
|
@@ -3762,11 +3762,39 @@ var errors$4 = {
|
|
|
3762
3762
|
"": ""
|
|
3763
3763
|
};
|
|
3764
3764
|
var login_fr = {
|
|
3765
|
-
labels: labels$
|
|
3766
|
-
messages: messages$
|
|
3765
|
+
labels: labels$k,
|
|
3766
|
+
messages: messages$k,
|
|
3767
3767
|
errors: errors$4
|
|
3768
3768
|
};
|
|
3769
3769
|
|
|
3770
|
+
var labels$j = {
|
|
3771
|
+
title: "Verifying Magin Link",
|
|
3772
|
+
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
3773
|
+
resend: "Resend email"
|
|
3774
|
+
};
|
|
3775
|
+
var messages$j = {
|
|
3776
|
+
resent: "Resent successfully",
|
|
3777
|
+
success: "Link verified successfully!"
|
|
3778
|
+
};
|
|
3779
|
+
var verifyLinkToken_en = {
|
|
3780
|
+
labels: labels$j,
|
|
3781
|
+
messages: messages$j
|
|
3782
|
+
};
|
|
3783
|
+
|
|
3784
|
+
var labels$i = {
|
|
3785
|
+
title: "Confirmez votre courriel",
|
|
3786
|
+
instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
|
|
3787
|
+
resend: "Renvoyer le courriel"
|
|
3788
|
+
};
|
|
3789
|
+
var messages$i = {
|
|
3790
|
+
resent: "Renvoyé avec succès",
|
|
3791
|
+
success: "Lien vérifiée avec succès"
|
|
3792
|
+
};
|
|
3793
|
+
var verifyLinkToken_fr = {
|
|
3794
|
+
labels: labels$i,
|
|
3795
|
+
messages: messages$i
|
|
3796
|
+
};
|
|
3797
|
+
|
|
3770
3798
|
var title$d = "Create an account";
|
|
3771
3799
|
var subtitle$5 = "Enter your email and password below";
|
|
3772
3800
|
var labels$h = {
|
|
@@ -6053,7 +6081,7 @@ class PelcroActions {
|
|
|
6053
6081
|
view,
|
|
6054
6082
|
cartItems,
|
|
6055
6083
|
...otherStateFields
|
|
6056
|
-
} = initialState$
|
|
6084
|
+
} = initialState$j;
|
|
6057
6085
|
this.set(otherStateFields);
|
|
6058
6086
|
});
|
|
6059
6087
|
|
|
@@ -6372,7 +6400,7 @@ class PelcroCallbacks {
|
|
|
6372
6400
|
|
|
6373
6401
|
}
|
|
6374
6402
|
|
|
6375
|
-
const initialState$
|
|
6403
|
+
const initialState$j = {
|
|
6376
6404
|
// View
|
|
6377
6405
|
view: null,
|
|
6378
6406
|
// Plans
|
|
@@ -6402,7 +6430,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
|
|
|
6402
6430
|
return {
|
|
6403
6431
|
// Store setter
|
|
6404
6432
|
set,
|
|
6405
|
-
...initialState$
|
|
6433
|
+
...initialState$j,
|
|
6406
6434
|
// State actions
|
|
6407
6435
|
...actions,
|
|
6408
6436
|
// Callbacks
|
|
@@ -6566,7 +6594,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
|
|
|
6566
6594
|
*/
|
|
6567
6595
|
|
|
6568
6596
|
const isValidViewFromURL = viewID => {
|
|
6569
|
-
if (["login", "register", "plan-select", "gift-redeem", "password-forgot", "password-reset", "password-change", "payment-method-update", "user-edit", "newsletter", "address-create", "order-create", "cart", "email-verify", "invoice-details"].includes(viewID) || hasValidNewsletterUpdateUrl()) {
|
|
6597
|
+
if (["login", "register", "plan-select", "gift-redeem", "password-forgot", "password-reset", "password-change", "passwordless-login", "payment-method-update", "user-edit", "newsletter", "address-create", "order-create", "cart", "email-verify", "invoice-details"].includes(viewID) || hasValidNewsletterUpdateUrl()) {
|
|
6570
6598
|
return true;
|
|
6571
6599
|
}
|
|
6572
6600
|
|
|
@@ -6782,6 +6810,7 @@ const resources = {
|
|
|
6782
6810
|
checkoutForm: checkoutForm_en,
|
|
6783
6811
|
messages: messages_en,
|
|
6784
6812
|
login: login_en,
|
|
6813
|
+
verifyLinkToken: verifyLinkToken_en,
|
|
6785
6814
|
register: register_en,
|
|
6786
6815
|
userEdit: userEdit_en,
|
|
6787
6816
|
address: address_en,
|
|
@@ -6806,6 +6835,7 @@ const resources = {
|
|
|
6806
6835
|
checkoutForm: checkoutForm_fr,
|
|
6807
6836
|
messages: messages_fr,
|
|
6808
6837
|
login: login_fr,
|
|
6838
|
+
verifyLinkToken: verifyLinkToken_fr,
|
|
6809
6839
|
register: register_fr,
|
|
6810
6840
|
userEdit: userEdit_fr,
|
|
6811
6841
|
address: address_fr,
|
|
@@ -8978,6 +9008,10 @@ const initViewFromURL = () => {
|
|
|
8978
9008
|
return verifyEmailTokenFromUrl();
|
|
8979
9009
|
}
|
|
8980
9010
|
|
|
9011
|
+
if (view === "passwordless-login") {
|
|
9012
|
+
return verifyLinkTokenFromUrl();
|
|
9013
|
+
}
|
|
9014
|
+
|
|
8981
9015
|
if (view === "invoice-details") {
|
|
8982
9016
|
return showInvoiceDetailsFromUrl();
|
|
8983
9017
|
}
|
|
@@ -9158,6 +9192,18 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
9158
9192
|
});
|
|
9159
9193
|
};
|
|
9160
9194
|
|
|
9195
|
+
const verifyLinkTokenFromUrl = () => {
|
|
9196
|
+
var _window$Pelcro$user$i, _window$Pelcro$user;
|
|
9197
|
+
|
|
9198
|
+
const isAlreadyLoggedIn = (_window$Pelcro$user$i = (_window$Pelcro$user = window.Pelcro.user) === null || _window$Pelcro$user === void 0 ? void 0 : _window$Pelcro$user.isAuthenticated()) !== null && _window$Pelcro$user$i !== void 0 ? _window$Pelcro$user$i : false;
|
|
9199
|
+
const loginToken = window.Pelcro.helpers.getURLParameter("token");
|
|
9200
|
+
if (isAlreadyLoggedIn || !loginToken) return;
|
|
9201
|
+
const {
|
|
9202
|
+
switchView
|
|
9203
|
+
} = usePelcro.getStore();
|
|
9204
|
+
return switchView("passwordless-login");
|
|
9205
|
+
};
|
|
9206
|
+
|
|
9161
9207
|
const showInvoiceDetailsFromUrl = () => {
|
|
9162
9208
|
const {
|
|
9163
9209
|
isAuthenticated,
|
|
@@ -9533,8 +9579,9 @@ const LOAD_PAYMENT_METHODS = "LOAD_PAYMENT_METHODS";
|
|
|
9533
9579
|
const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
|
|
9534
9580
|
const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
|
|
9535
9581
|
const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
|
|
9582
|
+
const LINK_TOKEN_VERIFY = "LINK_TOKEN_VERIFY";
|
|
9536
9583
|
|
|
9537
|
-
const initialState$
|
|
9584
|
+
const initialState$i = {
|
|
9538
9585
|
email: "",
|
|
9539
9586
|
password: "",
|
|
9540
9587
|
emailError: null,
|
|
@@ -9545,10 +9592,10 @@ const initialState$h = {
|
|
|
9545
9592
|
content: ""
|
|
9546
9593
|
}
|
|
9547
9594
|
};
|
|
9548
|
-
const store$
|
|
9595
|
+
const store$i = /*#__PURE__*/React.createContext(initialState$i);
|
|
9549
9596
|
const {
|
|
9550
|
-
Provider: Provider$
|
|
9551
|
-
} = store$
|
|
9597
|
+
Provider: Provider$i
|
|
9598
|
+
} = store$i;
|
|
9552
9599
|
|
|
9553
9600
|
const LoginContainer = ({
|
|
9554
9601
|
style,
|
|
@@ -9655,7 +9702,7 @@ const LoginContainer = ({
|
|
|
9655
9702
|
});
|
|
9656
9703
|
|
|
9657
9704
|
case RESET_LOGIN_FORM:
|
|
9658
|
-
return initialState$
|
|
9705
|
+
return initialState$i;
|
|
9659
9706
|
|
|
9660
9707
|
case DISABLE_LOGIN_BUTTON:
|
|
9661
9708
|
return lib_7({ ...state,
|
|
@@ -9673,12 +9720,12 @@ const LoginContainer = ({
|
|
|
9673
9720
|
default:
|
|
9674
9721
|
return state;
|
|
9675
9722
|
}
|
|
9676
|
-
}, initialState$
|
|
9723
|
+
}, initialState$i);
|
|
9677
9724
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9678
9725
|
style: { ...style
|
|
9679
9726
|
},
|
|
9680
9727
|
className: `pelcro-container pelcro-login-container ${className}`
|
|
9681
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
9728
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$i, {
|
|
9682
9729
|
value: {
|
|
9683
9730
|
state,
|
|
9684
9731
|
dispatch
|
|
@@ -9686,12 +9733,12 @@ const LoginContainer = ({
|
|
|
9686
9733
|
}, children.length ? children.map((child, i) => {
|
|
9687
9734
|
if (child) {
|
|
9688
9735
|
return /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
9689
|
-
store: store$
|
|
9736
|
+
store: store$i,
|
|
9690
9737
|
key: i
|
|
9691
9738
|
});
|
|
9692
9739
|
}
|
|
9693
9740
|
}) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
9694
|
-
store: store$
|
|
9741
|
+
store: store$i
|
|
9695
9742
|
})));
|
|
9696
9743
|
};
|
|
9697
9744
|
|
|
@@ -9939,7 +9986,7 @@ const LoginButton = ({
|
|
|
9939
9986
|
buttonDisabled
|
|
9940
9987
|
},
|
|
9941
9988
|
dispatch
|
|
9942
|
-
} = React.useContext(store$
|
|
9989
|
+
} = React.useContext(store$i);
|
|
9943
9990
|
const {
|
|
9944
9991
|
t
|
|
9945
9992
|
} = useTranslation("login");
|
|
@@ -9960,11 +10007,11 @@ const LoginButton = ({
|
|
|
9960
10007
|
};
|
|
9961
10008
|
|
|
9962
10009
|
const LoginEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
9963
|
-
store: store$
|
|
10010
|
+
store: store$i
|
|
9964
10011
|
}, props));
|
|
9965
10012
|
|
|
9966
10013
|
const LoginPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
|
|
9967
|
-
store: store$
|
|
10014
|
+
store: store$i
|
|
9968
10015
|
}, props));
|
|
9969
10016
|
|
|
9970
10017
|
var _path$r;
|
|
@@ -10041,7 +10088,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
|
10041
10088
|
var FacebookLogin = unwrapExports(facebookLoginRenderProps);
|
|
10042
10089
|
facebookLoginRenderProps.FacebookLogin;
|
|
10043
10090
|
|
|
10044
|
-
const initialState$
|
|
10091
|
+
const initialState$h = {
|
|
10045
10092
|
email: "",
|
|
10046
10093
|
password: "",
|
|
10047
10094
|
emailError: null,
|
|
@@ -10058,10 +10105,10 @@ const initialState$g = {
|
|
|
10058
10105
|
content: ""
|
|
10059
10106
|
}
|
|
10060
10107
|
};
|
|
10061
|
-
const store$
|
|
10108
|
+
const store$h = /*#__PURE__*/React.createContext(initialState$h);
|
|
10062
10109
|
const {
|
|
10063
|
-
Provider: Provider$
|
|
10064
|
-
} = store$
|
|
10110
|
+
Provider: Provider$h
|
|
10111
|
+
} = store$h;
|
|
10065
10112
|
|
|
10066
10113
|
const RegisterContainer = ({
|
|
10067
10114
|
style,
|
|
@@ -10244,7 +10291,7 @@ const RegisterContainer = ({
|
|
|
10244
10291
|
});
|
|
10245
10292
|
|
|
10246
10293
|
case RESET_LOGIN_FORM:
|
|
10247
|
-
return initialState$
|
|
10294
|
+
return initialState$h;
|
|
10248
10295
|
|
|
10249
10296
|
case DISABLE_REGISTRATION_BUTTON:
|
|
10250
10297
|
return lib_7({ ...state,
|
|
@@ -10262,12 +10309,12 @@ const RegisterContainer = ({
|
|
|
10262
10309
|
default:
|
|
10263
10310
|
return state;
|
|
10264
10311
|
}
|
|
10265
|
-
}, initialState$
|
|
10312
|
+
}, initialState$h);
|
|
10266
10313
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10267
10314
|
style: { ...style
|
|
10268
10315
|
},
|
|
10269
10316
|
className: `pelcro-container pelcro-register-container ${className}`
|
|
10270
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
10317
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$h, {
|
|
10271
10318
|
value: {
|
|
10272
10319
|
state,
|
|
10273
10320
|
dispatch
|
|
@@ -10275,12 +10322,12 @@ const RegisterContainer = ({
|
|
|
10275
10322
|
}, children.length ? children.map((child, i) => {
|
|
10276
10323
|
if (child) {
|
|
10277
10324
|
return /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
10278
|
-
store: store$
|
|
10325
|
+
store: store$h,
|
|
10279
10326
|
key: i
|
|
10280
10327
|
});
|
|
10281
10328
|
}
|
|
10282
10329
|
}) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
10283
|
-
store: store$
|
|
10330
|
+
store: store$h
|
|
10284
10331
|
})));
|
|
10285
10332
|
};
|
|
10286
10333
|
/**
|
|
@@ -10320,10 +10367,10 @@ const FacebookLoginButton = ({
|
|
|
10320
10367
|
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;
|
|
10321
10368
|
const {
|
|
10322
10369
|
dispatch: loginDispatch
|
|
10323
|
-
} = React.useContext(store$
|
|
10370
|
+
} = React.useContext(store$i);
|
|
10324
10371
|
const {
|
|
10325
10372
|
dispatch: registerDispatch
|
|
10326
|
-
} = React.useContext(store$
|
|
10373
|
+
} = React.useContext(store$h);
|
|
10327
10374
|
|
|
10328
10375
|
const onSuccess = facebookUser => {
|
|
10329
10376
|
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
@@ -10410,10 +10457,10 @@ const GoogleLoginButton = ({
|
|
|
10410
10457
|
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;
|
|
10411
10458
|
const {
|
|
10412
10459
|
dispatch: loginDispatch
|
|
10413
|
-
} = React.useContext(store$
|
|
10460
|
+
} = React.useContext(store$i);
|
|
10414
10461
|
const {
|
|
10415
10462
|
dispatch: registerDispatch
|
|
10416
|
-
} = React.useContext(store$
|
|
10463
|
+
} = React.useContext(store$h);
|
|
10417
10464
|
|
|
10418
10465
|
const onSuccess = response => {
|
|
10419
10466
|
var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
|
|
@@ -10509,10 +10556,10 @@ const Auth0LoginButton = ({
|
|
|
10509
10556
|
}, [auth0Enabled, auth0Loaded]);
|
|
10510
10557
|
const {
|
|
10511
10558
|
dispatch: loginDispatch
|
|
10512
|
-
} = React.useContext(store$
|
|
10559
|
+
} = React.useContext(store$i);
|
|
10513
10560
|
const {
|
|
10514
10561
|
dispatch: registerDispatch
|
|
10515
|
-
} = React.useContext(store$
|
|
10562
|
+
} = React.useContext(store$h);
|
|
10516
10563
|
|
|
10517
10564
|
function handleClick() {
|
|
10518
10565
|
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
@@ -10800,11 +10847,11 @@ function LoginModal({
|
|
|
10800
10847
|
LoginModal.viewId = "login";
|
|
10801
10848
|
|
|
10802
10849
|
const RegisterEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
10803
|
-
store: store$
|
|
10850
|
+
store: store$h
|
|
10804
10851
|
}, props));
|
|
10805
10852
|
|
|
10806
10853
|
const RegisterPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
|
|
10807
|
-
store: store$
|
|
10854
|
+
store: store$h
|
|
10808
10855
|
}, props));
|
|
10809
10856
|
|
|
10810
10857
|
const RegisterButton = ({
|
|
@@ -10824,7 +10871,7 @@ const RegisterButton = ({
|
|
|
10824
10871
|
buttonDisabled
|
|
10825
10872
|
},
|
|
10826
10873
|
dispatch
|
|
10827
|
-
} = React.useContext(store$
|
|
10874
|
+
} = React.useContext(store$h);
|
|
10828
10875
|
const {
|
|
10829
10876
|
t
|
|
10830
10877
|
} = useTranslation("register");
|
|
@@ -10962,7 +11009,7 @@ function FirstName({
|
|
|
10962
11009
|
}
|
|
10963
11010
|
|
|
10964
11011
|
const RegisterFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
|
|
10965
|
-
store: store$
|
|
11012
|
+
store: store$h
|
|
10966
11013
|
}, props));
|
|
10967
11014
|
|
|
10968
11015
|
function LastName({
|
|
@@ -10993,7 +11040,7 @@ function LastName({
|
|
|
10993
11040
|
}
|
|
10994
11041
|
|
|
10995
11042
|
const RegisterLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
|
|
10996
|
-
store: store$
|
|
11043
|
+
store: store$h
|
|
10997
11044
|
}, props));
|
|
10998
11045
|
|
|
10999
11046
|
/**
|
|
@@ -11117,7 +11164,7 @@ function TextInput({
|
|
|
11117
11164
|
|
|
11118
11165
|
const RegisterTextInput = props => {
|
|
11119
11166
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
|
|
11120
|
-
store: store$
|
|
11167
|
+
store: store$h
|
|
11121
11168
|
}));
|
|
11122
11169
|
};
|
|
11123
11170
|
|
|
@@ -13461,7 +13508,7 @@ class VantivGateway {
|
|
|
13461
13508
|
|
|
13462
13509
|
/** @type {PaymentStateType} */
|
|
13463
13510
|
|
|
13464
|
-
const initialState$
|
|
13511
|
+
const initialState$g = {
|
|
13465
13512
|
disableSubmit: false,
|
|
13466
13513
|
isLoading: false,
|
|
13467
13514
|
disableCouponButton: false,
|
|
@@ -13480,10 +13527,10 @@ const initialState$f = {
|
|
|
13480
13527
|
content: ""
|
|
13481
13528
|
}
|
|
13482
13529
|
};
|
|
13483
|
-
const store$
|
|
13530
|
+
const store$g = /*#__PURE__*/React.createContext(initialState$g);
|
|
13484
13531
|
const {
|
|
13485
|
-
Provider: Provider$
|
|
13486
|
-
} = store$
|
|
13532
|
+
Provider: Provider$g
|
|
13533
|
+
} = store$g;
|
|
13487
13534
|
|
|
13488
13535
|
const PaymentMethodContainerWithoutStripe = ({
|
|
13489
13536
|
style,
|
|
@@ -14735,21 +14782,21 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
14735
14782
|
default:
|
|
14736
14783
|
return state;
|
|
14737
14784
|
}
|
|
14738
|
-
}, initialState$
|
|
14785
|
+
}, initialState$g);
|
|
14739
14786
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14740
14787
|
style: { ...style
|
|
14741
14788
|
},
|
|
14742
14789
|
className: `pelcro-container pelcro-payment-container ${className}`
|
|
14743
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
14790
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$g, {
|
|
14744
14791
|
value: {
|
|
14745
14792
|
state,
|
|
14746
14793
|
dispatch
|
|
14747
14794
|
}
|
|
14748
14795
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
14749
|
-
store: store$
|
|
14796
|
+
store: store$g,
|
|
14750
14797
|
key: i
|
|
14751
14798
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
14752
|
-
store: store$
|
|
14799
|
+
store: store$g
|
|
14753
14800
|
})));
|
|
14754
14801
|
};
|
|
14755
14802
|
|
|
@@ -14771,7 +14818,7 @@ const PaymentMethodContainer = props => {
|
|
|
14771
14818
|
stripeAccount: window.Pelcro.site.read().account_id,
|
|
14772
14819
|
locale: getPageOrDefaultLanguage()
|
|
14773
14820
|
}, /*#__PURE__*/React__default['default'].createElement(es_11, null, /*#__PURE__*/React__default['default'].createElement(UnwrappedForm, Object.assign({
|
|
14774
|
-
store: store$
|
|
14821
|
+
store: store$g
|
|
14775
14822
|
}, props))));
|
|
14776
14823
|
}
|
|
14777
14824
|
|
|
@@ -14824,7 +14871,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
14824
14871
|
currentPlan,
|
|
14825
14872
|
updatedPrice
|
|
14826
14873
|
}
|
|
14827
|
-
} = React.useContext(store$
|
|
14874
|
+
} = React.useContext(store$g);
|
|
14828
14875
|
|
|
14829
14876
|
const updatePaymentRequest = () => {
|
|
14830
14877
|
// Make sure payment request is up to date, eg. user added a coupon code.
|
|
@@ -14900,7 +14947,7 @@ const DiscountedPrice = props => {
|
|
|
14900
14947
|
taxAmount,
|
|
14901
14948
|
percentOff
|
|
14902
14949
|
}
|
|
14903
|
-
} = React.useContext(store$
|
|
14950
|
+
} = React.useContext(store$g);
|
|
14904
14951
|
const {
|
|
14905
14952
|
order,
|
|
14906
14953
|
plan
|
|
@@ -14950,7 +14997,7 @@ const SubmitPaymentMethod = ({
|
|
|
14950
14997
|
isLoading,
|
|
14951
14998
|
updatedPrice
|
|
14952
14999
|
}
|
|
14953
|
-
} = React.useContext(store$
|
|
15000
|
+
} = React.useContext(store$g);
|
|
14954
15001
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
14955
15002
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
14956
15003
|
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
@@ -15000,7 +15047,7 @@ const ApplyCouponButton = ({
|
|
|
15000
15047
|
disableCouponButton
|
|
15001
15048
|
},
|
|
15002
15049
|
dispatch
|
|
15003
|
-
} = React.useContext(store$
|
|
15050
|
+
} = React.useContext(store$g);
|
|
15004
15051
|
const {
|
|
15005
15052
|
t
|
|
15006
15053
|
} = useTranslation("checkoutForm");
|
|
@@ -15034,7 +15081,7 @@ const CouponCodeField = props => {
|
|
|
15034
15081
|
couponCode,
|
|
15035
15082
|
couponError
|
|
15036
15083
|
}
|
|
15037
|
-
} = React.useContext(store$
|
|
15084
|
+
} = React.useContext(store$g);
|
|
15038
15085
|
|
|
15039
15086
|
const onCouponCodeChange = e => {
|
|
15040
15087
|
dispatch({
|
|
@@ -15090,7 +15137,7 @@ const CouponCode = ({
|
|
|
15090
15137
|
state: {
|
|
15091
15138
|
enableCouponField
|
|
15092
15139
|
}
|
|
15093
|
-
} = React.useContext(store$
|
|
15140
|
+
} = React.useContext(store$g);
|
|
15094
15141
|
const {
|
|
15095
15142
|
t
|
|
15096
15143
|
} = useTranslation("checkoutForm");
|
|
@@ -15347,7 +15394,7 @@ const PaypalSubscribeButton = props => {
|
|
|
15347
15394
|
const {
|
|
15348
15395
|
dispatch,
|
|
15349
15396
|
state
|
|
15350
|
-
} = React.useContext(store$
|
|
15397
|
+
} = React.useContext(store$g);
|
|
15351
15398
|
const {
|
|
15352
15399
|
product,
|
|
15353
15400
|
plan,
|
|
@@ -15480,7 +15527,7 @@ const SelectedPaymentMethod = () => {
|
|
|
15480
15527
|
state: {
|
|
15481
15528
|
isLoading
|
|
15482
15529
|
}
|
|
15483
|
-
} = React.useContext(store$
|
|
15530
|
+
} = React.useContext(store$g);
|
|
15484
15531
|
const {
|
|
15485
15532
|
switchView,
|
|
15486
15533
|
selectedPaymentMethodId
|
|
@@ -15522,7 +15569,7 @@ const TaxAmount = () => {
|
|
|
15522
15569
|
state: {
|
|
15523
15570
|
taxAmount
|
|
15524
15571
|
}
|
|
15525
|
-
} = React.useContext(store$
|
|
15572
|
+
} = React.useContext(store$g);
|
|
15526
15573
|
const {
|
|
15527
15574
|
plan
|
|
15528
15575
|
} = usePelcro();
|
|
@@ -16041,7 +16088,7 @@ class DefaultNewsLetter extends React.Component {
|
|
|
16041
16088
|
|
|
16042
16089
|
const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
|
|
16043
16090
|
|
|
16044
|
-
const initialState$
|
|
16091
|
+
const initialState$f = {
|
|
16045
16092
|
didSubToNewslettersBefore: false,
|
|
16046
16093
|
newsletters: [],
|
|
16047
16094
|
isListLoading: true,
|
|
@@ -16051,10 +16098,10 @@ const initialState$e = {
|
|
|
16051
16098
|
content: ""
|
|
16052
16099
|
}
|
|
16053
16100
|
};
|
|
16054
|
-
const store$
|
|
16101
|
+
const store$f = /*#__PURE__*/React.createContext(initialState$f);
|
|
16055
16102
|
const {
|
|
16056
|
-
Provider: Provider$
|
|
16057
|
-
} = store$
|
|
16103
|
+
Provider: Provider$f
|
|
16104
|
+
} = store$f;
|
|
16058
16105
|
|
|
16059
16106
|
const NewsletterUpdateContainer = ({
|
|
16060
16107
|
style,
|
|
@@ -16167,7 +16214,7 @@ const NewsletterUpdateContainer = ({
|
|
|
16167
16214
|
default:
|
|
16168
16215
|
return state;
|
|
16169
16216
|
}
|
|
16170
|
-
}, initialState$
|
|
16217
|
+
}, initialState$f);
|
|
16171
16218
|
React.useEffect(() => {
|
|
16172
16219
|
const getUserNewsletters = () => {
|
|
16173
16220
|
var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
|
|
@@ -16211,7 +16258,7 @@ const NewsletterUpdateContainer = ({
|
|
|
16211
16258
|
style: { ...style
|
|
16212
16259
|
},
|
|
16213
16260
|
className: `pelcro-container pelcro-newsletter-update-container ${className}`
|
|
16214
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
16261
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$f, {
|
|
16215
16262
|
value: {
|
|
16216
16263
|
state,
|
|
16217
16264
|
dispatch
|
|
@@ -16219,12 +16266,12 @@ const NewsletterUpdateContainer = ({
|
|
|
16219
16266
|
}, children.length ? children.map((child, i) => {
|
|
16220
16267
|
if (child) {
|
|
16221
16268
|
return /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
16222
|
-
store: store$
|
|
16269
|
+
store: store$f,
|
|
16223
16270
|
key: i
|
|
16224
16271
|
});
|
|
16225
16272
|
}
|
|
16226
16273
|
}) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
16227
|
-
store: store$
|
|
16274
|
+
store: store$f
|
|
16228
16275
|
})));
|
|
16229
16276
|
};
|
|
16230
16277
|
|
|
@@ -16239,7 +16286,7 @@ const NewsletterUpdateButton = ({
|
|
|
16239
16286
|
isSubmitting,
|
|
16240
16287
|
isListLoading
|
|
16241
16288
|
}
|
|
16242
|
-
} = React.useContext(store$
|
|
16289
|
+
} = React.useContext(store$f);
|
|
16243
16290
|
const {
|
|
16244
16291
|
t
|
|
16245
16292
|
} = useTranslation("newsletter");
|
|
@@ -16269,7 +16316,7 @@ const NewsletterUpdateList = () => {
|
|
|
16269
16316
|
newsletters,
|
|
16270
16317
|
isListLoading
|
|
16271
16318
|
}
|
|
16272
|
-
} = React.useContext(store$
|
|
16319
|
+
} = React.useContext(store$f);
|
|
16273
16320
|
|
|
16274
16321
|
if (isListLoading) {
|
|
16275
16322
|
return /*#__PURE__*/React__default['default'].createElement(Loader, {
|
|
@@ -16473,7 +16520,7 @@ function SubscriptionCreateModal({
|
|
|
16473
16520
|
SubscriptionCreateModal.viewId = "subscription-create";
|
|
16474
16521
|
|
|
16475
16522
|
var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
|
|
16476
|
-
const initialState$
|
|
16523
|
+
const initialState$e = {
|
|
16477
16524
|
email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
|
|
16478
16525
|
firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
|
|
16479
16526
|
lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
|
|
@@ -16486,10 +16533,10 @@ const initialState$d = {
|
|
|
16486
16533
|
content: ""
|
|
16487
16534
|
}
|
|
16488
16535
|
};
|
|
16489
|
-
const store$
|
|
16536
|
+
const store$e = /*#__PURE__*/React.createContext(initialState$e);
|
|
16490
16537
|
const {
|
|
16491
|
-
Provider: Provider$
|
|
16492
|
-
} = store$
|
|
16538
|
+
Provider: Provider$e
|
|
16539
|
+
} = store$e;
|
|
16493
16540
|
|
|
16494
16541
|
const UserUpdateContainer = ({
|
|
16495
16542
|
style,
|
|
@@ -16509,20 +16556,23 @@ const UserUpdateContainer = ({
|
|
|
16509
16556
|
}, []);
|
|
16510
16557
|
|
|
16511
16558
|
const loadUserDataIntoFields = () => {
|
|
16512
|
-
var _window$Pelcro$user$r6, _window$Pelcro$user$r7, _window$Pelcro$user$r8, _window$Pelcro$user$r9;
|
|
16559
|
+
var _window$Pelcro$user$r6, _window$Pelcro$user$r7, _window$Pelcro$user$r8, _window$Pelcro$user$r9, _window$Pelcro$user$r10;
|
|
16513
16560
|
|
|
16514
16561
|
const fields = [{
|
|
16562
|
+
type: SET_EMAIL,
|
|
16563
|
+
payload: (_window$Pelcro$user$r6 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r6 === void 0 ? void 0 : _window$Pelcro$user$r6.email
|
|
16564
|
+
}, {
|
|
16515
16565
|
type: SET_FIRST_NAME,
|
|
16516
|
-
payload: (_window$Pelcro$user$
|
|
16566
|
+
payload: (_window$Pelcro$user$r7 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r7 === void 0 ? void 0 : _window$Pelcro$user$r7.first_name
|
|
16517
16567
|
}, {
|
|
16518
16568
|
type: SET_LAST_NAME,
|
|
16519
|
-
payload: (_window$Pelcro$user$
|
|
16569
|
+
payload: (_window$Pelcro$user$r8 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r8 === void 0 ? void 0 : _window$Pelcro$user$r8.last_name
|
|
16520
16570
|
}, {
|
|
16521
16571
|
type: SET_DISPLAY_NAME,
|
|
16522
|
-
payload: (_window$Pelcro$user$
|
|
16572
|
+
payload: (_window$Pelcro$user$r9 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r9 === void 0 ? void 0 : _window$Pelcro$user$r9.display_name
|
|
16523
16573
|
}, {
|
|
16524
16574
|
type: SET_PHONE,
|
|
16525
|
-
payload: (_window$Pelcro$user$
|
|
16575
|
+
payload: (_window$Pelcro$user$r10 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r10 === void 0 ? void 0 : _window$Pelcro$user$r10.phone
|
|
16526
16576
|
}];
|
|
16527
16577
|
fields.filter(field => Boolean(field.payload)).forEach(field => {
|
|
16528
16578
|
dispatch(field);
|
|
@@ -16530,6 +16580,7 @@ const UserUpdateContainer = ({
|
|
|
16530
16580
|
};
|
|
16531
16581
|
|
|
16532
16582
|
const handleUpdateUser = ({
|
|
16583
|
+
email,
|
|
16533
16584
|
firstName,
|
|
16534
16585
|
lastName,
|
|
16535
16586
|
phone,
|
|
@@ -16538,6 +16589,7 @@ const UserUpdateContainer = ({
|
|
|
16538
16589
|
}, dispatch) => {
|
|
16539
16590
|
window.Pelcro.user.update({
|
|
16540
16591
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
16592
|
+
email: email,
|
|
16541
16593
|
first_name: firstName,
|
|
16542
16594
|
last_name: lastName,
|
|
16543
16595
|
display_name: displayName,
|
|
@@ -16583,6 +16635,11 @@ const UserUpdateContainer = ({
|
|
|
16583
16635
|
}
|
|
16584
16636
|
});
|
|
16585
16637
|
|
|
16638
|
+
case SET_EMAIL:
|
|
16639
|
+
return lib_7({ ...state,
|
|
16640
|
+
email: action.payload
|
|
16641
|
+
});
|
|
16642
|
+
|
|
16586
16643
|
case SET_FIRST_NAME:
|
|
16587
16644
|
return lib_7({ ...state,
|
|
16588
16645
|
firstName: action.payload
|
|
@@ -16621,27 +16678,26 @@ const UserUpdateContainer = ({
|
|
|
16621
16678
|
default:
|
|
16622
16679
|
return state;
|
|
16623
16680
|
}
|
|
16624
|
-
}, initialState$
|
|
16681
|
+
}, initialState$e);
|
|
16625
16682
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16626
16683
|
style: { ...style
|
|
16627
16684
|
},
|
|
16628
16685
|
className: `pelcro-container pelcro-user-update-container ${className}`
|
|
16629
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
16686
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$e, {
|
|
16630
16687
|
value: {
|
|
16631
16688
|
state,
|
|
16632
16689
|
dispatch
|
|
16633
16690
|
}
|
|
16634
16691
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
16635
|
-
store: store$
|
|
16692
|
+
store: store$e,
|
|
16636
16693
|
key: i
|
|
16637
16694
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
16638
|
-
store: store$
|
|
16695
|
+
store: store$e
|
|
16639
16696
|
})));
|
|
16640
16697
|
};
|
|
16641
16698
|
|
|
16642
16699
|
const UserUpdateEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
16643
|
-
|
|
16644
|
-
store: store$d
|
|
16700
|
+
store: store$e
|
|
16645
16701
|
}, props));
|
|
16646
16702
|
|
|
16647
16703
|
const UserUpdateButton = ({
|
|
@@ -16654,7 +16710,7 @@ const UserUpdateButton = ({
|
|
|
16654
16710
|
buttonDisabled
|
|
16655
16711
|
},
|
|
16656
16712
|
dispatch
|
|
16657
|
-
} = React.useContext(store$
|
|
16713
|
+
} = React.useContext(store$e);
|
|
16658
16714
|
const {
|
|
16659
16715
|
t
|
|
16660
16716
|
} = useTranslation("userEdit");
|
|
@@ -16671,11 +16727,11 @@ const UserUpdateButton = ({
|
|
|
16671
16727
|
};
|
|
16672
16728
|
|
|
16673
16729
|
const UserUpdateFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
|
|
16674
|
-
store: store$
|
|
16730
|
+
store: store$e
|
|
16675
16731
|
}, props));
|
|
16676
16732
|
|
|
16677
16733
|
const UserUpdateLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
|
|
16678
|
-
store: store$
|
|
16734
|
+
store: store$e
|
|
16679
16735
|
}, props));
|
|
16680
16736
|
|
|
16681
16737
|
function Phone({
|
|
@@ -16704,7 +16760,7 @@ function Phone({
|
|
|
16704
16760
|
}
|
|
16705
16761
|
|
|
16706
16762
|
const UserUpdatePhone = props => /*#__PURE__*/React__default['default'].createElement(Phone, Object.assign({
|
|
16707
|
-
store: store$
|
|
16763
|
+
store: store$e
|
|
16708
16764
|
}, props));
|
|
16709
16765
|
|
|
16710
16766
|
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";
|
|
@@ -16742,7 +16798,7 @@ const UserUpdateProfilePic = ({
|
|
|
16742
16798
|
onClick: onClick
|
|
16743
16799
|
}, otherProps)), /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
16744
16800
|
variant: "icon",
|
|
16745
|
-
className: "plc-absolute plc-bg-gray-500 plc-text-white plc-w-10 plc-h-10 plc-top-24 plc-right-2 hover:plc-bg-gray-600",
|
|
16801
|
+
className: "plc-absolute plc-bg-gray-500 plc-text-white plc-w-10 plc-h-10 plc-top-24 plc-right-2 hover:plc-bg-gray-600 hover:plc-text-white",
|
|
16746
16802
|
icon: /*#__PURE__*/React__default['default'].createElement(SvgEdit, null),
|
|
16747
16803
|
id: "pelcro-user-update-picture-button",
|
|
16748
16804
|
onClick: onClick
|
|
@@ -16767,15 +16823,15 @@ const UserUpdateView = props => {
|
|
|
16767
16823
|
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16768
16824
|
className: "plc-flex plc-items-start"
|
|
16769
16825
|
}, /*#__PURE__*/React__default['default'].createElement(UserUpdateEmail, {
|
|
16770
|
-
label: t("labels.email")
|
|
16826
|
+
label: t("labels.email"),
|
|
16827
|
+
autoFocus: true
|
|
16771
16828
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16772
16829
|
className: "plc-flex plc-items-start"
|
|
16773
16830
|
}, /*#__PURE__*/React__default['default'].createElement(UserUpdateFirstName, {
|
|
16774
16831
|
autoComplete: "first-name",
|
|
16775
16832
|
id: "pelcro-input-first-name",
|
|
16776
16833
|
errorId: "pelcro-input-first-name-error",
|
|
16777
|
-
label: t("labels.firstName")
|
|
16778
|
-
autoFocus: true
|
|
16834
|
+
label: t("labels.firstName")
|
|
16779
16835
|
}), /*#__PURE__*/React__default['default'].createElement(UserUpdateLastName, {
|
|
16780
16836
|
wrapperClassName: "plc-ml-3",
|
|
16781
16837
|
autoComplete: "last-name",
|
|
@@ -16851,16 +16907,16 @@ function DisplayName({
|
|
|
16851
16907
|
}
|
|
16852
16908
|
|
|
16853
16909
|
const UserUpdateDisplayName = props => /*#__PURE__*/React__default['default'].createElement(DisplayName, Object.assign({
|
|
16854
|
-
store: store$
|
|
16910
|
+
store: store$e
|
|
16855
16911
|
}, props));
|
|
16856
16912
|
|
|
16857
16913
|
const UserUpdateTextInput = props => {
|
|
16858
16914
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
|
|
16859
|
-
store: store$
|
|
16915
|
+
store: store$e
|
|
16860
16916
|
}));
|
|
16861
16917
|
};
|
|
16862
16918
|
|
|
16863
|
-
const initialState$
|
|
16919
|
+
const initialState$d = {
|
|
16864
16920
|
isSubmitting: false,
|
|
16865
16921
|
firstName: "",
|
|
16866
16922
|
firstNameError: "",
|
|
@@ -16885,10 +16941,10 @@ const initialState$c = {
|
|
|
16885
16941
|
content: ""
|
|
16886
16942
|
}
|
|
16887
16943
|
};
|
|
16888
|
-
const store$
|
|
16944
|
+
const store$d = /*#__PURE__*/React.createContext(initialState$d);
|
|
16889
16945
|
const {
|
|
16890
|
-
Provider: Provider$
|
|
16891
|
-
} = store$
|
|
16946
|
+
Provider: Provider$d
|
|
16947
|
+
} = store$d;
|
|
16892
16948
|
|
|
16893
16949
|
const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
|
|
16894
16950
|
|
|
@@ -17095,7 +17151,7 @@ const AddressCreateContainer = ({
|
|
|
17095
17151
|
default:
|
|
17096
17152
|
return state;
|
|
17097
17153
|
}
|
|
17098
|
-
}, initialState$
|
|
17154
|
+
}, initialState$d);
|
|
17099
17155
|
React.useEffect(() => {
|
|
17100
17156
|
const getStates = () => {
|
|
17101
17157
|
dispatch({
|
|
@@ -17127,16 +17183,16 @@ const AddressCreateContainer = ({
|
|
|
17127
17183
|
style: { ...style
|
|
17128
17184
|
},
|
|
17129
17185
|
className: `pelcro-container pelcro-address-create-container ${className}`
|
|
17130
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
17186
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$d, {
|
|
17131
17187
|
value: {
|
|
17132
17188
|
state,
|
|
17133
17189
|
dispatch
|
|
17134
17190
|
}
|
|
17135
17191
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
17136
|
-
store: store$
|
|
17192
|
+
store: store$d,
|
|
17137
17193
|
key: i
|
|
17138
17194
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
17139
|
-
store: store$
|
|
17195
|
+
store: store$d
|
|
17140
17196
|
})));
|
|
17141
17197
|
};
|
|
17142
17198
|
|
|
@@ -17147,7 +17203,7 @@ function AddressCreateFirstName(props) {
|
|
|
17147
17203
|
firstName,
|
|
17148
17204
|
firstNameError
|
|
17149
17205
|
}
|
|
17150
|
-
} = React.useContext(store$
|
|
17206
|
+
} = React.useContext(store$d);
|
|
17151
17207
|
|
|
17152
17208
|
const handleBlur = () => {
|
|
17153
17209
|
return dispatch({
|
|
@@ -17190,7 +17246,7 @@ function AddressCreateLastName(props) {
|
|
|
17190
17246
|
lastName,
|
|
17191
17247
|
lastNameError
|
|
17192
17248
|
}
|
|
17193
|
-
} = React.useContext(store$
|
|
17249
|
+
} = React.useContext(store$d);
|
|
17194
17250
|
|
|
17195
17251
|
const handleBlur = () => {
|
|
17196
17252
|
return dispatch({
|
|
@@ -17233,7 +17289,7 @@ function AddressCreateLine1(props) {
|
|
|
17233
17289
|
line1,
|
|
17234
17290
|
line1Error
|
|
17235
17291
|
}
|
|
17236
|
-
} = React.useContext(store$
|
|
17292
|
+
} = React.useContext(store$d);
|
|
17237
17293
|
|
|
17238
17294
|
const handleBlur = () => {
|
|
17239
17295
|
return dispatch({
|
|
@@ -17276,7 +17332,7 @@ function AddressCreateCity(props) {
|
|
|
17276
17332
|
city,
|
|
17277
17333
|
cityError
|
|
17278
17334
|
}
|
|
17279
|
-
} = React.useContext(store$
|
|
17335
|
+
} = React.useContext(store$d);
|
|
17280
17336
|
|
|
17281
17337
|
const handleBlur = () => {
|
|
17282
17338
|
return dispatch({
|
|
@@ -17319,7 +17375,7 @@ function AddressCreatePostalCode(props) {
|
|
|
17319
17375
|
postalCode,
|
|
17320
17376
|
postalCodeError
|
|
17321
17377
|
}
|
|
17322
|
-
} = React.useContext(store$
|
|
17378
|
+
} = React.useContext(store$d);
|
|
17323
17379
|
|
|
17324
17380
|
const handleBlur = () => {
|
|
17325
17381
|
return dispatch({
|
|
@@ -17365,7 +17421,7 @@ const AddressCreateSubmit = ({
|
|
|
17365
17421
|
state: {
|
|
17366
17422
|
isSubmitting
|
|
17367
17423
|
}
|
|
17368
|
-
} = React.useContext(store$
|
|
17424
|
+
} = React.useContext(store$d);
|
|
17369
17425
|
const {
|
|
17370
17426
|
t
|
|
17371
17427
|
} = useTranslation("address");
|
|
@@ -17476,7 +17532,7 @@ function CountrySelect({
|
|
|
17476
17532
|
}
|
|
17477
17533
|
|
|
17478
17534
|
const AddressCreateCountrySelect = props => /*#__PURE__*/React__default['default'].createElement(CountrySelect, Object.assign({
|
|
17479
|
-
store: store$
|
|
17535
|
+
store: store$d
|
|
17480
17536
|
}, props));
|
|
17481
17537
|
|
|
17482
17538
|
function StateSelect({
|
|
@@ -17564,7 +17620,7 @@ function StateSelect({
|
|
|
17564
17620
|
}
|
|
17565
17621
|
|
|
17566
17622
|
const AddressCreateStateSelect = props => /*#__PURE__*/React__default['default'].createElement(StateSelect, Object.assign({
|
|
17567
|
-
store: store$
|
|
17623
|
+
store: store$d
|
|
17568
17624
|
}, props));
|
|
17569
17625
|
|
|
17570
17626
|
const AddressCreateView = props => {
|
|
@@ -17669,18 +17725,18 @@ AddressCreateModal.viewId = "address-create";
|
|
|
17669
17725
|
|
|
17670
17726
|
const AddressCreateTextInput = props => {
|
|
17671
17727
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
|
|
17672
|
-
store: store$
|
|
17728
|
+
store: store$d
|
|
17673
17729
|
}));
|
|
17674
17730
|
};
|
|
17675
17731
|
|
|
17676
17732
|
const AddressCreateLine2 = props => {
|
|
17677
17733
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({
|
|
17678
17734
|
fieldName: "line2",
|
|
17679
|
-
store: store$
|
|
17735
|
+
store: store$d
|
|
17680
17736
|
}, props));
|
|
17681
17737
|
};
|
|
17682
17738
|
|
|
17683
|
-
const initialState$
|
|
17739
|
+
const initialState$c = {
|
|
17684
17740
|
isSubmitting: false,
|
|
17685
17741
|
firstName: "",
|
|
17686
17742
|
firstNameError: "",
|
|
@@ -17705,10 +17761,10 @@ const initialState$b = {
|
|
|
17705
17761
|
content: ""
|
|
17706
17762
|
}
|
|
17707
17763
|
};
|
|
17708
|
-
const store$
|
|
17764
|
+
const store$c = /*#__PURE__*/React.createContext(initialState$c);
|
|
17709
17765
|
const {
|
|
17710
|
-
Provider: Provider$
|
|
17711
|
-
} = store$
|
|
17766
|
+
Provider: Provider$c
|
|
17767
|
+
} = store$c;
|
|
17712
17768
|
|
|
17713
17769
|
const AddressUpdateContainer = ({
|
|
17714
17770
|
style,
|
|
@@ -17760,7 +17816,7 @@ const AddressUpdateContainer = ({
|
|
|
17760
17816
|
const thisAddress = addresses[address];
|
|
17761
17817
|
|
|
17762
17818
|
if (+thisAddress.id === +addressId) {
|
|
17763
|
-
const newState = { ...initialState$
|
|
17819
|
+
const newState = { ...initialState$c,
|
|
17764
17820
|
firstName: thisAddress.first_name,
|
|
17765
17821
|
lastName: thisAddress.last_name,
|
|
17766
17822
|
line1: thisAddress.line1,
|
|
@@ -17893,7 +17949,7 @@ const AddressUpdateContainer = ({
|
|
|
17893
17949
|
default:
|
|
17894
17950
|
return state;
|
|
17895
17951
|
}
|
|
17896
|
-
}, initialState$
|
|
17952
|
+
}, initialState$c);
|
|
17897
17953
|
React.useEffect(() => {
|
|
17898
17954
|
const getStates = () => {
|
|
17899
17955
|
dispatch({
|
|
@@ -17925,21 +17981,21 @@ const AddressUpdateContainer = ({
|
|
|
17925
17981
|
style: { ...style
|
|
17926
17982
|
},
|
|
17927
17983
|
className: `pelcro-container pelcro-address-update-container ${className}`
|
|
17928
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
17984
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$c, {
|
|
17929
17985
|
value: {
|
|
17930
17986
|
state,
|
|
17931
17987
|
dispatch
|
|
17932
17988
|
}
|
|
17933
17989
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
17934
|
-
store: store$
|
|
17990
|
+
store: store$c,
|
|
17935
17991
|
key: i
|
|
17936
17992
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
17937
|
-
store: store$
|
|
17993
|
+
store: store$c
|
|
17938
17994
|
})));
|
|
17939
17995
|
};
|
|
17940
17996
|
|
|
17941
17997
|
const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default['default'].createElement(CountrySelect, Object.assign({
|
|
17942
|
-
store: store$
|
|
17998
|
+
store: store$c
|
|
17943
17999
|
}, props));
|
|
17944
18000
|
|
|
17945
18001
|
function AddressUpdateFirstName(props) {
|
|
@@ -17949,7 +18005,7 @@ function AddressUpdateFirstName(props) {
|
|
|
17949
18005
|
firstName,
|
|
17950
18006
|
firstNameError
|
|
17951
18007
|
}
|
|
17952
|
-
} = React.useContext(store$
|
|
18008
|
+
} = React.useContext(store$c);
|
|
17953
18009
|
|
|
17954
18010
|
const handleBlur = () => {
|
|
17955
18011
|
return dispatch({
|
|
@@ -17992,7 +18048,7 @@ function AddressUpdateLastName(props) {
|
|
|
17992
18048
|
lastName,
|
|
17993
18049
|
lastNameError
|
|
17994
18050
|
}
|
|
17995
|
-
} = React.useContext(store$
|
|
18051
|
+
} = React.useContext(store$c);
|
|
17996
18052
|
|
|
17997
18053
|
const handleBlur = () => {
|
|
17998
18054
|
return dispatch({
|
|
@@ -18035,7 +18091,7 @@ function AddressUpdateLine1(props) {
|
|
|
18035
18091
|
line1,
|
|
18036
18092
|
line1Error
|
|
18037
18093
|
}
|
|
18038
|
-
} = React.useContext(store$
|
|
18094
|
+
} = React.useContext(store$c);
|
|
18039
18095
|
|
|
18040
18096
|
const handleBlur = () => {
|
|
18041
18097
|
return dispatch({
|
|
@@ -18075,7 +18131,7 @@ const AddressUpdateLine2 = props => {
|
|
|
18075
18131
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({
|
|
18076
18132
|
fieldName: "line2"
|
|
18077
18133
|
}, props, {
|
|
18078
|
-
store: store$
|
|
18134
|
+
store: store$c
|
|
18079
18135
|
}));
|
|
18080
18136
|
};
|
|
18081
18137
|
|
|
@@ -18086,7 +18142,7 @@ function AddressUpdateCity(props) {
|
|
|
18086
18142
|
city,
|
|
18087
18143
|
cityError
|
|
18088
18144
|
}
|
|
18089
|
-
} = React.useContext(store$
|
|
18145
|
+
} = React.useContext(store$c);
|
|
18090
18146
|
|
|
18091
18147
|
const handleBlur = () => {
|
|
18092
18148
|
return dispatch({
|
|
@@ -18129,7 +18185,7 @@ function AddressUpdatePostalCode(props) {
|
|
|
18129
18185
|
postalCode,
|
|
18130
18186
|
postalCodeError
|
|
18131
18187
|
}
|
|
18132
|
-
} = React.useContext(store$
|
|
18188
|
+
} = React.useContext(store$c);
|
|
18133
18189
|
|
|
18134
18190
|
const handleBlur = () => {
|
|
18135
18191
|
return dispatch({
|
|
@@ -18175,7 +18231,7 @@ const AddressUpdateSubmit = ({
|
|
|
18175
18231
|
state: {
|
|
18176
18232
|
isSubmitting
|
|
18177
18233
|
}
|
|
18178
|
-
} = React.useContext(store$
|
|
18234
|
+
} = React.useContext(store$c);
|
|
18179
18235
|
const {
|
|
18180
18236
|
t
|
|
18181
18237
|
} = useTranslation("address");
|
|
@@ -18191,7 +18247,7 @@ const AddressUpdateSubmit = ({
|
|
|
18191
18247
|
};
|
|
18192
18248
|
|
|
18193
18249
|
const AddressUpdateStateSelect = props => /*#__PURE__*/React__default['default'].createElement(StateSelect, Object.assign({
|
|
18194
|
-
store: store$
|
|
18250
|
+
store: store$c
|
|
18195
18251
|
}, props));
|
|
18196
18252
|
|
|
18197
18253
|
const AddressUpdateView = props => {
|
|
@@ -18274,7 +18330,7 @@ AddressUpdateModal.viewId = "address-edit";
|
|
|
18274
18330
|
|
|
18275
18331
|
const AddressUpdateTextInput = props => {
|
|
18276
18332
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
|
|
18277
|
-
store: store$
|
|
18333
|
+
store: store$c
|
|
18278
18334
|
}));
|
|
18279
18335
|
};
|
|
18280
18336
|
|
|
@@ -18357,7 +18413,7 @@ const PaymentMethodUpdateModal = props => {
|
|
|
18357
18413
|
};
|
|
18358
18414
|
PaymentMethodUpdateModal.viewId = "payment-method-update";
|
|
18359
18415
|
|
|
18360
|
-
const initialState$
|
|
18416
|
+
const initialState$b = {
|
|
18361
18417
|
email: "",
|
|
18362
18418
|
password: "",
|
|
18363
18419
|
passwordError: null,
|
|
@@ -18370,10 +18426,10 @@ const initialState$a = {
|
|
|
18370
18426
|
content: ""
|
|
18371
18427
|
}
|
|
18372
18428
|
};
|
|
18373
|
-
const store$
|
|
18429
|
+
const store$b = /*#__PURE__*/React.createContext(initialState$b);
|
|
18374
18430
|
const {
|
|
18375
|
-
Provider: Provider$
|
|
18376
|
-
} = store$
|
|
18431
|
+
Provider: Provider$b
|
|
18432
|
+
} = store$b;
|
|
18377
18433
|
|
|
18378
18434
|
const PasswordResetContainer = ({
|
|
18379
18435
|
style,
|
|
@@ -18430,7 +18486,7 @@ const PasswordResetContainer = ({
|
|
|
18430
18486
|
type: SET_EMAIL,
|
|
18431
18487
|
payload: window.Pelcro.helpers.getURLParameter("email")
|
|
18432
18488
|
});
|
|
18433
|
-
initialState$
|
|
18489
|
+
initialState$b.email = window.Pelcro.helpers.getURLParameter("email");
|
|
18434
18490
|
dispatch({
|
|
18435
18491
|
type: SET_TOKEN,
|
|
18436
18492
|
payload: window.Pelcro.helpers.getURLParameter("token")
|
|
@@ -18490,26 +18546,26 @@ const PasswordResetContainer = ({
|
|
|
18490
18546
|
default:
|
|
18491
18547
|
return state;
|
|
18492
18548
|
}
|
|
18493
|
-
}, initialState$
|
|
18549
|
+
}, initialState$b);
|
|
18494
18550
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18495
18551
|
style: { ...style
|
|
18496
18552
|
},
|
|
18497
18553
|
className: `pelcro-container pelcro-password-reset-container ${className}`
|
|
18498
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
18554
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$b, {
|
|
18499
18555
|
value: {
|
|
18500
18556
|
state,
|
|
18501
18557
|
dispatch
|
|
18502
18558
|
}
|
|
18503
18559
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
18504
|
-
store: store$
|
|
18560
|
+
store: store$b,
|
|
18505
18561
|
key: i
|
|
18506
18562
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
18507
|
-
store: store$
|
|
18563
|
+
store: store$b
|
|
18508
18564
|
})));
|
|
18509
18565
|
};
|
|
18510
18566
|
|
|
18511
18567
|
const PasswordResetPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
|
|
18512
|
-
store: store$
|
|
18568
|
+
store: store$b
|
|
18513
18569
|
}, props));
|
|
18514
18570
|
|
|
18515
18571
|
const PasswordResetButton = ({
|
|
@@ -18522,7 +18578,7 @@ const PasswordResetButton = ({
|
|
|
18522
18578
|
buttonDisabled
|
|
18523
18579
|
},
|
|
18524
18580
|
dispatch
|
|
18525
|
-
} = React.useContext(store$
|
|
18581
|
+
} = React.useContext(store$b);
|
|
18526
18582
|
const {
|
|
18527
18583
|
t
|
|
18528
18584
|
} = useTranslation("passwordReset");
|
|
@@ -18539,14 +18595,14 @@ const PasswordResetButton = ({
|
|
|
18539
18595
|
};
|
|
18540
18596
|
|
|
18541
18597
|
const PasswordResetEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
18542
|
-
store: store$
|
|
18598
|
+
store: store$b
|
|
18543
18599
|
}, props, {
|
|
18544
18600
|
value: window.Pelcro.helpers.getURLParameter("email"),
|
|
18545
18601
|
disabled: true
|
|
18546
18602
|
}));
|
|
18547
18603
|
|
|
18548
18604
|
const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default['default'].createElement(ConfirmPassword, Object.assign({
|
|
18549
|
-
store: store$
|
|
18605
|
+
store: store$b
|
|
18550
18606
|
}, props));
|
|
18551
18607
|
|
|
18552
18608
|
const PasswordResetView = props => {
|
|
@@ -18598,7 +18654,7 @@ const PasswordResetModal = ({
|
|
|
18598
18654
|
};
|
|
18599
18655
|
PasswordResetModal.viewId = "password-reset";
|
|
18600
18656
|
|
|
18601
|
-
const initialState$
|
|
18657
|
+
const initialState$a = {
|
|
18602
18658
|
email: "",
|
|
18603
18659
|
emailError: null,
|
|
18604
18660
|
buttonDisabled: false,
|
|
@@ -18607,10 +18663,10 @@ const initialState$9 = {
|
|
|
18607
18663
|
content: ""
|
|
18608
18664
|
}
|
|
18609
18665
|
};
|
|
18610
|
-
const store$
|
|
18666
|
+
const store$a = /*#__PURE__*/React.createContext(initialState$a);
|
|
18611
18667
|
const {
|
|
18612
|
-
Provider: Provider$
|
|
18613
|
-
} = store$
|
|
18668
|
+
Provider: Provider$a
|
|
18669
|
+
} = store$a;
|
|
18614
18670
|
|
|
18615
18671
|
const PasswordForgotContainer = ({
|
|
18616
18672
|
style,
|
|
@@ -18688,21 +18744,21 @@ const PasswordForgotContainer = ({
|
|
|
18688
18744
|
default:
|
|
18689
18745
|
return state;
|
|
18690
18746
|
}
|
|
18691
|
-
}, initialState$
|
|
18747
|
+
}, initialState$a);
|
|
18692
18748
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18693
18749
|
style: { ...style
|
|
18694
18750
|
},
|
|
18695
18751
|
className: `pelcro-container pelcro-password-forgot-container ${className}`
|
|
18696
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
18752
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$a, {
|
|
18697
18753
|
value: {
|
|
18698
18754
|
state,
|
|
18699
18755
|
dispatch
|
|
18700
18756
|
}
|
|
18701
18757
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
18702
|
-
store: store$
|
|
18758
|
+
store: store$a,
|
|
18703
18759
|
key: i
|
|
18704
18760
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
18705
|
-
store: store$
|
|
18761
|
+
store: store$a
|
|
18706
18762
|
})));
|
|
18707
18763
|
};
|
|
18708
18764
|
|
|
@@ -18718,7 +18774,7 @@ const PasswordForgotButton = ({
|
|
|
18718
18774
|
emailError
|
|
18719
18775
|
},
|
|
18720
18776
|
dispatch
|
|
18721
|
-
} = React.useContext(store$
|
|
18777
|
+
} = React.useContext(store$a);
|
|
18722
18778
|
const {
|
|
18723
18779
|
t
|
|
18724
18780
|
} = useTranslation("passwordForgot");
|
|
@@ -18739,7 +18795,7 @@ const PasswordForgotButton = ({
|
|
|
18739
18795
|
};
|
|
18740
18796
|
|
|
18741
18797
|
const PasswordForgotEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
18742
|
-
store: store$
|
|
18798
|
+
store: store$a
|
|
18743
18799
|
}, props));
|
|
18744
18800
|
|
|
18745
18801
|
const PasswordForgotView = props => {
|
|
@@ -18789,7 +18845,7 @@ const PasswordForgotModal = ({
|
|
|
18789
18845
|
};
|
|
18790
18846
|
PasswordForgotModal.viewId = "password-forgot";
|
|
18791
18847
|
|
|
18792
|
-
const initialState$
|
|
18848
|
+
const initialState$9 = {
|
|
18793
18849
|
currentPassword: "",
|
|
18794
18850
|
newPassword: "",
|
|
18795
18851
|
confirmNewPassword: "",
|
|
@@ -18803,10 +18859,10 @@ const initialState$8 = {
|
|
|
18803
18859
|
content: ""
|
|
18804
18860
|
}
|
|
18805
18861
|
};
|
|
18806
|
-
const store$
|
|
18862
|
+
const store$9 = /*#__PURE__*/React.createContext(initialState$9);
|
|
18807
18863
|
const {
|
|
18808
|
-
Provider: Provider$
|
|
18809
|
-
} = store$
|
|
18864
|
+
Provider: Provider$9
|
|
18865
|
+
} = store$9;
|
|
18810
18866
|
const PasswordChangeContainer = ({
|
|
18811
18867
|
style,
|
|
18812
18868
|
className = "",
|
|
@@ -18958,21 +19014,21 @@ const PasswordChangeContainer = ({
|
|
|
18958
19014
|
default:
|
|
18959
19015
|
return state;
|
|
18960
19016
|
}
|
|
18961
|
-
}, initialState$
|
|
19017
|
+
}, initialState$9);
|
|
18962
19018
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18963
19019
|
style: { ...style
|
|
18964
19020
|
},
|
|
18965
19021
|
className: `pelcro-container pelcro-password-change-container ${className}`
|
|
18966
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
19022
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$9, {
|
|
18967
19023
|
value: {
|
|
18968
19024
|
state,
|
|
18969
19025
|
dispatch
|
|
18970
19026
|
}
|
|
18971
19027
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
18972
|
-
store: store$
|
|
19028
|
+
store: store$9,
|
|
18973
19029
|
key: i
|
|
18974
19030
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
18975
|
-
store: store$
|
|
19031
|
+
store: store$9
|
|
18976
19032
|
})));
|
|
18977
19033
|
};
|
|
18978
19034
|
|
|
@@ -18983,7 +19039,7 @@ function PasswordChangeCurrentPassword(props) {
|
|
|
18983
19039
|
currentPassword,
|
|
18984
19040
|
currentPasswordError
|
|
18985
19041
|
}
|
|
18986
|
-
} = React.useContext(store$
|
|
19042
|
+
} = React.useContext(store$9);
|
|
18987
19043
|
const handleBlur = React.useCallback(() => {
|
|
18988
19044
|
return dispatch({
|
|
18989
19045
|
type: VALIDATE_PASSWORD
|
|
@@ -19017,7 +19073,7 @@ function PasswordChangeNewPassword(props) {
|
|
|
19017
19073
|
newPassword,
|
|
19018
19074
|
newPasswordError
|
|
19019
19075
|
}
|
|
19020
|
-
} = React.useContext(store$
|
|
19076
|
+
} = React.useContext(store$9);
|
|
19021
19077
|
const handleBlur = React.useCallback(() => {
|
|
19022
19078
|
return dispatch({
|
|
19023
19079
|
type: VALIDATE_NEW_PASSWORD
|
|
@@ -19051,7 +19107,7 @@ function PasswordChangeConfirmNewPassword(props) {
|
|
|
19051
19107
|
confirmNewPassword,
|
|
19052
19108
|
confirmNewPasswordError
|
|
19053
19109
|
}
|
|
19054
|
-
} = React.useContext(store$
|
|
19110
|
+
} = React.useContext(store$9);
|
|
19055
19111
|
const handleBlur = React.useCallback(() => {
|
|
19056
19112
|
return dispatch({
|
|
19057
19113
|
type: VALIDATE_CONFIRM_NEW_PASSWORD
|
|
@@ -19092,7 +19148,7 @@ const PasswordChangeButton = ({
|
|
|
19092
19148
|
confirmNewPasswordError
|
|
19093
19149
|
},
|
|
19094
19150
|
dispatch
|
|
19095
|
-
} = React.useContext(store$
|
|
19151
|
+
} = React.useContext(store$9);
|
|
19096
19152
|
const {
|
|
19097
19153
|
t
|
|
19098
19154
|
} = useTranslation("passwordChange");
|
|
@@ -19158,17 +19214,17 @@ const PasswordChangeModal = ({
|
|
|
19158
19214
|
};
|
|
19159
19215
|
PasswordChangeModal.viewId = "password-change";
|
|
19160
19216
|
|
|
19161
|
-
const initialState$
|
|
19217
|
+
const initialState$8 = {
|
|
19162
19218
|
buttonDisabled: false,
|
|
19163
19219
|
alert: {
|
|
19164
19220
|
type: "error",
|
|
19165
19221
|
content: ""
|
|
19166
19222
|
}
|
|
19167
19223
|
};
|
|
19168
|
-
const store$
|
|
19224
|
+
const store$8 = /*#__PURE__*/React.createContext(initialState$8);
|
|
19169
19225
|
const {
|
|
19170
|
-
Provider: Provider$
|
|
19171
|
-
} = store$
|
|
19226
|
+
Provider: Provider$8
|
|
19227
|
+
} = store$8;
|
|
19172
19228
|
|
|
19173
19229
|
const CartContainer = ({
|
|
19174
19230
|
style,
|
|
@@ -19259,21 +19315,21 @@ const CartContainer = ({
|
|
|
19259
19315
|
default:
|
|
19260
19316
|
return state;
|
|
19261
19317
|
}
|
|
19262
|
-
}, initialState$
|
|
19318
|
+
}, initialState$8);
|
|
19263
19319
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19264
19320
|
style: { ...style
|
|
19265
19321
|
},
|
|
19266
19322
|
className: `pelcro-container pelcro-cart-container ${className}`
|
|
19267
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
19323
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$8, {
|
|
19268
19324
|
value: {
|
|
19269
19325
|
state,
|
|
19270
19326
|
dispatch
|
|
19271
19327
|
}
|
|
19272
19328
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
19273
|
-
store: store$
|
|
19329
|
+
store: store$8,
|
|
19274
19330
|
key: i
|
|
19275
19331
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
19276
|
-
store: store$
|
|
19332
|
+
store: store$8
|
|
19277
19333
|
})));
|
|
19278
19334
|
};
|
|
19279
19335
|
|
|
@@ -19310,7 +19366,7 @@ const CartSubmit = ({
|
|
|
19310
19366
|
buttonDisabled
|
|
19311
19367
|
},
|
|
19312
19368
|
dispatch
|
|
19313
|
-
} = React.useContext(store$
|
|
19369
|
+
} = React.useContext(store$8);
|
|
19314
19370
|
const {
|
|
19315
19371
|
t
|
|
19316
19372
|
} = useTranslation("cart");
|
|
@@ -19341,7 +19397,7 @@ const CartTotalPrice = () => {
|
|
|
19341
19397
|
state: {
|
|
19342
19398
|
alert
|
|
19343
19399
|
}
|
|
19344
|
-
} = React.useContext(store$
|
|
19400
|
+
} = React.useContext(store$8);
|
|
19345
19401
|
const {
|
|
19346
19402
|
cartItems
|
|
19347
19403
|
} = usePelcro();
|
|
@@ -19654,7 +19710,7 @@ const OrderConfirmModal = props => {
|
|
|
19654
19710
|
};
|
|
19655
19711
|
OrderConfirmModal.viewId = "order-confirm";
|
|
19656
19712
|
|
|
19657
|
-
const initialState$
|
|
19713
|
+
const initialState$7 = {
|
|
19658
19714
|
email: "",
|
|
19659
19715
|
firstName: "",
|
|
19660
19716
|
lastName: "",
|
|
@@ -19666,10 +19722,10 @@ const initialState$6 = {
|
|
|
19666
19722
|
content: ""
|
|
19667
19723
|
}
|
|
19668
19724
|
};
|
|
19669
|
-
const store$
|
|
19725
|
+
const store$7 = /*#__PURE__*/React.createContext(initialState$7);
|
|
19670
19726
|
const {
|
|
19671
|
-
Provider: Provider$
|
|
19672
|
-
} = store$
|
|
19727
|
+
Provider: Provider$7
|
|
19728
|
+
} = store$7;
|
|
19673
19729
|
|
|
19674
19730
|
const GiftCreateContainer = ({
|
|
19675
19731
|
style,
|
|
@@ -19773,21 +19829,21 @@ const GiftCreateContainer = ({
|
|
|
19773
19829
|
default:
|
|
19774
19830
|
return state;
|
|
19775
19831
|
}
|
|
19776
|
-
}, initialState$
|
|
19832
|
+
}, initialState$7);
|
|
19777
19833
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19778
19834
|
style: { ...style
|
|
19779
19835
|
},
|
|
19780
19836
|
className: `pelcro-container pelcro-gift-create-container ${className}`
|
|
19781
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
19837
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$7, {
|
|
19782
19838
|
value: {
|
|
19783
19839
|
state,
|
|
19784
19840
|
dispatch
|
|
19785
19841
|
}
|
|
19786
19842
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
19787
|
-
store: store$
|
|
19843
|
+
store: store$7,
|
|
19788
19844
|
key: i
|
|
19789
19845
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
19790
|
-
store: store$
|
|
19846
|
+
store: store$7
|
|
19791
19847
|
})));
|
|
19792
19848
|
};
|
|
19793
19849
|
|
|
@@ -19801,7 +19857,7 @@ const GiftCreateSubmitButton = ({
|
|
|
19801
19857
|
state: {
|
|
19802
19858
|
disableSubmit
|
|
19803
19859
|
}
|
|
19804
|
-
} = React.useContext(store$
|
|
19860
|
+
} = React.useContext(store$7);
|
|
19805
19861
|
const {
|
|
19806
19862
|
t
|
|
19807
19863
|
} = useTranslation("register");
|
|
@@ -19818,15 +19874,15 @@ const GiftCreateSubmitButton = ({
|
|
|
19818
19874
|
|
|
19819
19875
|
const GiftCreateEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
19820
19876
|
initWithUserEmail: false,
|
|
19821
|
-
store: store$
|
|
19877
|
+
store: store$7
|
|
19822
19878
|
}, props));
|
|
19823
19879
|
|
|
19824
19880
|
const GiftCreateFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
|
|
19825
|
-
store: store$
|
|
19881
|
+
store: store$7
|
|
19826
19882
|
}, props));
|
|
19827
19883
|
|
|
19828
19884
|
const GiftCreateLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
|
|
19829
|
-
store: store$
|
|
19885
|
+
store: store$7
|
|
19830
19886
|
}, props));
|
|
19831
19887
|
|
|
19832
19888
|
var _path$h;
|
|
@@ -19911,7 +19967,7 @@ const GiftCreateStartDate = props => {
|
|
|
19911
19967
|
const {
|
|
19912
19968
|
dispatch,
|
|
19913
19969
|
state
|
|
19914
|
-
} = React.useContext(store$
|
|
19970
|
+
} = React.useContext(store$7);
|
|
19915
19971
|
|
|
19916
19972
|
const handleInputChange = value => {
|
|
19917
19973
|
dispatch({
|
|
@@ -19984,7 +20040,7 @@ function GiftCreateMessage(props) {
|
|
|
19984
20040
|
const {
|
|
19985
20041
|
dispatch,
|
|
19986
20042
|
state
|
|
19987
|
-
} = React.useContext(store$
|
|
20043
|
+
} = React.useContext(store$7);
|
|
19988
20044
|
const MAX_CHARS_COUNT = 200;
|
|
19989
20045
|
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;
|
|
19990
20046
|
|
|
@@ -20108,7 +20164,7 @@ const GiftCreateModal = ({
|
|
|
20108
20164
|
};
|
|
20109
20165
|
GiftCreateModal.viewId = "gift-create";
|
|
20110
20166
|
|
|
20111
|
-
const initialState$
|
|
20167
|
+
const initialState$6 = {
|
|
20112
20168
|
giftCode: "",
|
|
20113
20169
|
buttonDisabled: true,
|
|
20114
20170
|
alert: {
|
|
@@ -20116,10 +20172,10 @@ const initialState$5 = {
|
|
|
20116
20172
|
content: ""
|
|
20117
20173
|
}
|
|
20118
20174
|
};
|
|
20119
|
-
const store$
|
|
20175
|
+
const store$6 = /*#__PURE__*/React.createContext(initialState$6);
|
|
20120
20176
|
const {
|
|
20121
|
-
Provider: Provider$
|
|
20122
|
-
} = store$
|
|
20177
|
+
Provider: Provider$6
|
|
20178
|
+
} = store$6;
|
|
20123
20179
|
|
|
20124
20180
|
const GiftRedeemContainer = ({
|
|
20125
20181
|
style,
|
|
@@ -20184,21 +20240,21 @@ const GiftRedeemContainer = ({
|
|
|
20184
20240
|
default:
|
|
20185
20241
|
return state;
|
|
20186
20242
|
}
|
|
20187
|
-
}, initialState$
|
|
20243
|
+
}, initialState$6);
|
|
20188
20244
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20189
20245
|
style: { ...style
|
|
20190
20246
|
},
|
|
20191
20247
|
className: `pelcro-container pelcro-gift-redeem-container ${className}`
|
|
20192
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
20248
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$6, {
|
|
20193
20249
|
value: {
|
|
20194
20250
|
state,
|
|
20195
20251
|
dispatch
|
|
20196
20252
|
}
|
|
20197
20253
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
20198
|
-
store: store$
|
|
20254
|
+
store: store$6,
|
|
20199
20255
|
key: i
|
|
20200
20256
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
20201
|
-
store: store$
|
|
20257
|
+
store: store$6
|
|
20202
20258
|
})));
|
|
20203
20259
|
};
|
|
20204
20260
|
|
|
@@ -20235,7 +20291,7 @@ function GiftCode({
|
|
|
20235
20291
|
}
|
|
20236
20292
|
|
|
20237
20293
|
const GiftRedeemCode = props => /*#__PURE__*/React__default['default'].createElement(GiftCode, Object.assign({
|
|
20238
|
-
store: store$
|
|
20294
|
+
store: store$6
|
|
20239
20295
|
}, props));
|
|
20240
20296
|
|
|
20241
20297
|
const GiftRedeemSubmitButton = ({
|
|
@@ -20248,7 +20304,7 @@ const GiftRedeemSubmitButton = ({
|
|
|
20248
20304
|
state: {
|
|
20249
20305
|
disableSubmit
|
|
20250
20306
|
}
|
|
20251
|
-
} = React.useContext(store$
|
|
20307
|
+
} = React.useContext(store$6);
|
|
20252
20308
|
const {
|
|
20253
20309
|
t
|
|
20254
20310
|
} = useTranslation("register");
|
|
@@ -20341,7 +20397,7 @@ const moveDefaultAddressToStart = addresses => {
|
|
|
20341
20397
|
return [defaultAddress, ...addressesWithoutDefault];
|
|
20342
20398
|
};
|
|
20343
20399
|
|
|
20344
|
-
const initialState$
|
|
20400
|
+
const initialState$5 = {
|
|
20345
20401
|
addresses: [],
|
|
20346
20402
|
selectedAddressId: null,
|
|
20347
20403
|
isSubmitting: false,
|
|
@@ -20350,10 +20406,10 @@ const initialState$4 = {
|
|
|
20350
20406
|
content: ""
|
|
20351
20407
|
}
|
|
20352
20408
|
};
|
|
20353
|
-
const store$
|
|
20409
|
+
const store$5 = /*#__PURE__*/React.createContext(initialState$5);
|
|
20354
20410
|
const {
|
|
20355
|
-
Provider: Provider$
|
|
20356
|
-
} = store$
|
|
20411
|
+
Provider: Provider$5
|
|
20412
|
+
} = store$5;
|
|
20357
20413
|
|
|
20358
20414
|
const AddressSelectContainer = ({
|
|
20359
20415
|
style,
|
|
@@ -20448,7 +20504,7 @@ const AddressSelectContainer = ({
|
|
|
20448
20504
|
default:
|
|
20449
20505
|
return state;
|
|
20450
20506
|
}
|
|
20451
|
-
}, initialState$
|
|
20507
|
+
}, initialState$5);
|
|
20452
20508
|
React.useEffect(() => {
|
|
20453
20509
|
var _window$Pelcro$user$r;
|
|
20454
20510
|
|
|
@@ -20461,16 +20517,16 @@ const AddressSelectContainer = ({
|
|
|
20461
20517
|
style: { ...style
|
|
20462
20518
|
},
|
|
20463
20519
|
className: `pelcro-container pelcro-address-select-container ${className}`
|
|
20464
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
20520
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$5, {
|
|
20465
20521
|
value: {
|
|
20466
20522
|
state,
|
|
20467
20523
|
dispatch
|
|
20468
20524
|
}
|
|
20469
20525
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
20470
|
-
store: store$
|
|
20526
|
+
store: store$5,
|
|
20471
20527
|
key: i
|
|
20472
20528
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
20473
|
-
store: store$
|
|
20529
|
+
store: store$5
|
|
20474
20530
|
})));
|
|
20475
20531
|
};
|
|
20476
20532
|
|
|
@@ -20481,7 +20537,7 @@ const AddressSelectList = () => {
|
|
|
20481
20537
|
addresses,
|
|
20482
20538
|
selectedAddressId
|
|
20483
20539
|
}
|
|
20484
|
-
} = React.useContext(store$
|
|
20540
|
+
} = React.useContext(store$5);
|
|
20485
20541
|
|
|
20486
20542
|
const handleAddressSelect = event => {
|
|
20487
20543
|
dispatch({
|
|
@@ -20525,7 +20581,7 @@ const AddressSelectSubmit = ({
|
|
|
20525
20581
|
selectedAddressId,
|
|
20526
20582
|
isSubmitting
|
|
20527
20583
|
}
|
|
20528
|
-
} = React.useContext(store$
|
|
20584
|
+
} = React.useContext(store$5);
|
|
20529
20585
|
const {
|
|
20530
20586
|
t
|
|
20531
20587
|
} = useTranslation("address");
|
|
@@ -20621,7 +20677,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
|
|
|
20621
20677
|
return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
|
|
20622
20678
|
};
|
|
20623
20679
|
|
|
20624
|
-
const initialState$
|
|
20680
|
+
const initialState$4 = {
|
|
20625
20681
|
paymentMethods: [],
|
|
20626
20682
|
selectedPaymentMethodId: null,
|
|
20627
20683
|
isSubmitting: false,
|
|
@@ -20630,10 +20686,10 @@ const initialState$3 = {
|
|
|
20630
20686
|
content: ""
|
|
20631
20687
|
}
|
|
20632
20688
|
};
|
|
20633
|
-
const store$
|
|
20689
|
+
const store$4 = /*#__PURE__*/React.createContext(initialState$4);
|
|
20634
20690
|
const {
|
|
20635
|
-
Provider: Provider$
|
|
20636
|
-
} = store$
|
|
20691
|
+
Provider: Provider$4
|
|
20692
|
+
} = store$4;
|
|
20637
20693
|
|
|
20638
20694
|
const PaymentMethodSelectContainer = ({
|
|
20639
20695
|
style,
|
|
@@ -20692,7 +20748,7 @@ const PaymentMethodSelectContainer = ({
|
|
|
20692
20748
|
default:
|
|
20693
20749
|
return state;
|
|
20694
20750
|
}
|
|
20695
|
-
}, initialState$
|
|
20751
|
+
}, initialState$4);
|
|
20696
20752
|
React.useEffect(() => {
|
|
20697
20753
|
var _window$Pelcro$user$r3;
|
|
20698
20754
|
|
|
@@ -20705,16 +20761,16 @@ const PaymentMethodSelectContainer = ({
|
|
|
20705
20761
|
style: { ...style
|
|
20706
20762
|
},
|
|
20707
20763
|
className: `pelcro-container pelcro-payment-select-container ${className}`
|
|
20708
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
20764
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$4, {
|
|
20709
20765
|
value: {
|
|
20710
20766
|
state,
|
|
20711
20767
|
dispatch
|
|
20712
20768
|
}
|
|
20713
20769
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
20714
|
-
store: store$
|
|
20770
|
+
store: store$4,
|
|
20715
20771
|
key: i
|
|
20716
20772
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
20717
|
-
store: store$
|
|
20773
|
+
store: store$4
|
|
20718
20774
|
})));
|
|
20719
20775
|
};
|
|
20720
20776
|
|
|
@@ -20728,7 +20784,7 @@ const PaymentMethodSelectList = () => {
|
|
|
20728
20784
|
paymentMethods,
|
|
20729
20785
|
selectedPaymentMethodId
|
|
20730
20786
|
}
|
|
20731
|
-
} = React.useContext(store$
|
|
20787
|
+
} = React.useContext(store$4);
|
|
20732
20788
|
|
|
20733
20789
|
const handlePaymentMethodSelect = event => {
|
|
20734
20790
|
dispatch({
|
|
@@ -20778,7 +20834,7 @@ const PaymentMethodSelectSubmit = ({
|
|
|
20778
20834
|
selectedPaymentMethodId,
|
|
20779
20835
|
isSubmitting
|
|
20780
20836
|
}
|
|
20781
|
-
} = React.useContext(store$
|
|
20837
|
+
} = React.useContext(store$4);
|
|
20782
20838
|
return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
20783
20839
|
onClick: () => {
|
|
20784
20840
|
dispatch({
|
|
@@ -23570,7 +23626,7 @@ const DashboardOpenButton = () => {
|
|
|
23570
23626
|
};
|
|
23571
23627
|
DashboardOpenButton.viewId = "dashboard-open";
|
|
23572
23628
|
|
|
23573
|
-
const initialState$
|
|
23629
|
+
const initialState$3 = {
|
|
23574
23630
|
imageSrc: null,
|
|
23575
23631
|
crop: {
|
|
23576
23632
|
x: 0,
|
|
@@ -23584,10 +23640,10 @@ const initialState$2 = {
|
|
|
23584
23640
|
content: ""
|
|
23585
23641
|
}
|
|
23586
23642
|
};
|
|
23587
|
-
const store$
|
|
23643
|
+
const store$3 = /*#__PURE__*/React.createContext(initialState$3);
|
|
23588
23644
|
const {
|
|
23589
|
-
Provider: Provider$
|
|
23590
|
-
} = store$
|
|
23645
|
+
Provider: Provider$3
|
|
23646
|
+
} = store$3;
|
|
23591
23647
|
|
|
23592
23648
|
const ProfilePicChangeContainer = ({
|
|
23593
23649
|
style,
|
|
@@ -23721,21 +23777,21 @@ const ProfilePicChangeContainer = ({
|
|
|
23721
23777
|
default:
|
|
23722
23778
|
return state;
|
|
23723
23779
|
}
|
|
23724
|
-
}, initialState$
|
|
23780
|
+
}, initialState$3);
|
|
23725
23781
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
23726
23782
|
style: { ...style
|
|
23727
23783
|
},
|
|
23728
23784
|
className: `pelcro-container pelcro-profile-picture-container ${className}`
|
|
23729
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
23785
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$3, {
|
|
23730
23786
|
value: {
|
|
23731
23787
|
state,
|
|
23732
23788
|
dispatch
|
|
23733
23789
|
}
|
|
23734
23790
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
23735
|
-
store: store$
|
|
23791
|
+
store: store$3,
|
|
23736
23792
|
key: i
|
|
23737
23793
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
23738
|
-
store: store$
|
|
23794
|
+
store: store$3
|
|
23739
23795
|
})));
|
|
23740
23796
|
};
|
|
23741
23797
|
/**
|
|
@@ -23797,7 +23853,7 @@ const ProfilePicChangeButton = ({
|
|
|
23797
23853
|
isSubmitting
|
|
23798
23854
|
},
|
|
23799
23855
|
dispatch
|
|
23800
|
-
} = React.useContext(store$
|
|
23856
|
+
} = React.useContext(store$3);
|
|
23801
23857
|
const {
|
|
23802
23858
|
t
|
|
23803
23859
|
} = useTranslation("userEdit");
|
|
@@ -25165,7 +25221,7 @@ const ProfilePicChangeCropper = ({
|
|
|
25165
25221
|
zoom
|
|
25166
25222
|
},
|
|
25167
25223
|
dispatch
|
|
25168
|
-
} = React.useContext(store$
|
|
25224
|
+
} = React.useContext(store$3);
|
|
25169
25225
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25170
25226
|
className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
|
|
25171
25227
|
}, /*#__PURE__*/React__default['default'].createElement(Cropper, Object.assign({
|
|
@@ -25207,7 +25263,7 @@ const ProfilePicChangeZoom = ({
|
|
|
25207
25263
|
zoom
|
|
25208
25264
|
},
|
|
25209
25265
|
dispatch
|
|
25210
|
-
} = React.useContext(store$
|
|
25266
|
+
} = React.useContext(store$3);
|
|
25211
25267
|
const {
|
|
25212
25268
|
t
|
|
25213
25269
|
} = useTranslation("userEdit");
|
|
@@ -25259,7 +25315,7 @@ const ProfilePicChangeSelectButton = ({
|
|
|
25259
25315
|
state: {
|
|
25260
25316
|
isSubmitting
|
|
25261
25317
|
}
|
|
25262
|
-
} = React.useContext(store$
|
|
25318
|
+
} = React.useContext(store$3);
|
|
25263
25319
|
const {
|
|
25264
25320
|
t
|
|
25265
25321
|
} = useTranslation("userEdit");
|
|
@@ -25301,7 +25357,7 @@ const ProfilePicChangeRemoveButton = ({
|
|
|
25301
25357
|
state: {
|
|
25302
25358
|
isSubmitting
|
|
25303
25359
|
}
|
|
25304
|
-
} = React.useContext(store$
|
|
25360
|
+
} = React.useContext(store$3);
|
|
25305
25361
|
const {
|
|
25306
25362
|
t
|
|
25307
25363
|
} = useTranslation("userEdit");
|
|
@@ -25324,7 +25380,7 @@ const ProfilePicChangeWrapper = () => {
|
|
|
25324
25380
|
state: {
|
|
25325
25381
|
imageSrc
|
|
25326
25382
|
}
|
|
25327
|
-
} = React.useContext(store$
|
|
25383
|
+
} = React.useContext(store$3);
|
|
25328
25384
|
const {
|
|
25329
25385
|
t
|
|
25330
25386
|
} = useTranslation("userEdit");
|
|
@@ -25386,17 +25442,17 @@ function ProfilePicChangeModal({
|
|
|
25386
25442
|
}
|
|
25387
25443
|
ProfilePicChangeModal.viewId = "profile-picture";
|
|
25388
25444
|
|
|
25389
|
-
const initialState$
|
|
25445
|
+
const initialState$2 = {
|
|
25390
25446
|
isSubmitting: false,
|
|
25391
25447
|
alert: {
|
|
25392
25448
|
type: "error",
|
|
25393
25449
|
content: ""
|
|
25394
25450
|
}
|
|
25395
25451
|
};
|
|
25396
|
-
const store$
|
|
25452
|
+
const store$2 = /*#__PURE__*/React.createContext(initialState$2);
|
|
25397
25453
|
const {
|
|
25398
|
-
Provider: Provider$
|
|
25399
|
-
} = store$
|
|
25454
|
+
Provider: Provider$2
|
|
25455
|
+
} = store$2;
|
|
25400
25456
|
|
|
25401
25457
|
const EmailVerifyContainer = ({
|
|
25402
25458
|
style,
|
|
@@ -25459,21 +25515,21 @@ const EmailVerifyContainer = ({
|
|
|
25459
25515
|
default:
|
|
25460
25516
|
return state;
|
|
25461
25517
|
}
|
|
25462
|
-
}, initialState$
|
|
25518
|
+
}, initialState$2);
|
|
25463
25519
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25464
25520
|
style: { ...style
|
|
25465
25521
|
},
|
|
25466
25522
|
className: `pelcro-container pelcro-email-verify-container ${className}`
|
|
25467
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
25523
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$2, {
|
|
25468
25524
|
value: {
|
|
25469
25525
|
state,
|
|
25470
25526
|
dispatch
|
|
25471
25527
|
}
|
|
25472
25528
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
25473
|
-
store: store$
|
|
25529
|
+
store: store$2,
|
|
25474
25530
|
key: i
|
|
25475
25531
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
25476
|
-
store: store$
|
|
25532
|
+
store: store$2
|
|
25477
25533
|
})));
|
|
25478
25534
|
};
|
|
25479
25535
|
|
|
@@ -25487,7 +25543,7 @@ const EmailVerifyResendButton = ({
|
|
|
25487
25543
|
state: {
|
|
25488
25544
|
isSubmitting
|
|
25489
25545
|
}
|
|
25490
|
-
} = React.useContext(store$
|
|
25546
|
+
} = React.useContext(store$2);
|
|
25491
25547
|
const {
|
|
25492
25548
|
t
|
|
25493
25549
|
} = useTranslation("verifyEmail");
|
|
@@ -25562,6 +25618,167 @@ const EmailVerifyModal = ({
|
|
|
25562
25618
|
};
|
|
25563
25619
|
EmailVerifyModal.viewId = "email-verify";
|
|
25564
25620
|
|
|
25621
|
+
const initialState$1 = {
|
|
25622
|
+
isLoading: true,
|
|
25623
|
+
isTokenValid: false,
|
|
25624
|
+
alert: {
|
|
25625
|
+
type: "error",
|
|
25626
|
+
content: ""
|
|
25627
|
+
}
|
|
25628
|
+
};
|
|
25629
|
+
const store$1 = /*#__PURE__*/React.createContext(initialState$1);
|
|
25630
|
+
const {
|
|
25631
|
+
Provider: Provider$1
|
|
25632
|
+
} = store$1;
|
|
25633
|
+
|
|
25634
|
+
const VerifyLinkTokenContainer = ({
|
|
25635
|
+
style,
|
|
25636
|
+
className = "",
|
|
25637
|
+
onSuccess = () => {},
|
|
25638
|
+
onFailure = () => {},
|
|
25639
|
+
children
|
|
25640
|
+
}) => {
|
|
25641
|
+
const handleVerifyLinkToken = ({}, dispatch) => {
|
|
25642
|
+
const token = window.Pelcro.helpers.getURLParameter("token");
|
|
25643
|
+
window.Pelcro.user.verifyLoginToken({
|
|
25644
|
+
token
|
|
25645
|
+
}, (err, res) => {
|
|
25646
|
+
dispatch({
|
|
25647
|
+
type: LOADING,
|
|
25648
|
+
payload: false
|
|
25649
|
+
});
|
|
25650
|
+
|
|
25651
|
+
if (err) {
|
|
25652
|
+
dispatch({
|
|
25653
|
+
type: SHOW_ALERT,
|
|
25654
|
+
payload: {
|
|
25655
|
+
type: "error",
|
|
25656
|
+
content: getErrorMessages(err)
|
|
25657
|
+
}
|
|
25658
|
+
});
|
|
25659
|
+
onFailure(err);
|
|
25660
|
+
} else {
|
|
25661
|
+
onSuccess(res);
|
|
25662
|
+
}
|
|
25663
|
+
});
|
|
25664
|
+
};
|
|
25665
|
+
|
|
25666
|
+
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
25667
|
+
switch (action.type) {
|
|
25668
|
+
case SHOW_ALERT:
|
|
25669
|
+
return lib_7({ ...state,
|
|
25670
|
+
alert: action.payload
|
|
25671
|
+
});
|
|
25672
|
+
|
|
25673
|
+
case LOADING:
|
|
25674
|
+
return lib_7({ ...state,
|
|
25675
|
+
isLoading: action.payload
|
|
25676
|
+
});
|
|
25677
|
+
|
|
25678
|
+
case LINK_TOKEN_VERIFY:
|
|
25679
|
+
return lib_5({ ...state,
|
|
25680
|
+
isLoading: true
|
|
25681
|
+
}, (state, dispatch) => handleVerifyLinkToken(state, dispatch));
|
|
25682
|
+
|
|
25683
|
+
default:
|
|
25684
|
+
return state;
|
|
25685
|
+
}
|
|
25686
|
+
}, initialState$1);
|
|
25687
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25688
|
+
style: { ...style
|
|
25689
|
+
},
|
|
25690
|
+
className: `pelcro-container pelcro-login-container ${className}`
|
|
25691
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$1, {
|
|
25692
|
+
value: {
|
|
25693
|
+
state,
|
|
25694
|
+
dispatch
|
|
25695
|
+
}
|
|
25696
|
+
}, children.length ? children.map((child, i) => {
|
|
25697
|
+
if (child) {
|
|
25698
|
+
return /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
25699
|
+
store: store$1,
|
|
25700
|
+
key: i
|
|
25701
|
+
});
|
|
25702
|
+
}
|
|
25703
|
+
}) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
25704
|
+
store: store$1
|
|
25705
|
+
})));
|
|
25706
|
+
};
|
|
25707
|
+
|
|
25708
|
+
const VerifyLinkTokenLoader = () => {
|
|
25709
|
+
React.useEffect(() => {
|
|
25710
|
+
dispatch({
|
|
25711
|
+
type: LINK_TOKEN_VERIFY
|
|
25712
|
+
});
|
|
25713
|
+
}, []);
|
|
25714
|
+
const {
|
|
25715
|
+
dispatch,
|
|
25716
|
+
state: {
|
|
25717
|
+
isLoading
|
|
25718
|
+
}
|
|
25719
|
+
} = React.useContext(store$1);
|
|
25720
|
+
|
|
25721
|
+
if (isLoading) {
|
|
25722
|
+
return /*#__PURE__*/React__default['default'].createElement(Loader, {
|
|
25723
|
+
width: 60,
|
|
25724
|
+
height: 100
|
|
25725
|
+
});
|
|
25726
|
+
}
|
|
25727
|
+
|
|
25728
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25729
|
+
className: "plc-max-h-80 plc-overflow-y-auto pelcro-newsletters-wrapper"
|
|
25730
|
+
});
|
|
25731
|
+
};
|
|
25732
|
+
|
|
25733
|
+
/**
|
|
25734
|
+
*
|
|
25735
|
+
*/
|
|
25736
|
+
|
|
25737
|
+
function VerifyLinkTokenView(props) {
|
|
25738
|
+
const {
|
|
25739
|
+
t
|
|
25740
|
+
} = useTranslation("verifyLinkToken");
|
|
25741
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25742
|
+
id: "pelcro-login-view"
|
|
25743
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25744
|
+
className: "plc-mb-6 plc-text-2xl plc-font-semibold plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
25745
|
+
}, /*#__PURE__*/React__default['default'].createElement("h4", null, t("labels.title"))), /*#__PURE__*/React__default['default'].createElement("form", {
|
|
25746
|
+
action: "javascript:void(0);",
|
|
25747
|
+
className: "plc-mt-2 pelcro-form"
|
|
25748
|
+
}, /*#__PURE__*/React__default['default'].createElement(VerifyLinkTokenContainer, props, /*#__PURE__*/React__default['default'].createElement(VerifyLinkTokenLoader, null), /*#__PURE__*/React__default['default'].createElement(AlertWithContext, null))));
|
|
25749
|
+
}
|
|
25750
|
+
|
|
25751
|
+
/**
|
|
25752
|
+
*
|
|
25753
|
+
*/
|
|
25754
|
+
|
|
25755
|
+
function VerifyLinkTokenModal({
|
|
25756
|
+
onDisplay,
|
|
25757
|
+
onClose,
|
|
25758
|
+
...props
|
|
25759
|
+
}) {
|
|
25760
|
+
useTranslation("verifyLinkToken");
|
|
25761
|
+
const {
|
|
25762
|
+
resetView
|
|
25763
|
+
} = usePelcro();
|
|
25764
|
+
|
|
25765
|
+
const onSuccess = res => {
|
|
25766
|
+
var _props$onSuccess;
|
|
25767
|
+
|
|
25768
|
+
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
25769
|
+
resetView();
|
|
25770
|
+
};
|
|
25771
|
+
|
|
25772
|
+
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
25773
|
+
id: "pelcro-login-modal",
|
|
25774
|
+
onDisplay: onDisplay,
|
|
25775
|
+
onClose: onClose
|
|
25776
|
+
}, /*#__PURE__*/React__default['default'].createElement(ModalBody, null, /*#__PURE__*/React__default['default'].createElement(VerifyLinkTokenView, Object.assign({}, props, {
|
|
25777
|
+
onSuccess: onSuccess
|
|
25778
|
+
}))), /*#__PURE__*/React__default['default'].createElement(ModalFooter, null, /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
|
|
25779
|
+
}
|
|
25780
|
+
VerifyLinkTokenModal.viewId = "passwordless-login";
|
|
25781
|
+
|
|
25565
25782
|
const InvoicePaymentContainer = props => /*#__PURE__*/React__default['default'].createElement(PaymentMethodContainer, Object.assign({
|
|
25566
25783
|
type: "invoicePayment",
|
|
25567
25784
|
className: "pelcro-invoice-payment-container"
|
|
@@ -25987,6 +26204,10 @@ exports.UserUpdatePhone = UserUpdatePhone;
|
|
|
25987
26204
|
exports.UserUpdateProfilePic = UserUpdateProfilePic;
|
|
25988
26205
|
exports.UserUpdateTextInput = UserUpdateTextInput;
|
|
25989
26206
|
exports.UserUpdateView = UserUpdateView;
|
|
26207
|
+
exports.VerifyLinkTokenContainer = VerifyLinkTokenContainer;
|
|
26208
|
+
exports.VerifyLinkTokenLoader = VerifyLinkTokenLoader;
|
|
26209
|
+
exports.VerifyLinkTokenModal = VerifyLinkTokenModal;
|
|
26210
|
+
exports.VerifyLinkTokenView = VerifyLinkTokenView;
|
|
25990
26211
|
exports.authenticatedButtons = authenticatedButtons;
|
|
25991
26212
|
exports.i18n = i18next;
|
|
25992
26213
|
exports.initButtons = init$1;
|