@pelcro/react-pelcro-js 3.2.0-beta.34 → 3.2.0-beta.37
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 +585 -286
- package/dist/index.esm.js +585 -287
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3546,7 +3546,7 @@ var paymentMethod_ko = {
|
|
|
3546
3546
|
var title$q = "Enter your email to subscribe to our newsletter";
|
|
3547
3547
|
var updateTitle$2 = "Update newsletter selections";
|
|
3548
3548
|
var subtitle$b = "We may use your email for other marketing communication";
|
|
3549
|
-
var labels$
|
|
3549
|
+
var labels$I = {
|
|
3550
3550
|
submit: "Submit",
|
|
3551
3551
|
firstName: "First name",
|
|
3552
3552
|
lastName: "Last name",
|
|
@@ -3554,7 +3554,7 @@ var labels$H = {
|
|
|
3554
3554
|
postalCode: "Postal code",
|
|
3555
3555
|
required: "required"
|
|
3556
3556
|
};
|
|
3557
|
-
var messages$
|
|
3557
|
+
var messages$O = {
|
|
3558
3558
|
alreadyHaveAccount: "Already have an account?",
|
|
3559
3559
|
success: "Newsletters were successfully updated",
|
|
3560
3560
|
loginHere: "Login here.",
|
|
@@ -3565,14 +3565,14 @@ var newsletter_en = {
|
|
|
3565
3565
|
title: title$q,
|
|
3566
3566
|
updateTitle: updateTitle$2,
|
|
3567
3567
|
subtitle: subtitle$b,
|
|
3568
|
-
labels: labels$
|
|
3569
|
-
messages: messages$
|
|
3568
|
+
labels: labels$I,
|
|
3569
|
+
messages: messages$O
|
|
3570
3570
|
};
|
|
3571
3571
|
|
|
3572
3572
|
var title$p = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
3573
3573
|
var updateTitle$1 = "Mettre à jour son choix d'infolettres";
|
|
3574
3574
|
var subtitle$a = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
|
|
3575
|
-
var labels$
|
|
3575
|
+
var labels$H = {
|
|
3576
3576
|
submit: "Lire l’article !",
|
|
3577
3577
|
firstName: "Prénom",
|
|
3578
3578
|
lastName: "Nom de famille",
|
|
@@ -3580,7 +3580,7 @@ var labels$G = {
|
|
|
3580
3580
|
postalCode: "Code postal",
|
|
3581
3581
|
required: "Champs obligatoires"
|
|
3582
3582
|
};
|
|
3583
|
-
var messages$
|
|
3583
|
+
var messages$N = {
|
|
3584
3584
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
3585
3585
|
success: "Votre choix d'infolettres à été mis à jour",
|
|
3586
3586
|
loginHere: "Connectez-vous ici",
|
|
@@ -3591,14 +3591,14 @@ var newsletter_fr = {
|
|
|
3591
3591
|
title: title$p,
|
|
3592
3592
|
updateTitle: updateTitle$1,
|
|
3593
3593
|
subtitle: subtitle$a,
|
|
3594
|
-
labels: labels$
|
|
3595
|
-
messages: messages$
|
|
3594
|
+
labels: labels$H,
|
|
3595
|
+
messages: messages$N
|
|
3596
3596
|
};
|
|
3597
3597
|
|
|
3598
3598
|
var title$o = "Frieze 뉴스레터를 구독하려면 이메일을 입력하세요.";
|
|
3599
3599
|
var updateTitle = "뉴스레터 선택 업데이트";
|
|
3600
3600
|
var subtitle$9 = "귀하의 이메일은 다른 마케팅 용도로도 사용됩니다.";
|
|
3601
|
-
var labels$
|
|
3601
|
+
var labels$G = {
|
|
3602
3602
|
submit: "제출",
|
|
3603
3603
|
firstName: "이름",
|
|
3604
3604
|
lastName: "성",
|
|
@@ -3606,7 +3606,7 @@ var labels$F = {
|
|
|
3606
3606
|
postalCode: "우편번호",
|
|
3607
3607
|
required: "필수 항목"
|
|
3608
3608
|
};
|
|
3609
|
-
var messages$
|
|
3609
|
+
var messages$M = {
|
|
3610
3610
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
3611
3611
|
success: "뉴스레터가 성공적으로 업데이트되었습니다.",
|
|
3612
3612
|
loginHere: "여기에서 로그인하세요.",
|
|
@@ -3617,14 +3617,14 @@ var newsletter_ko = {
|
|
|
3617
3617
|
title: title$o,
|
|
3618
3618
|
updateTitle: updateTitle,
|
|
3619
3619
|
subtitle: subtitle$9,
|
|
3620
|
-
labels: labels$
|
|
3621
|
-
messages: messages$
|
|
3620
|
+
labels: labels$G,
|
|
3621
|
+
messages: messages$M
|
|
3622
3622
|
};
|
|
3623
3623
|
|
|
3624
|
-
var labels$
|
|
3624
|
+
var labels$F = {
|
|
3625
3625
|
"continue": "Continue to content"
|
|
3626
3626
|
};
|
|
3627
|
-
var messages$
|
|
3627
|
+
var messages$L = {
|
|
3628
3628
|
yourFreeTrial: "Subscription successful!",
|
|
3629
3629
|
youHaveAccess: "Hope you enjoy the subscription. Please contact us if you have any questions or concerns.",
|
|
3630
3630
|
clickToLearn: {
|
|
@@ -3650,15 +3650,15 @@ var errors$e = {
|
|
|
3650
3650
|
"": ""
|
|
3651
3651
|
};
|
|
3652
3652
|
var success_en = {
|
|
3653
|
-
labels: labels$
|
|
3654
|
-
messages: messages$
|
|
3653
|
+
labels: labels$F,
|
|
3654
|
+
messages: messages$L,
|
|
3655
3655
|
errors: errors$e
|
|
3656
3656
|
};
|
|
3657
3657
|
|
|
3658
|
-
var labels$
|
|
3658
|
+
var labels$E = {
|
|
3659
3659
|
"continue": "Abonnement réussi !"
|
|
3660
3660
|
};
|
|
3661
|
-
var messages$
|
|
3661
|
+
var messages$K = {
|
|
3662
3662
|
yourFreeTrial: "Votre essai gratuit vient de débuter",
|
|
3663
3663
|
youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
|
|
3664
3664
|
clickToLearn: {
|
|
@@ -3684,15 +3684,15 @@ var errors$d = {
|
|
|
3684
3684
|
"": ""
|
|
3685
3685
|
};
|
|
3686
3686
|
var success_fr = {
|
|
3687
|
-
labels: labels$
|
|
3688
|
-
messages: messages$
|
|
3687
|
+
labels: labels$E,
|
|
3688
|
+
messages: messages$K,
|
|
3689
3689
|
errors: errors$d
|
|
3690
3690
|
};
|
|
3691
3691
|
|
|
3692
|
-
var labels$
|
|
3692
|
+
var labels$D = {
|
|
3693
3693
|
"continue": "콘텐츠로 돌아가기"
|
|
3694
3694
|
};
|
|
3695
|
-
var messages$
|
|
3695
|
+
var messages$J = {
|
|
3696
3696
|
yourFreeTrial: "유료 멤버십에 가입하셨습니다!",
|
|
3697
3697
|
youHaveAccess: "멤버십 혜택을 즐기시기를 바라며, 질문이나 문의 사항이 있으면 저희에게 연락주십시오.",
|
|
3698
3698
|
clickToLearn: {
|
|
@@ -3718,12 +3718,12 @@ var errors$c = {
|
|
|
3718
3718
|
"": ""
|
|
3719
3719
|
};
|
|
3720
3720
|
var success_ko = {
|
|
3721
|
-
labels: labels$
|
|
3722
|
-
messages: messages$
|
|
3721
|
+
labels: labels$D,
|
|
3722
|
+
messages: messages$J,
|
|
3723
3723
|
errors: errors$c
|
|
3724
3724
|
};
|
|
3725
3725
|
|
|
3726
|
-
var messages$
|
|
3726
|
+
var messages$I = {
|
|
3727
3727
|
freeVisits: "Free visits left:",
|
|
3728
3728
|
subscribeNow: "Subscribe",
|
|
3729
3729
|
alreadyHaveAccount: "Already have an account?",
|
|
@@ -3733,11 +3733,11 @@ var errors$b = {
|
|
|
3733
3733
|
"": ""
|
|
3734
3734
|
};
|
|
3735
3735
|
var meter_en = {
|
|
3736
|
-
messages: messages$
|
|
3736
|
+
messages: messages$I,
|
|
3737
3737
|
errors: errors$b
|
|
3738
3738
|
};
|
|
3739
3739
|
|
|
3740
|
-
var messages$
|
|
3740
|
+
var messages$H = {
|
|
3741
3741
|
freeVisits: "Visites gratuites restantes:",
|
|
3742
3742
|
subscribeNow: "Abonnez-vous maintenant !",
|
|
3743
3743
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
@@ -3747,11 +3747,11 @@ var errors$a = {
|
|
|
3747
3747
|
"": ""
|
|
3748
3748
|
};
|
|
3749
3749
|
var meter_fr = {
|
|
3750
|
-
messages: messages$
|
|
3750
|
+
messages: messages$H,
|
|
3751
3751
|
errors: errors$a
|
|
3752
3752
|
};
|
|
3753
3753
|
|
|
3754
|
-
var messages$
|
|
3754
|
+
var messages$G = {
|
|
3755
3755
|
freeVisits: "남은 무료 방문 기간:",
|
|
3756
3756
|
subscribeNow: "멤버십 가입",
|
|
3757
3757
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
@@ -3761,15 +3761,15 @@ var errors$9 = {
|
|
|
3761
3761
|
"": ""
|
|
3762
3762
|
};
|
|
3763
3763
|
var meter_ko = {
|
|
3764
|
-
messages: messages$
|
|
3764
|
+
messages: messages$G,
|
|
3765
3765
|
errors: errors$9
|
|
3766
3766
|
};
|
|
3767
3767
|
|
|
3768
|
-
var messages$
|
|
3768
|
+
var messages$F = {
|
|
3769
3769
|
youAreSafe: "You're safe - PCI compliant 128 SSL by",
|
|
3770
3770
|
bankRedirection: "Please hold, redirecting you to your bank."
|
|
3771
3771
|
};
|
|
3772
|
-
var labels$
|
|
3772
|
+
var labels$C = {
|
|
3773
3773
|
card: "Enter card number",
|
|
3774
3774
|
date: "Expiration date",
|
|
3775
3775
|
CVC: "CVC",
|
|
@@ -3788,15 +3788,15 @@ var labels$B = {
|
|
|
3788
3788
|
removeCoupon: "REMOVE"
|
|
3789
3789
|
};
|
|
3790
3790
|
var checkoutForm_en = {
|
|
3791
|
-
messages: messages$
|
|
3792
|
-
labels: labels$
|
|
3791
|
+
messages: messages$F,
|
|
3792
|
+
labels: labels$C
|
|
3793
3793
|
};
|
|
3794
3794
|
|
|
3795
|
-
var messages$
|
|
3795
|
+
var messages$E = {
|
|
3796
3796
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
3797
3797
|
bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque."
|
|
3798
3798
|
};
|
|
3799
|
-
var labels$
|
|
3799
|
+
var labels$B = {
|
|
3800
3800
|
card: "Entrez le numéro de carte",
|
|
3801
3801
|
date: "Date d’expiration",
|
|
3802
3802
|
CVC: "CVC",
|
|
@@ -3815,15 +3815,15 @@ var labels$A = {
|
|
|
3815
3815
|
removeCoupon: "RETIRER"
|
|
3816
3816
|
};
|
|
3817
3817
|
var checkoutForm_fr = {
|
|
3818
|
-
messages: messages$
|
|
3819
|
-
labels: labels$
|
|
3818
|
+
messages: messages$E,
|
|
3819
|
+
labels: labels$B
|
|
3820
3820
|
};
|
|
3821
3821
|
|
|
3822
|
-
var messages$
|
|
3822
|
+
var messages$D = {
|
|
3823
3823
|
youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
|
|
3824
3824
|
bankRedirection: "잠시만 기다려 주십시오. 결제 은행으로 연결 중입니다."
|
|
3825
3825
|
};
|
|
3826
|
-
var labels$
|
|
3826
|
+
var labels$A = {
|
|
3827
3827
|
card: "카드 번호 입력",
|
|
3828
3828
|
date: "만료일",
|
|
3829
3829
|
CVC: "CVC",
|
|
@@ -3842,8 +3842,8 @@ var labels$z = {
|
|
|
3842
3842
|
removeCoupon: "제거"
|
|
3843
3843
|
};
|
|
3844
3844
|
var checkoutForm_ko = {
|
|
3845
|
-
messages: messages$
|
|
3846
|
-
labels: labels$
|
|
3845
|
+
messages: messages$D,
|
|
3846
|
+
labels: labels$A
|
|
3847
3847
|
};
|
|
3848
3848
|
|
|
3849
3849
|
var youAreSafe$2 = "You're safe - PCI compliant 128 SSL by";
|
|
@@ -3903,7 +3903,7 @@ var messages_ko = {
|
|
|
3903
3903
|
zeroTotalInvoice: zeroTotalInvoice
|
|
3904
3904
|
};
|
|
3905
3905
|
|
|
3906
|
-
var labels$
|
|
3906
|
+
var labels$z = {
|
|
3907
3907
|
email: "Enter email",
|
|
3908
3908
|
password: "Enter password",
|
|
3909
3909
|
required: "required",
|
|
@@ -3911,7 +3911,7 @@ var labels$y = {
|
|
|
3911
3911
|
passwordPlaceholder: "Password",
|
|
3912
3912
|
login: "Login"
|
|
3913
3913
|
};
|
|
3914
|
-
var messages$
|
|
3914
|
+
var messages$C = {
|
|
3915
3915
|
loginTo: "Login to your account",
|
|
3916
3916
|
welcome: "Welcome back, sign in with your existing account.",
|
|
3917
3917
|
dontHaveAccount: "Don't have an account yet?",
|
|
@@ -3930,12 +3930,12 @@ var errors$8 = {
|
|
|
3930
3930
|
"": ""
|
|
3931
3931
|
};
|
|
3932
3932
|
var login_en = {
|
|
3933
|
-
labels: labels$
|
|
3934
|
-
messages: messages$
|
|
3933
|
+
labels: labels$z,
|
|
3934
|
+
messages: messages$C,
|
|
3935
3935
|
errors: errors$8
|
|
3936
3936
|
};
|
|
3937
3937
|
|
|
3938
|
-
var labels$
|
|
3938
|
+
var labels$y = {
|
|
3939
3939
|
email: "Entrez votre adresse courriel",
|
|
3940
3940
|
password: "Entrez votre mot de passe",
|
|
3941
3941
|
required: "Champs obligatoires",
|
|
@@ -3943,7 +3943,7 @@ var labels$x = {
|
|
|
3943
3943
|
passwordPlaceholder: "Mot de passe",
|
|
3944
3944
|
login: "Connexion"
|
|
3945
3945
|
};
|
|
3946
|
-
var messages$
|
|
3946
|
+
var messages$B = {
|
|
3947
3947
|
loginTo: "Connectez-vous à votre compte",
|
|
3948
3948
|
welcome: "Bienvenue, connectez-vous avec votre compte existant.",
|
|
3949
3949
|
dontHaveAccount: "Vous n’avez pas encore de compte ?",
|
|
@@ -3962,12 +3962,12 @@ var errors$7 = {
|
|
|
3962
3962
|
"": ""
|
|
3963
3963
|
};
|
|
3964
3964
|
var login_fr = {
|
|
3965
|
-
labels: labels$
|
|
3966
|
-
messages: messages$
|
|
3965
|
+
labels: labels$y,
|
|
3966
|
+
messages: messages$B,
|
|
3967
3967
|
errors: errors$7
|
|
3968
3968
|
};
|
|
3969
3969
|
|
|
3970
|
-
var labels$
|
|
3970
|
+
var labels$x = {
|
|
3971
3971
|
email: "이메일 입력",
|
|
3972
3972
|
password: "비밀번호 입력",
|
|
3973
3973
|
required: "필수 항목",
|
|
@@ -3975,7 +3975,7 @@ var labels$w = {
|
|
|
3975
3975
|
passwordPlaceholder: "비밀번호",
|
|
3976
3976
|
login: "로그인"
|
|
3977
3977
|
};
|
|
3978
|
-
var messages$
|
|
3978
|
+
var messages$A = {
|
|
3979
3979
|
loginTo: "귀하의 계정에 로그인",
|
|
3980
3980
|
welcome: "반갑습니다. 귀하의 기존 계정으로 로그인하세요.",
|
|
3981
3981
|
dontHaveAccount: "아직 계정이 없으신가요?",
|
|
@@ -3994,35 +3994,49 @@ var errors$6 = {
|
|
|
3994
3994
|
"": ""
|
|
3995
3995
|
};
|
|
3996
3996
|
var login_ko = {
|
|
3997
|
-
labels: labels$
|
|
3998
|
-
messages: messages$
|
|
3997
|
+
labels: labels$x,
|
|
3998
|
+
messages: messages$A,
|
|
3999
3999
|
errors: errors$6
|
|
4000
4000
|
};
|
|
4001
4001
|
|
|
4002
|
-
var labels$
|
|
4002
|
+
var labels$w = {
|
|
4003
4003
|
title: "Verifying Passwordless Link",
|
|
4004
4004
|
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
4005
4005
|
resend: "Resend email"
|
|
4006
4006
|
};
|
|
4007
|
-
var messages$
|
|
4007
|
+
var messages$z = {
|
|
4008
4008
|
resent: "Resent successfully",
|
|
4009
|
-
success: "You have
|
|
4009
|
+
success: "You have logged in successfully"
|
|
4010
4010
|
};
|
|
4011
4011
|
var verifyLinkToken_en = {
|
|
4012
|
-
labels: labels$
|
|
4013
|
-
messages: messages$
|
|
4012
|
+
labels: labels$w,
|
|
4013
|
+
messages: messages$z
|
|
4014
4014
|
};
|
|
4015
4015
|
|
|
4016
|
-
var labels$
|
|
4016
|
+
var labels$v = {
|
|
4017
4017
|
title: "Confirmez votre courriel",
|
|
4018
4018
|
instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
|
|
4019
4019
|
resend: "Renvoyer le courriel"
|
|
4020
4020
|
};
|
|
4021
|
-
var messages$
|
|
4021
|
+
var messages$y = {
|
|
4022
4022
|
resent: "Renvoyé avec succès",
|
|
4023
|
-
success: "
|
|
4023
|
+
success: "Vous vous êtes connecté avec succès"
|
|
4024
4024
|
};
|
|
4025
4025
|
var verifyLinkToken_fr = {
|
|
4026
|
+
labels: labels$v,
|
|
4027
|
+
messages: messages$y
|
|
4028
|
+
};
|
|
4029
|
+
|
|
4030
|
+
var labels$u = {
|
|
4031
|
+
title: "비밀번호 없는 링크 확인",
|
|
4032
|
+
instructions: "가는 중입니다!\n이메일 주소를 확인하겠습니다.\n이메일로 전송된 확인 링크를 클릭하세요.",
|
|
4033
|
+
resend: "이메일 재전송"
|
|
4034
|
+
};
|
|
4035
|
+
var messages$x = {
|
|
4036
|
+
resent: "성공적으로 재전송",
|
|
4037
|
+
success: "성공적으로 로그인했습니다"
|
|
4038
|
+
};
|
|
4039
|
+
var verifyLinkToken_ko = {
|
|
4026
4040
|
labels: labels$u,
|
|
4027
4041
|
messages: messages$x
|
|
4028
4042
|
};
|
|
@@ -6945,7 +6959,7 @@ class PelcroActions {
|
|
|
6945
6959
|
view,
|
|
6946
6960
|
cartItems,
|
|
6947
6961
|
...otherStateFields
|
|
6948
|
-
} = initialState$
|
|
6962
|
+
} = initialState$l;
|
|
6949
6963
|
this.set(otherStateFields);
|
|
6950
6964
|
});
|
|
6951
6965
|
|
|
@@ -7281,7 +7295,7 @@ class PelcroCallbacks {
|
|
|
7281
7295
|
|
|
7282
7296
|
}
|
|
7283
7297
|
|
|
7284
|
-
const initialState$
|
|
7298
|
+
const initialState$l = {
|
|
7285
7299
|
// View
|
|
7286
7300
|
view: null,
|
|
7287
7301
|
// Plans
|
|
@@ -7311,7 +7325,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
|
|
|
7311
7325
|
return {
|
|
7312
7326
|
// Store setter
|
|
7313
7327
|
set,
|
|
7314
|
-
...initialState$
|
|
7328
|
+
...initialState$l,
|
|
7315
7329
|
// State actions
|
|
7316
7330
|
...actions,
|
|
7317
7331
|
// Callbacks
|
|
@@ -7745,7 +7759,7 @@ const resources = {
|
|
|
7745
7759
|
checkoutForm: checkoutForm_ko,
|
|
7746
7760
|
messages: messages_ko,
|
|
7747
7761
|
login: login_ko,
|
|
7748
|
-
|
|
7762
|
+
verifyLinkToken: verifyLinkToken_ko,
|
|
7749
7763
|
register: register_ko,
|
|
7750
7764
|
userEdit: userEdit_ko,
|
|
7751
7765
|
address: address_ko,
|
|
@@ -10111,13 +10125,39 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
10111
10125
|
const verifyLinkTokenFromUrl = () => {
|
|
10112
10126
|
var _window$Pelcro$user$i, _window$Pelcro$user;
|
|
10113
10127
|
|
|
10128
|
+
const {
|
|
10129
|
+
whenSiteReady
|
|
10130
|
+
} = usePelcro.getStore();
|
|
10131
|
+
const translations = i18next.t("verifyLinkToken:messages", {
|
|
10132
|
+
returnObjects: true
|
|
10133
|
+
});
|
|
10114
10134
|
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;
|
|
10115
10135
|
const loginToken = window.Pelcro.helpers.getURLParameter("token");
|
|
10116
10136
|
if (isAlreadyLoggedIn || !loginToken) return;
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10137
|
+
whenSiteReady(() => {
|
|
10138
|
+
window.Pelcro.user.verifyLoginToken({
|
|
10139
|
+
token: loginToken
|
|
10140
|
+
}, (err, res) => {
|
|
10141
|
+
if (err) {
|
|
10142
|
+
return notify.error(getErrorMessages(err));
|
|
10143
|
+
}
|
|
10144
|
+
|
|
10145
|
+
const {
|
|
10146
|
+
auth_token
|
|
10147
|
+
} = res.data;
|
|
10148
|
+
window.Pelcro.user.refresh({
|
|
10149
|
+
auth_token
|
|
10150
|
+
}, (err, res) => {
|
|
10151
|
+
if (err) {
|
|
10152
|
+
return notify.error(getErrorMessages(err));
|
|
10153
|
+
}
|
|
10154
|
+
|
|
10155
|
+
return notify.success(translations.success);
|
|
10156
|
+
});
|
|
10157
|
+
});
|
|
10158
|
+
}, {
|
|
10159
|
+
once: true
|
|
10160
|
+
});
|
|
10121
10161
|
};
|
|
10122
10162
|
|
|
10123
10163
|
const showPasswordlessRequestFromUrl = () => {
|
|
@@ -10507,8 +10547,9 @@ const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
|
|
|
10507
10547
|
const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
|
|
10508
10548
|
const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
|
|
10509
10549
|
const LINK_TOKEN_VERIFY = "LINK_TOKEN_VERIFY";
|
|
10550
|
+
const SET_CANCEL_SUBSCRIPTION_REASON = "SET_CANCEL_SUBSCRIPTION_REASON";
|
|
10510
10551
|
|
|
10511
|
-
const initialState$
|
|
10552
|
+
const initialState$k = {
|
|
10512
10553
|
email: "",
|
|
10513
10554
|
password: "",
|
|
10514
10555
|
emailError: null,
|
|
@@ -10519,10 +10560,10 @@ const initialState$j = {
|
|
|
10519
10560
|
content: ""
|
|
10520
10561
|
}
|
|
10521
10562
|
};
|
|
10522
|
-
const store$
|
|
10563
|
+
const store$k = /*#__PURE__*/createContext(initialState$k);
|
|
10523
10564
|
const {
|
|
10524
|
-
Provider: Provider$
|
|
10525
|
-
} = store$
|
|
10565
|
+
Provider: Provider$k
|
|
10566
|
+
} = store$k;
|
|
10526
10567
|
|
|
10527
10568
|
const LoginContainer = ({
|
|
10528
10569
|
style,
|
|
@@ -10629,7 +10670,7 @@ const LoginContainer = ({
|
|
|
10629
10670
|
});
|
|
10630
10671
|
|
|
10631
10672
|
case RESET_LOGIN_FORM:
|
|
10632
|
-
return initialState$
|
|
10673
|
+
return initialState$k;
|
|
10633
10674
|
|
|
10634
10675
|
case DISABLE_LOGIN_BUTTON:
|
|
10635
10676
|
return lib_7({ ...state,
|
|
@@ -10647,12 +10688,12 @@ const LoginContainer = ({
|
|
|
10647
10688
|
default:
|
|
10648
10689
|
return state;
|
|
10649
10690
|
}
|
|
10650
|
-
}, initialState$
|
|
10691
|
+
}, initialState$k);
|
|
10651
10692
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10652
10693
|
style: { ...style
|
|
10653
10694
|
},
|
|
10654
10695
|
className: `pelcro-container pelcro-login-container ${className}`
|
|
10655
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
10696
|
+
}, /*#__PURE__*/React__default.createElement(Provider$k, {
|
|
10656
10697
|
value: {
|
|
10657
10698
|
state,
|
|
10658
10699
|
dispatch
|
|
@@ -10660,12 +10701,12 @@ const LoginContainer = ({
|
|
|
10660
10701
|
}, children.length ? children.map((child, i) => {
|
|
10661
10702
|
if (child) {
|
|
10662
10703
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
10663
|
-
store: store$
|
|
10704
|
+
store: store$k,
|
|
10664
10705
|
key: i
|
|
10665
10706
|
});
|
|
10666
10707
|
}
|
|
10667
10708
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
10668
|
-
store: store$
|
|
10709
|
+
store: store$k
|
|
10669
10710
|
})));
|
|
10670
10711
|
};
|
|
10671
10712
|
|
|
@@ -10923,7 +10964,7 @@ const LoginButton = ({
|
|
|
10923
10964
|
buttonDisabled
|
|
10924
10965
|
},
|
|
10925
10966
|
dispatch
|
|
10926
|
-
} = useContext(store$
|
|
10967
|
+
} = useContext(store$k);
|
|
10927
10968
|
const {
|
|
10928
10969
|
t
|
|
10929
10970
|
} = useTranslation("login");
|
|
@@ -10981,11 +11022,11 @@ const LoginRequestLoginToken = ({
|
|
|
10981
11022
|
};
|
|
10982
11023
|
|
|
10983
11024
|
const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
10984
|
-
store: store$
|
|
11025
|
+
store: store$k
|
|
10985
11026
|
}, props));
|
|
10986
11027
|
|
|
10987
11028
|
const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
10988
|
-
store: store$
|
|
11029
|
+
store: store$k
|
|
10989
11030
|
}, props));
|
|
10990
11031
|
|
|
10991
11032
|
var _path$q;
|
|
@@ -11062,7 +11103,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
|
11062
11103
|
var FacebookLogin = unwrapExports(facebookLoginRenderProps);
|
|
11063
11104
|
facebookLoginRenderProps.FacebookLogin;
|
|
11064
11105
|
|
|
11065
|
-
const initialState$
|
|
11106
|
+
const initialState$j = {
|
|
11066
11107
|
email: "",
|
|
11067
11108
|
password: "",
|
|
11068
11109
|
emailError: null,
|
|
@@ -11079,10 +11120,10 @@ const initialState$i = {
|
|
|
11079
11120
|
content: ""
|
|
11080
11121
|
}
|
|
11081
11122
|
};
|
|
11082
|
-
const store$
|
|
11123
|
+
const store$j = /*#__PURE__*/createContext(initialState$j);
|
|
11083
11124
|
const {
|
|
11084
|
-
Provider: Provider$
|
|
11085
|
-
} = store$
|
|
11125
|
+
Provider: Provider$j
|
|
11126
|
+
} = store$j;
|
|
11086
11127
|
|
|
11087
11128
|
const RegisterContainer = ({
|
|
11088
11129
|
style,
|
|
@@ -11265,7 +11306,7 @@ const RegisterContainer = ({
|
|
|
11265
11306
|
});
|
|
11266
11307
|
|
|
11267
11308
|
case RESET_LOGIN_FORM:
|
|
11268
|
-
return initialState$
|
|
11309
|
+
return initialState$j;
|
|
11269
11310
|
|
|
11270
11311
|
case DISABLE_REGISTRATION_BUTTON:
|
|
11271
11312
|
return lib_7({ ...state,
|
|
@@ -11283,12 +11324,12 @@ const RegisterContainer = ({
|
|
|
11283
11324
|
default:
|
|
11284
11325
|
return state;
|
|
11285
11326
|
}
|
|
11286
|
-
}, initialState$
|
|
11327
|
+
}, initialState$j);
|
|
11287
11328
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
11288
11329
|
style: { ...style
|
|
11289
11330
|
},
|
|
11290
11331
|
className: `pelcro-container pelcro-register-container ${className}`
|
|
11291
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
11332
|
+
}, /*#__PURE__*/React__default.createElement(Provider$j, {
|
|
11292
11333
|
value: {
|
|
11293
11334
|
state,
|
|
11294
11335
|
dispatch
|
|
@@ -11296,12 +11337,12 @@ const RegisterContainer = ({
|
|
|
11296
11337
|
}, children.length ? children.map((child, i) => {
|
|
11297
11338
|
if (child) {
|
|
11298
11339
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
11299
|
-
store: store$
|
|
11340
|
+
store: store$j,
|
|
11300
11341
|
key: i
|
|
11301
11342
|
});
|
|
11302
11343
|
}
|
|
11303
11344
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
11304
|
-
store: store$
|
|
11345
|
+
store: store$j
|
|
11305
11346
|
})));
|
|
11306
11347
|
};
|
|
11307
11348
|
/**
|
|
@@ -11341,10 +11382,10 @@ const FacebookLoginButton = ({
|
|
|
11341
11382
|
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;
|
|
11342
11383
|
const {
|
|
11343
11384
|
dispatch: loginDispatch
|
|
11344
|
-
} = useContext(store$
|
|
11385
|
+
} = useContext(store$k);
|
|
11345
11386
|
const {
|
|
11346
11387
|
dispatch: registerDispatch
|
|
11347
|
-
} = useContext(store$
|
|
11388
|
+
} = useContext(store$j);
|
|
11348
11389
|
|
|
11349
11390
|
const onSuccess = facebookUser => {
|
|
11350
11391
|
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
@@ -11431,10 +11472,10 @@ const GoogleLoginButton = ({
|
|
|
11431
11472
|
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;
|
|
11432
11473
|
const {
|
|
11433
11474
|
dispatch: loginDispatch
|
|
11434
|
-
} = useContext(store$
|
|
11475
|
+
} = useContext(store$k);
|
|
11435
11476
|
const {
|
|
11436
11477
|
dispatch: registerDispatch
|
|
11437
|
-
} = useContext(store$
|
|
11478
|
+
} = useContext(store$j);
|
|
11438
11479
|
|
|
11439
11480
|
const onSuccess = response => {
|
|
11440
11481
|
var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
|
|
@@ -11530,10 +11571,10 @@ const Auth0LoginButton = ({
|
|
|
11530
11571
|
}, [auth0Enabled, auth0Loaded]);
|
|
11531
11572
|
const {
|
|
11532
11573
|
dispatch: loginDispatch
|
|
11533
|
-
} = useContext(store$
|
|
11574
|
+
} = useContext(store$k);
|
|
11534
11575
|
const {
|
|
11535
11576
|
dispatch: registerDispatch
|
|
11536
|
-
} = useContext(store$
|
|
11577
|
+
} = useContext(store$j);
|
|
11537
11578
|
|
|
11538
11579
|
function handleClick() {
|
|
11539
11580
|
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
@@ -11830,11 +11871,11 @@ function LoginModal({
|
|
|
11830
11871
|
LoginModal.viewId = "login";
|
|
11831
11872
|
|
|
11832
11873
|
const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
11833
|
-
store: store$
|
|
11874
|
+
store: store$j
|
|
11834
11875
|
}, props));
|
|
11835
11876
|
|
|
11836
11877
|
const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
11837
|
-
store: store$
|
|
11878
|
+
store: store$j
|
|
11838
11879
|
}, props));
|
|
11839
11880
|
|
|
11840
11881
|
const RegisterButton = ({
|
|
@@ -11854,7 +11895,7 @@ const RegisterButton = ({
|
|
|
11854
11895
|
buttonDisabled
|
|
11855
11896
|
},
|
|
11856
11897
|
dispatch
|
|
11857
|
-
} = useContext(store$
|
|
11898
|
+
} = useContext(store$j);
|
|
11858
11899
|
const {
|
|
11859
11900
|
t
|
|
11860
11901
|
} = useTranslation("register");
|
|
@@ -11992,7 +12033,7 @@ function FirstName({
|
|
|
11992
12033
|
}
|
|
11993
12034
|
|
|
11994
12035
|
const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
11995
|
-
store: store$
|
|
12036
|
+
store: store$j
|
|
11996
12037
|
}, props));
|
|
11997
12038
|
|
|
11998
12039
|
function LastName({
|
|
@@ -12023,7 +12064,7 @@ function LastName({
|
|
|
12023
12064
|
}
|
|
12024
12065
|
|
|
12025
12066
|
const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
12026
|
-
store: store$
|
|
12067
|
+
store: store$j
|
|
12027
12068
|
}, props));
|
|
12028
12069
|
|
|
12029
12070
|
/**
|
|
@@ -12147,7 +12188,7 @@ function TextInput({
|
|
|
12147
12188
|
|
|
12148
12189
|
const RegisterTextInput = props => {
|
|
12149
12190
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
12150
|
-
store: store$
|
|
12191
|
+
store: store$j
|
|
12151
12192
|
}));
|
|
12152
12193
|
};
|
|
12153
12194
|
|
|
@@ -14491,7 +14532,7 @@ class VantivGateway {
|
|
|
14491
14532
|
|
|
14492
14533
|
/** @type {PaymentStateType} */
|
|
14493
14534
|
|
|
14494
|
-
const initialState$
|
|
14535
|
+
const initialState$i = {
|
|
14495
14536
|
disableSubmit: false,
|
|
14496
14537
|
isLoading: false,
|
|
14497
14538
|
disableCouponButton: false,
|
|
@@ -14510,10 +14551,10 @@ const initialState$h = {
|
|
|
14510
14551
|
content: ""
|
|
14511
14552
|
}
|
|
14512
14553
|
};
|
|
14513
|
-
const store$
|
|
14554
|
+
const store$i = /*#__PURE__*/createContext(initialState$i);
|
|
14514
14555
|
const {
|
|
14515
|
-
Provider: Provider$
|
|
14516
|
-
} = store$
|
|
14556
|
+
Provider: Provider$i
|
|
14557
|
+
} = store$i;
|
|
14517
14558
|
|
|
14518
14559
|
const PaymentMethodContainerWithoutStripe = ({
|
|
14519
14560
|
style,
|
|
@@ -15765,21 +15806,21 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15765
15806
|
default:
|
|
15766
15807
|
return state;
|
|
15767
15808
|
}
|
|
15768
|
-
}, initialState$
|
|
15809
|
+
}, initialState$i);
|
|
15769
15810
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
15770
15811
|
style: { ...style
|
|
15771
15812
|
},
|
|
15772
15813
|
className: `pelcro-container pelcro-payment-container ${className}`
|
|
15773
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
15814
|
+
}, /*#__PURE__*/React__default.createElement(Provider$i, {
|
|
15774
15815
|
value: {
|
|
15775
15816
|
state,
|
|
15776
15817
|
dispatch
|
|
15777
15818
|
}
|
|
15778
15819
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
15779
|
-
store: store$
|
|
15820
|
+
store: store$i,
|
|
15780
15821
|
key: i
|
|
15781
15822
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
15782
|
-
store: store$
|
|
15823
|
+
store: store$i
|
|
15783
15824
|
})));
|
|
15784
15825
|
};
|
|
15785
15826
|
|
|
@@ -15801,7 +15842,7 @@ const PaymentMethodContainer = props => {
|
|
|
15801
15842
|
stripeAccount: window.Pelcro.site.read().account_id,
|
|
15802
15843
|
locale: getPageOrDefaultLanguage()
|
|
15803
15844
|
}, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
|
|
15804
|
-
store: store$
|
|
15845
|
+
store: store$i
|
|
15805
15846
|
}, props))));
|
|
15806
15847
|
}
|
|
15807
15848
|
|
|
@@ -15854,7 +15895,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
15854
15895
|
currentPlan,
|
|
15855
15896
|
updatedPrice
|
|
15856
15897
|
}
|
|
15857
|
-
} = useContext(store$
|
|
15898
|
+
} = useContext(store$i);
|
|
15858
15899
|
|
|
15859
15900
|
const updatePaymentRequest = () => {
|
|
15860
15901
|
// Make sure payment request is up to date, eg. user added a coupon code.
|
|
@@ -15930,7 +15971,7 @@ const DiscountedPrice = props => {
|
|
|
15930
15971
|
taxAmount,
|
|
15931
15972
|
percentOff
|
|
15932
15973
|
}
|
|
15933
|
-
} = useContext(store$
|
|
15974
|
+
} = useContext(store$i);
|
|
15934
15975
|
const {
|
|
15935
15976
|
order,
|
|
15936
15977
|
plan
|
|
@@ -15980,7 +16021,7 @@ const SubmitPaymentMethod = ({
|
|
|
15980
16021
|
isLoading,
|
|
15981
16022
|
updatedPrice
|
|
15982
16023
|
}
|
|
15983
|
-
} = useContext(store$
|
|
16024
|
+
} = useContext(store$i);
|
|
15984
16025
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
15985
16026
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
15986
16027
|
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
@@ -16030,7 +16071,7 @@ const ApplyCouponButton = ({
|
|
|
16030
16071
|
disableCouponButton
|
|
16031
16072
|
},
|
|
16032
16073
|
dispatch
|
|
16033
|
-
} = useContext(store$
|
|
16074
|
+
} = useContext(store$i);
|
|
16034
16075
|
const {
|
|
16035
16076
|
t
|
|
16036
16077
|
} = useTranslation("checkoutForm");
|
|
@@ -16064,7 +16105,7 @@ const CouponCodeField = props => {
|
|
|
16064
16105
|
couponCode,
|
|
16065
16106
|
couponError
|
|
16066
16107
|
}
|
|
16067
|
-
} = useContext(store$
|
|
16108
|
+
} = useContext(store$i);
|
|
16068
16109
|
|
|
16069
16110
|
const onCouponCodeChange = e => {
|
|
16070
16111
|
dispatch({
|
|
@@ -16120,7 +16161,7 @@ const CouponCode = ({
|
|
|
16120
16161
|
state: {
|
|
16121
16162
|
enableCouponField
|
|
16122
16163
|
}
|
|
16123
|
-
} = useContext(store$
|
|
16164
|
+
} = useContext(store$i);
|
|
16124
16165
|
const {
|
|
16125
16166
|
t
|
|
16126
16167
|
} = useTranslation("checkoutForm");
|
|
@@ -16377,7 +16418,7 @@ const PaypalSubscribeButton = props => {
|
|
|
16377
16418
|
const {
|
|
16378
16419
|
dispatch,
|
|
16379
16420
|
state
|
|
16380
|
-
} = useContext(store$
|
|
16421
|
+
} = useContext(store$i);
|
|
16381
16422
|
const {
|
|
16382
16423
|
product,
|
|
16383
16424
|
plan,
|
|
@@ -16510,7 +16551,7 @@ const SelectedPaymentMethod = () => {
|
|
|
16510
16551
|
state: {
|
|
16511
16552
|
isLoading
|
|
16512
16553
|
}
|
|
16513
|
-
} = useContext(store$
|
|
16554
|
+
} = useContext(store$i);
|
|
16514
16555
|
const {
|
|
16515
16556
|
switchView,
|
|
16516
16557
|
selectedPaymentMethodId
|
|
@@ -16552,7 +16593,7 @@ const TaxAmount = () => {
|
|
|
16552
16593
|
state: {
|
|
16553
16594
|
taxAmount
|
|
16554
16595
|
}
|
|
16555
|
-
} = useContext(store$
|
|
16596
|
+
} = useContext(store$i);
|
|
16556
16597
|
const {
|
|
16557
16598
|
plan
|
|
16558
16599
|
} = usePelcro();
|
|
@@ -16716,30 +16757,381 @@ function SubscriptionRenewModal({
|
|
|
16716
16757
|
}
|
|
16717
16758
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
16718
16759
|
|
|
16719
|
-
|
|
16720
|
-
|
|
16721
|
-
|
|
16722
|
-
|
|
16723
|
-
|
|
16724
|
-
|
|
16725
|
-
|
|
16726
|
-
fill: "none",
|
|
16727
|
-
stroke: "currentColor",
|
|
16728
|
-
strokeLinecap: "round",
|
|
16729
|
-
strokeLinejoin: "round",
|
|
16730
|
-
strokeWidth: 2,
|
|
16731
|
-
viewBox: "0 0 24 24",
|
|
16732
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
16733
|
-
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
16734
|
-
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"
|
|
16735
|
-
})));
|
|
16736
|
-
}
|
|
16760
|
+
const initialState$h = {
|
|
16761
|
+
cancelationReason: ""
|
|
16762
|
+
};
|
|
16763
|
+
const store$h = /*#__PURE__*/createContext(initialState$h);
|
|
16764
|
+
const {
|
|
16765
|
+
Provider: Provider$h
|
|
16766
|
+
} = store$h;
|
|
16737
16767
|
|
|
16738
|
-
const
|
|
16739
|
-
|
|
16768
|
+
const SubscriptionCancelContainer = ({
|
|
16769
|
+
style,
|
|
16770
|
+
className = "",
|
|
16771
|
+
onSuccess = () => {},
|
|
16772
|
+
onFailure = () => {},
|
|
16773
|
+
children,
|
|
16774
|
+
...props
|
|
16740
16775
|
}) => {
|
|
16741
|
-
|
|
16742
|
-
|
|
16776
|
+
useTranslation("verifyEmail");
|
|
16777
|
+
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
16778
|
+
switch (action.type) {
|
|
16779
|
+
case SET_CANCEL_SUBSCRIPTION_REASON:
|
|
16780
|
+
return lib_7({ ...state,
|
|
16781
|
+
cancelationReason: action.payload
|
|
16782
|
+
});
|
|
16783
|
+
|
|
16784
|
+
default:
|
|
16785
|
+
return state;
|
|
16786
|
+
}
|
|
16787
|
+
}, initialState$h);
|
|
16788
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
16789
|
+
style: { ...style
|
|
16790
|
+
},
|
|
16791
|
+
className: `pelcro-container pelcro-subscription-cancel-container ${className}`
|
|
16792
|
+
}, /*#__PURE__*/React__default.createElement(Provider$h, {
|
|
16793
|
+
value: {
|
|
16794
|
+
state,
|
|
16795
|
+
dispatch
|
|
16796
|
+
}
|
|
16797
|
+
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
16798
|
+
store: store$h,
|
|
16799
|
+
key: i
|
|
16800
|
+
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
16801
|
+
store: store$h
|
|
16802
|
+
})));
|
|
16803
|
+
};
|
|
16804
|
+
|
|
16805
|
+
var _path$i;
|
|
16806
|
+
|
|
16807
|
+
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); }
|
|
16808
|
+
|
|
16809
|
+
function SvgInfoCircle(props) {
|
|
16810
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
16811
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16812
|
+
className: "plc-w-5 plc-h-5",
|
|
16813
|
+
fill: "none",
|
|
16814
|
+
viewBox: "0 0 24 24",
|
|
16815
|
+
stroke: "currentColor"
|
|
16816
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
16817
|
+
strokeLinecap: "round",
|
|
16818
|
+
strokeLinejoin: "round",
|
|
16819
|
+
strokeWidth: 2,
|
|
16820
|
+
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
16821
|
+
})));
|
|
16822
|
+
}
|
|
16823
|
+
|
|
16824
|
+
/**
|
|
16825
|
+
*
|
|
16826
|
+
*/
|
|
16827
|
+
|
|
16828
|
+
const Tooltip = ({
|
|
16829
|
+
value,
|
|
16830
|
+
className
|
|
16831
|
+
}) => {
|
|
16832
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
16833
|
+
className: `plc-flex pelcro-tooltip-container plc-text-gray-600 ${className}`
|
|
16834
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
16835
|
+
className: "pelcro-tooltip-icon"
|
|
16836
|
+
}, /*#__PURE__*/React__default.createElement(SvgInfoCircle, null)), /*#__PURE__*/React__default.createElement("div", {
|
|
16837
|
+
className: "plc-p-1 plc--mt-8 plc-text-sm plc-bg-gray-100 plc-border plc-rounded-md plc-shadow-lg pelcro-tooltip"
|
|
16838
|
+
}, value));
|
|
16839
|
+
};
|
|
16840
|
+
|
|
16841
|
+
/**
|
|
16842
|
+
*
|
|
16843
|
+
*/
|
|
16844
|
+
|
|
16845
|
+
function TextArea({
|
|
16846
|
+
label = "",
|
|
16847
|
+
tooltipText,
|
|
16848
|
+
required,
|
|
16849
|
+
id,
|
|
16850
|
+
errorId,
|
|
16851
|
+
error,
|
|
16852
|
+
className = "",
|
|
16853
|
+
labelClassName = "",
|
|
16854
|
+
errorClassName = "",
|
|
16855
|
+
wrapperClassName = "",
|
|
16856
|
+
...otherProps
|
|
16857
|
+
}) {
|
|
16858
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
16859
|
+
className: `pelcro-input-wrapper ${wrapperClassName}`
|
|
16860
|
+
}, /*#__PURE__*/React__default.createElement("label", {
|
|
16861
|
+
htmlFor: id,
|
|
16862
|
+
className: `pelcro-input-label plc-flex plc-items-center ${labelClassName}`
|
|
16863
|
+
}, `${label}${required ? "*" : ""}`, tooltipText && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
16864
|
+
value: tooltipText,
|
|
16865
|
+
className: "plc-ml-1"
|
|
16866
|
+
})), /*#__PURE__*/React__default.createElement("textarea", Object.assign({
|
|
16867
|
+
type: "text",
|
|
16868
|
+
id: id,
|
|
16869
|
+
className: `pelcro-input-field ${className} ${error ? "pelcro-input-invalid" : ""}`,
|
|
16870
|
+
"aria-describedby": errorId,
|
|
16871
|
+
"aria-invalid": Boolean(error)
|
|
16872
|
+
}, otherProps)), error && /*#__PURE__*/React__default.createElement("p", {
|
|
16873
|
+
id: errorId,
|
|
16874
|
+
"aria-live": "assertive",
|
|
16875
|
+
className: `pelcro-input-error ${errorClassName}`
|
|
16876
|
+
}, error));
|
|
16877
|
+
}
|
|
16878
|
+
|
|
16879
|
+
const SubscriptionCancelReason = props => {
|
|
16880
|
+
const {
|
|
16881
|
+
t
|
|
16882
|
+
} = useTranslation("subscriptionCancel");
|
|
16883
|
+
const {
|
|
16884
|
+
dispatch,
|
|
16885
|
+
state
|
|
16886
|
+
} = useContext(store$h);
|
|
16887
|
+
|
|
16888
|
+
const handleOnTextAreaBlur = e => {
|
|
16889
|
+
dispatch({
|
|
16890
|
+
type: SET_CANCEL_SUBSCRIPTION_REASON,
|
|
16891
|
+
payload: e.target.value.trim()
|
|
16892
|
+
});
|
|
16893
|
+
};
|
|
16894
|
+
|
|
16895
|
+
return /*#__PURE__*/React__default.createElement(TextArea, Object.assign({
|
|
16896
|
+
label: t("labels.cancelReason"),
|
|
16897
|
+
onBlur: e => handleOnTextAreaBlur(e)
|
|
16898
|
+
}, props));
|
|
16899
|
+
};
|
|
16900
|
+
|
|
16901
|
+
var _switch;
|
|
16902
|
+
|
|
16903
|
+
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); }
|
|
16904
|
+
|
|
16905
|
+
function SvgSubscription(props) {
|
|
16906
|
+
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
16907
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16908
|
+
viewBox: "0 0 100 125",
|
|
16909
|
+
fill: "currentColor"
|
|
16910
|
+
}, props), _switch || (_switch = /*#__PURE__*/React.createElement("switch", null, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
16911
|
+
d: "M5273.1 2400.1v-2c0-2.8-5-4-9.7-4s-9.7 1.3-9.7 4v2c0 1.8.7 3.6 2 4.9l5 4.9c.3.3.4.6.4 1v6.4c0 .4.2.7.6.8l2.9.9c.5.1 1-.2 1-.8v-7.2c0-.4.2-.7.4-1l5.1-5c1.3-1.3 2-3.1 2-4.9zm-9.7-.1c-4.8 0-7.4-1.3-7.5-1.8.1-.5 2.7-1.8 7.5-1.8s7.3 1.3 7.5 1.8c-.2.5-2.7 1.8-7.5 1.8z"
|
|
16912
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
16913
|
+
d: "M5268.4 2410.3c-.6 0-1 .4-1 1s.4 1 1 1h4.3c.6 0 1-.4 1-1s-.4-1-1-1h-4.3zM5272.7 2413.7h-4.3c-.6 0-1 .4-1 1s.4 1 1 1h4.3c.6 0 1-.4 1-1s-.4-1-1-1zM5272.7 2417h-4.3c-.6 0-1 .4-1 1s.4 1 1 1h4.3c.6 0 1-.4 1-1 0-.5-.4-1-1-1z"
|
|
16914
|
+
}), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
16915
|
+
d: "M90.4 58.6c0-4.4-3.6-7.9-8-7.9-1.3 0-2.5.3-3.6.9-1.4-2.5-4-4-6.9-4-1.3 0-2.5.3-3.6.9-1.4-2.5-4-4-6.9-4-.9 0-1.8.1-2.6.4v-4.6h6c4.8 0 8.6-3.9 8.6-8.7V11.2c0-4.8-3.9-8.7-8.6-8.7H18.2c-4.8 0-8.6 3.9-8.6 8.7v20.3c0 4.8 3.9 8.7 8.6 8.7h24.6V64l-3.3-3.3c-2.7-2.7-7-3.1-10.2-1-1.9 1.3-3.1 3.3-3.5 5.5-.3 2.2.3 4.5 1.8 6.3L42 88.9c4.5 5.5 11.2 8.6 18.2 8.6h9c5.6 0 10.9-2.2 14.9-6.2s6.2-9.3 6.2-14.9l.1-17.8zm-21 33.5h-9c-5.5 0-10.6-2.4-14.1-6.6L31.9 68.1c-.5-.6-.7-1.3-.6-2.1.1-.8.5-1.4 1.1-1.8.4-.3 1-.5 1.5-.5.7 0 1.4.3 1.9.8l5.8 5.8c1.1 1.1 2.8 1.4 4.3.8 1.5-.6 2.4-2 2.4-3.6V30.1c0-1.4 1.2-2.6 2.6-2.6.7 0 1.3.3 1.8.8s.8 1.1.8 1.8v25.7c0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7v-3.5c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.2 2.6 2.6V59c0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7v-3.5c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.2 2.6 2.6v6.7c0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7v-3.5c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.2 2.6 2.6v17.8c0 4.2-1.6 8.1-4.6 11.1-3.2 2.9-7.2 4.5-11.3 4.5zM18.2 34.2c-1.5 0-2.6-1.2-2.6-2.7V11.2c0-1.5 1.2-2.7 2.6-2.7h46.5c1.5 0 2.6 1.2 2.6 2.7v20.3c0 1.5-1.2 2.7-2.6 2.7h-6v-4c0-2.1-.8-4.1-2.3-5.6-1.5-1.5-3.5-2.3-5.6-2.3-4.4 0-7.9 3.6-7.9 8v4H18.2z"
|
|
16916
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
16917
|
+
d: "M35.5 15.5L30 21.4l-1.9-2.1c-1-1.1-2.7-1.2-3.8-.1-1.1 1-1.2 2.7-.1 3.8l3.9 4.2c.5.6 1.2.9 2 .9s1.5-.3 2-.9l7.5-8c1-1.1 1-2.8-.1-3.8s-3-1-4 .1z"
|
|
16918
|
+
}))))));
|
|
16919
|
+
}
|
|
16920
|
+
|
|
16921
|
+
const SubscriptionCancelNowButton = ({
|
|
16922
|
+
subscription,
|
|
16923
|
+
onClick,
|
|
16924
|
+
className
|
|
16925
|
+
}) => {
|
|
16926
|
+
const {
|
|
16927
|
+
switchView
|
|
16928
|
+
} = usePelcro();
|
|
16929
|
+
const {
|
|
16930
|
+
state: {
|
|
16931
|
+
cancelationReason
|
|
16932
|
+
},
|
|
16933
|
+
dispatch
|
|
16934
|
+
} = useContext(store$h);
|
|
16935
|
+
const {
|
|
16936
|
+
t
|
|
16937
|
+
} = useTranslation("subscriptionCancel");
|
|
16938
|
+
|
|
16939
|
+
const cancelSubscription = (payload, onSuccess, onFailure) => {
|
|
16940
|
+
window.Pelcro.subscription.cancel({
|
|
16941
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
16942
|
+
subscription_id: payload.subscription_id,
|
|
16943
|
+
mode: payload.mode,
|
|
16944
|
+
...(payload.reason && {
|
|
16945
|
+
reason: payload.reason
|
|
16946
|
+
})
|
|
16947
|
+
}, (err, res) => {
|
|
16948
|
+
var _ReactGA$event;
|
|
16949
|
+
|
|
16950
|
+
if (err) {
|
|
16951
|
+
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
16952
|
+
}
|
|
16953
|
+
|
|
16954
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
16955
|
+
category: "ACTIONS",
|
|
16956
|
+
action: "Canceled",
|
|
16957
|
+
nonInteraction: true
|
|
16958
|
+
});
|
|
16959
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
16960
|
+
});
|
|
16961
|
+
};
|
|
16962
|
+
|
|
16963
|
+
const handleCancelNowClick = () => {
|
|
16964
|
+
const payload = {
|
|
16965
|
+
subscription_id: subscription.id,
|
|
16966
|
+
mode: "now",
|
|
16967
|
+
...(cancelationReason && {
|
|
16968
|
+
reason: cancelationReason
|
|
16969
|
+
})
|
|
16970
|
+
};
|
|
16971
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(); //Close the modal
|
|
16972
|
+
|
|
16973
|
+
switchView(null); //Show confirmation alert after closing the modal
|
|
16974
|
+
|
|
16975
|
+
notify.confirm((onSuccess, onFailure) => {
|
|
16976
|
+
cancelSubscription(payload, onSuccess, onFailure);
|
|
16977
|
+
}, {
|
|
16978
|
+
confirmMessage: t("messages.subCancellation.isSureToCancelNow"),
|
|
16979
|
+
loadingMessage: t("messages.subCancellation.loading"),
|
|
16980
|
+
successMessage: t("messages.subCancellation.success"),
|
|
16981
|
+
errorMessage: t("messages.subCancellation.error")
|
|
16982
|
+
}, {
|
|
16983
|
+
closeButtonLabel: t("labels.subCancellation.goBack")
|
|
16984
|
+
});
|
|
16985
|
+
};
|
|
16986
|
+
|
|
16987
|
+
return /*#__PURE__*/React__default.createElement(Button, {
|
|
16988
|
+
onClick: handleCancelNowClick,
|
|
16989
|
+
className: `${className}`
|
|
16990
|
+
}, t("messages.cancelNow"));
|
|
16991
|
+
};
|
|
16992
|
+
|
|
16993
|
+
const SubscriptionCancelLaterButton = ({
|
|
16994
|
+
subscription,
|
|
16995
|
+
onClick,
|
|
16996
|
+
className
|
|
16997
|
+
}) => {
|
|
16998
|
+
const {
|
|
16999
|
+
switchView
|
|
17000
|
+
} = usePelcro();
|
|
17001
|
+
const {
|
|
17002
|
+
state: {
|
|
17003
|
+
cancelationReason
|
|
17004
|
+
},
|
|
17005
|
+
dispatch
|
|
17006
|
+
} = useContext(store$h);
|
|
17007
|
+
const {
|
|
17008
|
+
t
|
|
17009
|
+
} = useTranslation("subscriptionCancel");
|
|
17010
|
+
|
|
17011
|
+
const cancelSubscription = (payload, onSuccess, onFailure) => {
|
|
17012
|
+
window.Pelcro.subscription.cancel({
|
|
17013
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
17014
|
+
subscription_id: payload.subscription_id,
|
|
17015
|
+
mode: payload.mode,
|
|
17016
|
+
...(payload.reason && {
|
|
17017
|
+
reason: payload.reason
|
|
17018
|
+
})
|
|
17019
|
+
}, (err, res) => {
|
|
17020
|
+
var _ReactGA$event;
|
|
17021
|
+
|
|
17022
|
+
if (err) {
|
|
17023
|
+
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
17024
|
+
}
|
|
17025
|
+
|
|
17026
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
17027
|
+
category: "ACTIONS",
|
|
17028
|
+
action: "Canceled",
|
|
17029
|
+
nonInteraction: true
|
|
17030
|
+
});
|
|
17031
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
17032
|
+
});
|
|
17033
|
+
};
|
|
17034
|
+
|
|
17035
|
+
const handleCancelNowClick = () => {
|
|
17036
|
+
const payload = {
|
|
17037
|
+
subscription_id: subscription.id,
|
|
17038
|
+
mode: "period_end",
|
|
17039
|
+
...(cancelationReason && {
|
|
17040
|
+
reason: cancelationReason
|
|
17041
|
+
})
|
|
17042
|
+
};
|
|
17043
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(); //Close the modal
|
|
17044
|
+
|
|
17045
|
+
switchView(null); //Show confirmation alert after closing the modal
|
|
17046
|
+
|
|
17047
|
+
notify.confirm((onSuccess, onFailure) => {
|
|
17048
|
+
cancelSubscription(payload, onSuccess, onFailure);
|
|
17049
|
+
}, {
|
|
17050
|
+
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
17051
|
+
loadingMessage: t("messages.subCancellation.loading"),
|
|
17052
|
+
successMessage: t("messages.subCancellation.success"),
|
|
17053
|
+
errorMessage: t("messages.subCancellation.error")
|
|
17054
|
+
}, {
|
|
17055
|
+
closeButtonLabel: t("labels.subCancellation.goBack")
|
|
17056
|
+
});
|
|
17057
|
+
};
|
|
17058
|
+
|
|
17059
|
+
return /*#__PURE__*/React__default.createElement(Button, {
|
|
17060
|
+
onClick: handleCancelNowClick,
|
|
17061
|
+
className: `${className}`
|
|
17062
|
+
}, t("messages.cancelLater"));
|
|
17063
|
+
};
|
|
17064
|
+
|
|
17065
|
+
const SubscriptionCancelView = props => {
|
|
17066
|
+
const {
|
|
17067
|
+
subscriptionToCancel
|
|
17068
|
+
} = usePelcro();
|
|
17069
|
+
const {
|
|
17070
|
+
t
|
|
17071
|
+
} = useTranslation("subscriptionCancel");
|
|
17072
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
17073
|
+
id: "pelcro-subscription-cancel-view"
|
|
17074
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
17075
|
+
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
17076
|
+
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
17077
|
+
className: "plc-text-2xl plc-font-semibold"
|
|
17078
|
+
}, t("labels.title"), /*#__PURE__*/React__default.createElement("span", {
|
|
17079
|
+
className: "plc-text-gray-400 plc-text-base plc-block"
|
|
17080
|
+
}, "(", subscriptionToCancel.plan.nickname, ")"))), /*#__PURE__*/React__default.createElement(SubscriptionCancelContainer, props, /*#__PURE__*/React__default.createElement("div", {
|
|
17081
|
+
className: "plc-flex plc-flex-col plc-items-center plc-justify-center plc-mt-4"
|
|
17082
|
+
}, /*#__PURE__*/React__default.createElement(SvgSubscription, {
|
|
17083
|
+
className: "plc-w-32 plc-h-32"
|
|
17084
|
+
}), /*#__PURE__*/React__default.createElement("p", {
|
|
17085
|
+
className: "plc-mb-3 plc-text-gray-900 plc-text-center plc-whitespace-pre-line"
|
|
17086
|
+
}, t("messages.subscriptionEnd"), " ", new Date(subscriptionToCancel === null || subscriptionToCancel === void 0 ? void 0 : subscriptionToCancel.current_period_end).toLocaleDateString('en-CA', {
|
|
17087
|
+
year: "numeric",
|
|
17088
|
+
month: "short",
|
|
17089
|
+
day: "numeric"
|
|
17090
|
+
}), "."), /*#__PURE__*/React__default.createElement(SubscriptionCancelReason, null), /*#__PURE__*/React__default.createElement(SubscriptionCancelNowButton, {
|
|
17091
|
+
className: "plc-mb-2",
|
|
17092
|
+
subscription: subscriptionToCancel
|
|
17093
|
+
}), /*#__PURE__*/React__default.createElement(SubscriptionCancelLaterButton, {
|
|
17094
|
+
subscription: subscriptionToCancel
|
|
17095
|
+
}))));
|
|
17096
|
+
};
|
|
17097
|
+
|
|
17098
|
+
const SubscriptionCancelModal = ({
|
|
17099
|
+
onDisplay,
|
|
17100
|
+
onClose,
|
|
17101
|
+
...otherProps
|
|
17102
|
+
}) => {
|
|
17103
|
+
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
17104
|
+
onDisplay: onDisplay,
|
|
17105
|
+
onClose: onClose,
|
|
17106
|
+
id: "pelcro-subscription-cancel-modal"
|
|
17107
|
+
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionCancelView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
17108
|
+
};
|
|
17109
|
+
SubscriptionCancelModal.viewId = "subscription-cancel";
|
|
17110
|
+
|
|
17111
|
+
var _path$h;
|
|
17112
|
+
|
|
17113
|
+
function _extends$i() { _extends$i = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
17114
|
+
|
|
17115
|
+
function SvgGift(props) {
|
|
17116
|
+
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
17117
|
+
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
17118
|
+
fill: "none",
|
|
17119
|
+
stroke: "currentColor",
|
|
17120
|
+
strokeLinecap: "round",
|
|
17121
|
+
strokeLinejoin: "round",
|
|
17122
|
+
strokeWidth: 2,
|
|
17123
|
+
viewBox: "0 0 24 24",
|
|
17124
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
17125
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
17126
|
+
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"
|
|
17127
|
+
})));
|
|
17128
|
+
}
|
|
17129
|
+
|
|
17130
|
+
const PaymentSuccessView = ({
|
|
17131
|
+
onClose
|
|
17132
|
+
}) => {
|
|
17133
|
+
const {
|
|
17134
|
+
t
|
|
16743
17135
|
} = useTranslation("success");
|
|
16744
17136
|
const {
|
|
16745
17137
|
successTitle,
|
|
@@ -17685,17 +18077,17 @@ const UserUpdateContainer = ({
|
|
|
17685
18077
|
})));
|
|
17686
18078
|
};
|
|
17687
18079
|
|
|
17688
|
-
var _path$
|
|
18080
|
+
var _path$g;
|
|
17689
18081
|
|
|
17690
|
-
function _extends$
|
|
18082
|
+
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); }
|
|
17691
18083
|
|
|
17692
18084
|
function SvgEdit(props) {
|
|
17693
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
18085
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
17694
18086
|
className: "plc-w-6 plc-h-6",
|
|
17695
18087
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17696
18088
|
viewBox: "0 0 20 20",
|
|
17697
18089
|
fill: "currentColor"
|
|
17698
|
-
}, props), _path$
|
|
18090
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
17699
18091
|
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"
|
|
17700
18092
|
})));
|
|
17701
18093
|
}
|
|
@@ -21104,42 +21496,6 @@ const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(La
|
|
|
21104
21496
|
store: store$7
|
|
21105
21497
|
}, props));
|
|
21106
21498
|
|
|
21107
|
-
var _path$g;
|
|
21108
|
-
|
|
21109
|
-
function _extends$i() { _extends$i = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
21110
|
-
|
|
21111
|
-
function SvgInfoCircle(props) {
|
|
21112
|
-
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
21113
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
21114
|
-
className: "plc-w-5 plc-h-5",
|
|
21115
|
-
fill: "none",
|
|
21116
|
-
viewBox: "0 0 24 24",
|
|
21117
|
-
stroke: "currentColor"
|
|
21118
|
-
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
21119
|
-
strokeLinecap: "round",
|
|
21120
|
-
strokeLinejoin: "round",
|
|
21121
|
-
strokeWidth: 2,
|
|
21122
|
-
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
21123
|
-
})));
|
|
21124
|
-
}
|
|
21125
|
-
|
|
21126
|
-
/**
|
|
21127
|
-
*
|
|
21128
|
-
*/
|
|
21129
|
-
|
|
21130
|
-
const Tooltip = ({
|
|
21131
|
-
value,
|
|
21132
|
-
className
|
|
21133
|
-
}) => {
|
|
21134
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
21135
|
-
className: `plc-flex pelcro-tooltip-container plc-text-gray-600 ${className}`
|
|
21136
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
21137
|
-
className: "pelcro-tooltip-icon"
|
|
21138
|
-
}, /*#__PURE__*/React__default.createElement(SvgInfoCircle, null)), /*#__PURE__*/React__default.createElement("div", {
|
|
21139
|
-
className: "plc-p-1 plc--mt-8 plc-text-sm plc-bg-gray-100 plc-border plc-rounded-md plc-shadow-lg pelcro-tooltip"
|
|
21140
|
-
}, value));
|
|
21141
|
-
};
|
|
21142
|
-
|
|
21143
21499
|
function DatePicker({
|
|
21144
21500
|
label = "",
|
|
21145
21501
|
tooltipText,
|
|
@@ -21208,44 +21564,6 @@ const GiftCreateStartDate = props => {
|
|
|
21208
21564
|
}, props));
|
|
21209
21565
|
};
|
|
21210
21566
|
|
|
21211
|
-
/**
|
|
21212
|
-
*
|
|
21213
|
-
*/
|
|
21214
|
-
|
|
21215
|
-
function TextArea({
|
|
21216
|
-
label = "",
|
|
21217
|
-
tooltipText,
|
|
21218
|
-
required,
|
|
21219
|
-
id,
|
|
21220
|
-
errorId,
|
|
21221
|
-
error,
|
|
21222
|
-
className = "",
|
|
21223
|
-
labelClassName = "",
|
|
21224
|
-
errorClassName = "",
|
|
21225
|
-
wrapperClassName = "",
|
|
21226
|
-
...otherProps
|
|
21227
|
-
}) {
|
|
21228
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
21229
|
-
className: `pelcro-input-wrapper ${wrapperClassName}`
|
|
21230
|
-
}, /*#__PURE__*/React__default.createElement("label", {
|
|
21231
|
-
htmlFor: id,
|
|
21232
|
-
className: `pelcro-input-label plc-flex plc-items-center ${labelClassName}`
|
|
21233
|
-
}, `${label}${required ? "*" : ""}`, tooltipText && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
21234
|
-
value: tooltipText,
|
|
21235
|
-
className: "plc-ml-1"
|
|
21236
|
-
})), /*#__PURE__*/React__default.createElement("textarea", Object.assign({
|
|
21237
|
-
type: "text",
|
|
21238
|
-
id: id,
|
|
21239
|
-
className: `pelcro-input-field ${className} ${error ? "pelcro-input-invalid" : ""}`,
|
|
21240
|
-
"aria-describedby": errorId,
|
|
21241
|
-
"aria-invalid": Boolean(error)
|
|
21242
|
-
}, otherProps)), error && /*#__PURE__*/React__default.createElement("p", {
|
|
21243
|
-
id: errorId,
|
|
21244
|
-
"aria-live": "assertive",
|
|
21245
|
-
className: `pelcro-input-error ${errorClassName}`
|
|
21246
|
-
}, error));
|
|
21247
|
-
}
|
|
21248
|
-
|
|
21249
21567
|
/**
|
|
21250
21568
|
*
|
|
21251
21569
|
*/
|
|
@@ -22127,8 +22445,8 @@ const PaymentMethodSelectModal = ({
|
|
|
22127
22445
|
};
|
|
22128
22446
|
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
22129
22447
|
|
|
22130
|
-
function _extends$
|
|
22131
|
-
_extends$
|
|
22448
|
+
function _extends$g() {
|
|
22449
|
+
_extends$g = Object.assign || function (target) {
|
|
22132
22450
|
for (var i = 1; i < arguments.length; i++) {
|
|
22133
22451
|
var source = arguments[i];
|
|
22134
22452
|
|
|
@@ -22142,7 +22460,7 @@ function _extends$h() {
|
|
|
22142
22460
|
return target;
|
|
22143
22461
|
};
|
|
22144
22462
|
|
|
22145
|
-
return _extends$
|
|
22463
|
+
return _extends$g.apply(this, arguments);
|
|
22146
22464
|
}
|
|
22147
22465
|
|
|
22148
22466
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -22326,7 +22644,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
22326
22644
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
22327
22645
|
return null;
|
|
22328
22646
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
22329
|
-
return _render(_extends$
|
|
22647
|
+
return _render(_extends$g({}, _rest, {
|
|
22330
22648
|
hidden: true,
|
|
22331
22649
|
style: {
|
|
22332
22650
|
display: 'none'
|
|
@@ -22854,7 +23172,7 @@ function TransitionChild(props) {
|
|
|
22854
23172
|
var passthroughProps = rest;
|
|
22855
23173
|
return React__default.createElement(NestingContext.Provider, {
|
|
22856
23174
|
value: nesting
|
|
22857
|
-
}, render(_extends$
|
|
23175
|
+
}, render(_extends$g({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
22858
23176
|
}
|
|
22859
23177
|
|
|
22860
23178
|
function Transition(props) {
|
|
@@ -22898,7 +23216,7 @@ function Transition(props) {
|
|
|
22898
23216
|
value: nestingBag
|
|
22899
23217
|
}, React__default.createElement(TransitionContext.Provider, {
|
|
22900
23218
|
value: transitionBag
|
|
22901
|
-
}, render(_extends$
|
|
23219
|
+
}, render(_extends$g({}, sharedProps, {
|
|
22902
23220
|
as: Fragment,
|
|
22903
23221
|
children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
22904
23222
|
}), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -23025,12 +23343,12 @@ var ActionTypes;
|
|
|
23025
23343
|
})(ActionTypes || (ActionTypes = {}));
|
|
23026
23344
|
|
|
23027
23345
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
23028
|
-
return _extends$
|
|
23346
|
+
return _extends$g({}, state, {
|
|
23029
23347
|
activeItemIndex: null,
|
|
23030
23348
|
menuState: MenuStates.Closed
|
|
23031
23349
|
});
|
|
23032
23350
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
23033
|
-
return _extends$
|
|
23351
|
+
return _extends$g({}, state, {
|
|
23034
23352
|
menuState: MenuStates.Open
|
|
23035
23353
|
});
|
|
23036
23354
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -23049,7 +23367,7 @@ var ActionTypes;
|
|
|
23049
23367
|
}
|
|
23050
23368
|
});
|
|
23051
23369
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
23052
|
-
return _extends$
|
|
23370
|
+
return _extends$g({}, state, {
|
|
23053
23371
|
searchQuery: '',
|
|
23054
23372
|
activeItemIndex: activeItemIndex
|
|
23055
23373
|
});
|
|
@@ -23060,19 +23378,19 @@ var ActionTypes;
|
|
|
23060
23378
|
|
|
23061
23379
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
23062
23380
|
});
|
|
23063
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
23381
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$g({}, state, {
|
|
23064
23382
|
searchQuery: searchQuery
|
|
23065
23383
|
});
|
|
23066
|
-
return _extends$
|
|
23384
|
+
return _extends$g({}, state, {
|
|
23067
23385
|
searchQuery: searchQuery,
|
|
23068
23386
|
activeItemIndex: match
|
|
23069
23387
|
});
|
|
23070
23388
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
23071
|
-
return _extends$
|
|
23389
|
+
return _extends$g({}, state, {
|
|
23072
23390
|
searchQuery: ''
|
|
23073
23391
|
});
|
|
23074
23392
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
23075
|
-
return _extends$
|
|
23393
|
+
return _extends$g({}, state, {
|
|
23076
23394
|
items: [].concat(state.items, [{
|
|
23077
23395
|
id: action.id,
|
|
23078
23396
|
dataRef: action.dataRef
|
|
@@ -23085,7 +23403,7 @@ var ActionTypes;
|
|
|
23085
23403
|
return a.id === action.id;
|
|
23086
23404
|
});
|
|
23087
23405
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
23088
|
-
return _extends$
|
|
23406
|
+
return _extends$g({}, state, {
|
|
23089
23407
|
items: nextItems,
|
|
23090
23408
|
activeItemIndex: function () {
|
|
23091
23409
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -23124,19 +23442,19 @@ var ActionTypes$1;
|
|
|
23124
23442
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
23125
23443
|
if (state.disabled) return state;
|
|
23126
23444
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
23127
|
-
return _extends$
|
|
23445
|
+
return _extends$g({}, state, {
|
|
23128
23446
|
activeOptionIndex: null,
|
|
23129
23447
|
listboxState: ListboxStates.Closed
|
|
23130
23448
|
});
|
|
23131
23449
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
23132
23450
|
if (state.disabled) return state;
|
|
23133
23451
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
23134
|
-
return _extends$
|
|
23452
|
+
return _extends$g({}, state, {
|
|
23135
23453
|
listboxState: ListboxStates.Open
|
|
23136
23454
|
});
|
|
23137
23455
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
23138
23456
|
if (state.disabled === action.disabled) return state;
|
|
23139
|
-
return _extends$
|
|
23457
|
+
return _extends$g({}, state, {
|
|
23140
23458
|
disabled: action.disabled
|
|
23141
23459
|
});
|
|
23142
23460
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -23157,7 +23475,7 @@ var ActionTypes$1;
|
|
|
23157
23475
|
}
|
|
23158
23476
|
});
|
|
23159
23477
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
23160
|
-
return _extends$
|
|
23478
|
+
return _extends$g({}, state, {
|
|
23161
23479
|
searchQuery: '',
|
|
23162
23480
|
activeOptionIndex: activeOptionIndex
|
|
23163
23481
|
});
|
|
@@ -23170,10 +23488,10 @@ var ActionTypes$1;
|
|
|
23170
23488
|
|
|
23171
23489
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
23172
23490
|
});
|
|
23173
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
23491
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$g({}, state, {
|
|
23174
23492
|
searchQuery: searchQuery
|
|
23175
23493
|
});
|
|
23176
|
-
return _extends$
|
|
23494
|
+
return _extends$g({}, state, {
|
|
23177
23495
|
searchQuery: searchQuery,
|
|
23178
23496
|
activeOptionIndex: match
|
|
23179
23497
|
});
|
|
@@ -23181,11 +23499,11 @@ var ActionTypes$1;
|
|
|
23181
23499
|
if (state.disabled) return state;
|
|
23182
23500
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
23183
23501
|
if (state.searchQuery === '') return state;
|
|
23184
|
-
return _extends$
|
|
23502
|
+
return _extends$g({}, state, {
|
|
23185
23503
|
searchQuery: ''
|
|
23186
23504
|
});
|
|
23187
23505
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
23188
|
-
return _extends$
|
|
23506
|
+
return _extends$g({}, state, {
|
|
23189
23507
|
options: [].concat(state.options, [{
|
|
23190
23508
|
id: action.id,
|
|
23191
23509
|
dataRef: action.dataRef
|
|
@@ -23198,7 +23516,7 @@ var ActionTypes$1;
|
|
|
23198
23516
|
return a.id === action.id;
|
|
23199
23517
|
});
|
|
23200
23518
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
23201
|
-
return _extends$
|
|
23519
|
+
return _extends$g({}, state, {
|
|
23202
23520
|
options: nextOptions,
|
|
23203
23521
|
activeOptionIndex: function () {
|
|
23204
23522
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -23261,10 +23579,10 @@ const getPaymentCardIcon = name => {
|
|
|
23261
23579
|
|
|
23262
23580
|
var _path$f;
|
|
23263
23581
|
|
|
23264
|
-
function _extends$
|
|
23582
|
+
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); }
|
|
23265
23583
|
|
|
23266
23584
|
function SvgChevronRight(props) {
|
|
23267
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23585
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
23268
23586
|
className: "plc-w-6 plc-h-6",
|
|
23269
23587
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23270
23588
|
fill: "none",
|
|
@@ -23488,10 +23806,10 @@ const SavedItems = ({
|
|
|
23488
23806
|
|
|
23489
23807
|
var _path$e;
|
|
23490
23808
|
|
|
23491
|
-
function _extends$
|
|
23809
|
+
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); }
|
|
23492
23810
|
|
|
23493
23811
|
function SvgRefresh(props) {
|
|
23494
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23812
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
23495
23813
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
23496
23814
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23497
23815
|
fill: "none",
|
|
@@ -23507,10 +23825,10 @@ function SvgRefresh(props) {
|
|
|
23507
23825
|
|
|
23508
23826
|
var _path$d;
|
|
23509
23827
|
|
|
23510
|
-
function _extends$
|
|
23828
|
+
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); }
|
|
23511
23829
|
|
|
23512
23830
|
function SvgCalendar(props) {
|
|
23513
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23831
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
23514
23832
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23515
23833
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
23516
23834
|
viewBox: "0 0 20 20",
|
|
@@ -23524,10 +23842,10 @@ function SvgCalendar(props) {
|
|
|
23524
23842
|
|
|
23525
23843
|
var _path$c;
|
|
23526
23844
|
|
|
23527
|
-
function _extends$
|
|
23845
|
+
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); }
|
|
23528
23846
|
|
|
23529
23847
|
function SvgPlus(props) {
|
|
23530
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23848
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
23531
23849
|
className: "plc-w-5 plc-h-5",
|
|
23532
23850
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23533
23851
|
fill: "none",
|
|
@@ -23543,10 +23861,10 @@ function SvgPlus(props) {
|
|
|
23543
23861
|
|
|
23544
23862
|
var _path$b;
|
|
23545
23863
|
|
|
23546
|
-
function _extends$
|
|
23864
|
+
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); }
|
|
23547
23865
|
|
|
23548
23866
|
function SvgCheckMark(props) {
|
|
23549
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23867
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
23550
23868
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
23551
23869
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23552
23870
|
viewBox: "0 0 20 20",
|
|
@@ -23856,10 +24174,10 @@ Accordion.item = function AccordionItem({
|
|
|
23856
24174
|
|
|
23857
24175
|
var _path$a;
|
|
23858
24176
|
|
|
23859
|
-
function _extends$
|
|
24177
|
+
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); }
|
|
23860
24178
|
|
|
23861
24179
|
function SvgExit(props) {
|
|
23862
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24180
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
23863
24181
|
className: "plc-w-6 plc-h-6",
|
|
23864
24182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23865
24183
|
fill: "none",
|
|
@@ -23875,10 +24193,10 @@ function SvgExit(props) {
|
|
|
23875
24193
|
|
|
23876
24194
|
var _path$9;
|
|
23877
24195
|
|
|
23878
|
-
function _extends$
|
|
24196
|
+
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); }
|
|
23879
24197
|
|
|
23880
24198
|
function SvgUser(props) {
|
|
23881
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24199
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
23882
24200
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23883
24201
|
fill: "none",
|
|
23884
24202
|
viewBox: "0 0 24 24",
|
|
@@ -23893,10 +24211,10 @@ function SvgUser(props) {
|
|
|
23893
24211
|
|
|
23894
24212
|
var _path$8;
|
|
23895
24213
|
|
|
23896
|
-
function _extends$
|
|
24214
|
+
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); }
|
|
23897
24215
|
|
|
23898
24216
|
function SvgNewsletter(props) {
|
|
23899
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24217
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
23900
24218
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23901
24219
|
className: "plc-h-5 plc-w-5",
|
|
23902
24220
|
fill: "none",
|
|
@@ -23912,10 +24230,10 @@ function SvgNewsletter(props) {
|
|
|
23912
24230
|
|
|
23913
24231
|
var _path$7;
|
|
23914
24232
|
|
|
23915
|
-
function _extends$
|
|
24233
|
+
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); }
|
|
23916
24234
|
|
|
23917
24235
|
function SvgDocument(props) {
|
|
23918
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24236
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
23919
24237
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23920
24238
|
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
23921
24239
|
fill: "none",
|
|
@@ -23931,10 +24249,10 @@ function SvgDocument(props) {
|
|
|
23931
24249
|
|
|
23932
24250
|
var _path$6;
|
|
23933
24251
|
|
|
23934
|
-
function _extends$
|
|
24252
|
+
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); }
|
|
23935
24253
|
|
|
23936
24254
|
function SvgPaymentCard(props) {
|
|
23937
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24255
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
23938
24256
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
23939
24257
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23940
24258
|
fill: "none",
|
|
@@ -23950,10 +24268,10 @@ function SvgPaymentCard(props) {
|
|
|
23950
24268
|
|
|
23951
24269
|
var _path$5, _path2;
|
|
23952
24270
|
|
|
23953
|
-
function _extends$
|
|
24271
|
+
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); }
|
|
23954
24272
|
|
|
23955
24273
|
function SvgLocationPin(props) {
|
|
23956
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24274
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
23957
24275
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
23958
24276
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23959
24277
|
fill: "none",
|
|
@@ -23972,26 +24290,6 @@ function SvgLocationPin(props) {
|
|
|
23972
24290
|
})));
|
|
23973
24291
|
}
|
|
23974
24292
|
|
|
23975
|
-
var _switch;
|
|
23976
|
-
|
|
23977
|
-
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); }
|
|
23978
|
-
|
|
23979
|
-
function SvgSubscription(props) {
|
|
23980
|
-
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
23981
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
23982
|
-
viewBox: "0 0 100 125",
|
|
23983
|
-
fill: "currentColor"
|
|
23984
|
-
}, props), _switch || (_switch = /*#__PURE__*/React.createElement("switch", null, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
23985
|
-
d: "M5273.1 2400.1v-2c0-2.8-5-4-9.7-4s-9.7 1.3-9.7 4v2c0 1.8.7 3.6 2 4.9l5 4.9c.3.3.4.6.4 1v6.4c0 .4.2.7.6.8l2.9.9c.5.1 1-.2 1-.8v-7.2c0-.4.2-.7.4-1l5.1-5c1.3-1.3 2-3.1 2-4.9zm-9.7-.1c-4.8 0-7.4-1.3-7.5-1.8.1-.5 2.7-1.8 7.5-1.8s7.3 1.3 7.5 1.8c-.2.5-2.7 1.8-7.5 1.8z"
|
|
23986
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
23987
|
-
d: "M5268.4 2410.3c-.6 0-1 .4-1 1s.4 1 1 1h4.3c.6 0 1-.4 1-1s-.4-1-1-1h-4.3zM5272.7 2413.7h-4.3c-.6 0-1 .4-1 1s.4 1 1 1h4.3c.6 0 1-.4 1-1s-.4-1-1-1zM5272.7 2417h-4.3c-.6 0-1 .4-1 1s.4 1 1 1h4.3c.6 0 1-.4 1-1 0-.5-.4-1-1-1z"
|
|
23988
|
-
}), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
23989
|
-
d: "M90.4 58.6c0-4.4-3.6-7.9-8-7.9-1.3 0-2.5.3-3.6.9-1.4-2.5-4-4-6.9-4-1.3 0-2.5.3-3.6.9-1.4-2.5-4-4-6.9-4-.9 0-1.8.1-2.6.4v-4.6h6c4.8 0 8.6-3.9 8.6-8.7V11.2c0-4.8-3.9-8.7-8.6-8.7H18.2c-4.8 0-8.6 3.9-8.6 8.7v20.3c0 4.8 3.9 8.7 8.6 8.7h24.6V64l-3.3-3.3c-2.7-2.7-7-3.1-10.2-1-1.9 1.3-3.1 3.3-3.5 5.5-.3 2.2.3 4.5 1.8 6.3L42 88.9c4.5 5.5 11.2 8.6 18.2 8.6h9c5.6 0 10.9-2.2 14.9-6.2s6.2-9.3 6.2-14.9l.1-17.8zm-21 33.5h-9c-5.5 0-10.6-2.4-14.1-6.6L31.9 68.1c-.5-.6-.7-1.3-.6-2.1.1-.8.5-1.4 1.1-1.8.4-.3 1-.5 1.5-.5.7 0 1.4.3 1.9.8l5.8 5.8c1.1 1.1 2.8 1.4 4.3.8 1.5-.6 2.4-2 2.4-3.6V30.1c0-1.4 1.2-2.6 2.6-2.6.7 0 1.3.3 1.8.8s.8 1.1.8 1.8v25.7c0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7v-3.5c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.2 2.6 2.6V59c0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7v-3.5c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.2 2.6 2.6v6.7c0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7v-3.5c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.2 2.6 2.6v17.8c0 4.2-1.6 8.1-4.6 11.1-3.2 2.9-7.2 4.5-11.3 4.5zM18.2 34.2c-1.5 0-2.6-1.2-2.6-2.7V11.2c0-1.5 1.2-2.7 2.6-2.7h46.5c1.5 0 2.6 1.2 2.6 2.7v20.3c0 1.5-1.2 2.7-2.6 2.7h-6v-4c0-2.1-.8-4.1-2.3-5.6-1.5-1.5-3.5-2.3-5.6-2.3-4.4 0-7.9 3.6-7.9 8v4H18.2z"
|
|
23990
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
23991
|
-
d: "M35.5 15.5L30 21.4l-1.9-2.1c-1-1.1-2.7-1.2-3.8-.1-1.1 1-1.2 2.7-.1 3.8l3.9 4.2c.5.6 1.2.9 2 .9s1.5-.3 2-.9l7.5-8c1-1.1 1-2.8-.1-3.8s-3-1-4 .1z"
|
|
23992
|
-
}))))));
|
|
23993
|
-
}
|
|
23994
|
-
|
|
23995
24293
|
var _path$4;
|
|
23996
24294
|
|
|
23997
24295
|
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); }
|
|
@@ -27224,4 +27522,4 @@ const InvoiceDetailsModal = ({
|
|
|
27224
27522
|
};
|
|
27225
27523
|
InvoiceDetailsModal.viewId = "invoice-details";
|
|
27226
27524
|
|
|
27227
|
-
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, LoginRequestLoginToken, 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, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, 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, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
|
|
27525
|
+
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, LoginRequestLoginToken, 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, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, 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, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
|