@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.cjs.js
CHANGED
|
@@ -3576,7 +3576,7 @@ var paymentMethod_ko = {
|
|
|
3576
3576
|
var title$q = "Enter your email to subscribe to our newsletter";
|
|
3577
3577
|
var updateTitle$2 = "Update newsletter selections";
|
|
3578
3578
|
var subtitle$b = "We may use your email for other marketing communication";
|
|
3579
|
-
var labels$
|
|
3579
|
+
var labels$I = {
|
|
3580
3580
|
submit: "Submit",
|
|
3581
3581
|
firstName: "First name",
|
|
3582
3582
|
lastName: "Last name",
|
|
@@ -3584,7 +3584,7 @@ var labels$H = {
|
|
|
3584
3584
|
postalCode: "Postal code",
|
|
3585
3585
|
required: "required"
|
|
3586
3586
|
};
|
|
3587
|
-
var messages$
|
|
3587
|
+
var messages$O = {
|
|
3588
3588
|
alreadyHaveAccount: "Already have an account?",
|
|
3589
3589
|
success: "Newsletters were successfully updated",
|
|
3590
3590
|
loginHere: "Login here.",
|
|
@@ -3595,14 +3595,14 @@ var newsletter_en = {
|
|
|
3595
3595
|
title: title$q,
|
|
3596
3596
|
updateTitle: updateTitle$2,
|
|
3597
3597
|
subtitle: subtitle$b,
|
|
3598
|
-
labels: labels$
|
|
3599
|
-
messages: messages$
|
|
3598
|
+
labels: labels$I,
|
|
3599
|
+
messages: messages$O
|
|
3600
3600
|
};
|
|
3601
3601
|
|
|
3602
3602
|
var title$p = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
3603
3603
|
var updateTitle$1 = "Mettre à jour son choix d'infolettres";
|
|
3604
3604
|
var subtitle$a = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
|
|
3605
|
-
var labels$
|
|
3605
|
+
var labels$H = {
|
|
3606
3606
|
submit: "Lire l’article !",
|
|
3607
3607
|
firstName: "Prénom",
|
|
3608
3608
|
lastName: "Nom de famille",
|
|
@@ -3610,7 +3610,7 @@ var labels$G = {
|
|
|
3610
3610
|
postalCode: "Code postal",
|
|
3611
3611
|
required: "Champs obligatoires"
|
|
3612
3612
|
};
|
|
3613
|
-
var messages$
|
|
3613
|
+
var messages$N = {
|
|
3614
3614
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
3615
3615
|
success: "Votre choix d'infolettres à été mis à jour",
|
|
3616
3616
|
loginHere: "Connectez-vous ici",
|
|
@@ -3621,14 +3621,14 @@ var newsletter_fr = {
|
|
|
3621
3621
|
title: title$p,
|
|
3622
3622
|
updateTitle: updateTitle$1,
|
|
3623
3623
|
subtitle: subtitle$a,
|
|
3624
|
-
labels: labels$
|
|
3625
|
-
messages: messages$
|
|
3624
|
+
labels: labels$H,
|
|
3625
|
+
messages: messages$N
|
|
3626
3626
|
};
|
|
3627
3627
|
|
|
3628
3628
|
var title$o = "Frieze 뉴스레터를 구독하려면 이메일을 입력하세요.";
|
|
3629
3629
|
var updateTitle = "뉴스레터 선택 업데이트";
|
|
3630
3630
|
var subtitle$9 = "귀하의 이메일은 다른 마케팅 용도로도 사용됩니다.";
|
|
3631
|
-
var labels$
|
|
3631
|
+
var labels$G = {
|
|
3632
3632
|
submit: "제출",
|
|
3633
3633
|
firstName: "이름",
|
|
3634
3634
|
lastName: "성",
|
|
@@ -3636,7 +3636,7 @@ var labels$F = {
|
|
|
3636
3636
|
postalCode: "우편번호",
|
|
3637
3637
|
required: "필수 항목"
|
|
3638
3638
|
};
|
|
3639
|
-
var messages$
|
|
3639
|
+
var messages$M = {
|
|
3640
3640
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
3641
3641
|
success: "뉴스레터가 성공적으로 업데이트되었습니다.",
|
|
3642
3642
|
loginHere: "여기에서 로그인하세요.",
|
|
@@ -3647,14 +3647,14 @@ var newsletter_ko = {
|
|
|
3647
3647
|
title: title$o,
|
|
3648
3648
|
updateTitle: updateTitle,
|
|
3649
3649
|
subtitle: subtitle$9,
|
|
3650
|
-
labels: labels$
|
|
3651
|
-
messages: messages$
|
|
3650
|
+
labels: labels$G,
|
|
3651
|
+
messages: messages$M
|
|
3652
3652
|
};
|
|
3653
3653
|
|
|
3654
|
-
var labels$
|
|
3654
|
+
var labels$F = {
|
|
3655
3655
|
"continue": "Continue to content"
|
|
3656
3656
|
};
|
|
3657
|
-
var messages$
|
|
3657
|
+
var messages$L = {
|
|
3658
3658
|
yourFreeTrial: "Subscription successful!",
|
|
3659
3659
|
youHaveAccess: "Hope you enjoy the subscription. Please contact us if you have any questions or concerns.",
|
|
3660
3660
|
clickToLearn: {
|
|
@@ -3680,15 +3680,15 @@ var errors$e = {
|
|
|
3680
3680
|
"": ""
|
|
3681
3681
|
};
|
|
3682
3682
|
var success_en = {
|
|
3683
|
-
labels: labels$
|
|
3684
|
-
messages: messages$
|
|
3683
|
+
labels: labels$F,
|
|
3684
|
+
messages: messages$L,
|
|
3685
3685
|
errors: errors$e
|
|
3686
3686
|
};
|
|
3687
3687
|
|
|
3688
|
-
var labels$
|
|
3688
|
+
var labels$E = {
|
|
3689
3689
|
"continue": "Abonnement réussi !"
|
|
3690
3690
|
};
|
|
3691
|
-
var messages$
|
|
3691
|
+
var messages$K = {
|
|
3692
3692
|
yourFreeTrial: "Votre essai gratuit vient de débuter",
|
|
3693
3693
|
youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
|
|
3694
3694
|
clickToLearn: {
|
|
@@ -3714,15 +3714,15 @@ var errors$d = {
|
|
|
3714
3714
|
"": ""
|
|
3715
3715
|
};
|
|
3716
3716
|
var success_fr = {
|
|
3717
|
-
labels: labels$
|
|
3718
|
-
messages: messages$
|
|
3717
|
+
labels: labels$E,
|
|
3718
|
+
messages: messages$K,
|
|
3719
3719
|
errors: errors$d
|
|
3720
3720
|
};
|
|
3721
3721
|
|
|
3722
|
-
var labels$
|
|
3722
|
+
var labels$D = {
|
|
3723
3723
|
"continue": "콘텐츠로 돌아가기"
|
|
3724
3724
|
};
|
|
3725
|
-
var messages$
|
|
3725
|
+
var messages$J = {
|
|
3726
3726
|
yourFreeTrial: "유료 멤버십에 가입하셨습니다!",
|
|
3727
3727
|
youHaveAccess: "멤버십 혜택을 즐기시기를 바라며, 질문이나 문의 사항이 있으면 저희에게 연락주십시오.",
|
|
3728
3728
|
clickToLearn: {
|
|
@@ -3748,12 +3748,12 @@ var errors$c = {
|
|
|
3748
3748
|
"": ""
|
|
3749
3749
|
};
|
|
3750
3750
|
var success_ko = {
|
|
3751
|
-
labels: labels$
|
|
3752
|
-
messages: messages$
|
|
3751
|
+
labels: labels$D,
|
|
3752
|
+
messages: messages$J,
|
|
3753
3753
|
errors: errors$c
|
|
3754
3754
|
};
|
|
3755
3755
|
|
|
3756
|
-
var messages$
|
|
3756
|
+
var messages$I = {
|
|
3757
3757
|
freeVisits: "Free visits left:",
|
|
3758
3758
|
subscribeNow: "Subscribe",
|
|
3759
3759
|
alreadyHaveAccount: "Already have an account?",
|
|
@@ -3763,11 +3763,11 @@ var errors$b = {
|
|
|
3763
3763
|
"": ""
|
|
3764
3764
|
};
|
|
3765
3765
|
var meter_en = {
|
|
3766
|
-
messages: messages$
|
|
3766
|
+
messages: messages$I,
|
|
3767
3767
|
errors: errors$b
|
|
3768
3768
|
};
|
|
3769
3769
|
|
|
3770
|
-
var messages$
|
|
3770
|
+
var messages$H = {
|
|
3771
3771
|
freeVisits: "Visites gratuites restantes:",
|
|
3772
3772
|
subscribeNow: "Abonnez-vous maintenant !",
|
|
3773
3773
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
@@ -3777,11 +3777,11 @@ var errors$a = {
|
|
|
3777
3777
|
"": ""
|
|
3778
3778
|
};
|
|
3779
3779
|
var meter_fr = {
|
|
3780
|
-
messages: messages$
|
|
3780
|
+
messages: messages$H,
|
|
3781
3781
|
errors: errors$a
|
|
3782
3782
|
};
|
|
3783
3783
|
|
|
3784
|
-
var messages$
|
|
3784
|
+
var messages$G = {
|
|
3785
3785
|
freeVisits: "남은 무료 방문 기간:",
|
|
3786
3786
|
subscribeNow: "멤버십 가입",
|
|
3787
3787
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
@@ -3791,15 +3791,15 @@ var errors$9 = {
|
|
|
3791
3791
|
"": ""
|
|
3792
3792
|
};
|
|
3793
3793
|
var meter_ko = {
|
|
3794
|
-
messages: messages$
|
|
3794
|
+
messages: messages$G,
|
|
3795
3795
|
errors: errors$9
|
|
3796
3796
|
};
|
|
3797
3797
|
|
|
3798
|
-
var messages$
|
|
3798
|
+
var messages$F = {
|
|
3799
3799
|
youAreSafe: "You're safe - PCI compliant 128 SSL by",
|
|
3800
3800
|
bankRedirection: "Please hold, redirecting you to your bank."
|
|
3801
3801
|
};
|
|
3802
|
-
var labels$
|
|
3802
|
+
var labels$C = {
|
|
3803
3803
|
card: "Enter card number",
|
|
3804
3804
|
date: "Expiration date",
|
|
3805
3805
|
CVC: "CVC",
|
|
@@ -3818,15 +3818,15 @@ var labels$B = {
|
|
|
3818
3818
|
removeCoupon: "REMOVE"
|
|
3819
3819
|
};
|
|
3820
3820
|
var checkoutForm_en = {
|
|
3821
|
-
messages: messages$
|
|
3822
|
-
labels: labels$
|
|
3821
|
+
messages: messages$F,
|
|
3822
|
+
labels: labels$C
|
|
3823
3823
|
};
|
|
3824
3824
|
|
|
3825
|
-
var messages$
|
|
3825
|
+
var messages$E = {
|
|
3826
3826
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
3827
3827
|
bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque."
|
|
3828
3828
|
};
|
|
3829
|
-
var labels$
|
|
3829
|
+
var labels$B = {
|
|
3830
3830
|
card: "Entrez le numéro de carte",
|
|
3831
3831
|
date: "Date d’expiration",
|
|
3832
3832
|
CVC: "CVC",
|
|
@@ -3845,15 +3845,15 @@ var labels$A = {
|
|
|
3845
3845
|
removeCoupon: "RETIRER"
|
|
3846
3846
|
};
|
|
3847
3847
|
var checkoutForm_fr = {
|
|
3848
|
-
messages: messages$
|
|
3849
|
-
labels: labels$
|
|
3848
|
+
messages: messages$E,
|
|
3849
|
+
labels: labels$B
|
|
3850
3850
|
};
|
|
3851
3851
|
|
|
3852
|
-
var messages$
|
|
3852
|
+
var messages$D = {
|
|
3853
3853
|
youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
|
|
3854
3854
|
bankRedirection: "잠시만 기다려 주십시오. 결제 은행으로 연결 중입니다."
|
|
3855
3855
|
};
|
|
3856
|
-
var labels$
|
|
3856
|
+
var labels$A = {
|
|
3857
3857
|
card: "카드 번호 입력",
|
|
3858
3858
|
date: "만료일",
|
|
3859
3859
|
CVC: "CVC",
|
|
@@ -3872,8 +3872,8 @@ var labels$z = {
|
|
|
3872
3872
|
removeCoupon: "제거"
|
|
3873
3873
|
};
|
|
3874
3874
|
var checkoutForm_ko = {
|
|
3875
|
-
messages: messages$
|
|
3876
|
-
labels: labels$
|
|
3875
|
+
messages: messages$D,
|
|
3876
|
+
labels: labels$A
|
|
3877
3877
|
};
|
|
3878
3878
|
|
|
3879
3879
|
var youAreSafe$2 = "You're safe - PCI compliant 128 SSL by";
|
|
@@ -3933,7 +3933,7 @@ var messages_ko = {
|
|
|
3933
3933
|
zeroTotalInvoice: zeroTotalInvoice
|
|
3934
3934
|
};
|
|
3935
3935
|
|
|
3936
|
-
var labels$
|
|
3936
|
+
var labels$z = {
|
|
3937
3937
|
email: "Enter email",
|
|
3938
3938
|
password: "Enter password",
|
|
3939
3939
|
required: "required",
|
|
@@ -3941,7 +3941,7 @@ var labels$y = {
|
|
|
3941
3941
|
passwordPlaceholder: "Password",
|
|
3942
3942
|
login: "Login"
|
|
3943
3943
|
};
|
|
3944
|
-
var messages$
|
|
3944
|
+
var messages$C = {
|
|
3945
3945
|
loginTo: "Login to your account",
|
|
3946
3946
|
welcome: "Welcome back, sign in with your existing account.",
|
|
3947
3947
|
dontHaveAccount: "Don't have an account yet?",
|
|
@@ -3960,12 +3960,12 @@ var errors$8 = {
|
|
|
3960
3960
|
"": ""
|
|
3961
3961
|
};
|
|
3962
3962
|
var login_en = {
|
|
3963
|
-
labels: labels$
|
|
3964
|
-
messages: messages$
|
|
3963
|
+
labels: labels$z,
|
|
3964
|
+
messages: messages$C,
|
|
3965
3965
|
errors: errors$8
|
|
3966
3966
|
};
|
|
3967
3967
|
|
|
3968
|
-
var labels$
|
|
3968
|
+
var labels$y = {
|
|
3969
3969
|
email: "Entrez votre adresse courriel",
|
|
3970
3970
|
password: "Entrez votre mot de passe",
|
|
3971
3971
|
required: "Champs obligatoires",
|
|
@@ -3973,7 +3973,7 @@ var labels$x = {
|
|
|
3973
3973
|
passwordPlaceholder: "Mot de passe",
|
|
3974
3974
|
login: "Connexion"
|
|
3975
3975
|
};
|
|
3976
|
-
var messages$
|
|
3976
|
+
var messages$B = {
|
|
3977
3977
|
loginTo: "Connectez-vous à votre compte",
|
|
3978
3978
|
welcome: "Bienvenue, connectez-vous avec votre compte existant.",
|
|
3979
3979
|
dontHaveAccount: "Vous n’avez pas encore de compte ?",
|
|
@@ -3992,12 +3992,12 @@ var errors$7 = {
|
|
|
3992
3992
|
"": ""
|
|
3993
3993
|
};
|
|
3994
3994
|
var login_fr = {
|
|
3995
|
-
labels: labels$
|
|
3996
|
-
messages: messages$
|
|
3995
|
+
labels: labels$y,
|
|
3996
|
+
messages: messages$B,
|
|
3997
3997
|
errors: errors$7
|
|
3998
3998
|
};
|
|
3999
3999
|
|
|
4000
|
-
var labels$
|
|
4000
|
+
var labels$x = {
|
|
4001
4001
|
email: "이메일 입력",
|
|
4002
4002
|
password: "비밀번호 입력",
|
|
4003
4003
|
required: "필수 항목",
|
|
@@ -4005,7 +4005,7 @@ var labels$w = {
|
|
|
4005
4005
|
passwordPlaceholder: "비밀번호",
|
|
4006
4006
|
login: "로그인"
|
|
4007
4007
|
};
|
|
4008
|
-
var messages$
|
|
4008
|
+
var messages$A = {
|
|
4009
4009
|
loginTo: "귀하의 계정에 로그인",
|
|
4010
4010
|
welcome: "반갑습니다. 귀하의 기존 계정으로 로그인하세요.",
|
|
4011
4011
|
dontHaveAccount: "아직 계정이 없으신가요?",
|
|
@@ -4024,35 +4024,49 @@ var errors$6 = {
|
|
|
4024
4024
|
"": ""
|
|
4025
4025
|
};
|
|
4026
4026
|
var login_ko = {
|
|
4027
|
-
labels: labels$
|
|
4028
|
-
messages: messages$
|
|
4027
|
+
labels: labels$x,
|
|
4028
|
+
messages: messages$A,
|
|
4029
4029
|
errors: errors$6
|
|
4030
4030
|
};
|
|
4031
4031
|
|
|
4032
|
-
var labels$
|
|
4032
|
+
var labels$w = {
|
|
4033
4033
|
title: "Verifying Passwordless Link",
|
|
4034
4034
|
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
4035
4035
|
resend: "Resend email"
|
|
4036
4036
|
};
|
|
4037
|
-
var messages$
|
|
4037
|
+
var messages$z = {
|
|
4038
4038
|
resent: "Resent successfully",
|
|
4039
|
-
success: "You have
|
|
4039
|
+
success: "You have logged in successfully"
|
|
4040
4040
|
};
|
|
4041
4041
|
var verifyLinkToken_en = {
|
|
4042
|
-
labels: labels$
|
|
4043
|
-
messages: messages$
|
|
4042
|
+
labels: labels$w,
|
|
4043
|
+
messages: messages$z
|
|
4044
4044
|
};
|
|
4045
4045
|
|
|
4046
|
-
var labels$
|
|
4046
|
+
var labels$v = {
|
|
4047
4047
|
title: "Confirmez votre courriel",
|
|
4048
4048
|
instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
|
|
4049
4049
|
resend: "Renvoyer le courriel"
|
|
4050
4050
|
};
|
|
4051
|
-
var messages$
|
|
4051
|
+
var messages$y = {
|
|
4052
4052
|
resent: "Renvoyé avec succès",
|
|
4053
|
-
success: "
|
|
4053
|
+
success: "Vous vous êtes connecté avec succès"
|
|
4054
4054
|
};
|
|
4055
4055
|
var verifyLinkToken_fr = {
|
|
4056
|
+
labels: labels$v,
|
|
4057
|
+
messages: messages$y
|
|
4058
|
+
};
|
|
4059
|
+
|
|
4060
|
+
var labels$u = {
|
|
4061
|
+
title: "비밀번호 없는 링크 확인",
|
|
4062
|
+
instructions: "가는 중입니다!\n이메일 주소를 확인하겠습니다.\n이메일로 전송된 확인 링크를 클릭하세요.",
|
|
4063
|
+
resend: "이메일 재전송"
|
|
4064
|
+
};
|
|
4065
|
+
var messages$x = {
|
|
4066
|
+
resent: "성공적으로 재전송",
|
|
4067
|
+
success: "성공적으로 로그인했습니다"
|
|
4068
|
+
};
|
|
4069
|
+
var verifyLinkToken_ko = {
|
|
4056
4070
|
labels: labels$u,
|
|
4057
4071
|
messages: messages$x
|
|
4058
4072
|
};
|
|
@@ -6975,7 +6989,7 @@ class PelcroActions {
|
|
|
6975
6989
|
view,
|
|
6976
6990
|
cartItems,
|
|
6977
6991
|
...otherStateFields
|
|
6978
|
-
} = initialState$
|
|
6992
|
+
} = initialState$l;
|
|
6979
6993
|
this.set(otherStateFields);
|
|
6980
6994
|
});
|
|
6981
6995
|
|
|
@@ -7311,7 +7325,7 @@ class PelcroCallbacks {
|
|
|
7311
7325
|
|
|
7312
7326
|
}
|
|
7313
7327
|
|
|
7314
|
-
const initialState$
|
|
7328
|
+
const initialState$l = {
|
|
7315
7329
|
// View
|
|
7316
7330
|
view: null,
|
|
7317
7331
|
// Plans
|
|
@@ -7341,7 +7355,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
|
|
|
7341
7355
|
return {
|
|
7342
7356
|
// Store setter
|
|
7343
7357
|
set,
|
|
7344
|
-
...initialState$
|
|
7358
|
+
...initialState$l,
|
|
7345
7359
|
// State actions
|
|
7346
7360
|
...actions,
|
|
7347
7361
|
// Callbacks
|
|
@@ -7775,7 +7789,7 @@ const resources = {
|
|
|
7775
7789
|
checkoutForm: checkoutForm_ko,
|
|
7776
7790
|
messages: messages_ko,
|
|
7777
7791
|
login: login_ko,
|
|
7778
|
-
|
|
7792
|
+
verifyLinkToken: verifyLinkToken_ko,
|
|
7779
7793
|
register: register_ko,
|
|
7780
7794
|
userEdit: userEdit_ko,
|
|
7781
7795
|
address: address_ko,
|
|
@@ -10141,13 +10155,39 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
10141
10155
|
const verifyLinkTokenFromUrl = () => {
|
|
10142
10156
|
var _window$Pelcro$user$i, _window$Pelcro$user;
|
|
10143
10157
|
|
|
10158
|
+
const {
|
|
10159
|
+
whenSiteReady
|
|
10160
|
+
} = usePelcro.getStore();
|
|
10161
|
+
const translations = i18next.t("verifyLinkToken:messages", {
|
|
10162
|
+
returnObjects: true
|
|
10163
|
+
});
|
|
10144
10164
|
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;
|
|
10145
10165
|
const loginToken = window.Pelcro.helpers.getURLParameter("token");
|
|
10146
10166
|
if (isAlreadyLoggedIn || !loginToken) return;
|
|
10147
|
-
|
|
10148
|
-
|
|
10149
|
-
|
|
10150
|
-
|
|
10167
|
+
whenSiteReady(() => {
|
|
10168
|
+
window.Pelcro.user.verifyLoginToken({
|
|
10169
|
+
token: loginToken
|
|
10170
|
+
}, (err, res) => {
|
|
10171
|
+
if (err) {
|
|
10172
|
+
return notify.error(getErrorMessages(err));
|
|
10173
|
+
}
|
|
10174
|
+
|
|
10175
|
+
const {
|
|
10176
|
+
auth_token
|
|
10177
|
+
} = res.data;
|
|
10178
|
+
window.Pelcro.user.refresh({
|
|
10179
|
+
auth_token
|
|
10180
|
+
}, (err, res) => {
|
|
10181
|
+
if (err) {
|
|
10182
|
+
return notify.error(getErrorMessages(err));
|
|
10183
|
+
}
|
|
10184
|
+
|
|
10185
|
+
return notify.success(translations.success);
|
|
10186
|
+
});
|
|
10187
|
+
});
|
|
10188
|
+
}, {
|
|
10189
|
+
once: true
|
|
10190
|
+
});
|
|
10151
10191
|
};
|
|
10152
10192
|
|
|
10153
10193
|
const showPasswordlessRequestFromUrl = () => {
|
|
@@ -10537,8 +10577,9 @@ const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
|
|
|
10537
10577
|
const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
|
|
10538
10578
|
const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
|
|
10539
10579
|
const LINK_TOKEN_VERIFY = "LINK_TOKEN_VERIFY";
|
|
10580
|
+
const SET_CANCEL_SUBSCRIPTION_REASON = "SET_CANCEL_SUBSCRIPTION_REASON";
|
|
10540
10581
|
|
|
10541
|
-
const initialState$
|
|
10582
|
+
const initialState$k = {
|
|
10542
10583
|
email: "",
|
|
10543
10584
|
password: "",
|
|
10544
10585
|
emailError: null,
|
|
@@ -10549,10 +10590,10 @@ const initialState$j = {
|
|
|
10549
10590
|
content: ""
|
|
10550
10591
|
}
|
|
10551
10592
|
};
|
|
10552
|
-
const store$
|
|
10593
|
+
const store$k = /*#__PURE__*/React.createContext(initialState$k);
|
|
10553
10594
|
const {
|
|
10554
|
-
Provider: Provider$
|
|
10555
|
-
} = store$
|
|
10595
|
+
Provider: Provider$k
|
|
10596
|
+
} = store$k;
|
|
10556
10597
|
|
|
10557
10598
|
const LoginContainer = ({
|
|
10558
10599
|
style,
|
|
@@ -10659,7 +10700,7 @@ const LoginContainer = ({
|
|
|
10659
10700
|
});
|
|
10660
10701
|
|
|
10661
10702
|
case RESET_LOGIN_FORM:
|
|
10662
|
-
return initialState$
|
|
10703
|
+
return initialState$k;
|
|
10663
10704
|
|
|
10664
10705
|
case DISABLE_LOGIN_BUTTON:
|
|
10665
10706
|
return lib_7({ ...state,
|
|
@@ -10677,12 +10718,12 @@ const LoginContainer = ({
|
|
|
10677
10718
|
default:
|
|
10678
10719
|
return state;
|
|
10679
10720
|
}
|
|
10680
|
-
}, initialState$
|
|
10721
|
+
}, initialState$k);
|
|
10681
10722
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10682
10723
|
style: { ...style
|
|
10683
10724
|
},
|
|
10684
10725
|
className: `pelcro-container pelcro-login-container ${className}`
|
|
10685
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
10726
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$k, {
|
|
10686
10727
|
value: {
|
|
10687
10728
|
state,
|
|
10688
10729
|
dispatch
|
|
@@ -10690,12 +10731,12 @@ const LoginContainer = ({
|
|
|
10690
10731
|
}, children.length ? children.map((child, i) => {
|
|
10691
10732
|
if (child) {
|
|
10692
10733
|
return /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
10693
|
-
store: store$
|
|
10734
|
+
store: store$k,
|
|
10694
10735
|
key: i
|
|
10695
10736
|
});
|
|
10696
10737
|
}
|
|
10697
10738
|
}) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
10698
|
-
store: store$
|
|
10739
|
+
store: store$k
|
|
10699
10740
|
})));
|
|
10700
10741
|
};
|
|
10701
10742
|
|
|
@@ -10953,7 +10994,7 @@ const LoginButton = ({
|
|
|
10953
10994
|
buttonDisabled
|
|
10954
10995
|
},
|
|
10955
10996
|
dispatch
|
|
10956
|
-
} = React.useContext(store$
|
|
10997
|
+
} = React.useContext(store$k);
|
|
10957
10998
|
const {
|
|
10958
10999
|
t
|
|
10959
11000
|
} = useTranslation("login");
|
|
@@ -11011,11 +11052,11 @@ const LoginRequestLoginToken = ({
|
|
|
11011
11052
|
};
|
|
11012
11053
|
|
|
11013
11054
|
const LoginEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
11014
|
-
store: store$
|
|
11055
|
+
store: store$k
|
|
11015
11056
|
}, props));
|
|
11016
11057
|
|
|
11017
11058
|
const LoginPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
|
|
11018
|
-
store: store$
|
|
11059
|
+
store: store$k
|
|
11019
11060
|
}, props));
|
|
11020
11061
|
|
|
11021
11062
|
var _path$q;
|
|
@@ -11092,7 +11133,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
|
11092
11133
|
var FacebookLogin = unwrapExports(facebookLoginRenderProps);
|
|
11093
11134
|
facebookLoginRenderProps.FacebookLogin;
|
|
11094
11135
|
|
|
11095
|
-
const initialState$
|
|
11136
|
+
const initialState$j = {
|
|
11096
11137
|
email: "",
|
|
11097
11138
|
password: "",
|
|
11098
11139
|
emailError: null,
|
|
@@ -11109,10 +11150,10 @@ const initialState$i = {
|
|
|
11109
11150
|
content: ""
|
|
11110
11151
|
}
|
|
11111
11152
|
};
|
|
11112
|
-
const store$
|
|
11153
|
+
const store$j = /*#__PURE__*/React.createContext(initialState$j);
|
|
11113
11154
|
const {
|
|
11114
|
-
Provider: Provider$
|
|
11115
|
-
} = store$
|
|
11155
|
+
Provider: Provider$j
|
|
11156
|
+
} = store$j;
|
|
11116
11157
|
|
|
11117
11158
|
const RegisterContainer = ({
|
|
11118
11159
|
style,
|
|
@@ -11295,7 +11336,7 @@ const RegisterContainer = ({
|
|
|
11295
11336
|
});
|
|
11296
11337
|
|
|
11297
11338
|
case RESET_LOGIN_FORM:
|
|
11298
|
-
return initialState$
|
|
11339
|
+
return initialState$j;
|
|
11299
11340
|
|
|
11300
11341
|
case DISABLE_REGISTRATION_BUTTON:
|
|
11301
11342
|
return lib_7({ ...state,
|
|
@@ -11313,12 +11354,12 @@ const RegisterContainer = ({
|
|
|
11313
11354
|
default:
|
|
11314
11355
|
return state;
|
|
11315
11356
|
}
|
|
11316
|
-
}, initialState$
|
|
11357
|
+
}, initialState$j);
|
|
11317
11358
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
11318
11359
|
style: { ...style
|
|
11319
11360
|
},
|
|
11320
11361
|
className: `pelcro-container pelcro-register-container ${className}`
|
|
11321
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
11362
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$j, {
|
|
11322
11363
|
value: {
|
|
11323
11364
|
state,
|
|
11324
11365
|
dispatch
|
|
@@ -11326,12 +11367,12 @@ const RegisterContainer = ({
|
|
|
11326
11367
|
}, children.length ? children.map((child, i) => {
|
|
11327
11368
|
if (child) {
|
|
11328
11369
|
return /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
11329
|
-
store: store$
|
|
11370
|
+
store: store$j,
|
|
11330
11371
|
key: i
|
|
11331
11372
|
});
|
|
11332
11373
|
}
|
|
11333
11374
|
}) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
11334
|
-
store: store$
|
|
11375
|
+
store: store$j
|
|
11335
11376
|
})));
|
|
11336
11377
|
};
|
|
11337
11378
|
/**
|
|
@@ -11371,10 +11412,10 @@ const FacebookLoginButton = ({
|
|
|
11371
11412
|
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;
|
|
11372
11413
|
const {
|
|
11373
11414
|
dispatch: loginDispatch
|
|
11374
|
-
} = React.useContext(store$
|
|
11415
|
+
} = React.useContext(store$k);
|
|
11375
11416
|
const {
|
|
11376
11417
|
dispatch: registerDispatch
|
|
11377
|
-
} = React.useContext(store$
|
|
11418
|
+
} = React.useContext(store$j);
|
|
11378
11419
|
|
|
11379
11420
|
const onSuccess = facebookUser => {
|
|
11380
11421
|
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
@@ -11461,10 +11502,10 @@ const GoogleLoginButton = ({
|
|
|
11461
11502
|
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;
|
|
11462
11503
|
const {
|
|
11463
11504
|
dispatch: loginDispatch
|
|
11464
|
-
} = React.useContext(store$
|
|
11505
|
+
} = React.useContext(store$k);
|
|
11465
11506
|
const {
|
|
11466
11507
|
dispatch: registerDispatch
|
|
11467
|
-
} = React.useContext(store$
|
|
11508
|
+
} = React.useContext(store$j);
|
|
11468
11509
|
|
|
11469
11510
|
const onSuccess = response => {
|
|
11470
11511
|
var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
|
|
@@ -11560,10 +11601,10 @@ const Auth0LoginButton = ({
|
|
|
11560
11601
|
}, [auth0Enabled, auth0Loaded]);
|
|
11561
11602
|
const {
|
|
11562
11603
|
dispatch: loginDispatch
|
|
11563
|
-
} = React.useContext(store$
|
|
11604
|
+
} = React.useContext(store$k);
|
|
11564
11605
|
const {
|
|
11565
11606
|
dispatch: registerDispatch
|
|
11566
|
-
} = React.useContext(store$
|
|
11607
|
+
} = React.useContext(store$j);
|
|
11567
11608
|
|
|
11568
11609
|
function handleClick() {
|
|
11569
11610
|
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
@@ -11860,11 +11901,11 @@ function LoginModal({
|
|
|
11860
11901
|
LoginModal.viewId = "login";
|
|
11861
11902
|
|
|
11862
11903
|
const RegisterEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
11863
|
-
store: store$
|
|
11904
|
+
store: store$j
|
|
11864
11905
|
}, props));
|
|
11865
11906
|
|
|
11866
11907
|
const RegisterPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
|
|
11867
|
-
store: store$
|
|
11908
|
+
store: store$j
|
|
11868
11909
|
}, props));
|
|
11869
11910
|
|
|
11870
11911
|
const RegisterButton = ({
|
|
@@ -11884,7 +11925,7 @@ const RegisterButton = ({
|
|
|
11884
11925
|
buttonDisabled
|
|
11885
11926
|
},
|
|
11886
11927
|
dispatch
|
|
11887
|
-
} = React.useContext(store$
|
|
11928
|
+
} = React.useContext(store$j);
|
|
11888
11929
|
const {
|
|
11889
11930
|
t
|
|
11890
11931
|
} = useTranslation("register");
|
|
@@ -12022,7 +12063,7 @@ function FirstName({
|
|
|
12022
12063
|
}
|
|
12023
12064
|
|
|
12024
12065
|
const RegisterFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
|
|
12025
|
-
store: store$
|
|
12066
|
+
store: store$j
|
|
12026
12067
|
}, props));
|
|
12027
12068
|
|
|
12028
12069
|
function LastName({
|
|
@@ -12053,7 +12094,7 @@ function LastName({
|
|
|
12053
12094
|
}
|
|
12054
12095
|
|
|
12055
12096
|
const RegisterLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
|
|
12056
|
-
store: store$
|
|
12097
|
+
store: store$j
|
|
12057
12098
|
}, props));
|
|
12058
12099
|
|
|
12059
12100
|
/**
|
|
@@ -12177,7 +12218,7 @@ function TextInput({
|
|
|
12177
12218
|
|
|
12178
12219
|
const RegisterTextInput = props => {
|
|
12179
12220
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
|
|
12180
|
-
store: store$
|
|
12221
|
+
store: store$j
|
|
12181
12222
|
}));
|
|
12182
12223
|
};
|
|
12183
12224
|
|
|
@@ -14521,7 +14562,7 @@ class VantivGateway {
|
|
|
14521
14562
|
|
|
14522
14563
|
/** @type {PaymentStateType} */
|
|
14523
14564
|
|
|
14524
|
-
const initialState$
|
|
14565
|
+
const initialState$i = {
|
|
14525
14566
|
disableSubmit: false,
|
|
14526
14567
|
isLoading: false,
|
|
14527
14568
|
disableCouponButton: false,
|
|
@@ -14540,10 +14581,10 @@ const initialState$h = {
|
|
|
14540
14581
|
content: ""
|
|
14541
14582
|
}
|
|
14542
14583
|
};
|
|
14543
|
-
const store$
|
|
14584
|
+
const store$i = /*#__PURE__*/React.createContext(initialState$i);
|
|
14544
14585
|
const {
|
|
14545
|
-
Provider: Provider$
|
|
14546
|
-
} = store$
|
|
14586
|
+
Provider: Provider$i
|
|
14587
|
+
} = store$i;
|
|
14547
14588
|
|
|
14548
14589
|
const PaymentMethodContainerWithoutStripe = ({
|
|
14549
14590
|
style,
|
|
@@ -15795,21 +15836,21 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15795
15836
|
default:
|
|
15796
15837
|
return state;
|
|
15797
15838
|
}
|
|
15798
|
-
}, initialState$
|
|
15839
|
+
}, initialState$i);
|
|
15799
15840
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15800
15841
|
style: { ...style
|
|
15801
15842
|
},
|
|
15802
15843
|
className: `pelcro-container pelcro-payment-container ${className}`
|
|
15803
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
15844
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$i, {
|
|
15804
15845
|
value: {
|
|
15805
15846
|
state,
|
|
15806
15847
|
dispatch
|
|
15807
15848
|
}
|
|
15808
15849
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
15809
|
-
store: store$
|
|
15850
|
+
store: store$i,
|
|
15810
15851
|
key: i
|
|
15811
15852
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
15812
|
-
store: store$
|
|
15853
|
+
store: store$i
|
|
15813
15854
|
})));
|
|
15814
15855
|
};
|
|
15815
15856
|
|
|
@@ -15831,7 +15872,7 @@ const PaymentMethodContainer = props => {
|
|
|
15831
15872
|
stripeAccount: window.Pelcro.site.read().account_id,
|
|
15832
15873
|
locale: getPageOrDefaultLanguage()
|
|
15833
15874
|
}, /*#__PURE__*/React__default['default'].createElement(es_11, null, /*#__PURE__*/React__default['default'].createElement(UnwrappedForm, Object.assign({
|
|
15834
|
-
store: store$
|
|
15875
|
+
store: store$i
|
|
15835
15876
|
}, props))));
|
|
15836
15877
|
}
|
|
15837
15878
|
|
|
@@ -15884,7 +15925,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
15884
15925
|
currentPlan,
|
|
15885
15926
|
updatedPrice
|
|
15886
15927
|
}
|
|
15887
|
-
} = React.useContext(store$
|
|
15928
|
+
} = React.useContext(store$i);
|
|
15888
15929
|
|
|
15889
15930
|
const updatePaymentRequest = () => {
|
|
15890
15931
|
// Make sure payment request is up to date, eg. user added a coupon code.
|
|
@@ -15960,7 +16001,7 @@ const DiscountedPrice = props => {
|
|
|
15960
16001
|
taxAmount,
|
|
15961
16002
|
percentOff
|
|
15962
16003
|
}
|
|
15963
|
-
} = React.useContext(store$
|
|
16004
|
+
} = React.useContext(store$i);
|
|
15964
16005
|
const {
|
|
15965
16006
|
order,
|
|
15966
16007
|
plan
|
|
@@ -16010,7 +16051,7 @@ const SubmitPaymentMethod = ({
|
|
|
16010
16051
|
isLoading,
|
|
16011
16052
|
updatedPrice
|
|
16012
16053
|
}
|
|
16013
|
-
} = React.useContext(store$
|
|
16054
|
+
} = React.useContext(store$i);
|
|
16014
16055
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
16015
16056
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
16016
16057
|
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
@@ -16060,7 +16101,7 @@ const ApplyCouponButton = ({
|
|
|
16060
16101
|
disableCouponButton
|
|
16061
16102
|
},
|
|
16062
16103
|
dispatch
|
|
16063
|
-
} = React.useContext(store$
|
|
16104
|
+
} = React.useContext(store$i);
|
|
16064
16105
|
const {
|
|
16065
16106
|
t
|
|
16066
16107
|
} = useTranslation("checkoutForm");
|
|
@@ -16094,7 +16135,7 @@ const CouponCodeField = props => {
|
|
|
16094
16135
|
couponCode,
|
|
16095
16136
|
couponError
|
|
16096
16137
|
}
|
|
16097
|
-
} = React.useContext(store$
|
|
16138
|
+
} = React.useContext(store$i);
|
|
16098
16139
|
|
|
16099
16140
|
const onCouponCodeChange = e => {
|
|
16100
16141
|
dispatch({
|
|
@@ -16150,7 +16191,7 @@ const CouponCode = ({
|
|
|
16150
16191
|
state: {
|
|
16151
16192
|
enableCouponField
|
|
16152
16193
|
}
|
|
16153
|
-
} = React.useContext(store$
|
|
16194
|
+
} = React.useContext(store$i);
|
|
16154
16195
|
const {
|
|
16155
16196
|
t
|
|
16156
16197
|
} = useTranslation("checkoutForm");
|
|
@@ -16407,7 +16448,7 @@ const PaypalSubscribeButton = props => {
|
|
|
16407
16448
|
const {
|
|
16408
16449
|
dispatch,
|
|
16409
16450
|
state
|
|
16410
|
-
} = React.useContext(store$
|
|
16451
|
+
} = React.useContext(store$i);
|
|
16411
16452
|
const {
|
|
16412
16453
|
product,
|
|
16413
16454
|
plan,
|
|
@@ -16540,7 +16581,7 @@ const SelectedPaymentMethod = () => {
|
|
|
16540
16581
|
state: {
|
|
16541
16582
|
isLoading
|
|
16542
16583
|
}
|
|
16543
|
-
} = React.useContext(store$
|
|
16584
|
+
} = React.useContext(store$i);
|
|
16544
16585
|
const {
|
|
16545
16586
|
switchView,
|
|
16546
16587
|
selectedPaymentMethodId
|
|
@@ -16582,7 +16623,7 @@ const TaxAmount = () => {
|
|
|
16582
16623
|
state: {
|
|
16583
16624
|
taxAmount
|
|
16584
16625
|
}
|
|
16585
|
-
} = React.useContext(store$
|
|
16626
|
+
} = React.useContext(store$i);
|
|
16586
16627
|
const {
|
|
16587
16628
|
plan
|
|
16588
16629
|
} = usePelcro();
|
|
@@ -16746,30 +16787,381 @@ function SubscriptionRenewModal({
|
|
|
16746
16787
|
}
|
|
16747
16788
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
16748
16789
|
|
|
16749
|
-
|
|
16750
|
-
|
|
16751
|
-
|
|
16752
|
-
|
|
16753
|
-
|
|
16754
|
-
|
|
16755
|
-
|
|
16756
|
-
fill: "none",
|
|
16757
|
-
stroke: "currentColor",
|
|
16758
|
-
strokeLinecap: "round",
|
|
16759
|
-
strokeLinejoin: "round",
|
|
16760
|
-
strokeWidth: 2,
|
|
16761
|
-
viewBox: "0 0 24 24",
|
|
16762
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
16763
|
-
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16764
|
-
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"
|
|
16765
|
-
})));
|
|
16766
|
-
}
|
|
16790
|
+
const initialState$h = {
|
|
16791
|
+
cancelationReason: ""
|
|
16792
|
+
};
|
|
16793
|
+
const store$h = /*#__PURE__*/React.createContext(initialState$h);
|
|
16794
|
+
const {
|
|
16795
|
+
Provider: Provider$h
|
|
16796
|
+
} = store$h;
|
|
16767
16797
|
|
|
16768
|
-
const
|
|
16769
|
-
|
|
16798
|
+
const SubscriptionCancelContainer = ({
|
|
16799
|
+
style,
|
|
16800
|
+
className = "",
|
|
16801
|
+
onSuccess = () => {},
|
|
16802
|
+
onFailure = () => {},
|
|
16803
|
+
children,
|
|
16804
|
+
...props
|
|
16770
16805
|
}) => {
|
|
16771
|
-
|
|
16772
|
-
|
|
16806
|
+
useTranslation("verifyEmail");
|
|
16807
|
+
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
16808
|
+
switch (action.type) {
|
|
16809
|
+
case SET_CANCEL_SUBSCRIPTION_REASON:
|
|
16810
|
+
return lib_7({ ...state,
|
|
16811
|
+
cancelationReason: action.payload
|
|
16812
|
+
});
|
|
16813
|
+
|
|
16814
|
+
default:
|
|
16815
|
+
return state;
|
|
16816
|
+
}
|
|
16817
|
+
}, initialState$h);
|
|
16818
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16819
|
+
style: { ...style
|
|
16820
|
+
},
|
|
16821
|
+
className: `pelcro-container pelcro-subscription-cancel-container ${className}`
|
|
16822
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$h, {
|
|
16823
|
+
value: {
|
|
16824
|
+
state,
|
|
16825
|
+
dispatch
|
|
16826
|
+
}
|
|
16827
|
+
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
16828
|
+
store: store$h,
|
|
16829
|
+
key: i
|
|
16830
|
+
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
16831
|
+
store: store$h
|
|
16832
|
+
})));
|
|
16833
|
+
};
|
|
16834
|
+
|
|
16835
|
+
var _path$i;
|
|
16836
|
+
|
|
16837
|
+
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); }
|
|
16838
|
+
|
|
16839
|
+
function SvgInfoCircle(props) {
|
|
16840
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
16841
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16842
|
+
className: "plc-w-5 plc-h-5",
|
|
16843
|
+
fill: "none",
|
|
16844
|
+
viewBox: "0 0 24 24",
|
|
16845
|
+
stroke: "currentColor"
|
|
16846
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16847
|
+
strokeLinecap: "round",
|
|
16848
|
+
strokeLinejoin: "round",
|
|
16849
|
+
strokeWidth: 2,
|
|
16850
|
+
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
16851
|
+
})));
|
|
16852
|
+
}
|
|
16853
|
+
|
|
16854
|
+
/**
|
|
16855
|
+
*
|
|
16856
|
+
*/
|
|
16857
|
+
|
|
16858
|
+
const Tooltip = ({
|
|
16859
|
+
value,
|
|
16860
|
+
className
|
|
16861
|
+
}) => {
|
|
16862
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16863
|
+
className: `plc-flex pelcro-tooltip-container plc-text-gray-600 ${className}`
|
|
16864
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16865
|
+
className: "pelcro-tooltip-icon"
|
|
16866
|
+
}, /*#__PURE__*/React__default['default'].createElement(SvgInfoCircle, null)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16867
|
+
className: "plc-p-1 plc--mt-8 plc-text-sm plc-bg-gray-100 plc-border plc-rounded-md plc-shadow-lg pelcro-tooltip"
|
|
16868
|
+
}, value));
|
|
16869
|
+
};
|
|
16870
|
+
|
|
16871
|
+
/**
|
|
16872
|
+
*
|
|
16873
|
+
*/
|
|
16874
|
+
|
|
16875
|
+
function TextArea({
|
|
16876
|
+
label = "",
|
|
16877
|
+
tooltipText,
|
|
16878
|
+
required,
|
|
16879
|
+
id,
|
|
16880
|
+
errorId,
|
|
16881
|
+
error,
|
|
16882
|
+
className = "",
|
|
16883
|
+
labelClassName = "",
|
|
16884
|
+
errorClassName = "",
|
|
16885
|
+
wrapperClassName = "",
|
|
16886
|
+
...otherProps
|
|
16887
|
+
}) {
|
|
16888
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16889
|
+
className: `pelcro-input-wrapper ${wrapperClassName}`
|
|
16890
|
+
}, /*#__PURE__*/React__default['default'].createElement("label", {
|
|
16891
|
+
htmlFor: id,
|
|
16892
|
+
className: `pelcro-input-label plc-flex plc-items-center ${labelClassName}`
|
|
16893
|
+
}, `${label}${required ? "*" : ""}`, tooltipText && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
16894
|
+
value: tooltipText,
|
|
16895
|
+
className: "plc-ml-1"
|
|
16896
|
+
})), /*#__PURE__*/React__default['default'].createElement("textarea", Object.assign({
|
|
16897
|
+
type: "text",
|
|
16898
|
+
id: id,
|
|
16899
|
+
className: `pelcro-input-field ${className} ${error ? "pelcro-input-invalid" : ""}`,
|
|
16900
|
+
"aria-describedby": errorId,
|
|
16901
|
+
"aria-invalid": Boolean(error)
|
|
16902
|
+
}, otherProps)), error && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
16903
|
+
id: errorId,
|
|
16904
|
+
"aria-live": "assertive",
|
|
16905
|
+
className: `pelcro-input-error ${errorClassName}`
|
|
16906
|
+
}, error));
|
|
16907
|
+
}
|
|
16908
|
+
|
|
16909
|
+
const SubscriptionCancelReason = props => {
|
|
16910
|
+
const {
|
|
16911
|
+
t
|
|
16912
|
+
} = useTranslation("subscriptionCancel");
|
|
16913
|
+
const {
|
|
16914
|
+
dispatch,
|
|
16915
|
+
state
|
|
16916
|
+
} = React.useContext(store$h);
|
|
16917
|
+
|
|
16918
|
+
const handleOnTextAreaBlur = e => {
|
|
16919
|
+
dispatch({
|
|
16920
|
+
type: SET_CANCEL_SUBSCRIPTION_REASON,
|
|
16921
|
+
payload: e.target.value.trim()
|
|
16922
|
+
});
|
|
16923
|
+
};
|
|
16924
|
+
|
|
16925
|
+
return /*#__PURE__*/React__default['default'].createElement(TextArea, Object.assign({
|
|
16926
|
+
label: t("labels.cancelReason"),
|
|
16927
|
+
onBlur: e => handleOnTextAreaBlur(e)
|
|
16928
|
+
}, props));
|
|
16929
|
+
};
|
|
16930
|
+
|
|
16931
|
+
var _switch;
|
|
16932
|
+
|
|
16933
|
+
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); }
|
|
16934
|
+
|
|
16935
|
+
function SvgSubscription(props) {
|
|
16936
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
16937
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16938
|
+
viewBox: "0 0 100 125",
|
|
16939
|
+
fill: "currentColor"
|
|
16940
|
+
}, props), _switch || (_switch = /*#__PURE__*/React__namespace.createElement("switch", null, /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
16941
|
+
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"
|
|
16942
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
16943
|
+
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"
|
|
16944
|
+
}), /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
16945
|
+
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"
|
|
16946
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
16947
|
+
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"
|
|
16948
|
+
}))))));
|
|
16949
|
+
}
|
|
16950
|
+
|
|
16951
|
+
const SubscriptionCancelNowButton = ({
|
|
16952
|
+
subscription,
|
|
16953
|
+
onClick,
|
|
16954
|
+
className
|
|
16955
|
+
}) => {
|
|
16956
|
+
const {
|
|
16957
|
+
switchView
|
|
16958
|
+
} = usePelcro();
|
|
16959
|
+
const {
|
|
16960
|
+
state: {
|
|
16961
|
+
cancelationReason
|
|
16962
|
+
},
|
|
16963
|
+
dispatch
|
|
16964
|
+
} = React.useContext(store$h);
|
|
16965
|
+
const {
|
|
16966
|
+
t
|
|
16967
|
+
} = useTranslation("subscriptionCancel");
|
|
16968
|
+
|
|
16969
|
+
const cancelSubscription = (payload, onSuccess, onFailure) => {
|
|
16970
|
+
window.Pelcro.subscription.cancel({
|
|
16971
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
16972
|
+
subscription_id: payload.subscription_id,
|
|
16973
|
+
mode: payload.mode,
|
|
16974
|
+
...(payload.reason && {
|
|
16975
|
+
reason: payload.reason
|
|
16976
|
+
})
|
|
16977
|
+
}, (err, res) => {
|
|
16978
|
+
var _ReactGA$event;
|
|
16979
|
+
|
|
16980
|
+
if (err) {
|
|
16981
|
+
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
16982
|
+
}
|
|
16983
|
+
|
|
16984
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
16985
|
+
category: "ACTIONS",
|
|
16986
|
+
action: "Canceled",
|
|
16987
|
+
nonInteraction: true
|
|
16988
|
+
});
|
|
16989
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
16990
|
+
});
|
|
16991
|
+
};
|
|
16992
|
+
|
|
16993
|
+
const handleCancelNowClick = () => {
|
|
16994
|
+
const payload = {
|
|
16995
|
+
subscription_id: subscription.id,
|
|
16996
|
+
mode: "now",
|
|
16997
|
+
...(cancelationReason && {
|
|
16998
|
+
reason: cancelationReason
|
|
16999
|
+
})
|
|
17000
|
+
};
|
|
17001
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(); //Close the modal
|
|
17002
|
+
|
|
17003
|
+
switchView(null); //Show confirmation alert after closing the modal
|
|
17004
|
+
|
|
17005
|
+
notify.confirm((onSuccess, onFailure) => {
|
|
17006
|
+
cancelSubscription(payload, onSuccess, onFailure);
|
|
17007
|
+
}, {
|
|
17008
|
+
confirmMessage: t("messages.subCancellation.isSureToCancelNow"),
|
|
17009
|
+
loadingMessage: t("messages.subCancellation.loading"),
|
|
17010
|
+
successMessage: t("messages.subCancellation.success"),
|
|
17011
|
+
errorMessage: t("messages.subCancellation.error")
|
|
17012
|
+
}, {
|
|
17013
|
+
closeButtonLabel: t("labels.subCancellation.goBack")
|
|
17014
|
+
});
|
|
17015
|
+
};
|
|
17016
|
+
|
|
17017
|
+
return /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
17018
|
+
onClick: handleCancelNowClick,
|
|
17019
|
+
className: `${className}`
|
|
17020
|
+
}, t("messages.cancelNow"));
|
|
17021
|
+
};
|
|
17022
|
+
|
|
17023
|
+
const SubscriptionCancelLaterButton = ({
|
|
17024
|
+
subscription,
|
|
17025
|
+
onClick,
|
|
17026
|
+
className
|
|
17027
|
+
}) => {
|
|
17028
|
+
const {
|
|
17029
|
+
switchView
|
|
17030
|
+
} = usePelcro();
|
|
17031
|
+
const {
|
|
17032
|
+
state: {
|
|
17033
|
+
cancelationReason
|
|
17034
|
+
},
|
|
17035
|
+
dispatch
|
|
17036
|
+
} = React.useContext(store$h);
|
|
17037
|
+
const {
|
|
17038
|
+
t
|
|
17039
|
+
} = useTranslation("subscriptionCancel");
|
|
17040
|
+
|
|
17041
|
+
const cancelSubscription = (payload, onSuccess, onFailure) => {
|
|
17042
|
+
window.Pelcro.subscription.cancel({
|
|
17043
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
17044
|
+
subscription_id: payload.subscription_id,
|
|
17045
|
+
mode: payload.mode,
|
|
17046
|
+
...(payload.reason && {
|
|
17047
|
+
reason: payload.reason
|
|
17048
|
+
})
|
|
17049
|
+
}, (err, res) => {
|
|
17050
|
+
var _ReactGA$event;
|
|
17051
|
+
|
|
17052
|
+
if (err) {
|
|
17053
|
+
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
17054
|
+
}
|
|
17055
|
+
|
|
17056
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
17057
|
+
category: "ACTIONS",
|
|
17058
|
+
action: "Canceled",
|
|
17059
|
+
nonInteraction: true
|
|
17060
|
+
});
|
|
17061
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
17062
|
+
});
|
|
17063
|
+
};
|
|
17064
|
+
|
|
17065
|
+
const handleCancelNowClick = () => {
|
|
17066
|
+
const payload = {
|
|
17067
|
+
subscription_id: subscription.id,
|
|
17068
|
+
mode: "period_end",
|
|
17069
|
+
...(cancelationReason && {
|
|
17070
|
+
reason: cancelationReason
|
|
17071
|
+
})
|
|
17072
|
+
};
|
|
17073
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(); //Close the modal
|
|
17074
|
+
|
|
17075
|
+
switchView(null); //Show confirmation alert after closing the modal
|
|
17076
|
+
|
|
17077
|
+
notify.confirm((onSuccess, onFailure) => {
|
|
17078
|
+
cancelSubscription(payload, onSuccess, onFailure);
|
|
17079
|
+
}, {
|
|
17080
|
+
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
17081
|
+
loadingMessage: t("messages.subCancellation.loading"),
|
|
17082
|
+
successMessage: t("messages.subCancellation.success"),
|
|
17083
|
+
errorMessage: t("messages.subCancellation.error")
|
|
17084
|
+
}, {
|
|
17085
|
+
closeButtonLabel: t("labels.subCancellation.goBack")
|
|
17086
|
+
});
|
|
17087
|
+
};
|
|
17088
|
+
|
|
17089
|
+
return /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
17090
|
+
onClick: handleCancelNowClick,
|
|
17091
|
+
className: `${className}`
|
|
17092
|
+
}, t("messages.cancelLater"));
|
|
17093
|
+
};
|
|
17094
|
+
|
|
17095
|
+
const SubscriptionCancelView = props => {
|
|
17096
|
+
const {
|
|
17097
|
+
subscriptionToCancel
|
|
17098
|
+
} = usePelcro();
|
|
17099
|
+
const {
|
|
17100
|
+
t
|
|
17101
|
+
} = useTranslation("subscriptionCancel");
|
|
17102
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17103
|
+
id: "pelcro-subscription-cancel-view"
|
|
17104
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17105
|
+
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
17106
|
+
}, /*#__PURE__*/React__default['default'].createElement("h4", {
|
|
17107
|
+
className: "plc-text-2xl plc-font-semibold"
|
|
17108
|
+
}, t("labels.title"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17109
|
+
className: "plc-text-gray-400 plc-text-base plc-block"
|
|
17110
|
+
}, "(", subscriptionToCancel.plan.nickname, ")"))), /*#__PURE__*/React__default['default'].createElement(SubscriptionCancelContainer, props, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17111
|
+
className: "plc-flex plc-flex-col plc-items-center plc-justify-center plc-mt-4"
|
|
17112
|
+
}, /*#__PURE__*/React__default['default'].createElement(SvgSubscription, {
|
|
17113
|
+
className: "plc-w-32 plc-h-32"
|
|
17114
|
+
}), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
17115
|
+
className: "plc-mb-3 plc-text-gray-900 plc-text-center plc-whitespace-pre-line"
|
|
17116
|
+
}, t("messages.subscriptionEnd"), " ", new Date(subscriptionToCancel === null || subscriptionToCancel === void 0 ? void 0 : subscriptionToCancel.current_period_end).toLocaleDateString('en-CA', {
|
|
17117
|
+
year: "numeric",
|
|
17118
|
+
month: "short",
|
|
17119
|
+
day: "numeric"
|
|
17120
|
+
}), "."), /*#__PURE__*/React__default['default'].createElement(SubscriptionCancelReason, null), /*#__PURE__*/React__default['default'].createElement(SubscriptionCancelNowButton, {
|
|
17121
|
+
className: "plc-mb-2",
|
|
17122
|
+
subscription: subscriptionToCancel
|
|
17123
|
+
}), /*#__PURE__*/React__default['default'].createElement(SubscriptionCancelLaterButton, {
|
|
17124
|
+
subscription: subscriptionToCancel
|
|
17125
|
+
}))));
|
|
17126
|
+
};
|
|
17127
|
+
|
|
17128
|
+
const SubscriptionCancelModal = ({
|
|
17129
|
+
onDisplay,
|
|
17130
|
+
onClose,
|
|
17131
|
+
...otherProps
|
|
17132
|
+
}) => {
|
|
17133
|
+
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
17134
|
+
onDisplay: onDisplay,
|
|
17135
|
+
onClose: onClose,
|
|
17136
|
+
id: "pelcro-subscription-cancel-modal"
|
|
17137
|
+
}, /*#__PURE__*/React__default['default'].createElement(ModalBody, null, /*#__PURE__*/React__default['default'].createElement(SubscriptionCancelView, otherProps)), /*#__PURE__*/React__default['default'].createElement(ModalFooter, null, /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
|
|
17138
|
+
};
|
|
17139
|
+
SubscriptionCancelModal.viewId = "subscription-cancel";
|
|
17140
|
+
|
|
17141
|
+
var _path$h;
|
|
17142
|
+
|
|
17143
|
+
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); }
|
|
17144
|
+
|
|
17145
|
+
function SvgGift(props) {
|
|
17146
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
17147
|
+
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
17148
|
+
fill: "none",
|
|
17149
|
+
stroke: "currentColor",
|
|
17150
|
+
strokeLinecap: "round",
|
|
17151
|
+
strokeLinejoin: "round",
|
|
17152
|
+
strokeWidth: 2,
|
|
17153
|
+
viewBox: "0 0 24 24",
|
|
17154
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
17155
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
17156
|
+
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"
|
|
17157
|
+
})));
|
|
17158
|
+
}
|
|
17159
|
+
|
|
17160
|
+
const PaymentSuccessView = ({
|
|
17161
|
+
onClose
|
|
17162
|
+
}) => {
|
|
17163
|
+
const {
|
|
17164
|
+
t
|
|
16773
17165
|
} = useTranslation("success");
|
|
16774
17166
|
const {
|
|
16775
17167
|
successTitle,
|
|
@@ -17715,17 +18107,17 @@ const UserUpdateContainer = ({
|
|
|
17715
18107
|
})));
|
|
17716
18108
|
};
|
|
17717
18109
|
|
|
17718
|
-
var _path$
|
|
18110
|
+
var _path$g;
|
|
17719
18111
|
|
|
17720
|
-
function _extends$
|
|
18112
|
+
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); }
|
|
17721
18113
|
|
|
17722
18114
|
function SvgEdit(props) {
|
|
17723
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
18115
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
17724
18116
|
className: "plc-w-6 plc-h-6",
|
|
17725
18117
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17726
18118
|
viewBox: "0 0 20 20",
|
|
17727
18119
|
fill: "currentColor"
|
|
17728
|
-
}, props), _path$
|
|
18120
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
17729
18121
|
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"
|
|
17730
18122
|
})));
|
|
17731
18123
|
}
|
|
@@ -21134,42 +21526,6 @@ const GiftCreateLastName = props => /*#__PURE__*/React__default['default'].creat
|
|
|
21134
21526
|
store: store$7
|
|
21135
21527
|
}, props));
|
|
21136
21528
|
|
|
21137
|
-
var _path$g;
|
|
21138
|
-
|
|
21139
|
-
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); }
|
|
21140
|
-
|
|
21141
|
-
function SvgInfoCircle(props) {
|
|
21142
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
21143
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
21144
|
-
className: "plc-w-5 plc-h-5",
|
|
21145
|
-
fill: "none",
|
|
21146
|
-
viewBox: "0 0 24 24",
|
|
21147
|
-
stroke: "currentColor"
|
|
21148
|
-
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
21149
|
-
strokeLinecap: "round",
|
|
21150
|
-
strokeLinejoin: "round",
|
|
21151
|
-
strokeWidth: 2,
|
|
21152
|
-
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
21153
|
-
})));
|
|
21154
|
-
}
|
|
21155
|
-
|
|
21156
|
-
/**
|
|
21157
|
-
*
|
|
21158
|
-
*/
|
|
21159
|
-
|
|
21160
|
-
const Tooltip = ({
|
|
21161
|
-
value,
|
|
21162
|
-
className
|
|
21163
|
-
}) => {
|
|
21164
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21165
|
-
className: `plc-flex pelcro-tooltip-container plc-text-gray-600 ${className}`
|
|
21166
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21167
|
-
className: "pelcro-tooltip-icon"
|
|
21168
|
-
}, /*#__PURE__*/React__default['default'].createElement(SvgInfoCircle, null)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21169
|
-
className: "plc-p-1 plc--mt-8 plc-text-sm plc-bg-gray-100 plc-border plc-rounded-md plc-shadow-lg pelcro-tooltip"
|
|
21170
|
-
}, value));
|
|
21171
|
-
};
|
|
21172
|
-
|
|
21173
21529
|
function DatePicker({
|
|
21174
21530
|
label = "",
|
|
21175
21531
|
tooltipText,
|
|
@@ -21238,44 +21594,6 @@ const GiftCreateStartDate = props => {
|
|
|
21238
21594
|
}, props));
|
|
21239
21595
|
};
|
|
21240
21596
|
|
|
21241
|
-
/**
|
|
21242
|
-
*
|
|
21243
|
-
*/
|
|
21244
|
-
|
|
21245
|
-
function TextArea({
|
|
21246
|
-
label = "",
|
|
21247
|
-
tooltipText,
|
|
21248
|
-
required,
|
|
21249
|
-
id,
|
|
21250
|
-
errorId,
|
|
21251
|
-
error,
|
|
21252
|
-
className = "",
|
|
21253
|
-
labelClassName = "",
|
|
21254
|
-
errorClassName = "",
|
|
21255
|
-
wrapperClassName = "",
|
|
21256
|
-
...otherProps
|
|
21257
|
-
}) {
|
|
21258
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21259
|
-
className: `pelcro-input-wrapper ${wrapperClassName}`
|
|
21260
|
-
}, /*#__PURE__*/React__default['default'].createElement("label", {
|
|
21261
|
-
htmlFor: id,
|
|
21262
|
-
className: `pelcro-input-label plc-flex plc-items-center ${labelClassName}`
|
|
21263
|
-
}, `${label}${required ? "*" : ""}`, tooltipText && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
21264
|
-
value: tooltipText,
|
|
21265
|
-
className: "plc-ml-1"
|
|
21266
|
-
})), /*#__PURE__*/React__default['default'].createElement("textarea", Object.assign({
|
|
21267
|
-
type: "text",
|
|
21268
|
-
id: id,
|
|
21269
|
-
className: `pelcro-input-field ${className} ${error ? "pelcro-input-invalid" : ""}`,
|
|
21270
|
-
"aria-describedby": errorId,
|
|
21271
|
-
"aria-invalid": Boolean(error)
|
|
21272
|
-
}, otherProps)), error && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
21273
|
-
id: errorId,
|
|
21274
|
-
"aria-live": "assertive",
|
|
21275
|
-
className: `pelcro-input-error ${errorClassName}`
|
|
21276
|
-
}, error));
|
|
21277
|
-
}
|
|
21278
|
-
|
|
21279
21597
|
/**
|
|
21280
21598
|
*
|
|
21281
21599
|
*/
|
|
@@ -22157,8 +22475,8 @@ const PaymentMethodSelectModal = ({
|
|
|
22157
22475
|
};
|
|
22158
22476
|
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
22159
22477
|
|
|
22160
|
-
function _extends$
|
|
22161
|
-
_extends$
|
|
22478
|
+
function _extends$g() {
|
|
22479
|
+
_extends$g = Object.assign || function (target) {
|
|
22162
22480
|
for (var i = 1; i < arguments.length; i++) {
|
|
22163
22481
|
var source = arguments[i];
|
|
22164
22482
|
|
|
@@ -22172,7 +22490,7 @@ function _extends$h() {
|
|
|
22172
22490
|
return target;
|
|
22173
22491
|
};
|
|
22174
22492
|
|
|
22175
|
-
return _extends$
|
|
22493
|
+
return _extends$g.apply(this, arguments);
|
|
22176
22494
|
}
|
|
22177
22495
|
|
|
22178
22496
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -22356,7 +22674,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
22356
22674
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
22357
22675
|
return null;
|
|
22358
22676
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
22359
|
-
return _render(_extends$
|
|
22677
|
+
return _render(_extends$g({}, _rest, {
|
|
22360
22678
|
hidden: true,
|
|
22361
22679
|
style: {
|
|
22362
22680
|
display: 'none'
|
|
@@ -22884,7 +23202,7 @@ function TransitionChild(props) {
|
|
|
22884
23202
|
var passthroughProps = rest;
|
|
22885
23203
|
return React__default['default'].createElement(NestingContext.Provider, {
|
|
22886
23204
|
value: nesting
|
|
22887
|
-
}, render(_extends$
|
|
23205
|
+
}, render(_extends$g({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
22888
23206
|
}
|
|
22889
23207
|
|
|
22890
23208
|
function Transition(props) {
|
|
@@ -22928,7 +23246,7 @@ function Transition(props) {
|
|
|
22928
23246
|
value: nestingBag
|
|
22929
23247
|
}, React__default['default'].createElement(TransitionContext.Provider, {
|
|
22930
23248
|
value: transitionBag
|
|
22931
|
-
}, render(_extends$
|
|
23249
|
+
}, render(_extends$g({}, sharedProps, {
|
|
22932
23250
|
as: React.Fragment,
|
|
22933
23251
|
children: React__default['default'].createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
22934
23252
|
}), propsBag, React.Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -23055,12 +23373,12 @@ var ActionTypes;
|
|
|
23055
23373
|
})(ActionTypes || (ActionTypes = {}));
|
|
23056
23374
|
|
|
23057
23375
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
23058
|
-
return _extends$
|
|
23376
|
+
return _extends$g({}, state, {
|
|
23059
23377
|
activeItemIndex: null,
|
|
23060
23378
|
menuState: MenuStates.Closed
|
|
23061
23379
|
});
|
|
23062
23380
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
23063
|
-
return _extends$
|
|
23381
|
+
return _extends$g({}, state, {
|
|
23064
23382
|
menuState: MenuStates.Open
|
|
23065
23383
|
});
|
|
23066
23384
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -23079,7 +23397,7 @@ var ActionTypes;
|
|
|
23079
23397
|
}
|
|
23080
23398
|
});
|
|
23081
23399
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
23082
|
-
return _extends$
|
|
23400
|
+
return _extends$g({}, state, {
|
|
23083
23401
|
searchQuery: '',
|
|
23084
23402
|
activeItemIndex: activeItemIndex
|
|
23085
23403
|
});
|
|
@@ -23090,19 +23408,19 @@ var ActionTypes;
|
|
|
23090
23408
|
|
|
23091
23409
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
23092
23410
|
});
|
|
23093
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
23411
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$g({}, state, {
|
|
23094
23412
|
searchQuery: searchQuery
|
|
23095
23413
|
});
|
|
23096
|
-
return _extends$
|
|
23414
|
+
return _extends$g({}, state, {
|
|
23097
23415
|
searchQuery: searchQuery,
|
|
23098
23416
|
activeItemIndex: match
|
|
23099
23417
|
});
|
|
23100
23418
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
23101
|
-
return _extends$
|
|
23419
|
+
return _extends$g({}, state, {
|
|
23102
23420
|
searchQuery: ''
|
|
23103
23421
|
});
|
|
23104
23422
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
23105
|
-
return _extends$
|
|
23423
|
+
return _extends$g({}, state, {
|
|
23106
23424
|
items: [].concat(state.items, [{
|
|
23107
23425
|
id: action.id,
|
|
23108
23426
|
dataRef: action.dataRef
|
|
@@ -23115,7 +23433,7 @@ var ActionTypes;
|
|
|
23115
23433
|
return a.id === action.id;
|
|
23116
23434
|
});
|
|
23117
23435
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
23118
|
-
return _extends$
|
|
23436
|
+
return _extends$g({}, state, {
|
|
23119
23437
|
items: nextItems,
|
|
23120
23438
|
activeItemIndex: function () {
|
|
23121
23439
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -23154,19 +23472,19 @@ var ActionTypes$1;
|
|
|
23154
23472
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
23155
23473
|
if (state.disabled) return state;
|
|
23156
23474
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
23157
|
-
return _extends$
|
|
23475
|
+
return _extends$g({}, state, {
|
|
23158
23476
|
activeOptionIndex: null,
|
|
23159
23477
|
listboxState: ListboxStates.Closed
|
|
23160
23478
|
});
|
|
23161
23479
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
23162
23480
|
if (state.disabled) return state;
|
|
23163
23481
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
23164
|
-
return _extends$
|
|
23482
|
+
return _extends$g({}, state, {
|
|
23165
23483
|
listboxState: ListboxStates.Open
|
|
23166
23484
|
});
|
|
23167
23485
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
23168
23486
|
if (state.disabled === action.disabled) return state;
|
|
23169
|
-
return _extends$
|
|
23487
|
+
return _extends$g({}, state, {
|
|
23170
23488
|
disabled: action.disabled
|
|
23171
23489
|
});
|
|
23172
23490
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -23187,7 +23505,7 @@ var ActionTypes$1;
|
|
|
23187
23505
|
}
|
|
23188
23506
|
});
|
|
23189
23507
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
23190
|
-
return _extends$
|
|
23508
|
+
return _extends$g({}, state, {
|
|
23191
23509
|
searchQuery: '',
|
|
23192
23510
|
activeOptionIndex: activeOptionIndex
|
|
23193
23511
|
});
|
|
@@ -23200,10 +23518,10 @@ var ActionTypes$1;
|
|
|
23200
23518
|
|
|
23201
23519
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
23202
23520
|
});
|
|
23203
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
23521
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$g({}, state, {
|
|
23204
23522
|
searchQuery: searchQuery
|
|
23205
23523
|
});
|
|
23206
|
-
return _extends$
|
|
23524
|
+
return _extends$g({}, state, {
|
|
23207
23525
|
searchQuery: searchQuery,
|
|
23208
23526
|
activeOptionIndex: match
|
|
23209
23527
|
});
|
|
@@ -23211,11 +23529,11 @@ var ActionTypes$1;
|
|
|
23211
23529
|
if (state.disabled) return state;
|
|
23212
23530
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
23213
23531
|
if (state.searchQuery === '') return state;
|
|
23214
|
-
return _extends$
|
|
23532
|
+
return _extends$g({}, state, {
|
|
23215
23533
|
searchQuery: ''
|
|
23216
23534
|
});
|
|
23217
23535
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
23218
|
-
return _extends$
|
|
23536
|
+
return _extends$g({}, state, {
|
|
23219
23537
|
options: [].concat(state.options, [{
|
|
23220
23538
|
id: action.id,
|
|
23221
23539
|
dataRef: action.dataRef
|
|
@@ -23228,7 +23546,7 @@ var ActionTypes$1;
|
|
|
23228
23546
|
return a.id === action.id;
|
|
23229
23547
|
});
|
|
23230
23548
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
23231
|
-
return _extends$
|
|
23549
|
+
return _extends$g({}, state, {
|
|
23232
23550
|
options: nextOptions,
|
|
23233
23551
|
activeOptionIndex: function () {
|
|
23234
23552
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -23291,10 +23609,10 @@ const getPaymentCardIcon = name => {
|
|
|
23291
23609
|
|
|
23292
23610
|
var _path$f;
|
|
23293
23611
|
|
|
23294
|
-
function _extends$
|
|
23612
|
+
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); }
|
|
23295
23613
|
|
|
23296
23614
|
function SvgChevronRight(props) {
|
|
23297
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23615
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
23298
23616
|
className: "plc-w-6 plc-h-6",
|
|
23299
23617
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23300
23618
|
fill: "none",
|
|
@@ -23518,10 +23836,10 @@ const SavedItems = ({
|
|
|
23518
23836
|
|
|
23519
23837
|
var _path$e;
|
|
23520
23838
|
|
|
23521
|
-
function _extends$
|
|
23839
|
+
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); }
|
|
23522
23840
|
|
|
23523
23841
|
function SvgRefresh(props) {
|
|
23524
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23842
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
23525
23843
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
23526
23844
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23527
23845
|
fill: "none",
|
|
@@ -23537,10 +23855,10 @@ function SvgRefresh(props) {
|
|
|
23537
23855
|
|
|
23538
23856
|
var _path$d;
|
|
23539
23857
|
|
|
23540
|
-
function _extends$
|
|
23858
|
+
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); }
|
|
23541
23859
|
|
|
23542
23860
|
function SvgCalendar(props) {
|
|
23543
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23861
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
23544
23862
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23545
23863
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
23546
23864
|
viewBox: "0 0 20 20",
|
|
@@ -23554,10 +23872,10 @@ function SvgCalendar(props) {
|
|
|
23554
23872
|
|
|
23555
23873
|
var _path$c;
|
|
23556
23874
|
|
|
23557
|
-
function _extends$
|
|
23875
|
+
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); }
|
|
23558
23876
|
|
|
23559
23877
|
function SvgPlus(props) {
|
|
23560
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23878
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
23561
23879
|
className: "plc-w-5 plc-h-5",
|
|
23562
23880
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23563
23881
|
fill: "none",
|
|
@@ -23573,10 +23891,10 @@ function SvgPlus(props) {
|
|
|
23573
23891
|
|
|
23574
23892
|
var _path$b;
|
|
23575
23893
|
|
|
23576
|
-
function _extends$
|
|
23894
|
+
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); }
|
|
23577
23895
|
|
|
23578
23896
|
function SvgCheckMark(props) {
|
|
23579
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23897
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
23580
23898
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
23581
23899
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23582
23900
|
viewBox: "0 0 20 20",
|
|
@@ -23886,10 +24204,10 @@ Accordion.item = function AccordionItem({
|
|
|
23886
24204
|
|
|
23887
24205
|
var _path$a;
|
|
23888
24206
|
|
|
23889
|
-
function _extends$
|
|
24207
|
+
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); }
|
|
23890
24208
|
|
|
23891
24209
|
function SvgExit(props) {
|
|
23892
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24210
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
23893
24211
|
className: "plc-w-6 plc-h-6",
|
|
23894
24212
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23895
24213
|
fill: "none",
|
|
@@ -23905,10 +24223,10 @@ function SvgExit(props) {
|
|
|
23905
24223
|
|
|
23906
24224
|
var _path$9;
|
|
23907
24225
|
|
|
23908
|
-
function _extends$
|
|
24226
|
+
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); }
|
|
23909
24227
|
|
|
23910
24228
|
function SvgUser(props) {
|
|
23911
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24229
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
23912
24230
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23913
24231
|
fill: "none",
|
|
23914
24232
|
viewBox: "0 0 24 24",
|
|
@@ -23923,10 +24241,10 @@ function SvgUser(props) {
|
|
|
23923
24241
|
|
|
23924
24242
|
var _path$8;
|
|
23925
24243
|
|
|
23926
|
-
function _extends$
|
|
24244
|
+
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); }
|
|
23927
24245
|
|
|
23928
24246
|
function SvgNewsletter(props) {
|
|
23929
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24247
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
23930
24248
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23931
24249
|
className: "plc-h-5 plc-w-5",
|
|
23932
24250
|
fill: "none",
|
|
@@ -23942,10 +24260,10 @@ function SvgNewsletter(props) {
|
|
|
23942
24260
|
|
|
23943
24261
|
var _path$7;
|
|
23944
24262
|
|
|
23945
|
-
function _extends$
|
|
24263
|
+
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); }
|
|
23946
24264
|
|
|
23947
24265
|
function SvgDocument(props) {
|
|
23948
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24266
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
23949
24267
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23950
24268
|
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
23951
24269
|
fill: "none",
|
|
@@ -23961,10 +24279,10 @@ function SvgDocument(props) {
|
|
|
23961
24279
|
|
|
23962
24280
|
var _path$6;
|
|
23963
24281
|
|
|
23964
|
-
function _extends$
|
|
24282
|
+
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); }
|
|
23965
24283
|
|
|
23966
24284
|
function SvgPaymentCard(props) {
|
|
23967
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24285
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
23968
24286
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
23969
24287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23970
24288
|
fill: "none",
|
|
@@ -23980,10 +24298,10 @@ function SvgPaymentCard(props) {
|
|
|
23980
24298
|
|
|
23981
24299
|
var _path$5, _path2;
|
|
23982
24300
|
|
|
23983
|
-
function _extends$
|
|
24301
|
+
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); }
|
|
23984
24302
|
|
|
23985
24303
|
function SvgLocationPin(props) {
|
|
23986
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24304
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
23987
24305
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
23988
24306
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23989
24307
|
fill: "none",
|
|
@@ -24002,26 +24320,6 @@ function SvgLocationPin(props) {
|
|
|
24002
24320
|
})));
|
|
24003
24321
|
}
|
|
24004
24322
|
|
|
24005
|
-
var _switch;
|
|
24006
|
-
|
|
24007
|
-
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); }
|
|
24008
|
-
|
|
24009
|
-
function SvgSubscription(props) {
|
|
24010
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
24011
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
24012
|
-
viewBox: "0 0 100 125",
|
|
24013
|
-
fill: "currentColor"
|
|
24014
|
-
}, props), _switch || (_switch = /*#__PURE__*/React__namespace.createElement("switch", null, /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
24015
|
-
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"
|
|
24016
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
24017
|
-
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"
|
|
24018
|
-
}), /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
24019
|
-
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"
|
|
24020
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
24021
|
-
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"
|
|
24022
|
-
}))))));
|
|
24023
|
-
}
|
|
24024
|
-
|
|
24025
24323
|
var _path$4;
|
|
24026
24324
|
|
|
24027
24325
|
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); }
|
|
@@ -27434,6 +27732,7 @@ exports.ShopPurchaseButton = ShopPurchaseButton;
|
|
|
27434
27732
|
exports.ShopSelectProductButton = ShopSelectProductButton;
|
|
27435
27733
|
exports.ShopView = ShopView;
|
|
27436
27734
|
exports.SubmitPaymentMethod = SubmitPaymentMethod;
|
|
27735
|
+
exports.SubscriptionCancelModal = SubscriptionCancelModal;
|
|
27437
27736
|
exports.SubscriptionCreateContainer = SubscriptionCreateContainer;
|
|
27438
27737
|
exports.SubscriptionCreateModal = SubscriptionCreateModal;
|
|
27439
27738
|
exports.SubscriptionCreateView = SubscriptionCreateView;
|