@pelcro/react-pelcro-js 3.26.0-sandbox.2 → 3.26.0-sandbox.21
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 +858 -638
- package/dist/index.esm.js +858 -638
- package/dist/pelcro.css +35 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3332,7 +3332,7 @@ var paymentMethod_en = {
|
|
|
3332
3332
|
var title$z = "Enter your email to subscribe to our newsletter";
|
|
3333
3333
|
var updateTitle$3 = "Update newsletter selections";
|
|
3334
3334
|
var subtitle$f = "We may use your email for other marketing communication";
|
|
3335
|
-
var labels$
|
|
3335
|
+
var labels$13 = {
|
|
3336
3336
|
submit: "Submit",
|
|
3337
3337
|
firstName: "First name",
|
|
3338
3338
|
lastName: "Last name",
|
|
@@ -3351,11 +3351,11 @@ var newsletter_en = {
|
|
|
3351
3351
|
title: title$z,
|
|
3352
3352
|
updateTitle: updateTitle$3,
|
|
3353
3353
|
subtitle: subtitle$f,
|
|
3354
|
-
labels: labels$
|
|
3354
|
+
labels: labels$13,
|
|
3355
3355
|
messages: messages$17
|
|
3356
3356
|
};
|
|
3357
3357
|
|
|
3358
|
-
var labels$
|
|
3358
|
+
var labels$12 = {
|
|
3359
3359
|
"continue": "Continue to content"
|
|
3360
3360
|
};
|
|
3361
3361
|
var messages$16 = {
|
|
@@ -3384,7 +3384,7 @@ var errors$j = {
|
|
|
3384
3384
|
"": ""
|
|
3385
3385
|
};
|
|
3386
3386
|
var success_en = {
|
|
3387
|
-
labels: labels$
|
|
3387
|
+
labels: labels$12,
|
|
3388
3388
|
messages: messages$16,
|
|
3389
3389
|
errors: errors$j
|
|
3390
3390
|
};
|
|
@@ -3408,7 +3408,7 @@ var messages$14 = {
|
|
|
3408
3408
|
bankRedirection: "Please hold, redirecting you to your bank.",
|
|
3409
3409
|
bankAuthenticationSuccess: "Please wait while we process your request."
|
|
3410
3410
|
};
|
|
3411
|
-
var labels$
|
|
3411
|
+
var labels$11 = {
|
|
3412
3412
|
card: "Enter card number",
|
|
3413
3413
|
date: "Expiration date",
|
|
3414
3414
|
CVC: "CVC",
|
|
@@ -3432,7 +3432,7 @@ var labels$10 = {
|
|
|
3432
3432
|
};
|
|
3433
3433
|
var checkoutForm_en = {
|
|
3434
3434
|
messages: messages$14,
|
|
3435
|
-
labels: labels$
|
|
3435
|
+
labels: labels$11
|
|
3436
3436
|
};
|
|
3437
3437
|
|
|
3438
3438
|
var youAreSafe$3 = "You're safe - PCI compliant 128 SSL by";
|
|
@@ -3456,7 +3456,7 @@ var messages_en = {
|
|
|
3456
3456
|
zeroTotalInvoice: zeroTotalInvoice$3
|
|
3457
3457
|
};
|
|
3458
3458
|
|
|
3459
|
-
var labels
|
|
3459
|
+
var labels$10 = {
|
|
3460
3460
|
email: "Enter email",
|
|
3461
3461
|
username: "Enter username",
|
|
3462
3462
|
password: "Enter password",
|
|
@@ -3484,12 +3484,12 @@ var errors$h = {
|
|
|
3484
3484
|
"": ""
|
|
3485
3485
|
};
|
|
3486
3486
|
var login_en = {
|
|
3487
|
-
labels: labels
|
|
3487
|
+
labels: labels$10,
|
|
3488
3488
|
messages: messages$13,
|
|
3489
3489
|
errors: errors$h
|
|
3490
3490
|
};
|
|
3491
3491
|
|
|
3492
|
-
var labels
|
|
3492
|
+
var labels$$ = {
|
|
3493
3493
|
title: "Verifying Passwordless Link",
|
|
3494
3494
|
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
3495
3495
|
resend: "Resend email"
|
|
@@ -3499,13 +3499,13 @@ var messages$12 = {
|
|
|
3499
3499
|
success: "You have logged in successfully"
|
|
3500
3500
|
};
|
|
3501
3501
|
var verifyLinkToken_en = {
|
|
3502
|
-
labels: labels
|
|
3502
|
+
labels: labels$$,
|
|
3503
3503
|
messages: messages$12
|
|
3504
3504
|
};
|
|
3505
3505
|
|
|
3506
3506
|
var title$y = "Create an account";
|
|
3507
3507
|
var subtitle$e = "Enter your email and password below";
|
|
3508
|
-
var labels$
|
|
3508
|
+
var labels$_ = {
|
|
3509
3509
|
signUpFacebook: "Sign up with Facebook",
|
|
3510
3510
|
signUpGoogle: "Sign up with Google",
|
|
3511
3511
|
signUpEmail: "Sign up with Email",
|
|
@@ -3592,14 +3592,14 @@ var redeem$3 = {
|
|
|
3592
3592
|
var register_en = {
|
|
3593
3593
|
title: title$y,
|
|
3594
3594
|
subtitle: subtitle$e,
|
|
3595
|
-
labels: labels$
|
|
3595
|
+
labels: labels$_,
|
|
3596
3596
|
messages: messages$11,
|
|
3597
3597
|
errors: errors$g,
|
|
3598
3598
|
gift: gift$3,
|
|
3599
3599
|
redeem: redeem$3
|
|
3600
3600
|
};
|
|
3601
3601
|
|
|
3602
|
-
var labels$
|
|
3602
|
+
var labels$Z = {
|
|
3603
3603
|
title: "Want to update your profile?",
|
|
3604
3604
|
subtitle: "Enter your information below to update your profile",
|
|
3605
3605
|
email: "Email",
|
|
@@ -3624,7 +3624,7 @@ var messages$10 = {
|
|
|
3624
3624
|
pictureUpdated: "Your profile picture was updated successfully."
|
|
3625
3625
|
};
|
|
3626
3626
|
var userEdit_en = {
|
|
3627
|
-
labels: labels$
|
|
3627
|
+
labels: labels$Z,
|
|
3628
3628
|
messages: messages$10
|
|
3629
3629
|
};
|
|
3630
3630
|
|
|
@@ -3632,7 +3632,7 @@ var title$x = "Enter your shipping address";
|
|
|
3632
3632
|
var titleGifting$3 = "Enter your address";
|
|
3633
3633
|
var selectAddressTitle$3 = "Please select an address";
|
|
3634
3634
|
var selectAddressSubtitle$3 = "Select one of your saved addresses, or add a new one";
|
|
3635
|
-
var labels$
|
|
3635
|
+
var labels$Y = {
|
|
3636
3636
|
address: "Address",
|
|
3637
3637
|
code: "Postal Code/Zip",
|
|
3638
3638
|
city: "City",
|
|
@@ -3657,7 +3657,7 @@ var address_en = {
|
|
|
3657
3657
|
titleGifting: titleGifting$3,
|
|
3658
3658
|
selectAddressTitle: selectAddressTitle$3,
|
|
3659
3659
|
selectAddressSubtitle: selectAddressSubtitle$3,
|
|
3660
|
-
labels: labels$
|
|
3660
|
+
labels: labels$Y,
|
|
3661
3661
|
buttons: buttons$i,
|
|
3662
3662
|
messages: messages$$
|
|
3663
3663
|
};
|
|
@@ -3777,17 +3777,17 @@ var messages$Y = {
|
|
|
3777
3777
|
multipleCurrencies: "Your cart currently contains items which are available in different currencies. In order to proceed with the checkout, please make sure that all items have the same currency.",
|
|
3778
3778
|
currencyMismatch: "The selected item(s) do not match your current default currency ({{currency}}). Please choose item(s) only matching this currency."
|
|
3779
3779
|
};
|
|
3780
|
-
var labels$
|
|
3780
|
+
var labels$X = {
|
|
3781
3781
|
summary: "Order summary",
|
|
3782
3782
|
total: "total"
|
|
3783
3783
|
};
|
|
3784
3784
|
var shop_en = {
|
|
3785
3785
|
buttons: buttons$h,
|
|
3786
3786
|
messages: messages$Y,
|
|
3787
|
-
labels: labels$
|
|
3787
|
+
labels: labels$X
|
|
3788
3788
|
};
|
|
3789
3789
|
|
|
3790
|
-
var labels$
|
|
3790
|
+
var labels$W = {
|
|
3791
3791
|
cardNumber: "Card number",
|
|
3792
3792
|
securityCode: "Security Code",
|
|
3793
3793
|
submit: "Submit",
|
|
@@ -3823,12 +3823,12 @@ var errors$f = {
|
|
|
3823
3823
|
"": ""
|
|
3824
3824
|
};
|
|
3825
3825
|
var payment_en = {
|
|
3826
|
-
labels: labels$
|
|
3826
|
+
labels: labels$W,
|
|
3827
3827
|
messages: messages$X,
|
|
3828
3828
|
errors: errors$f
|
|
3829
3829
|
};
|
|
3830
3830
|
|
|
3831
|
-
var labels$
|
|
3831
|
+
var labels$V = {
|
|
3832
3832
|
menu: "Pelcro Menu",
|
|
3833
3833
|
name: "Name",
|
|
3834
3834
|
email: "Email",
|
|
@@ -3936,7 +3936,7 @@ var messages$W = {
|
|
|
3936
3936
|
}
|
|
3937
3937
|
};
|
|
3938
3938
|
var dashboard_en = {
|
|
3939
|
-
labels: labels$
|
|
3939
|
+
labels: labels$V,
|
|
3940
3940
|
messages: messages$W
|
|
3941
3941
|
};
|
|
3942
3942
|
|
|
@@ -3945,7 +3945,7 @@ var messages$V = {
|
|
|
3945
3945
|
loginHere: "Login here",
|
|
3946
3946
|
checkbox: "Check this box to gift this subscription"
|
|
3947
3947
|
};
|
|
3948
|
-
var labels$
|
|
3948
|
+
var labels$U = {
|
|
3949
3949
|
plan: {
|
|
3950
3950
|
title: "Subscribe to a plan",
|
|
3951
3951
|
subtitle: "Select one of the plans below and click on next."
|
|
@@ -3969,7 +3969,7 @@ var buttons$g = {
|
|
|
3969
3969
|
};
|
|
3970
3970
|
var select_en = {
|
|
3971
3971
|
messages: messages$V,
|
|
3972
|
-
labels: labels$
|
|
3972
|
+
labels: labels$U,
|
|
3973
3973
|
buttons: buttons$g
|
|
3974
3974
|
};
|
|
3975
3975
|
|
|
@@ -3983,7 +3983,7 @@ var notification_en = {
|
|
|
3983
3983
|
confirm: confirm$9
|
|
3984
3984
|
};
|
|
3985
3985
|
|
|
3986
|
-
var labels$
|
|
3986
|
+
var labels$T = {
|
|
3987
3987
|
title: "Verify your email",
|
|
3988
3988
|
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
3989
3989
|
resend: "Resend email"
|
|
@@ -3993,12 +3993,12 @@ var messages$U = {
|
|
|
3993
3993
|
success: "Email verified successfully!"
|
|
3994
3994
|
};
|
|
3995
3995
|
var verifyEmail_en = {
|
|
3996
|
-
labels: labels$
|
|
3996
|
+
labels: labels$T,
|
|
3997
3997
|
messages: messages$U
|
|
3998
3998
|
};
|
|
3999
3999
|
|
|
4000
4000
|
var title$r = "Invoice details";
|
|
4001
|
-
var labels$
|
|
4001
|
+
var labels$S = {
|
|
4002
4002
|
summary: "Summary",
|
|
4003
4003
|
total: "Total",
|
|
4004
4004
|
amountPaid: "Amount paid",
|
|
@@ -4011,19 +4011,23 @@ var buttons$f = {
|
|
|
4011
4011
|
};
|
|
4012
4012
|
var invoiceDetails_en = {
|
|
4013
4013
|
title: title$r,
|
|
4014
|
-
labels: labels$
|
|
4014
|
+
labels: labels$S,
|
|
4015
4015
|
buttons: buttons$f
|
|
4016
4016
|
};
|
|
4017
4017
|
|
|
4018
|
-
var labels$
|
|
4018
|
+
var labels$R = {
|
|
4019
4019
|
title: "Cancel subscription",
|
|
4020
4020
|
cancelReason: "Cancellation reason",
|
|
4021
|
+
endOn: "End on",
|
|
4022
|
+
endImmediately: "End immediately",
|
|
4023
|
+
cancel: "Cancel",
|
|
4021
4024
|
subCancellation: {
|
|
4022
4025
|
goBack: "Go back"
|
|
4023
4026
|
}
|
|
4024
4027
|
};
|
|
4025
4028
|
var messages$T = {
|
|
4026
4029
|
subscriptionEnd: "This subscription is set to expire on",
|
|
4030
|
+
cancelWhen: "When would you like to cancel?",
|
|
4027
4031
|
cancelNow: "Cancel Subscription Now",
|
|
4028
4032
|
cancelLater: "Cancel at Period End",
|
|
4029
4033
|
subCancellation: {
|
|
@@ -4035,59 +4039,11 @@ var messages$T = {
|
|
|
4035
4039
|
}
|
|
4036
4040
|
};
|
|
4037
4041
|
var subscriptionCancel_en = {
|
|
4038
|
-
labels: labels$
|
|
4042
|
+
labels: labels$R,
|
|
4039
4043
|
messages: messages$T
|
|
4040
4044
|
};
|
|
4041
4045
|
|
|
4042
|
-
var labels$
|
|
4043
|
-
title: "Annuler l'abonnement",
|
|
4044
|
-
cancelReason: "Motif d'annulation",
|
|
4045
|
-
subCancellation: {
|
|
4046
|
-
goBack: "Retourner"
|
|
4047
|
-
}
|
|
4048
|
-
};
|
|
4049
|
-
var messages$S = {
|
|
4050
|
-
subscriptionEnd: "Cet abonnement doit expirer le",
|
|
4051
|
-
cancelNow: "Cancel Subscription Now",
|
|
4052
|
-
cancelLater: "Annuler l'abonnement maintenant",
|
|
4053
|
-
subCancellation: {
|
|
4054
|
-
isSureToCancelNow: "Êtes-vous sûr de vouloir résilier votre abonnement immédiatement?",
|
|
4055
|
-
isSureToCancel: "Êtes-vous sûr de vouloir résilier votre abonnement?",
|
|
4056
|
-
loading: "Annulation de votre abonnement",
|
|
4057
|
-
success: "L'abonnement a été annulé avec succès",
|
|
4058
|
-
error: "Erreur lors de l'annulation de votre abonnement"
|
|
4059
|
-
}
|
|
4060
|
-
};
|
|
4061
|
-
var subscriptionCancel_fr = {
|
|
4062
|
-
labels: labels$P,
|
|
4063
|
-
messages: messages$S
|
|
4064
|
-
};
|
|
4065
|
-
|
|
4066
|
-
var labels$O = {
|
|
4067
|
-
title: "구독 취소",
|
|
4068
|
-
cancelReason: "취소 사유",
|
|
4069
|
-
subCancellation: {
|
|
4070
|
-
goBack: "돌아가기"
|
|
4071
|
-
}
|
|
4072
|
-
};
|
|
4073
|
-
var messages$R = {
|
|
4074
|
-
subscriptionEnd: "이 구독은 다음 날짜에 만료되도록 설정되었습니다.",
|
|
4075
|
-
cancelNow: "지금 구독 취소",
|
|
4076
|
-
cancelLater: "기간 종료 시 취소",
|
|
4077
|
-
subCancellation: {
|
|
4078
|
-
isSureToCancelNow: "구독을 즉시 취소하시겠습니까?",
|
|
4079
|
-
isSureToCancel: "구독을 취소하시겠습니까?",
|
|
4080
|
-
loading: "구독 취소",
|
|
4081
|
-
success: "구독이 성공적으로 취소되었습니다.",
|
|
4082
|
-
error: "구독 취소 중 오류 발생"
|
|
4083
|
-
}
|
|
4084
|
-
};
|
|
4085
|
-
var subscriptionCancel_ko = {
|
|
4086
|
-
labels: labels$O,
|
|
4087
|
-
messages: messages$R
|
|
4088
|
-
};
|
|
4089
|
-
|
|
4090
|
-
var labels$N = {
|
|
4046
|
+
var labels$Q = {
|
|
4091
4047
|
inviteMembers: "Invite Members",
|
|
4092
4048
|
listOfMembers: "List of members",
|
|
4093
4049
|
invite: "Invite",
|
|
@@ -4095,48 +4051,21 @@ var labels$N = {
|
|
|
4095
4051
|
emails: "Enter emails",
|
|
4096
4052
|
status: "Status",
|
|
4097
4053
|
actions: "Actions",
|
|
4098
|
-
email: "Email"
|
|
4054
|
+
email: "Email",
|
|
4055
|
+
listNote: "Comma-separated list e.g."
|
|
4099
4056
|
};
|
|
4100
4057
|
var subscriptionManageMembers_en = {
|
|
4101
|
-
labels: labels$
|
|
4102
|
-
};
|
|
4103
|
-
|
|
4104
|
-
var labels$M = {
|
|
4105
|
-
inviteMembers: "Inviter des membres",
|
|
4106
|
-
listOfMembers: "Liste des membres",
|
|
4107
|
-
invite: "Inviter",
|
|
4108
|
-
remove: "Retirer",
|
|
4109
|
-
emails: "Saisir les e-mails",
|
|
4110
|
-
status: "Statut",
|
|
4111
|
-
actions: "Actions",
|
|
4112
|
-
email: "E-mail"
|
|
4113
|
-
};
|
|
4114
|
-
var subscriptionManageMembers_fr = {
|
|
4115
|
-
labels: labels$M
|
|
4116
|
-
};
|
|
4117
|
-
|
|
4118
|
-
var labels$L = {
|
|
4119
|
-
inviteMembers: "회원 초대",
|
|
4120
|
-
listOfMembers: "구성원 목록",
|
|
4121
|
-
invite: "초대",
|
|
4122
|
-
remove: "제거하다",
|
|
4123
|
-
emails: "이메일 입력",
|
|
4124
|
-
status: "상태",
|
|
4125
|
-
actions: "행위",
|
|
4126
|
-
email: "이메일"
|
|
4127
|
-
};
|
|
4128
|
-
var subscriptionManageMembers_ko = {
|
|
4129
|
-
labels: labels$L
|
|
4058
|
+
labels: labels$Q
|
|
4130
4059
|
};
|
|
4131
4060
|
|
|
4132
|
-
var labels$
|
|
4061
|
+
var labels$P = {
|
|
4133
4062
|
title: "Suspend subscription",
|
|
4134
4063
|
suspensionDate: "Suspension date",
|
|
4135
4064
|
subCancellation: {
|
|
4136
4065
|
goBack: "Go back"
|
|
4137
4066
|
}
|
|
4138
4067
|
};
|
|
4139
|
-
var messages$
|
|
4068
|
+
var messages$S = {
|
|
4140
4069
|
suspensionEnd: "The suspension is set to expire on",
|
|
4141
4070
|
suspendNow: "Suspend Subscription Now",
|
|
4142
4071
|
suspendLater: "Suspend at Period End",
|
|
@@ -4149,8 +4078,8 @@ var messages$Q = {
|
|
|
4149
4078
|
}
|
|
4150
4079
|
};
|
|
4151
4080
|
var subscriptionSuspend_en = {
|
|
4152
|
-
labels: labels$
|
|
4153
|
-
messages: messages$
|
|
4081
|
+
labels: labels$P,
|
|
4082
|
+
messages: messages$S
|
|
4154
4083
|
};
|
|
4155
4084
|
|
|
4156
4085
|
var validation$2 = {
|
|
@@ -4274,7 +4203,7 @@ var paymentMethod_fr = {
|
|
|
4274
4203
|
var title$q = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
4275
4204
|
var updateTitle$2 = "Mettre à jour son choix d'infolettres";
|
|
4276
4205
|
var subtitle$b = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
|
|
4277
|
-
var labels$
|
|
4206
|
+
var labels$O = {
|
|
4278
4207
|
submit: "Lire l’article !",
|
|
4279
4208
|
firstName: "Prénom",
|
|
4280
4209
|
lastName: "Nom de famille",
|
|
@@ -4282,7 +4211,7 @@ var labels$J = {
|
|
|
4282
4211
|
postalCode: "Code postal",
|
|
4283
4212
|
required: "Champs obligatoires"
|
|
4284
4213
|
};
|
|
4285
|
-
var messages$
|
|
4214
|
+
var messages$R = {
|
|
4286
4215
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4287
4216
|
success: "Votre choix d'infolettres à été mis à jour",
|
|
4288
4217
|
loginHere: "Connectez-vous ici",
|
|
@@ -4293,14 +4222,14 @@ var newsletter_fr = {
|
|
|
4293
4222
|
title: title$q,
|
|
4294
4223
|
updateTitle: updateTitle$2,
|
|
4295
4224
|
subtitle: subtitle$b,
|
|
4296
|
-
labels: labels$
|
|
4297
|
-
messages: messages$
|
|
4225
|
+
labels: labels$O,
|
|
4226
|
+
messages: messages$R
|
|
4298
4227
|
};
|
|
4299
4228
|
|
|
4300
|
-
var labels$
|
|
4229
|
+
var labels$N = {
|
|
4301
4230
|
"continue": "Abonnement réussi !"
|
|
4302
4231
|
};
|
|
4303
|
-
var messages$
|
|
4232
|
+
var messages$Q = {
|
|
4304
4233
|
yourFreeTrial: "Votre essai gratuit vient de débuter",
|
|
4305
4234
|
youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
|
|
4306
4235
|
clickToLearn: {
|
|
@@ -4326,12 +4255,12 @@ var errors$e = {
|
|
|
4326
4255
|
"": ""
|
|
4327
4256
|
};
|
|
4328
4257
|
var success_fr = {
|
|
4329
|
-
labels: labels$
|
|
4330
|
-
messages: messages$
|
|
4258
|
+
labels: labels$N,
|
|
4259
|
+
messages: messages$Q,
|
|
4331
4260
|
errors: errors$e
|
|
4332
4261
|
};
|
|
4333
4262
|
|
|
4334
|
-
var messages$
|
|
4263
|
+
var messages$P = {
|
|
4335
4264
|
freeVisits: "Visites gratuites restantes:",
|
|
4336
4265
|
subscribeNow: "Abonnez-vous maintenant !",
|
|
4337
4266
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
@@ -4341,16 +4270,16 @@ var errors$d = {
|
|
|
4341
4270
|
"": ""
|
|
4342
4271
|
};
|
|
4343
4272
|
var meter_fr = {
|
|
4344
|
-
messages: messages$
|
|
4273
|
+
messages: messages$P,
|
|
4345
4274
|
errors: errors$d
|
|
4346
4275
|
};
|
|
4347
4276
|
|
|
4348
|
-
var messages$
|
|
4277
|
+
var messages$O = {
|
|
4349
4278
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
4350
4279
|
bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque.",
|
|
4351
4280
|
bankAuthenticationSuccess: "Veuillez patienter pendant que nous accédons à votre requête."
|
|
4352
4281
|
};
|
|
4353
|
-
var labels$
|
|
4282
|
+
var labels$M = {
|
|
4354
4283
|
card: "Entrez le numéro de carte",
|
|
4355
4284
|
date: "Date d’expiration",
|
|
4356
4285
|
CVC: "CVC",
|
|
@@ -4373,8 +4302,8 @@ var labels$H = {
|
|
|
4373
4302
|
freeItems: "Articles gratuits"
|
|
4374
4303
|
};
|
|
4375
4304
|
var checkoutForm_fr = {
|
|
4376
|
-
messages: messages$
|
|
4377
|
-
labels: labels$
|
|
4305
|
+
messages: messages$O,
|
|
4306
|
+
labels: labels$M
|
|
4378
4307
|
};
|
|
4379
4308
|
|
|
4380
4309
|
var youAreSafe$2 = "Vous êtes en sécurité - PCI conforme 128 SSL par";
|
|
@@ -4398,7 +4327,7 @@ var messages_fr = {
|
|
|
4398
4327
|
zeroTotalInvoice: zeroTotalInvoice$2
|
|
4399
4328
|
};
|
|
4400
4329
|
|
|
4401
|
-
var labels$
|
|
4330
|
+
var labels$L = {
|
|
4402
4331
|
email: "Entrez votre adresse courriel",
|
|
4403
4332
|
username: "Saisissez votre nom d'utilisateur",
|
|
4404
4333
|
password: "Entrez votre mot de passe",
|
|
@@ -4407,7 +4336,7 @@ var labels$G = {
|
|
|
4407
4336
|
passwordPlaceholder: "Mot de passe",
|
|
4408
4337
|
login: "Connexion"
|
|
4409
4338
|
};
|
|
4410
|
-
var messages$
|
|
4339
|
+
var messages$N = {
|
|
4411
4340
|
loginTo: "Connectez-vous à votre compte",
|
|
4412
4341
|
welcome: "Bienvenue, connectez-vous avec votre compte existant.",
|
|
4413
4342
|
dontHaveAccount: "Vous n’avez pas encore de compte ?",
|
|
@@ -4426,28 +4355,28 @@ var errors$c = {
|
|
|
4426
4355
|
"": ""
|
|
4427
4356
|
};
|
|
4428
4357
|
var login_fr = {
|
|
4429
|
-
labels: labels$
|
|
4430
|
-
messages: messages$
|
|
4358
|
+
labels: labels$L,
|
|
4359
|
+
messages: messages$N,
|
|
4431
4360
|
errors: errors$c
|
|
4432
4361
|
};
|
|
4433
4362
|
|
|
4434
|
-
var labels$
|
|
4363
|
+
var labels$K = {
|
|
4435
4364
|
title: "Confirmez votre courriel",
|
|
4436
4365
|
instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
|
|
4437
4366
|
resend: "Renvoyer le courriel"
|
|
4438
4367
|
};
|
|
4439
|
-
var messages$
|
|
4368
|
+
var messages$M = {
|
|
4440
4369
|
resent: "Renvoyé avec succès",
|
|
4441
4370
|
success: "Vous vous êtes connecté avec succès"
|
|
4442
4371
|
};
|
|
4443
4372
|
var verifyLinkToken_fr = {
|
|
4444
|
-
labels: labels$
|
|
4445
|
-
messages: messages$
|
|
4373
|
+
labels: labels$K,
|
|
4374
|
+
messages: messages$M
|
|
4446
4375
|
};
|
|
4447
4376
|
|
|
4448
4377
|
var title$p = "Créer un compte";
|
|
4449
4378
|
var subtitle$a = "Entrez votre courriel et votre mot de passe ci-dessous";
|
|
4450
|
-
var labels$
|
|
4379
|
+
var labels$J = {
|
|
4451
4380
|
signUpFacebook: "Inscrivez-vous avec Facebook",
|
|
4452
4381
|
signUpGoogle: "Inscrivez-vous avec Google",
|
|
4453
4382
|
signUpEmail: "Inscrivez-vous avec votre courriel",
|
|
@@ -4460,7 +4389,7 @@ var labels$E = {
|
|
|
4460
4389
|
lastName: "Nom de famille",
|
|
4461
4390
|
phone: "Téléphoner"
|
|
4462
4391
|
};
|
|
4463
|
-
var messages$
|
|
4392
|
+
var messages$L = {
|
|
4464
4393
|
alreadyHaveAccount: "Vous avez déjà un compte?",
|
|
4465
4394
|
createAccount: "Créer un compte",
|
|
4466
4395
|
loginHere: "Connectez-vous ici",
|
|
@@ -4535,14 +4464,14 @@ var redeem$2 = {
|
|
|
4535
4464
|
var register_fr = {
|
|
4536
4465
|
title: title$p,
|
|
4537
4466
|
subtitle: subtitle$a,
|
|
4538
|
-
labels: labels$
|
|
4539
|
-
messages: messages$
|
|
4467
|
+
labels: labels$J,
|
|
4468
|
+
messages: messages$L,
|
|
4540
4469
|
errors: errors$b,
|
|
4541
4470
|
gift: gift$2,
|
|
4542
4471
|
redeem: redeem$2
|
|
4543
4472
|
};
|
|
4544
4473
|
|
|
4545
|
-
var labels$
|
|
4474
|
+
var labels$I = {
|
|
4546
4475
|
title: "Voulez-vous mettre à jour votre profil ?",
|
|
4547
4476
|
subtitle: "Entrez vos informations ci-dessous pour mettre à jour votre profil",
|
|
4548
4477
|
email: "Address courriel",
|
|
@@ -4561,21 +4490,21 @@ var labels$D = {
|
|
|
4561
4490
|
zoom: "Zoom",
|
|
4562
4491
|
tin: "Numéro d'identification fiscale"
|
|
4563
4492
|
};
|
|
4564
|
-
var messages$
|
|
4493
|
+
var messages$K = {
|
|
4565
4494
|
userUpdated: "Votre profil a été mis à jour avec succès.",
|
|
4566
4495
|
pictureRemoved: "Votre photo de profil a été supprimée avec succès.",
|
|
4567
4496
|
pictureUpdated: "Votre photo de profil a été mise à jour avec succès."
|
|
4568
4497
|
};
|
|
4569
4498
|
var userEdit_fr = {
|
|
4570
|
-
labels: labels$
|
|
4571
|
-
messages: messages$
|
|
4499
|
+
labels: labels$I,
|
|
4500
|
+
messages: messages$K
|
|
4572
4501
|
};
|
|
4573
4502
|
|
|
4574
4503
|
var title$o = "Entrez votre adresse de livraison";
|
|
4575
4504
|
var titleGifting$2 = "Entrez votre adresse";
|
|
4576
4505
|
var selectAddressTitle$2 = "Veuillez sélectionner une adresse";
|
|
4577
4506
|
var selectAddressSubtitle$2 = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
|
|
4578
|
-
var labels$
|
|
4507
|
+
var labels$H = {
|
|
4579
4508
|
address: "Adresse",
|
|
4580
4509
|
code: "Code postal / Zip",
|
|
4581
4510
|
city: "Ville",
|
|
@@ -4591,7 +4520,7 @@ var buttons$d = {
|
|
|
4591
4520
|
selectAddress: "Choisir cette adresse",
|
|
4592
4521
|
addAddress: "Ajouter une nouvelle adresse"
|
|
4593
4522
|
};
|
|
4594
|
-
var messages$
|
|
4523
|
+
var messages$J = {
|
|
4595
4524
|
addressUpdated: "Votre adresse a été mise à jour avec succès",
|
|
4596
4525
|
subRedeemed: "Votre abonnement a bien été activé."
|
|
4597
4526
|
};
|
|
@@ -4600,9 +4529,9 @@ var address_fr = {
|
|
|
4600
4529
|
titleGifting: titleGifting$2,
|
|
4601
4530
|
selectAddressTitle: selectAddressTitle$2,
|
|
4602
4531
|
selectAddressSubtitle: selectAddressSubtitle$2,
|
|
4603
|
-
labels: labels$
|
|
4532
|
+
labels: labels$H,
|
|
4604
4533
|
buttons: buttons$d,
|
|
4605
|
-
messages: messages$
|
|
4534
|
+
messages: messages$J
|
|
4606
4535
|
};
|
|
4607
4536
|
|
|
4608
4537
|
var title$n = "Réinitialiser votre mot de passe";
|
|
@@ -4630,7 +4559,7 @@ var password$4 = "Mot de passe";
|
|
|
4630
4559
|
var submit$a = "Soumettre";
|
|
4631
4560
|
var required$a = "Champs obligatoires";
|
|
4632
4561
|
var passwordResetEmailSent$2 = "Un lien pour réinitialiser votre mot de passe vous a été envoyé. Si vous ne le recevez pas, vérifier votre courrier indésirable.";
|
|
4633
|
-
var messages$
|
|
4562
|
+
var messages$I = {
|
|
4634
4563
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4635
4564
|
loginHere: "Connectez-vous ici"
|
|
4636
4565
|
};
|
|
@@ -4641,7 +4570,7 @@ var passwordForgot_fr = {
|
|
|
4641
4570
|
submit: submit$a,
|
|
4642
4571
|
required: required$a,
|
|
4643
4572
|
passwordResetEmailSent: passwordResetEmailSent$2,
|
|
4644
|
-
messages: messages$
|
|
4573
|
+
messages: messages$I
|
|
4645
4574
|
};
|
|
4646
4575
|
|
|
4647
4576
|
var title$l = "Changez votre mot de passe";
|
|
@@ -4669,7 +4598,7 @@ var title$k = "Connexion sans mot de passe";
|
|
|
4669
4598
|
var email$6 = "Entrez votre adresse courriel";
|
|
4670
4599
|
var submit$8 = "Soumettre";
|
|
4671
4600
|
var required$8 = "Champs obligatoires";
|
|
4672
|
-
var messages$
|
|
4601
|
+
var messages$H = {
|
|
4673
4602
|
PasswordlessLoginSuccess: "Vous avez été authentifié avec succès avec la connexion sans mot de passe"
|
|
4674
4603
|
};
|
|
4675
4604
|
var passwordlessRequest_fr = {
|
|
@@ -4677,7 +4606,7 @@ var passwordlessRequest_fr = {
|
|
|
4677
4606
|
email: email$6,
|
|
4678
4607
|
submit: submit$8,
|
|
4679
4608
|
required: required$8,
|
|
4680
|
-
messages: messages$
|
|
4609
|
+
messages: messages$H
|
|
4681
4610
|
};
|
|
4682
4611
|
|
|
4683
4612
|
var title$j = "Votre panier";
|
|
@@ -4711,7 +4640,7 @@ var buttons$c = {
|
|
|
4711
4640
|
purchase: "Acheter",
|
|
4712
4641
|
"continue": "Continuer au contenu"
|
|
4713
4642
|
};
|
|
4714
|
-
var messages$
|
|
4643
|
+
var messages$G = {
|
|
4715
4644
|
orderConfirmed: {
|
|
4716
4645
|
title: "Votre commande est confirmée !",
|
|
4717
4646
|
body: "Votre commande a été confirmée et vous sera expédiée dans les prochains jours. Vous recevrez un courriel de confirmation sous peu."
|
|
@@ -4720,17 +4649,17 @@ var messages$E = {
|
|
|
4720
4649
|
multipleCurrencies: "Votre panier contient des articles disponibles dans différentes devises. Avant de passer à la caisse, veuillez vous assurer que tous les articles ont la même devise.",
|
|
4721
4650
|
currencyMismatch: "Les articles sélectionnés ne sont pas compatibles avec la devise associée à votre compte ({{currency}}). Veuillez choisir des articles uniquement offerts dans cette devise."
|
|
4722
4651
|
};
|
|
4723
|
-
var labels$
|
|
4652
|
+
var labels$G = {
|
|
4724
4653
|
summary: "récapitulatif de commande",
|
|
4725
4654
|
total: "total"
|
|
4726
4655
|
};
|
|
4727
4656
|
var shop_fr = {
|
|
4728
4657
|
buttons: buttons$c,
|
|
4729
|
-
messages: messages$
|
|
4730
|
-
labels: labels$
|
|
4658
|
+
messages: messages$G,
|
|
4659
|
+
labels: labels$G
|
|
4731
4660
|
};
|
|
4732
4661
|
|
|
4733
|
-
var labels$
|
|
4662
|
+
var labels$F = {
|
|
4734
4663
|
cardNumber: "Numéro de carte",
|
|
4735
4664
|
securityCode: "Code de sécurité",
|
|
4736
4665
|
submit: "Soumettre",
|
|
@@ -4752,7 +4681,7 @@ var labels$A = {
|
|
|
4752
4681
|
title: "Informations de paiement"
|
|
4753
4682
|
}
|
|
4754
4683
|
};
|
|
4755
|
-
var messages$
|
|
4684
|
+
var messages$F = {
|
|
4756
4685
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
4757
4686
|
cancel: "Annuler votre abonnement en ligne à tout moment.",
|
|
4758
4687
|
giftSent: "Le cadeau d’abonnement a été envoyé à",
|
|
@@ -4766,12 +4695,12 @@ var errors$a = {
|
|
|
4766
4695
|
"": ""
|
|
4767
4696
|
};
|
|
4768
4697
|
var payment_fr = {
|
|
4769
|
-
labels: labels$
|
|
4770
|
-
messages: messages$
|
|
4698
|
+
labels: labels$F,
|
|
4699
|
+
messages: messages$F,
|
|
4771
4700
|
errors: errors$a
|
|
4772
4701
|
};
|
|
4773
4702
|
|
|
4774
|
-
var labels$
|
|
4703
|
+
var labels$E = {
|
|
4775
4704
|
menu: "Menu Pelcro",
|
|
4776
4705
|
name: "Nom",
|
|
4777
4706
|
email: "Courriel",
|
|
@@ -4859,7 +4788,7 @@ var labels$z = {
|
|
|
4859
4788
|
goBack: "Retourner"
|
|
4860
4789
|
}
|
|
4861
4790
|
};
|
|
4862
|
-
var messages$
|
|
4791
|
+
var messages$E = {
|
|
4863
4792
|
noCard: "Vous n’avez pas une carte",
|
|
4864
4793
|
subCancellation: {
|
|
4865
4794
|
isSureToCancel: "Êtes-vous certain de vouloir annuler votre abonnement?",
|
|
@@ -4879,16 +4808,16 @@ var messages$C = {
|
|
|
4879
4808
|
}
|
|
4880
4809
|
};
|
|
4881
4810
|
var dashboard_fr = {
|
|
4882
|
-
labels: labels$
|
|
4883
|
-
messages: messages$
|
|
4811
|
+
labels: labels$E,
|
|
4812
|
+
messages: messages$E
|
|
4884
4813
|
};
|
|
4885
4814
|
|
|
4886
|
-
var messages$
|
|
4815
|
+
var messages$D = {
|
|
4887
4816
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4888
4817
|
loginHere: "Connectez-vous ici",
|
|
4889
4818
|
checkbox: "Cochez cette case pour offrir cet abonnement"
|
|
4890
4819
|
};
|
|
4891
|
-
var labels$
|
|
4820
|
+
var labels$D = {
|
|
4892
4821
|
plan: {
|
|
4893
4822
|
title: "Abonnez-vous à un plan",
|
|
4894
4823
|
subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
|
|
@@ -4911,8 +4840,8 @@ var buttons$b = {
|
|
|
4911
4840
|
back: "Retour"
|
|
4912
4841
|
};
|
|
4913
4842
|
var select_fr = {
|
|
4914
|
-
messages: messages$
|
|
4915
|
-
labels: labels$
|
|
4843
|
+
messages: messages$D,
|
|
4844
|
+
labels: labels$D,
|
|
4916
4845
|
buttons: buttons$b
|
|
4917
4846
|
};
|
|
4918
4847
|
|
|
@@ -4926,22 +4855,22 @@ var notification_fr = {
|
|
|
4926
4855
|
confirm: confirm$6
|
|
4927
4856
|
};
|
|
4928
4857
|
|
|
4929
|
-
var labels$
|
|
4858
|
+
var labels$C = {
|
|
4930
4859
|
title: "Confirmez votre courriel",
|
|
4931
4860
|
instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
|
|
4932
4861
|
resend: "Renvoyer le courriel"
|
|
4933
4862
|
};
|
|
4934
|
-
var messages$
|
|
4863
|
+
var messages$C = {
|
|
4935
4864
|
resent: "Renvoyé avec succès",
|
|
4936
4865
|
success: "Adresse courriel vérifiée avec succès"
|
|
4937
4866
|
};
|
|
4938
4867
|
var verifyEmail_fr = {
|
|
4939
|
-
labels: labels$
|
|
4940
|
-
messages: messages$
|
|
4868
|
+
labels: labels$C,
|
|
4869
|
+
messages: messages$C
|
|
4941
4870
|
};
|
|
4942
4871
|
|
|
4943
4872
|
var title$i = "Détails de la facture";
|
|
4944
|
-
var labels$
|
|
4873
|
+
var labels$B = {
|
|
4945
4874
|
summary: "Résumé",
|
|
4946
4875
|
total: "Total",
|
|
4947
4876
|
amountPaid: "Montant payé",
|
|
@@ -4954,18 +4883,61 @@ var buttons$a = {
|
|
|
4954
4883
|
};
|
|
4955
4884
|
var invoiceDetails_fr = {
|
|
4956
4885
|
title: title$i,
|
|
4957
|
-
labels: labels$
|
|
4886
|
+
labels: labels$B,
|
|
4958
4887
|
buttons: buttons$a
|
|
4959
4888
|
};
|
|
4960
4889
|
|
|
4961
|
-
var labels$
|
|
4890
|
+
var labels$A = {
|
|
4891
|
+
title: "Annuler l'abonnement",
|
|
4892
|
+
cancelReason: "Motif d'annulation",
|
|
4893
|
+
endOn: "Fin sur",
|
|
4894
|
+
endImmediately: "Fin immédiate",
|
|
4895
|
+
cancel: "Annuler",
|
|
4896
|
+
subCancellation: {
|
|
4897
|
+
goBack: "Retourner"
|
|
4898
|
+
}
|
|
4899
|
+
};
|
|
4900
|
+
var messages$B = {
|
|
4901
|
+
subscriptionEnd: "Cet abonnement doit expirer le",
|
|
4902
|
+
cancelWhen: "Quand voulez-vous annuler?",
|
|
4903
|
+
cancelNow: "Cancel Subscription Now",
|
|
4904
|
+
cancelLater: "Annuler l'abonnement maintenant",
|
|
4905
|
+
subCancellation: {
|
|
4906
|
+
isSureToCancelNow: "Êtes-vous sûr de vouloir résilier votre abonnement immédiatement?",
|
|
4907
|
+
isSureToCancel: "Êtes-vous sûr de vouloir résilier votre abonnement?",
|
|
4908
|
+
loading: "Annulation de votre abonnement",
|
|
4909
|
+
success: "L'abonnement a été annulé avec succès",
|
|
4910
|
+
error: "Erreur lors de l'annulation de votre abonnement"
|
|
4911
|
+
}
|
|
4912
|
+
};
|
|
4913
|
+
var subscriptionCancel_fr = {
|
|
4914
|
+
labels: labels$A,
|
|
4915
|
+
messages: messages$B
|
|
4916
|
+
};
|
|
4917
|
+
|
|
4918
|
+
var labels$z = {
|
|
4919
|
+
inviteMembers: "Inviter des membres",
|
|
4920
|
+
listOfMembers: "Liste des membres",
|
|
4921
|
+
invite: "Inviter",
|
|
4922
|
+
remove: "Retirer",
|
|
4923
|
+
emails: "Saisir les e-mails",
|
|
4924
|
+
status: "Statut",
|
|
4925
|
+
actions: "Actions",
|
|
4926
|
+
email: "E-mail",
|
|
4927
|
+
listNote: "Liste séparée par des virgules, par ex."
|
|
4928
|
+
};
|
|
4929
|
+
var subscriptionManageMembers_fr = {
|
|
4930
|
+
labels: labels$z
|
|
4931
|
+
};
|
|
4932
|
+
|
|
4933
|
+
var labels$y = {
|
|
4962
4934
|
title: "Suspendre l'abonnement",
|
|
4963
4935
|
suspensionDate: "Date de suspension",
|
|
4964
4936
|
subCancellation: {
|
|
4965
4937
|
goBack: "Revenir en arrière"
|
|
4966
4938
|
}
|
|
4967
4939
|
};
|
|
4968
|
-
var messages$
|
|
4940
|
+
var messages$A = {
|
|
4969
4941
|
suspensionEnd: "La suspension doit expirer le",
|
|
4970
4942
|
suspendNow: "Suspendre l'abonnement maintenant",
|
|
4971
4943
|
suspendLater: "Suspendre à la fin de la période",
|
|
@@ -4978,8 +4950,8 @@ var messages$z = {
|
|
|
4978
4950
|
}
|
|
4979
4951
|
};
|
|
4980
4952
|
var subscriptionSuspend_fr = {
|
|
4981
|
-
labels: labels$
|
|
4982
|
-
messages: messages$
|
|
4953
|
+
labels: labels$y,
|
|
4954
|
+
messages: messages$A
|
|
4983
4955
|
};
|
|
4984
4956
|
|
|
4985
4957
|
var validation$1 = {
|
|
@@ -5102,7 +5074,7 @@ var paymentMethod_ko = {
|
|
|
5102
5074
|
var title$h = "Frieze 뉴스레터를 구독하려면 이메일을 입력하세요.";
|
|
5103
5075
|
var updateTitle$1 = "뉴스레터 선택 업데이트";
|
|
5104
5076
|
var subtitle$7 = "귀하의 이메일은 다른 마케팅 용도로도 사용됩니다.";
|
|
5105
|
-
var labels$
|
|
5077
|
+
var labels$x = {
|
|
5106
5078
|
submit: "제출",
|
|
5107
5079
|
firstName: "이름",
|
|
5108
5080
|
lastName: "성",
|
|
@@ -5110,7 +5082,7 @@ var labels$u = {
|
|
|
5110
5082
|
postalCode: "우편번호",
|
|
5111
5083
|
required: "필수 항목"
|
|
5112
5084
|
};
|
|
5113
|
-
var messages$
|
|
5085
|
+
var messages$z = {
|
|
5114
5086
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5115
5087
|
success: "뉴스레터가 성공적으로 업데이트되었습니다.",
|
|
5116
5088
|
loginHere: "여기에서 로그인하세요.",
|
|
@@ -5121,14 +5093,14 @@ var newsletter_ko = {
|
|
|
5121
5093
|
title: title$h,
|
|
5122
5094
|
updateTitle: updateTitle$1,
|
|
5123
5095
|
subtitle: subtitle$7,
|
|
5124
|
-
labels: labels$
|
|
5125
|
-
messages: messages$
|
|
5096
|
+
labels: labels$x,
|
|
5097
|
+
messages: messages$z
|
|
5126
5098
|
};
|
|
5127
5099
|
|
|
5128
|
-
var labels$
|
|
5100
|
+
var labels$w = {
|
|
5129
5101
|
"continue": "콘텐츠로 돌아가기"
|
|
5130
5102
|
};
|
|
5131
|
-
var messages$
|
|
5103
|
+
var messages$y = {
|
|
5132
5104
|
yourFreeTrial: "유료 멤버십에 가입하셨습니다!",
|
|
5133
5105
|
youHaveAccess: "멤버십 혜택을 즐기시기를 바라며, 질문이나 문의 사항이 있으면 저희에게 연락주십시오.",
|
|
5134
5106
|
clickToLearn: {
|
|
@@ -5154,12 +5126,12 @@ var errors$9 = {
|
|
|
5154
5126
|
"": ""
|
|
5155
5127
|
};
|
|
5156
5128
|
var success_ko = {
|
|
5157
|
-
labels: labels$
|
|
5158
|
-
messages: messages$
|
|
5129
|
+
labels: labels$w,
|
|
5130
|
+
messages: messages$y,
|
|
5159
5131
|
errors: errors$9
|
|
5160
5132
|
};
|
|
5161
5133
|
|
|
5162
|
-
var messages$
|
|
5134
|
+
var messages$x = {
|
|
5163
5135
|
freeVisits: "남은 무료 방문 기간:",
|
|
5164
5136
|
subscribeNow: "멤버십 가입",
|
|
5165
5137
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
@@ -5169,16 +5141,16 @@ var errors$8 = {
|
|
|
5169
5141
|
"": ""
|
|
5170
5142
|
};
|
|
5171
5143
|
var meter_ko = {
|
|
5172
|
-
messages: messages$
|
|
5144
|
+
messages: messages$x,
|
|
5173
5145
|
errors: errors$8
|
|
5174
5146
|
};
|
|
5175
5147
|
|
|
5176
|
-
var messages$
|
|
5148
|
+
var messages$w = {
|
|
5177
5149
|
youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
|
|
5178
5150
|
bankRedirection: "잠시만 기다려 주십시오. 결제 은행으로 연결 중입니다.",
|
|
5179
5151
|
bankAuthenticationSuccess: "요청을 처리하는 동안 기다려 주십시오."
|
|
5180
5152
|
};
|
|
5181
|
-
var labels$
|
|
5153
|
+
var labels$v = {
|
|
5182
5154
|
card: "카드 번호 입력",
|
|
5183
5155
|
date: "만료일",
|
|
5184
5156
|
CVC: "CVC",
|
|
@@ -5201,8 +5173,8 @@ var labels$s = {
|
|
|
5201
5173
|
freeItems: "무료 아이템"
|
|
5202
5174
|
};
|
|
5203
5175
|
var checkoutForm_ko = {
|
|
5204
|
-
messages: messages$
|
|
5205
|
-
labels: labels$
|
|
5176
|
+
messages: messages$w,
|
|
5177
|
+
labels: labels$v
|
|
5206
5178
|
};
|
|
5207
5179
|
|
|
5208
5180
|
var youAreSafe$1 = "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ";
|
|
@@ -5226,7 +5198,7 @@ var messages_ko = {
|
|
|
5226
5198
|
zeroTotalInvoice: zeroTotalInvoice$1
|
|
5227
5199
|
};
|
|
5228
5200
|
|
|
5229
|
-
var labels$
|
|
5201
|
+
var labels$u = {
|
|
5230
5202
|
email: "이메일 입력",
|
|
5231
5203
|
username: "사용자 이름 입력",
|
|
5232
5204
|
password: "비밀번호 입력",
|
|
@@ -5235,7 +5207,7 @@ var labels$r = {
|
|
|
5235
5207
|
passwordPlaceholder: "비밀번호",
|
|
5236
5208
|
login: "로그인"
|
|
5237
5209
|
};
|
|
5238
|
-
var messages$
|
|
5210
|
+
var messages$v = {
|
|
5239
5211
|
loginTo: "귀하의 계정에 로그인",
|
|
5240
5212
|
welcome: "반갑습니다. 귀하의 기존 계정으로 로그인하세요.",
|
|
5241
5213
|
dontHaveAccount: "아직 계정이 없으신가요?",
|
|
@@ -5254,28 +5226,28 @@ var errors$7 = {
|
|
|
5254
5226
|
"": ""
|
|
5255
5227
|
};
|
|
5256
5228
|
var login_ko = {
|
|
5257
|
-
labels: labels$
|
|
5258
|
-
messages: messages$
|
|
5229
|
+
labels: labels$u,
|
|
5230
|
+
messages: messages$v,
|
|
5259
5231
|
errors: errors$7
|
|
5260
5232
|
};
|
|
5261
5233
|
|
|
5262
|
-
var labels$
|
|
5234
|
+
var labels$t = {
|
|
5263
5235
|
title: "비밀번호 없는 링크 확인",
|
|
5264
5236
|
instructions: "가는 중입니다!\n이메일 주소를 확인하겠습니다.\n이메일로 전송된 확인 링크를 클릭하세요.",
|
|
5265
5237
|
resend: "이메일 재전송"
|
|
5266
5238
|
};
|
|
5267
|
-
var messages$
|
|
5239
|
+
var messages$u = {
|
|
5268
5240
|
resent: "성공적으로 재전송",
|
|
5269
5241
|
success: "성공적으로 로그인했습니다"
|
|
5270
5242
|
};
|
|
5271
5243
|
var verifyLinkToken_ko = {
|
|
5272
|
-
labels: labels$
|
|
5273
|
-
messages: messages$
|
|
5244
|
+
labels: labels$t,
|
|
5245
|
+
messages: messages$u
|
|
5274
5246
|
};
|
|
5275
5247
|
|
|
5276
5248
|
var title$g = "계정 만들기";
|
|
5277
5249
|
var subtitle$6 = "아래에 이메일과 비밀번호를 입력하세요.";
|
|
5278
|
-
var labels$
|
|
5250
|
+
var labels$s = {
|
|
5279
5251
|
signUpFacebook: "Facebook으로 가입하기",
|
|
5280
5252
|
signUpGoogle: "Google로 가입하기",
|
|
5281
5253
|
signUpEmail: "이메일로 가입하기",
|
|
@@ -5288,7 +5260,7 @@ var labels$p = {
|
|
|
5288
5260
|
lastName: "성",
|
|
5289
5261
|
phone: "핸드폰"
|
|
5290
5262
|
};
|
|
5291
|
-
var messages$
|
|
5263
|
+
var messages$t = {
|
|
5292
5264
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5293
5265
|
createAccount: "계정 만들기",
|
|
5294
5266
|
loginHere: "여기에서 로그인하세요.",
|
|
@@ -5362,14 +5334,14 @@ var redeem$1 = {
|
|
|
5362
5334
|
var register_ko = {
|
|
5363
5335
|
title: title$g,
|
|
5364
5336
|
subtitle: subtitle$6,
|
|
5365
|
-
labels: labels$
|
|
5366
|
-
messages: messages$
|
|
5337
|
+
labels: labels$s,
|
|
5338
|
+
messages: messages$t,
|
|
5367
5339
|
errors: errors$6,
|
|
5368
5340
|
gift: gift$1,
|
|
5369
5341
|
redeem: redeem$1
|
|
5370
5342
|
};
|
|
5371
5343
|
|
|
5372
|
-
var labels$
|
|
5344
|
+
var labels$r = {
|
|
5373
5345
|
title: "프로파일을 업데이트하시겠습니까?",
|
|
5374
5346
|
subtitle: "프로필을 업데이트하려면 아래 정보를 입력하세요.",
|
|
5375
5347
|
email: "이메일",
|
|
@@ -5388,21 +5360,21 @@ var labels$o = {
|
|
|
5388
5360
|
zoom: "확대",
|
|
5389
5361
|
tin: "세금 식별 번호"
|
|
5390
5362
|
};
|
|
5391
|
-
var messages$
|
|
5363
|
+
var messages$s = {
|
|
5392
5364
|
userUpdated: "감사합니다! 프로필이 성공적으로 업데이트되었습니다.",
|
|
5393
5365
|
pictureRemoved: "귀하의 프로필 사진이 제거되었습니다.",
|
|
5394
5366
|
pictureUpdated: "귀하의 프로필 사진이 업데이트되었습니다."
|
|
5395
5367
|
};
|
|
5396
5368
|
var userEdit_ko = {
|
|
5397
|
-
labels: labels$
|
|
5398
|
-
messages: messages$
|
|
5369
|
+
labels: labels$r,
|
|
5370
|
+
messages: messages$s
|
|
5399
5371
|
};
|
|
5400
5372
|
|
|
5401
5373
|
var title$f = "배송 주소를 입력하십시오.";
|
|
5402
5374
|
var titleGifting$1 = "주소를 입력하세요";
|
|
5403
5375
|
var selectAddressTitle$1 = "주소를 선택하십시오.";
|
|
5404
5376
|
var selectAddressSubtitle$1 = "저장된 주소에서 선택하거나 새 주소를 추가하십시오.";
|
|
5405
|
-
var labels$
|
|
5377
|
+
var labels$q = {
|
|
5406
5378
|
address: "주소",
|
|
5407
5379
|
code: "우편번호",
|
|
5408
5380
|
city: "도시",
|
|
@@ -5418,7 +5390,7 @@ var buttons$8 = {
|
|
|
5418
5390
|
selectAddress: "주소 선택",
|
|
5419
5391
|
addAddress: "새 주소 추가"
|
|
5420
5392
|
};
|
|
5421
|
-
var messages$
|
|
5393
|
+
var messages$r = {
|
|
5422
5394
|
addressUpdated: "주소가 성공적으로 업데이트되었습니다!",
|
|
5423
5395
|
subRedeemed: "귀하의 유료 멤버십이 사용되었습니다."
|
|
5424
5396
|
};
|
|
@@ -5427,9 +5399,9 @@ var address_ko = {
|
|
|
5427
5399
|
titleGifting: titleGifting$1,
|
|
5428
5400
|
selectAddressTitle: selectAddressTitle$1,
|
|
5429
5401
|
selectAddressSubtitle: selectAddressSubtitle$1,
|
|
5430
|
-
labels: labels$
|
|
5402
|
+
labels: labels$q,
|
|
5431
5403
|
buttons: buttons$8,
|
|
5432
|
-
messages: messages$
|
|
5404
|
+
messages: messages$r
|
|
5433
5405
|
};
|
|
5434
5406
|
|
|
5435
5407
|
var title$e = "비밀번호 재설정";
|
|
@@ -5457,7 +5429,7 @@ var password$2 = "비밀번호";
|
|
|
5457
5429
|
var submit$6 = "제출";
|
|
5458
5430
|
var required$6 = "필수 항목";
|
|
5459
5431
|
var passwordResetEmailSent$1 = "비밀번호 재설정 안내가 귀하의 이메일로 발송되었습니다.";
|
|
5460
|
-
var messages$
|
|
5432
|
+
var messages$q = {
|
|
5461
5433
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5462
5434
|
loginHere: "여기에서 로그인하세요."
|
|
5463
5435
|
};
|
|
@@ -5468,7 +5440,7 @@ var passwordForgot_ko = {
|
|
|
5468
5440
|
submit: submit$6,
|
|
5469
5441
|
required: required$6,
|
|
5470
5442
|
passwordResetEmailSent: passwordResetEmailSent$1,
|
|
5471
|
-
messages: messages$
|
|
5443
|
+
messages: messages$q
|
|
5472
5444
|
};
|
|
5473
5445
|
|
|
5474
5446
|
var title$c = "비밀번호를 변경합니다.";
|
|
@@ -5496,7 +5468,7 @@ var title$b = "비밀번호 없는 로그인";
|
|
|
5496
5468
|
var email$3 = "이메일 입력";
|
|
5497
5469
|
var submit$4 = "제출";
|
|
5498
5470
|
var required$4 = "필수 항목";
|
|
5499
|
-
var messages$
|
|
5471
|
+
var messages$p = {
|
|
5500
5472
|
PasswordlessLoginSuccess: "비밀번호 없는 로그인으로 성공적으로 인증되었습니다."
|
|
5501
5473
|
};
|
|
5502
5474
|
var passwordlessRequest_ko = {
|
|
@@ -5504,7 +5476,7 @@ var passwordlessRequest_ko = {
|
|
|
5504
5476
|
email: email$3,
|
|
5505
5477
|
submit: submit$4,
|
|
5506
5478
|
required: required$4,
|
|
5507
|
-
messages: messages$
|
|
5479
|
+
messages: messages$p
|
|
5508
5480
|
};
|
|
5509
5481
|
|
|
5510
5482
|
var title$a = "귀하의 장바구니";
|
|
@@ -5538,7 +5510,7 @@ var buttons$7 = {
|
|
|
5538
5510
|
purchase: "구매",
|
|
5539
5511
|
"continue": "계속"
|
|
5540
5512
|
};
|
|
5541
|
-
var messages$
|
|
5513
|
+
var messages$o = {
|
|
5542
5514
|
orderConfirmed: {
|
|
5543
5515
|
title: "주문이 확인되었습니다!",
|
|
5544
5516
|
body: "귀하의 주문이 확인되었으며 며칠 안에 배송될 예정입니다. 이 주문의 확인 이메일이 귀하에게 전송됩니다."
|
|
@@ -5547,17 +5519,17 @@ var messages$n = {
|
|
|
5547
5519
|
multipleCurrencies: "장바구니에 다른 통화로만 결제가 가능한 아이템이 있습니다. 결제를 계속 진행하려면 모든 아이템의 결제 통화가 동일한지 확인하십시오.",
|
|
5548
5520
|
currencyMismatch: "선택하신 아이템(들)이 귀하가 설정한 기본 통화({{currency}})와 일치하지 않습니다. 기본 통화와 일치하는 아이템(들)만 선택하십시오."
|
|
5549
5521
|
};
|
|
5550
|
-
var labels$
|
|
5522
|
+
var labels$p = {
|
|
5551
5523
|
summary: "주문 요약",
|
|
5552
5524
|
total: "총계"
|
|
5553
5525
|
};
|
|
5554
5526
|
var shop_ko = {
|
|
5555
5527
|
buttons: buttons$7,
|
|
5556
|
-
messages: messages$
|
|
5557
|
-
labels: labels$
|
|
5528
|
+
messages: messages$o,
|
|
5529
|
+
labels: labels$p
|
|
5558
5530
|
};
|
|
5559
5531
|
|
|
5560
|
-
var labels$
|
|
5532
|
+
var labels$o = {
|
|
5561
5533
|
cardNumber: "카드 번호",
|
|
5562
5534
|
securityCode: "보안 코드",
|
|
5563
5535
|
submit: "제출",
|
|
@@ -5579,7 +5551,7 @@ var labels$l = {
|
|
|
5579
5551
|
title: "결제 정보"
|
|
5580
5552
|
}
|
|
5581
5553
|
};
|
|
5582
|
-
var messages$
|
|
5554
|
+
var messages$n = {
|
|
5583
5555
|
youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
|
|
5584
5556
|
cancel: "유료 멤버십은 언제든 온라인으로 취소가 가능합니다.",
|
|
5585
5557
|
giftSent: "유료 멤버십 선물이 ",
|
|
@@ -5593,12 +5565,12 @@ var errors$5 = {
|
|
|
5593
5565
|
"": ""
|
|
5594
5566
|
};
|
|
5595
5567
|
var payment_ko = {
|
|
5596
|
-
labels: labels$
|
|
5597
|
-
messages: messages$
|
|
5568
|
+
labels: labels$o,
|
|
5569
|
+
messages: messages$n,
|
|
5598
5570
|
errors: errors$5
|
|
5599
5571
|
};
|
|
5600
5572
|
|
|
5601
|
-
var labels$
|
|
5573
|
+
var labels$n = {
|
|
5602
5574
|
menu: "Pelcro 메뉴",
|
|
5603
5575
|
name: "이름",
|
|
5604
5576
|
email: "이메일",
|
|
@@ -5746,7 +5718,7 @@ var savedItems = {
|
|
|
5746
5718
|
var subCancellation = {
|
|
5747
5719
|
goBack: "뒤로 가기"
|
|
5748
5720
|
};
|
|
5749
|
-
var messages$
|
|
5721
|
+
var messages$m = {
|
|
5750
5722
|
noCard: "등록된 카드가 없습니다.",
|
|
5751
5723
|
subCancellation: {
|
|
5752
5724
|
isSureToCancel: "정말로 유료 멤버십을 취소하시겠습니까?",
|
|
@@ -5766,7 +5738,7 @@ var messages$l = {
|
|
|
5766
5738
|
}
|
|
5767
5739
|
};
|
|
5768
5740
|
var dashboard_ko = {
|
|
5769
|
-
labels: labels$
|
|
5741
|
+
labels: labels$n,
|
|
5770
5742
|
shipments: shipments,
|
|
5771
5743
|
logout: logout,
|
|
5772
5744
|
dashboard: dashboard$1,
|
|
@@ -5815,15 +5787,15 @@ var dashboard_ko = {
|
|
|
5815
5787
|
orders: orders,
|
|
5816
5788
|
savedItems: savedItems,
|
|
5817
5789
|
subCancellation: subCancellation,
|
|
5818
|
-
messages: messages$
|
|
5790
|
+
messages: messages$m
|
|
5819
5791
|
};
|
|
5820
5792
|
|
|
5821
|
-
var messages$
|
|
5793
|
+
var messages$l = {
|
|
5822
5794
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5823
5795
|
loginHere: "여기에서 로그인하세요.",
|
|
5824
5796
|
checkbox: "이 유료 멤버십을 선물하려면 체크하세요."
|
|
5825
5797
|
};
|
|
5826
|
-
var labels$
|
|
5798
|
+
var labels$m = {
|
|
5827
5799
|
plan: {
|
|
5828
5800
|
title: "요금제 가입하기",
|
|
5829
5801
|
subtitle: "아래 요금제 중 하나를 선택하고 다음을 클릭하세요."
|
|
@@ -5846,8 +5818,8 @@ var buttons$6 = {
|
|
|
5846
5818
|
back: "뒤로"
|
|
5847
5819
|
};
|
|
5848
5820
|
var select_ko = {
|
|
5849
|
-
messages: messages$
|
|
5850
|
-
labels: labels$
|
|
5821
|
+
messages: messages$l,
|
|
5822
|
+
labels: labels$m,
|
|
5851
5823
|
buttons: buttons$6
|
|
5852
5824
|
};
|
|
5853
5825
|
|
|
@@ -5861,22 +5833,22 @@ var notification_ko = {
|
|
|
5861
5833
|
confirm: confirm$3
|
|
5862
5834
|
};
|
|
5863
5835
|
|
|
5864
|
-
var labels$
|
|
5836
|
+
var labels$l = {
|
|
5865
5837
|
title: "이메일 주소를 인증하세요.",
|
|
5866
5838
|
instructions: "거의 완료되었습니다!\n이메일 주소만 인증하면 됩니다.\n다음 이메일 주소로 전송된 인증 링크를 클릭해 주십시오:",
|
|
5867
5839
|
resend: "이메일 재전송"
|
|
5868
5840
|
};
|
|
5869
|
-
var messages$
|
|
5841
|
+
var messages$k = {
|
|
5870
5842
|
resent: "재전송 완료",
|
|
5871
5843
|
success: "이메일 주소가 인증되었습니다!"
|
|
5872
5844
|
};
|
|
5873
5845
|
var verifyEmail_ko = {
|
|
5874
|
-
labels: labels$
|
|
5875
|
-
messages: messages$
|
|
5846
|
+
labels: labels$l,
|
|
5847
|
+
messages: messages$k
|
|
5876
5848
|
};
|
|
5877
5849
|
|
|
5878
5850
|
var title$9 = "인보이스 세부 정보";
|
|
5879
|
-
var labels$
|
|
5851
|
+
var labels$k = {
|
|
5880
5852
|
summary: "요약",
|
|
5881
5853
|
total: "총계",
|
|
5882
5854
|
amountPaid: "지불된 금액",
|
|
@@ -5889,11 +5861,54 @@ var buttons$5 = {
|
|
|
5889
5861
|
};
|
|
5890
5862
|
var invoiceDetails_ko = {
|
|
5891
5863
|
title: title$9,
|
|
5892
|
-
labels: labels$
|
|
5864
|
+
labels: labels$k,
|
|
5893
5865
|
buttons: buttons$5
|
|
5894
5866
|
};
|
|
5895
5867
|
|
|
5896
|
-
var labels$
|
|
5868
|
+
var labels$j = {
|
|
5869
|
+
title: "구독 취소",
|
|
5870
|
+
cancelReason: "취소 사유",
|
|
5871
|
+
endOn: "종료",
|
|
5872
|
+
endImmediately: "즉시 종료",
|
|
5873
|
+
cancel: "취소",
|
|
5874
|
+
subCancellation: {
|
|
5875
|
+
goBack: "돌아가기"
|
|
5876
|
+
}
|
|
5877
|
+
};
|
|
5878
|
+
var messages$j = {
|
|
5879
|
+
subscriptionEnd: "이 구독은 다음 날짜에 만료되도록 설정되었습니다.",
|
|
5880
|
+
cancelWhen: "언제 취소하시겠습니까?",
|
|
5881
|
+
cancelNow: "지금 구독 취소",
|
|
5882
|
+
cancelLater: "기간 종료 시 취소",
|
|
5883
|
+
subCancellation: {
|
|
5884
|
+
isSureToCancelNow: "구독을 즉시 취소하시겠습니까?",
|
|
5885
|
+
isSureToCancel: "구독을 취소하시겠습니까?",
|
|
5886
|
+
loading: "구독 취소",
|
|
5887
|
+
success: "구독이 성공적으로 취소되었습니다.",
|
|
5888
|
+
error: "구독 취소 중 오류 발생"
|
|
5889
|
+
}
|
|
5890
|
+
};
|
|
5891
|
+
var subscriptionCancel_ko = {
|
|
5892
|
+
labels: labels$j,
|
|
5893
|
+
messages: messages$j
|
|
5894
|
+
};
|
|
5895
|
+
|
|
5896
|
+
var labels$i = {
|
|
5897
|
+
inviteMembers: "회원 초대",
|
|
5898
|
+
listOfMembers: "구성원 목록",
|
|
5899
|
+
invite: "초대",
|
|
5900
|
+
remove: "제거하다",
|
|
5901
|
+
emails: "이메일 입력",
|
|
5902
|
+
status: "상태",
|
|
5903
|
+
actions: "행위",
|
|
5904
|
+
email: "이메일",
|
|
5905
|
+
listNote: "쉼표로 구분된 목록입니다."
|
|
5906
|
+
};
|
|
5907
|
+
var subscriptionManageMembers_ko = {
|
|
5908
|
+
labels: labels$i
|
|
5909
|
+
};
|
|
5910
|
+
|
|
5911
|
+
var labels$h = {
|
|
5897
5912
|
title: "구독 중단",
|
|
5898
5913
|
suspensionDate: "중단 날짜",
|
|
5899
5914
|
subCancellation: {
|
|
@@ -5913,7 +5928,7 @@ var messages$i = {
|
|
|
5913
5928
|
}
|
|
5914
5929
|
};
|
|
5915
5930
|
var subscriptionSuspend_ko = {
|
|
5916
|
-
labels: labels$
|
|
5931
|
+
labels: labels$h,
|
|
5917
5932
|
messages: messages$i
|
|
5918
5933
|
};
|
|
5919
5934
|
|
|
@@ -6034,7 +6049,7 @@ var paymentMethod_es = {
|
|
|
6034
6049
|
var title$8 = "Ingresa tu correo para suscribirte a nuestro boletín";
|
|
6035
6050
|
var updateTitle = "Actualizar selecciones del boletín";
|
|
6036
6051
|
var subtitle$3 = "Podríamos usar tu dirección de correo para otras comunicaciones de marketing";
|
|
6037
|
-
var labels$
|
|
6052
|
+
var labels$g = {
|
|
6038
6053
|
submit: "Enviar",
|
|
6039
6054
|
firstName: "Nombre",
|
|
6040
6055
|
lastName: "Apellido",
|
|
@@ -6053,11 +6068,11 @@ var newsletter_es = {
|
|
|
6053
6068
|
title: title$8,
|
|
6054
6069
|
updateTitle: updateTitle,
|
|
6055
6070
|
subtitle: subtitle$3,
|
|
6056
|
-
labels: labels$
|
|
6071
|
+
labels: labels$g,
|
|
6057
6072
|
messages: messages$h
|
|
6058
6073
|
};
|
|
6059
6074
|
|
|
6060
|
-
var labels$
|
|
6075
|
+
var labels$f = {
|
|
6061
6076
|
"continue": "Continuar al contenido"
|
|
6062
6077
|
};
|
|
6063
6078
|
var messages$g = {
|
|
@@ -6086,7 +6101,7 @@ var errors$4 = {
|
|
|
6086
6101
|
"": ""
|
|
6087
6102
|
};
|
|
6088
6103
|
var success_es = {
|
|
6089
|
-
labels: labels$
|
|
6104
|
+
labels: labels$f,
|
|
6090
6105
|
messages: messages$g,
|
|
6091
6106
|
errors: errors$4
|
|
6092
6107
|
};
|
|
@@ -6110,7 +6125,7 @@ var messages$e = {
|
|
|
6110
6125
|
bankRedirection: "Por favor, espera, estamos redireccionando a tu banco.",
|
|
6111
6126
|
bankAuthenticationSuccess: "Por favor, espera un momento mientras procesamos tu solicitud."
|
|
6112
6127
|
};
|
|
6113
|
-
var labels$
|
|
6128
|
+
var labels$e = {
|
|
6114
6129
|
card: "Ingresar número de tarjeta",
|
|
6115
6130
|
date: "Vencimiento",
|
|
6116
6131
|
CVC: "CVC",
|
|
@@ -6134,7 +6149,7 @@ var labels$d = {
|
|
|
6134
6149
|
};
|
|
6135
6150
|
var checkoutForm_es = {
|
|
6136
6151
|
messages: messages$e,
|
|
6137
|
-
labels: labels$
|
|
6152
|
+
labels: labels$e
|
|
6138
6153
|
};
|
|
6139
6154
|
|
|
6140
6155
|
var youAreSafe = "Estás seguro - PCI compliance 128 SSL por";
|
|
@@ -6156,7 +6171,7 @@ var messages_es = {
|
|
|
6156
6171
|
zeroTotalInvoice: zeroTotalInvoice
|
|
6157
6172
|
};
|
|
6158
6173
|
|
|
6159
|
-
var labels$
|
|
6174
|
+
var labels$d = {
|
|
6160
6175
|
email: "Ingresar correo",
|
|
6161
6176
|
password: "Ingresar contraseña",
|
|
6162
6177
|
required: "obligatorio",
|
|
@@ -6183,12 +6198,12 @@ var errors$2 = {
|
|
|
6183
6198
|
"": ""
|
|
6184
6199
|
};
|
|
6185
6200
|
var login_es = {
|
|
6186
|
-
labels: labels$
|
|
6201
|
+
labels: labels$d,
|
|
6187
6202
|
messages: messages$d,
|
|
6188
6203
|
errors: errors$2
|
|
6189
6204
|
};
|
|
6190
6205
|
|
|
6191
|
-
var labels$
|
|
6206
|
+
var labels$c = {
|
|
6192
6207
|
title: "Verificando Enlace Sin Contraseña",
|
|
6193
6208
|
instructions: "¡Ya casi terminas!\nVamos a confirmar tu dirección de correo.\nPulsa el enlace de verificación que hemos enviado a tu correo:",
|
|
6194
6209
|
resend: "Reenviar correo"
|
|
@@ -6198,13 +6213,13 @@ var messages$c = {
|
|
|
6198
6213
|
success: "Inicio de sesión exitoso"
|
|
6199
6214
|
};
|
|
6200
6215
|
var verifyLinkToken_es = {
|
|
6201
|
-
labels: labels$
|
|
6216
|
+
labels: labels$c,
|
|
6202
6217
|
messages: messages$c
|
|
6203
6218
|
};
|
|
6204
6219
|
|
|
6205
6220
|
var title$7 = "Crear una cuenta";
|
|
6206
6221
|
var subtitle$2 = "Ingresa tu correo y contraseña a continuación";
|
|
6207
|
-
var labels$
|
|
6222
|
+
var labels$b = {
|
|
6208
6223
|
signUpFacebook: "Regístrate con Facebook",
|
|
6209
6224
|
signUpGoogle: "Regístrate con Google",
|
|
6210
6225
|
signUpEmail: "Regístrate con Correo",
|
|
@@ -6291,14 +6306,14 @@ var redeem = {
|
|
|
6291
6306
|
var register_es = {
|
|
6292
6307
|
title: title$7,
|
|
6293
6308
|
subtitle: subtitle$2,
|
|
6294
|
-
labels: labels$
|
|
6309
|
+
labels: labels$b,
|
|
6295
6310
|
messages: messages$b,
|
|
6296
6311
|
errors: errors$1,
|
|
6297
6312
|
gift: gift,
|
|
6298
6313
|
redeem: redeem
|
|
6299
6314
|
};
|
|
6300
6315
|
|
|
6301
|
-
var labels$
|
|
6316
|
+
var labels$a = {
|
|
6302
6317
|
title: "¿Quieres actualizar tu perfil?",
|
|
6303
6318
|
subtitle: "Ingresa tu información a continuación para actualizar tu perfil",
|
|
6304
6319
|
email: "Correo",
|
|
@@ -6323,7 +6338,7 @@ var messages$a = {
|
|
|
6323
6338
|
pictureUpdated: "Tu foto de perfil se actualizó con éxito."
|
|
6324
6339
|
};
|
|
6325
6340
|
var userEdit_es = {
|
|
6326
|
-
labels: labels$
|
|
6341
|
+
labels: labels$a,
|
|
6327
6342
|
messages: messages$a
|
|
6328
6343
|
};
|
|
6329
6344
|
|
|
@@ -6331,7 +6346,7 @@ var title$6 = "Ingresa tu dirección de envío";
|
|
|
6331
6346
|
var titleGifting = "Introduce tu dirección";
|
|
6332
6347
|
var selectAddressTitle = "Por favor, selecciona una dirección";
|
|
6333
6348
|
var selectAddressSubtitle = "Selecciona una de tus direcciones guardadas o añade una nueva";
|
|
6334
|
-
var labels$
|
|
6349
|
+
var labels$9 = {
|
|
6335
6350
|
address: "Dirección",
|
|
6336
6351
|
code: "Código Postal/Área",
|
|
6337
6352
|
city: "Ciudad",
|
|
@@ -6356,7 +6371,7 @@ var address_es = {
|
|
|
6356
6371
|
titleGifting: titleGifting,
|
|
6357
6372
|
selectAddressTitle: selectAddressTitle,
|
|
6358
6373
|
selectAddressSubtitle: selectAddressSubtitle,
|
|
6359
|
-
labels: labels$
|
|
6374
|
+
labels: labels$9,
|
|
6360
6375
|
buttons: buttons$3,
|
|
6361
6376
|
messages: messages$9
|
|
6362
6377
|
};
|
|
@@ -6476,17 +6491,17 @@ var messages$6 = {
|
|
|
6476
6491
|
multipleCurrencies: "Tu carrito actualmente contiene artículos que están disponibles en diferentes divisas. Para proceder a la compra, asegúrate de que todos los artículos tengan la misma divisa.",
|
|
6477
6492
|
currencyMismatch: "El siguiente artículo(s) no coincide con tu divisa predeterminada actual ({{currency}}). Por favor, solo elige artículos que coincidan con esta divisa."
|
|
6478
6493
|
};
|
|
6479
|
-
var labels$
|
|
6494
|
+
var labels$8 = {
|
|
6480
6495
|
summary: "Resumen de la orden",
|
|
6481
6496
|
total: "total"
|
|
6482
6497
|
};
|
|
6483
6498
|
var shop_es = {
|
|
6484
6499
|
buttons: buttons$2,
|
|
6485
6500
|
messages: messages$6,
|
|
6486
|
-
labels: labels$
|
|
6501
|
+
labels: labels$8
|
|
6487
6502
|
};
|
|
6488
6503
|
|
|
6489
|
-
var labels$
|
|
6504
|
+
var labels$7 = {
|
|
6490
6505
|
cardNumber: "Número de Tarjeta",
|
|
6491
6506
|
securityCode: "Código de Seguridad",
|
|
6492
6507
|
submit: "Enviar",
|
|
@@ -6522,12 +6537,12 @@ var errors = {
|
|
|
6522
6537
|
"": ""
|
|
6523
6538
|
};
|
|
6524
6539
|
var payment_es = {
|
|
6525
|
-
labels: labels$
|
|
6540
|
+
labels: labels$7,
|
|
6526
6541
|
messages: messages$5,
|
|
6527
6542
|
errors: errors
|
|
6528
6543
|
};
|
|
6529
6544
|
|
|
6530
|
-
var labels$
|
|
6545
|
+
var labels$6 = {
|
|
6531
6546
|
menu: "Menú de Pelcro",
|
|
6532
6547
|
name: "Nombre",
|
|
6533
6548
|
email: "Correo",
|
|
@@ -6542,6 +6557,7 @@ var labels$5 = {
|
|
|
6542
6557
|
scheduled: "Programada",
|
|
6543
6558
|
incomplete: "Incompleta"
|
|
6544
6559
|
},
|
|
6560
|
+
manageMembers: "Administrar miembros",
|
|
6545
6561
|
shipments: "Envíos restantes",
|
|
6546
6562
|
logout: "Cerrar sesión",
|
|
6547
6563
|
dashboard: "Panel",
|
|
@@ -6634,7 +6650,7 @@ var messages$4 = {
|
|
|
6634
6650
|
}
|
|
6635
6651
|
};
|
|
6636
6652
|
var dashboard_es = {
|
|
6637
|
-
labels: labels$
|
|
6653
|
+
labels: labels$6,
|
|
6638
6654
|
messages: messages$4
|
|
6639
6655
|
};
|
|
6640
6656
|
|
|
@@ -6643,7 +6659,7 @@ var messages$3 = {
|
|
|
6643
6659
|
loginHere: "Inicia sesión aquí",
|
|
6644
6660
|
checkbox: "Marca esta casilla para regalar esta suscripción"
|
|
6645
6661
|
};
|
|
6646
|
-
var labels$
|
|
6662
|
+
var labels$5 = {
|
|
6647
6663
|
plan: {
|
|
6648
6664
|
title: "Suscribirse a un plan",
|
|
6649
6665
|
subtitle: "Selecciona uno de los planes a continuación y pulsa en siguiente."
|
|
@@ -6667,7 +6683,7 @@ var buttons$1 = {
|
|
|
6667
6683
|
};
|
|
6668
6684
|
var select_es = {
|
|
6669
6685
|
messages: messages$3,
|
|
6670
|
-
labels: labels$
|
|
6686
|
+
labels: labels$5,
|
|
6671
6687
|
buttons: buttons$1
|
|
6672
6688
|
};
|
|
6673
6689
|
|
|
@@ -6681,7 +6697,7 @@ var notification_es = {
|
|
|
6681
6697
|
confirm: confirm
|
|
6682
6698
|
};
|
|
6683
6699
|
|
|
6684
|
-
var labels$
|
|
6700
|
+
var labels$4 = {
|
|
6685
6701
|
title: "Verifica tu correo",
|
|
6686
6702
|
instructions: "¡Ya casi terminas!\nVamos a confirmar tu dirección de correo.\nPulsa el enlace de verificación que hemos enviado a tu correo:",
|
|
6687
6703
|
resend: "Reenviar correo"
|
|
@@ -6691,12 +6707,12 @@ var messages$2 = {
|
|
|
6691
6707
|
success: "¡El correo se verificó con éxito!"
|
|
6692
6708
|
};
|
|
6693
6709
|
var verifyEmail_es = {
|
|
6694
|
-
labels: labels$
|
|
6710
|
+
labels: labels$4,
|
|
6695
6711
|
messages: messages$2
|
|
6696
6712
|
};
|
|
6697
6713
|
|
|
6698
6714
|
var title = "Detalles del comprobante de pago";
|
|
6699
|
-
var labels$
|
|
6715
|
+
var labels$3 = {
|
|
6700
6716
|
summary: "Resumen",
|
|
6701
6717
|
total: "Total",
|
|
6702
6718
|
amountPaid: "Monto pagado",
|
|
@@ -6709,19 +6725,23 @@ var buttons = {
|
|
|
6709
6725
|
};
|
|
6710
6726
|
var invoiceDetails_es = {
|
|
6711
6727
|
title: title,
|
|
6712
|
-
labels: labels$
|
|
6728
|
+
labels: labels$3,
|
|
6713
6729
|
buttons: buttons
|
|
6714
6730
|
};
|
|
6715
6731
|
|
|
6716
|
-
var labels$
|
|
6732
|
+
var labels$2 = {
|
|
6717
6733
|
title: "Cancelar suscripción",
|
|
6718
6734
|
cancelReason: "Razón de la cancelación",
|
|
6735
|
+
endOn: "Fin de",
|
|
6736
|
+
endImmediately: "Fin inmediato",
|
|
6737
|
+
cancel: "Cancelar",
|
|
6719
6738
|
subCancellation: {
|
|
6720
6739
|
goBack: "Volver"
|
|
6721
6740
|
}
|
|
6722
6741
|
};
|
|
6723
6742
|
var messages$1 = {
|
|
6724
6743
|
subscriptionEnd: "Esta suscripción expirará el",
|
|
6744
|
+
cancelWhen: "¿Cuándo desea cancelar?",
|
|
6725
6745
|
cancelNow: "Cancelar Suscripción Ahora",
|
|
6726
6746
|
cancelLater: "Cancelar al Final del Periodo",
|
|
6727
6747
|
subCancellation: {
|
|
@@ -6733,10 +6753,25 @@ var messages$1 = {
|
|
|
6733
6753
|
}
|
|
6734
6754
|
};
|
|
6735
6755
|
var subscriptionCancel_es = {
|
|
6736
|
-
labels: labels$
|
|
6756
|
+
labels: labels$2,
|
|
6737
6757
|
messages: messages$1
|
|
6738
6758
|
};
|
|
6739
6759
|
|
|
6760
|
+
var labels$1 = {
|
|
6761
|
+
inviteMembers: "Invitar miembros",
|
|
6762
|
+
listOfMembers: "Lista de miembros",
|
|
6763
|
+
invite: "Invitar",
|
|
6764
|
+
remove: "quitar",
|
|
6765
|
+
emails: "Ingresar correo electrónico",
|
|
6766
|
+
status: "Estado",
|
|
6767
|
+
actions: "Acciones",
|
|
6768
|
+
email: "Correo electrónico",
|
|
6769
|
+
listNote: "Lista separada por comas, por ejemplo"
|
|
6770
|
+
};
|
|
6771
|
+
var subscriptionManageMembers_es = {
|
|
6772
|
+
labels: labels$1
|
|
6773
|
+
};
|
|
6774
|
+
|
|
6740
6775
|
var labels = {
|
|
6741
6776
|
title: "Suspender suscripción",
|
|
6742
6777
|
suspensionDate: "Fecha de suspensión",
|
|
@@ -8144,7 +8179,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8144
8179
|
OutboundLink$1.origTrackLink = OutboundLink$1.trackLink;
|
|
8145
8180
|
OutboundLink$1.trackLink = outboundLink;
|
|
8146
8181
|
var OutboundLink = OutboundLink$1;
|
|
8147
|
-
var
|
|
8182
|
+
var ReactGA = _objectSpread({}, Defaults, {
|
|
8148
8183
|
OutboundLink: OutboundLink
|
|
8149
8184
|
});
|
|
8150
8185
|
|
|
@@ -8683,8 +8718,6 @@ exports["default"] = _default;
|
|
|
8683
8718
|
var ReactGA4 = unwrapExports(dist);
|
|
8684
8719
|
dist.ReactGAImplementation;
|
|
8685
8720
|
|
|
8686
|
-
var _window$d, _window$Pelcro$d, _window$Pelcro$uiSett$d;
|
|
8687
|
-
const ReactGA$d = (_window$d = window) !== null && _window$d !== void 0 && (_window$Pelcro$d = _window$d.Pelcro) !== null && _window$Pelcro$d !== void 0 && (_window$Pelcro$uiSett$d = _window$Pelcro$d.uiSettings) !== null && _window$Pelcro$uiSett$d !== void 0 && _window$Pelcro$uiSett$d.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
8688
8721
|
class PelcroActions {
|
|
8689
8722
|
constructor(storeSetter, storeGetter) {
|
|
8690
8723
|
var _this = this;
|
|
@@ -8864,23 +8897,31 @@ class PelcroActions {
|
|
|
8864
8897
|
});
|
|
8865
8898
|
});
|
|
8866
8899
|
_defineProperty$3(this, "logout", function () {
|
|
8867
|
-
var
|
|
8900
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
8868
8901
|
let displayLogin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
8869
8902
|
const {
|
|
8870
8903
|
switchView,
|
|
8871
8904
|
resetView,
|
|
8872
8905
|
isAuthenticated
|
|
8873
8906
|
} = _this.get();
|
|
8907
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
8874
8908
|
// if user is not authenticated function execution is terminated
|
|
8875
8909
|
if (!isAuthenticated()) {
|
|
8876
8910
|
return console.warn("You are already logged out.");
|
|
8877
8911
|
}
|
|
8878
8912
|
window.Pelcro.user.logout();
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
}
|
|
8913
|
+
if (enableReactGA4) {
|
|
8914
|
+
ReactGA4.event("Logged out", {
|
|
8915
|
+
nonInteraction: true
|
|
8916
|
+
});
|
|
8917
|
+
} else {
|
|
8918
|
+
var _ReactGA$event;
|
|
8919
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
8920
|
+
category: "ACTIONS",
|
|
8921
|
+
action: "Logged out",
|
|
8922
|
+
nonInteraction: true
|
|
8923
|
+
});
|
|
8924
|
+
}
|
|
8884
8925
|
resetView();
|
|
8885
8926
|
if (displayLogin) {
|
|
8886
8927
|
switchView("login");
|
|
@@ -8893,7 +8934,7 @@ class PelcroActions {
|
|
|
8893
8934
|
return false;
|
|
8894
8935
|
}
|
|
8895
8936
|
|
|
8896
|
-
//Dispatch PelcroElementsCartItemAdded when an item added successfully to the
|
|
8937
|
+
// Dispatch PelcroElementsCartItemAdded when an item added successfully to the
|
|
8897
8938
|
document.dispatchEvent(cartItemAdded(itemToAdd));
|
|
8898
8939
|
const {
|
|
8899
8940
|
cartItems
|
|
@@ -9102,9 +9143,6 @@ if (process.env.NODE_ENV === "development") {
|
|
|
9102
9143
|
c$1("Pelcro Store", usePelcro);
|
|
9103
9144
|
}
|
|
9104
9145
|
|
|
9105
|
-
var _window$c, _window$Pelcro$c, _window$Pelcro$uiSett$c;
|
|
9106
|
-
const ReactGA$c = (_window$c = window) !== null && _window$c !== void 0 && (_window$Pelcro$c = _window$c.Pelcro) !== null && _window$Pelcro$c !== void 0 && (_window$Pelcro$uiSett$c = _window$Pelcro$c.uiSettings) !== null && _window$Pelcro$uiSett$c !== void 0 && _window$Pelcro$uiSett$c.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
9107
|
-
|
|
9108
9146
|
/**
|
|
9109
9147
|
* List of zero-decimal currencies.
|
|
9110
9148
|
* @see https://stripe.com/docs/currencies#zero-decimal
|
|
@@ -9190,8 +9228,8 @@ const getLanguageWithoutRegion = localeName => {
|
|
|
9190
9228
|
* @return {string | undefined}
|
|
9191
9229
|
*/
|
|
9192
9230
|
const getPageOrDefaultLanguage = () => {
|
|
9193
|
-
var _window$Pelcro$helper, _window$
|
|
9194
|
-
return (_window$Pelcro$helper = window.Pelcro.helpers.getHtmlLanguageAttribute()) !== null && _window$Pelcro$helper !== void 0 ? _window$Pelcro$helper : getLanguageWithoutRegion((_window$
|
|
9231
|
+
var _window$Pelcro$helper, _window$Pelcro, _window$Pelcro$site, _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
9232
|
+
return (_window$Pelcro$helper = window.Pelcro.helpers.getHtmlLanguageAttribute()) !== null && _window$Pelcro$helper !== void 0 ? _window$Pelcro$helper : getLanguageWithoutRegion((_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$site = _window$Pelcro.site) === null || _window$Pelcro$site === void 0 ? void 0 : (_window$Pelcro$site$r = _window$Pelcro$site.read) === null || _window$Pelcro$site$r === void 0 ? void 0 : (_window$Pelcro$site$r2 = _window$Pelcro$site$r.call(_window$Pelcro$site)) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.default_locale);
|
|
9195
9233
|
};
|
|
9196
9234
|
|
|
9197
9235
|
/**
|
|
@@ -9244,9 +9282,9 @@ const isValidViewFromURL = viewID => {
|
|
|
9244
9282
|
*
|
|
9245
9283
|
*/
|
|
9246
9284
|
function hasValidNewsletterUpdateUrl() {
|
|
9247
|
-
var _window$
|
|
9285
|
+
var _window$Pelcro2, _window$Pelcro2$uiSet;
|
|
9248
9286
|
if (viewID !== "newsletter-update") return false;
|
|
9249
|
-
const newsletters = (_window$
|
|
9287
|
+
const newsletters = (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$uiSet = _window$Pelcro2.uiSettings) === null || _window$Pelcro2$uiSet === void 0 ? void 0 : _window$Pelcro2$uiSet.newsletters;
|
|
9250
9288
|
const siteHasNewslettersDefined = Array.isArray(newsletters) && newsletters.length > 0;
|
|
9251
9289
|
if (!siteHasNewslettersDefined) {
|
|
9252
9290
|
return false;
|
|
@@ -9292,7 +9330,7 @@ const disableScroll = () => {
|
|
|
9292
9330
|
}
|
|
9293
9331
|
};
|
|
9294
9332
|
const trackSubscriptionOnGA = () => {
|
|
9295
|
-
var _window
|
|
9333
|
+
var _window, _window$Pelcro3, _window$Pelcro3$uiSet, _window$Pelcro$user$r5, _window$Pelcro$user$r6;
|
|
9296
9334
|
const {
|
|
9297
9335
|
product,
|
|
9298
9336
|
plan,
|
|
@@ -9307,33 +9345,56 @@ const trackSubscriptionOnGA = () => {
|
|
|
9307
9345
|
invoices
|
|
9308
9346
|
} = window.Pelcro.user.read();
|
|
9309
9347
|
const lastSubscriptionId = invoices === null || invoices === void 0 ? void 0 : invoices[invoices.length - 1].subscription_id;
|
|
9348
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro3 = _window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$uiSet = _window$Pelcro3.uiSettings) === null || _window$Pelcro3$uiSet === void 0 ? void 0 : _window$Pelcro3$uiSet.enableReactGA4;
|
|
9310
9349
|
if (!lastSubscriptionId) {
|
|
9311
9350
|
return;
|
|
9312
9351
|
}
|
|
9313
9352
|
const currencyCode = (_window$Pelcro$user$r5 = (_window$Pelcro$user$r6 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r6 === void 0 ? void 0 : _window$Pelcro$user$r6.currency) !== null && _window$Pelcro$user$r5 !== void 0 ? _window$Pelcro$user$r5 : plan.currency;
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
|
|
9353
|
+
if (enableReactGA4) {
|
|
9354
|
+
ReactGA4.event("purchase", {
|
|
9355
|
+
transaction_id: lastSubscriptionId,
|
|
9356
|
+
affiliation: "Pelcro",
|
|
9357
|
+
currency: currencyCode,
|
|
9358
|
+
value: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
|
|
9359
|
+
coupon: couponCode,
|
|
9360
|
+
items: [{
|
|
9361
|
+
item_id: lastSubscriptionId,
|
|
9362
|
+
item_name: product.name,
|
|
9363
|
+
item_category: product.description,
|
|
9364
|
+
item_variant: plan.nickname,
|
|
9365
|
+
price: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
|
|
9366
|
+
quantity: 1
|
|
9367
|
+
}]
|
|
9368
|
+
});
|
|
9369
|
+
ReactGA4.event("Subscribed", {
|
|
9370
|
+
nonInteraction: true
|
|
9371
|
+
});
|
|
9372
|
+
} else {
|
|
9373
|
+
var _ReactGA$set, _ReactGA$plugin, _ReactGA$plugin$execu, _ReactGA$plugin2, _ReactGA$plugin2$exec, _ReactGA$plugin3, _ReactGA$plugin3$exec, _ReactGA$event;
|
|
9374
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$set = ReactGA.set) === null || _ReactGA$set === void 0 ? void 0 : _ReactGA$set.call(ReactGA, {
|
|
9375
|
+
currencyCode: currencyCode
|
|
9376
|
+
});
|
|
9377
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin = ReactGA.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$execu = _ReactGA$plugin.execute) === null || _ReactGA$plugin$execu === void 0 ? void 0 : _ReactGA$plugin$execu.call(_ReactGA$plugin, "ecommerce", "addTransaction", {
|
|
9378
|
+
id: lastSubscriptionId,
|
|
9379
|
+
affiliation: "Pelcro",
|
|
9380
|
+
revenue: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
|
|
9381
|
+
coupon: couponCode
|
|
9382
|
+
});
|
|
9383
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin2 = ReactGA.plugin) === null || _ReactGA$plugin2 === void 0 ? void 0 : (_ReactGA$plugin2$exec = _ReactGA$plugin2.execute) === null || _ReactGA$plugin2$exec === void 0 ? void 0 : _ReactGA$plugin2$exec.call(_ReactGA$plugin2, "ecommerce", "addItem", {
|
|
9384
|
+
id: lastSubscriptionId,
|
|
9385
|
+
name: product.name,
|
|
9386
|
+
category: product.description,
|
|
9387
|
+
variant: plan.nickname,
|
|
9388
|
+
price: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
|
|
9389
|
+
quantity: 1
|
|
9390
|
+
});
|
|
9391
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin3 = ReactGA.plugin) === null || _ReactGA$plugin3 === void 0 ? void 0 : (_ReactGA$plugin3$exec = _ReactGA$plugin3.execute) === null || _ReactGA$plugin3$exec === void 0 ? void 0 : _ReactGA$plugin3$exec.call(_ReactGA$plugin3, "ecommerce", "send");
|
|
9392
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
9393
|
+
category: "ACTIONS",
|
|
9394
|
+
action: "Subscribed",
|
|
9395
|
+
nonInteraction: true
|
|
9396
|
+
});
|
|
9397
|
+
}
|
|
9337
9398
|
};
|
|
9338
9399
|
|
|
9339
9400
|
/** check wether or not the user have any existing payment method
|
|
@@ -9417,14 +9478,14 @@ function getDateWithoutTime(dateObject) {
|
|
|
9417
9478
|
return date;
|
|
9418
9479
|
}
|
|
9419
9480
|
function userMustVerifyEmail() {
|
|
9420
|
-
var _window$Pelcro$site$
|
|
9421
|
-
const isEmailVerificationEnabled = (_window$Pelcro$site$
|
|
9481
|
+
var _window$Pelcro$site$r3, _window$Pelcro$site$r4, _window$Pelcro$user$r9, _window$Pelcro$user$r10;
|
|
9482
|
+
const isEmailVerificationEnabled = (_window$Pelcro$site$r3 = (_window$Pelcro$site$r4 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r4 === void 0 ? void 0 : _window$Pelcro$site$r4.email_verify_enabled) !== null && _window$Pelcro$site$r3 !== void 0 ? _window$Pelcro$site$r3 : false;
|
|
9422
9483
|
const isUserEmailVerified = (_window$Pelcro$user$r9 = (_window$Pelcro$user$r10 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r10 === void 0 ? void 0 : _window$Pelcro$user$r10.email_confirm) !== null && _window$Pelcro$user$r9 !== void 0 ? _window$Pelcro$user$r9 : false;
|
|
9423
9484
|
return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
|
|
9424
9485
|
}
|
|
9425
9486
|
function notifyBugsnag(callback, startOptions) {
|
|
9426
9487
|
if (!window.Bugsnag && !document.querySelector('script[src="https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js"]')) {
|
|
9427
|
-
//load bugsnag CDN
|
|
9488
|
+
// load bugsnag CDN
|
|
9428
9489
|
window.Pelcro.helpers.loadSDK("https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js", "bugsnag-cdn");
|
|
9429
9490
|
document.querySelector('script[src="https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js"]').addEventListener("load", () => {
|
|
9430
9491
|
var _window$Pelcro$enviro, _window$Pelcro4, _window$Pelcro4$envir, _window$Pelcro5, _window$Pelcro5$envir;
|
|
@@ -9556,7 +9617,8 @@ const resources = {
|
|
|
9556
9617
|
notification: notification_es,
|
|
9557
9618
|
invoiceDetails: invoiceDetails_es,
|
|
9558
9619
|
subscriptionCancel: subscriptionCancel_es,
|
|
9559
|
-
subscriptionSuspend: subscriptionSuspend_es
|
|
9620
|
+
subscriptionSuspend: subscriptionSuspend_es,
|
|
9621
|
+
subscriptionManageMembers: subscriptionManageMembers_es
|
|
9560
9622
|
}
|
|
9561
9623
|
};
|
|
9562
9624
|
|
|
@@ -9602,10 +9664,8 @@ function _classPrivateFieldGet(receiver, privateMap) {
|
|
|
9602
9664
|
return descriptor.value;
|
|
9603
9665
|
}
|
|
9604
9666
|
|
|
9605
|
-
var _window$b, _window$Pelcro$b, _window$Pelcro$uiSett$b;
|
|
9606
9667
|
function _classPrivateFieldInitSpec$2(obj, privateMap, value) { _checkPrivateRedeclaration$2(obj, privateMap); privateMap.set(obj, value); }
|
|
9607
9668
|
function _checkPrivateRedeclaration$2(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
9608
|
-
const ReactGA$b = (_window$b = window) !== null && _window$b !== void 0 && (_window$Pelcro$b = _window$b.Pelcro) !== null && _window$Pelcro$b !== void 0 && (_window$Pelcro$uiSett$b = _window$Pelcro$b.uiSettings) !== null && _window$Pelcro$uiSett$b !== void 0 && _window$Pelcro$uiSett$b.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
9609
9669
|
var _isAlreadySaved = /*#__PURE__*/new WeakMap();
|
|
9610
9670
|
var _markButtonAsLoading = /*#__PURE__*/new WeakMap();
|
|
9611
9671
|
var _removeLoadingState = /*#__PURE__*/new WeakMap();
|
|
@@ -9689,7 +9749,7 @@ class SaveToMetadataButtonClass {
|
|
|
9689
9749
|
_classPrivateFieldInitSpec$2(this, _saveToMetadata, {
|
|
9690
9750
|
writable: true,
|
|
9691
9751
|
value: event => {
|
|
9692
|
-
var _user$metadata;
|
|
9752
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett, _user$metadata;
|
|
9693
9753
|
const button = event.currentTarget;
|
|
9694
9754
|
const user = window.Pelcro.user.read();
|
|
9695
9755
|
const {
|
|
@@ -9699,6 +9759,7 @@ class SaveToMetadataButtonClass {
|
|
|
9699
9759
|
key,
|
|
9700
9760
|
...buttonMetadata
|
|
9701
9761
|
} = button.dataset;
|
|
9762
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
9702
9763
|
if (userMustVerifyEmail()) {
|
|
9703
9764
|
return switchView("email-verify");
|
|
9704
9765
|
}
|
|
@@ -9723,16 +9784,22 @@ class SaveToMetadataButtonClass {
|
|
|
9723
9784
|
value: newMetadataValue,
|
|
9724
9785
|
auth_token: window.Pelcro.user.read().auth_token
|
|
9725
9786
|
}, (err, resp) => {
|
|
9726
|
-
var _ReactGA$event;
|
|
9727
9787
|
if (err) {
|
|
9728
9788
|
return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
9729
9789
|
}
|
|
9730
9790
|
_classPrivateFieldGet(this, _markButtonAsSaved).call(this, button);
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
}
|
|
9791
|
+
if (enableReactGA4) {
|
|
9792
|
+
ReactGA4.event("Save/Follow", {
|
|
9793
|
+
event_label: buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title
|
|
9794
|
+
});
|
|
9795
|
+
} else {
|
|
9796
|
+
var _ReactGA$event;
|
|
9797
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
9798
|
+
category: "ACTIONS",
|
|
9799
|
+
action: "Save/Follow",
|
|
9800
|
+
label: buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title
|
|
9801
|
+
});
|
|
9802
|
+
}
|
|
9736
9803
|
});
|
|
9737
9804
|
}
|
|
9738
9805
|
}
|
|
@@ -9740,6 +9807,7 @@ class SaveToMetadataButtonClass {
|
|
|
9740
9807
|
_classPrivateFieldInitSpec$2(this, _removeMetaData, {
|
|
9741
9808
|
writable: true,
|
|
9742
9809
|
value: event => {
|
|
9810
|
+
var _window2, _window2$Pelcro, _window2$Pelcro$uiSet;
|
|
9743
9811
|
const button = event.currentTarget;
|
|
9744
9812
|
const user = window.Pelcro.user.read();
|
|
9745
9813
|
const {
|
|
@@ -9747,6 +9815,7 @@ class SaveToMetadataButtonClass {
|
|
|
9747
9815
|
title
|
|
9748
9816
|
} = button.dataset;
|
|
9749
9817
|
const oldValue = user.metadata[`metadata_saved_${key}`];
|
|
9818
|
+
const enableReactGA4 = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$Pelcro = _window2.Pelcro) === null || _window2$Pelcro === void 0 ? void 0 : (_window2$Pelcro$uiSet = _window2$Pelcro.uiSettings) === null || _window2$Pelcro$uiSet === void 0 ? void 0 : _window2$Pelcro$uiSet.enableReactGA4;
|
|
9750
9819
|
const newMetadataValue = oldValue.filter(metadata => !((metadata === null || metadata === void 0 ? void 0 : metadata.title) === title));
|
|
9751
9820
|
if (window.Pelcro.user.isAuthenticated()) {
|
|
9752
9821
|
_classPrivateFieldGet(this, _markButtonAsLoading).call(this, button);
|
|
@@ -9755,16 +9824,22 @@ class SaveToMetadataButtonClass {
|
|
|
9755
9824
|
value: newMetadataValue,
|
|
9756
9825
|
auth_token: window.Pelcro.user.read().auth_token
|
|
9757
9826
|
}, (err, resp) => {
|
|
9758
|
-
var _ReactGA$event2;
|
|
9759
9827
|
if (err) {
|
|
9760
9828
|
return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
9761
9829
|
}
|
|
9762
9830
|
_classPrivateFieldGet(this, _unmarkSavedButton).call(this, button);
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9767
|
-
}
|
|
9831
|
+
if (enableReactGA4) {
|
|
9832
|
+
ReactGA4.event("Unsave/Unfollow", {
|
|
9833
|
+
event_label: title
|
|
9834
|
+
});
|
|
9835
|
+
} else {
|
|
9836
|
+
var _ReactGA$event2;
|
|
9837
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
|
|
9838
|
+
category: "ACTIONS",
|
|
9839
|
+
action: "Unsave/Unfollow",
|
|
9840
|
+
label: title
|
|
9841
|
+
});
|
|
9842
|
+
}
|
|
9768
9843
|
});
|
|
9769
9844
|
}
|
|
9770
9845
|
}
|
|
@@ -11405,9 +11480,6 @@ function getSiteCardProcessor() {
|
|
|
11405
11480
|
return "stripe";
|
|
11406
11481
|
}
|
|
11407
11482
|
|
|
11408
|
-
var _window$a, _window$Pelcro$a, _window$Pelcro$uiSett$a;
|
|
11409
|
-
const ReactGA$a = (_window$a = window) !== null && _window$a !== void 0 && (_window$Pelcro$a = _window$a.Pelcro) !== null && _window$Pelcro$a !== void 0 && (_window$Pelcro$uiSett$a = _window$Pelcro$a.uiSettings) !== null && _window$Pelcro$uiSett$a !== void 0 && _window$Pelcro$uiSett$a.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
11410
|
-
|
|
11411
11483
|
/**
|
|
11412
11484
|
* @typedef {Object} OptionsType
|
|
11413
11485
|
* @property {boolean} loadPaymentSDKs
|
|
@@ -11534,17 +11606,44 @@ const initSecuritySdk = () => {
|
|
|
11534
11606
|
});
|
|
11535
11607
|
};
|
|
11536
11608
|
const initGATracking = () => {
|
|
11537
|
-
var
|
|
11538
|
-
|
|
11539
|
-
|
|
11609
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
11610
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
11611
|
+
if (window.Pelcro.site.read().google_analytics_id) {
|
|
11612
|
+
if (enableReactGA4) {
|
|
11613
|
+
// Initialize ReactGA4 with your tracking ID
|
|
11614
|
+
ReactGA4.initialize(window.Pelcro.site.read().google_analytics_id);
|
|
11615
|
+
// Enable e-commerce tracking
|
|
11616
|
+
ReactGA4.initialize(window.Pelcro.site.read().google_analytics_id, {
|
|
11617
|
+
gaOptions: {
|
|
11618
|
+
send_page_view: true,
|
|
11619
|
+
ecommerce: {
|
|
11620
|
+
enabled: true
|
|
11621
|
+
}
|
|
11622
|
+
}
|
|
11623
|
+
});
|
|
11624
|
+
} else {
|
|
11625
|
+
var _ReactGA$initialize, _ReactGA$plugin, _ReactGA$plugin$requi;
|
|
11626
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$initialize = ReactGA.initialize) === null || _ReactGA$initialize === void 0 ? void 0 : _ReactGA$initialize.call(ReactGA, window.Pelcro.site.read().google_analytics_id);
|
|
11627
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin = ReactGA.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$requi = _ReactGA$plugin.require) === null || _ReactGA$plugin$requi === void 0 ? void 0 : _ReactGA$plugin$requi.call(_ReactGA$plugin, "ecommerce");
|
|
11628
|
+
}
|
|
11629
|
+
}
|
|
11540
11630
|
};
|
|
11541
11631
|
const dispatchModalDisplayEvents = modalName => {
|
|
11542
|
-
var
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11632
|
+
var _window2, _window2$Pelcro, _window2$Pelcro$uiSet, _modalName$replace, _modalName$replace2;
|
|
11633
|
+
const enableReactGA4 = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$Pelcro = _window2.Pelcro) === null || _window2$Pelcro === void 0 ? void 0 : (_window2$Pelcro$uiSet = _window2$Pelcro.uiSettings) === null || _window2$Pelcro$uiSet === void 0 ? void 0 : _window2$Pelcro$uiSet.enableReactGA4;
|
|
11634
|
+
const formattedAction = modalName === null || modalName === void 0 ? void 0 : (_modalName$replace = modalName.replace("pelcro-", "")) === null || _modalName$replace === void 0 ? void 0 : _modalName$replace.replaceAll("-", " ");
|
|
11635
|
+
if (enableReactGA4) {
|
|
11636
|
+
ReactGA4.event(`${formattedAction} viewed`, {
|
|
11637
|
+
nonInteraction: true
|
|
11638
|
+
});
|
|
11639
|
+
} else {
|
|
11640
|
+
var _ReactGA$event;
|
|
11641
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
11642
|
+
category: "VIEWS",
|
|
11643
|
+
action: `${formattedAction} viewed`,
|
|
11644
|
+
nonInteraction: true
|
|
11645
|
+
});
|
|
11646
|
+
}
|
|
11548
11647
|
window.Pelcro.insight.track("Modal Displayed", {
|
|
11549
11648
|
name: `${modalName === null || modalName === void 0 ? void 0 : (_modalName$replace2 = modalName.replace("pelcro-", "")) === null || _modalName$replace2 === void 0 ? void 0 : _modalName$replace2.replaceAll("-", " ")}`
|
|
11550
11649
|
});
|
|
@@ -11899,11 +11998,8 @@ const showPaymentMethodUpdateFromUrl = () => {
|
|
|
11899
11998
|
}
|
|
11900
11999
|
|
|
11901
12000
|
//vantiv
|
|
11902
|
-
if (supportsVantiv) {
|
|
11903
|
-
|
|
11904
|
-
return switchView("payment-method-update");
|
|
11905
|
-
});
|
|
11906
|
-
return;
|
|
12001
|
+
if (supportsVantiv && document.querySelector("#vantiv-eprotect-sdk")) {
|
|
12002
|
+
return switchView("payment-method-update");
|
|
11907
12003
|
}
|
|
11908
12004
|
|
|
11909
12005
|
//Tap
|
|
@@ -12339,6 +12435,7 @@ const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
|
|
|
12339
12435
|
const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
|
|
12340
12436
|
const LINK_TOKEN_VERIFY = "LINK_TOKEN_VERIFY";
|
|
12341
12437
|
const SET_CANCEL_SUBSCRIPTION_REASON = "SET_CANCEL_SUBSCRIPTION_REASON";
|
|
12438
|
+
const SET_CANCEL_SUBSCRIPTION_OPTION = "SET_CANCEL_SUBSCRIPTION_OPTION";
|
|
12342
12439
|
const HANDLE_CHECKBOX_CHANGE = "HANDLE_CHECKBOX_CHANGE";
|
|
12343
12440
|
const SET_SUBSCRIPTION_SUSPEND_DATE = "SET_SUBSCRIPTION_SUSPEND_DATE";
|
|
12344
12441
|
const SET_EMAILS = "SET_EMAILS";
|
|
@@ -12369,6 +12466,7 @@ const {
|
|
|
12369
12466
|
Provider: Provider$m
|
|
12370
12467
|
} = store$m;
|
|
12371
12468
|
const LoginContainer = _ref => {
|
|
12469
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
12372
12470
|
let {
|
|
12373
12471
|
style,
|
|
12374
12472
|
className = "",
|
|
@@ -12376,6 +12474,7 @@ const LoginContainer = _ref => {
|
|
|
12376
12474
|
onFailure = () => {},
|
|
12377
12475
|
children
|
|
12378
12476
|
} = _ref;
|
|
12477
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
12379
12478
|
const handleLogin = (_ref2, dispatch) => {
|
|
12380
12479
|
let {
|
|
12381
12480
|
email,
|
|
@@ -12405,13 +12504,19 @@ const LoginContainer = _ref => {
|
|
|
12405
12504
|
});
|
|
12406
12505
|
onFailure(err);
|
|
12407
12506
|
} else {
|
|
12408
|
-
var _ReactGA$event;
|
|
12409
12507
|
onSuccess(res);
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
}
|
|
12508
|
+
if (enableReactGA4) {
|
|
12509
|
+
ReactGA4.event("Logged in", {
|
|
12510
|
+
nonInteraction: true
|
|
12511
|
+
});
|
|
12512
|
+
} else {
|
|
12513
|
+
var _ReactGA$event;
|
|
12514
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
12515
|
+
category: "ACTIONS",
|
|
12516
|
+
action: "Logged in",
|
|
12517
|
+
nonInteraction: true
|
|
12518
|
+
});
|
|
12519
|
+
}
|
|
12415
12520
|
}
|
|
12416
12521
|
});
|
|
12417
12522
|
};
|
|
@@ -12797,17 +12902,23 @@ function ConfirmPassword(_ref) {
|
|
|
12797
12902
|
}, otherProps));
|
|
12798
12903
|
}
|
|
12799
12904
|
|
|
12800
|
-
var _window$9, _window$Pelcro$9, _window$Pelcro$uiSett$9;
|
|
12801
|
-
const ReactGA$9 = (_window$9 = window) !== null && _window$9 !== void 0 && (_window$Pelcro$9 = _window$9.Pelcro) !== null && _window$Pelcro$9 !== void 0 && (_window$Pelcro$uiSett$9 = _window$Pelcro$9.uiSettings) !== null && _window$Pelcro$uiSett$9 !== void 0 && _window$Pelcro$uiSett$9.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
12802
12905
|
const Logout = props => {
|
|
12803
12906
|
const handleLogout = () => {
|
|
12804
|
-
var
|
|
12907
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
12805
12908
|
window.Pelcro.user.logout();
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
-
|
|
12809
|
-
|
|
12810
|
-
|
|
12909
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
12910
|
+
if (enableReactGA4) {
|
|
12911
|
+
ReactGA4.event("Logged out", {
|
|
12912
|
+
nonInteraction: true
|
|
12913
|
+
});
|
|
12914
|
+
} else {
|
|
12915
|
+
var _ReactGA$event;
|
|
12916
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
12917
|
+
category: "ACTIONS",
|
|
12918
|
+
action: "Logged out",
|
|
12919
|
+
nonInteraction: true
|
|
12920
|
+
});
|
|
12921
|
+
}
|
|
12811
12922
|
};
|
|
12812
12923
|
return /*#__PURE__*/React__default.createElement("button", {
|
|
12813
12924
|
name: "logout",
|
|
@@ -14365,13 +14476,11 @@ const RegisterCompany = props => {
|
|
|
14365
14476
|
}, props));
|
|
14366
14477
|
};
|
|
14367
14478
|
|
|
14368
|
-
var _window$8, _window$Pelcro$8, _window$Pelcro$uiSett$8;
|
|
14369
|
-
const ReactGA$8 = (_window$8 = window) !== null && _window$8 !== void 0 && (_window$Pelcro$8 = _window$8.Pelcro) !== null && _window$Pelcro$8 !== void 0 && (_window$Pelcro$uiSett$8 = _window$Pelcro$8.uiSettings) !== null && _window$Pelcro$uiSett$8 !== void 0 && _window$Pelcro$uiSett$8.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
14370
|
-
|
|
14371
14479
|
/**
|
|
14372
14480
|
*
|
|
14373
14481
|
*/
|
|
14374
14482
|
function RegisterModal(props) {
|
|
14483
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
14375
14484
|
const {
|
|
14376
14485
|
t
|
|
14377
14486
|
} = useTranslation("register");
|
|
@@ -14386,18 +14495,26 @@ function RegisterModal(props) {
|
|
|
14386
14495
|
giftCode,
|
|
14387
14496
|
isGift
|
|
14388
14497
|
} = usePelcro();
|
|
14498
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
14389
14499
|
const onSuccess = res => {
|
|
14390
14500
|
var _props$onSuccess;
|
|
14391
14501
|
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
14392
14502
|
handleAfterRegistrationLogic();
|
|
14393
14503
|
};
|
|
14394
14504
|
const handleAfterRegistrationLogic = () => {
|
|
14395
|
-
var
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
|
|
14399
|
-
|
|
14400
|
-
}
|
|
14505
|
+
var _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
14506
|
+
if (enableReactGA4) {
|
|
14507
|
+
ReactGA4.event("Registered", {
|
|
14508
|
+
nonInteraction: true
|
|
14509
|
+
});
|
|
14510
|
+
} else {
|
|
14511
|
+
var _ReactGA$event;
|
|
14512
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
14513
|
+
category: "ACTIONS",
|
|
14514
|
+
action: "Registered",
|
|
14515
|
+
nonInteraction: true
|
|
14516
|
+
});
|
|
14517
|
+
}
|
|
14401
14518
|
const isEmailVerificationEnabled = (_window$Pelcro$site$r = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.email_verify_enabled) !== null && _window$Pelcro$site$r !== void 0 ? _window$Pelcro$site$r : false;
|
|
14402
14519
|
if (isEmailVerificationEnabled) {
|
|
14403
14520
|
return switchView("email-verify");
|
|
@@ -14484,9 +14601,6 @@ function Radio(_ref) {
|
|
|
14484
14601
|
}, children));
|
|
14485
14602
|
}
|
|
14486
14603
|
|
|
14487
|
-
var _window$7, _window$Pelcro$7, _window$Pelcro$uiSett$7;
|
|
14488
|
-
const ReactGA$7 = (_window$7 = window) !== null && _window$7 !== void 0 && (_window$Pelcro$7 = _window$7.Pelcro) !== null && _window$Pelcro$7 !== void 0 && (_window$Pelcro$uiSett$7 = _window$Pelcro$7.uiSettings) !== null && _window$Pelcro$uiSett$7 !== void 0 && _window$Pelcro$uiSett$7.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
14489
|
-
|
|
14490
14604
|
/**
|
|
14491
14605
|
*
|
|
14492
14606
|
*/
|
|
@@ -14546,6 +14660,7 @@ function productMatchPageLanguage(product) {
|
|
|
14546
14660
|
SelectModalWithHook.viewId = "plan-select";
|
|
14547
14661
|
class SelectModal extends Component {
|
|
14548
14662
|
constructor(props) {
|
|
14663
|
+
var _window, _window$Pelcro11, _window$Pelcro11$uiSe;
|
|
14549
14664
|
super(props);
|
|
14550
14665
|
_defineProperty$3(this, "componentDidMount", () => {
|
|
14551
14666
|
if (this.props.product) {
|
|
@@ -14580,11 +14695,11 @@ class SelectModal extends Component {
|
|
|
14580
14695
|
}
|
|
14581
14696
|
document.addEventListener("keydown", this.handleSubmit);
|
|
14582
14697
|
if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
|
|
14583
|
-
var _window$
|
|
14584
|
-
const userCurrency = (_window$
|
|
14585
|
-
const userCountry = (_window$
|
|
14586
|
-
const userLanguage = (_window$
|
|
14587
|
-
const productsMatchingUserCurrency = (_window$
|
|
14698
|
+
var _window$Pelcro, _window$Pelcro$user, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$site;
|
|
14699
|
+
const userCurrency = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$user = _window$Pelcro.user) === null || _window$Pelcro$user === void 0 ? void 0 : _window$Pelcro$user.read().currency;
|
|
14700
|
+
const userCountry = (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$user = _window$Pelcro2.user) === null || _window$Pelcro2$user === void 0 ? void 0 : _window$Pelcro2$user.location.countryCode;
|
|
14701
|
+
const userLanguage = (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$user = _window$Pelcro3.user) === null || _window$Pelcro3$user === void 0 ? void 0 : _window$Pelcro3$user.read().language;
|
|
14702
|
+
const productsMatchingUserCurrency = (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : (_window$Pelcro4$site = _window$Pelcro4.site) === null || _window$Pelcro4$site === void 0 ? void 0 : _window$Pelcro4$site.read().products.filter(product => {
|
|
14588
14703
|
const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
|
|
14589
14704
|
if (filteredPlans.length) return filteredPlans;
|
|
14590
14705
|
});
|
|
@@ -14597,12 +14712,12 @@ class SelectModal extends Component {
|
|
|
14597
14712
|
});
|
|
14598
14713
|
notifyBugsnag(() => {
|
|
14599
14714
|
Bugsnag.notify("SelectModal - No data viewed", event => {
|
|
14600
|
-
var _window$
|
|
14715
|
+
var _window$Pelcro5, _window$Pelcro5$site, _window$Pelcro6, _window$Pelcro6$user, _window$Pelcro7, _window$Pelcro7$uiSet, _window$Pelcro8, _this$props, _window$Pelcro9, _window$Pelcro9$helpe, _window$Pelcro10, _window$Pelcro10$site;
|
|
14601
14716
|
event.addMetadata("MetaData", {
|
|
14602
|
-
site: (_window$
|
|
14603
|
-
user: (_window$
|
|
14604
|
-
uiVersion: (_window$
|
|
14605
|
-
environment: (_window$
|
|
14717
|
+
site: (_window$Pelcro5 = window.Pelcro) === null || _window$Pelcro5 === void 0 ? void 0 : (_window$Pelcro5$site = _window$Pelcro5.site) === null || _window$Pelcro5$site === void 0 ? void 0 : _window$Pelcro5$site.read(),
|
|
14718
|
+
user: (_window$Pelcro6 = window.Pelcro) === null || _window$Pelcro6 === void 0 ? void 0 : (_window$Pelcro6$user = _window$Pelcro6.user) === null || _window$Pelcro6$user === void 0 ? void 0 : _window$Pelcro6$user.read(),
|
|
14719
|
+
uiVersion: (_window$Pelcro7 = window.Pelcro) === null || _window$Pelcro7 === void 0 ? void 0 : (_window$Pelcro7$uiSet = _window$Pelcro7.uiSettings) === null || _window$Pelcro7$uiSet === void 0 ? void 0 : _window$Pelcro7$uiSet.uiVersion,
|
|
14720
|
+
environment: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : _window$Pelcro8.environment,
|
|
14606
14721
|
matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
|
|
14607
14722
|
productListState: this.state.productList,
|
|
14608
14723
|
methods: {
|
|
@@ -14613,15 +14728,14 @@ class SelectModal extends Component {
|
|
|
14613
14728
|
userCurrency: userCurrency,
|
|
14614
14729
|
userCountry: userCountry,
|
|
14615
14730
|
userLanguage: userLanguage,
|
|
14616
|
-
siteLanguage: (_window$
|
|
14617
|
-
products: (_window$
|
|
14731
|
+
siteLanguage: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : (_window$Pelcro9$helpe = _window$Pelcro9.helpers) === null || _window$Pelcro9$helpe === void 0 ? void 0 : _window$Pelcro9$helpe.getHtmlLanguageAttribute(),
|
|
14732
|
+
products: (_window$Pelcro10 = window.Pelcro) === null || _window$Pelcro10 === void 0 ? void 0 : (_window$Pelcro10$site = _window$Pelcro10.site) === null || _window$Pelcro10$site === void 0 ? void 0 : _window$Pelcro10$site.read().products.length,
|
|
14618
14733
|
currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
|
|
14619
14734
|
country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
|
|
14620
14735
|
language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
|
|
14621
14736
|
});
|
|
14622
14737
|
});
|
|
14623
14738
|
});
|
|
14624
|
-
console.log("bugsnag Triggered");
|
|
14625
14739
|
}
|
|
14626
14740
|
});
|
|
14627
14741
|
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
@@ -14825,6 +14939,7 @@ class SelectModal extends Component {
|
|
|
14825
14939
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
14826
14940
|
this.locale = this.props.t;
|
|
14827
14941
|
this.closeButton = window.Pelcro.paywall.displayCloseButton();
|
|
14942
|
+
this.enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro11 = _window.Pelcro) === null || _window$Pelcro11 === void 0 ? void 0 : (_window$Pelcro11$uiSe = _window$Pelcro11.uiSettings) === null || _window$Pelcro11$uiSe === void 0 ? void 0 : _window$Pelcro11$uiSe.enableReactGA4;
|
|
14828
14943
|
}
|
|
14829
14944
|
render() {
|
|
14830
14945
|
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
@@ -14832,19 +14947,31 @@ class SelectModal extends Component {
|
|
|
14832
14947
|
disableGifting
|
|
14833
14948
|
} = this.props;
|
|
14834
14949
|
if (this.state.mode === "product") {
|
|
14835
|
-
|
|
14836
|
-
|
|
14837
|
-
|
|
14838
|
-
|
|
14839
|
-
|
|
14840
|
-
|
|
14950
|
+
if (this.enableReactGA4) {
|
|
14951
|
+
ReactGA4.event("Product Modal Viewed", {
|
|
14952
|
+
nonInteraction: true
|
|
14953
|
+
});
|
|
14954
|
+
} else {
|
|
14955
|
+
var _ReactGA$event;
|
|
14956
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
14957
|
+
category: "VIEWS",
|
|
14958
|
+
action: "Product Modal Viewed",
|
|
14959
|
+
nonInteraction: true
|
|
14960
|
+
});
|
|
14961
|
+
}
|
|
14841
14962
|
} else if (this.state.mode === "plan") {
|
|
14842
|
-
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
14963
|
+
if (this.enableReactGA4) {
|
|
14964
|
+
ReactGA4.event("Plan Modal Viewed", {
|
|
14965
|
+
nonInteraction: true
|
|
14966
|
+
});
|
|
14967
|
+
} else {
|
|
14968
|
+
var _ReactGA$event2;
|
|
14969
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
|
|
14970
|
+
category: "VIEWS",
|
|
14971
|
+
action: "Plan Modal Viewed",
|
|
14972
|
+
nonInteraction: true
|
|
14973
|
+
});
|
|
14974
|
+
}
|
|
14848
14975
|
}
|
|
14849
14976
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
14850
14977
|
hideCloseButton: !this.closeButton,
|
|
@@ -17186,7 +17313,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17186
17313
|
};
|
|
17187
17314
|
const submitUsingCybersource = (state, dispatch) => {
|
|
17188
17315
|
var _cybersourceInstanceR;
|
|
17189
|
-
console.log("State", state);
|
|
17190
17316
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
17191
17317
|
if (isUsingExistingPaymentMethod) {
|
|
17192
17318
|
// no need to create a new source using cybersrce
|
|
@@ -18269,8 +18395,9 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18269
18395
|
* @param error
|
|
18270
18396
|
* @returns {*}
|
|
18271
18397
|
*/
|
|
18272
|
-
const confirmStripeIntentSetup = (response
|
|
18398
|
+
const confirmStripeIntentSetup = function (response) {
|
|
18273
18399
|
var _response$data2;
|
|
18400
|
+
let isUpdateSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
18274
18401
|
const setup_intent = (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.setup_intent;
|
|
18275
18402
|
if (setup_intent !== null && setup_intent !== void 0 && setup_intent.client_secret) {
|
|
18276
18403
|
var _response$data3, _response$data3$sourc;
|
|
@@ -18292,6 +18419,25 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18292
18419
|
}
|
|
18293
18420
|
});
|
|
18294
18421
|
}
|
|
18422
|
+
if (isUpdateSource) {
|
|
18423
|
+
dispatch({
|
|
18424
|
+
type: DISABLE_SUBMIT,
|
|
18425
|
+
payload: false
|
|
18426
|
+
});
|
|
18427
|
+
dispatch({
|
|
18428
|
+
type: LOADING,
|
|
18429
|
+
payload: false
|
|
18430
|
+
});
|
|
18431
|
+
dispatch({
|
|
18432
|
+
type: SHOW_ALERT,
|
|
18433
|
+
payload: {
|
|
18434
|
+
type: "success",
|
|
18435
|
+
content: t("messages.sourceUpdated")
|
|
18436
|
+
}
|
|
18437
|
+
});
|
|
18438
|
+
onSuccess(res);
|
|
18439
|
+
return;
|
|
18440
|
+
}
|
|
18295
18441
|
return handlePayment(response === null || response === void 0 ? void 0 : (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : _response$data4.source);
|
|
18296
18442
|
});
|
|
18297
18443
|
} else {
|
|
@@ -18317,8 +18463,8 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18317
18463
|
gift_message: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.giftMessage,
|
|
18318
18464
|
address_id: product.address_required ? selectedAddressId : null
|
|
18319
18465
|
}, (err, res) => {
|
|
18320
|
-
var _res$data, _res$data$payment_int;
|
|
18321
|
-
if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$payment_int = _res$data.payment_intent) === null || _res$data$payment_int === void 0 ? void 0 : _res$data$payment_int.status) === "requires_action") {
|
|
18466
|
+
var _res$data, _res$data$payment_int, _res$data2, _res$data2$payment_in;
|
|
18467
|
+
if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$payment_int = _res$data.payment_intent) === null || _res$data$payment_int === void 0 ? void 0 : _res$data$payment_int.status) === "requires_action" || (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : (_res$data2$payment_in = _res$data2.payment_intent) === null || _res$data2$payment_in === void 0 ? void 0 : _res$data2$payment_in.status) === "requires_confirmation") {
|
|
18322
18468
|
confirmStripePaymentIntent(res);
|
|
18323
18469
|
} else {
|
|
18324
18470
|
dispatch({
|
|
@@ -18353,8 +18499,8 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18353
18499
|
subscription_id: subscriptionIdToRenew,
|
|
18354
18500
|
address_id: product.address_required ? selectedAddressId : null
|
|
18355
18501
|
}, (err, res) => {
|
|
18356
|
-
var _res$
|
|
18357
|
-
if ((res === null || res === void 0 ? void 0 : (_res$
|
|
18502
|
+
var _res$data3, _res$data3$payment_in, _res$data4, _res$data4$payment_in;
|
|
18503
|
+
if ((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : (_res$data3$payment_in = _res$data3.payment_intent) === null || _res$data3$payment_in === void 0 ? void 0 : _res$data3$payment_in.status) === "requires_action" || (res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : (_res$data4$payment_in = _res$data4.payment_intent) === null || _res$data4$payment_in === void 0 ? void 0 : _res$data4$payment_in.status) === "requires_confirmation") {
|
|
18358
18504
|
confirmStripePaymentIntent(res);
|
|
18359
18505
|
} else {
|
|
18360
18506
|
dispatch({
|
|
@@ -18388,8 +18534,8 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18388
18534
|
subscription_id: subscriptionIdToRenew,
|
|
18389
18535
|
address_id: product.address_required ? selectedAddressId : null
|
|
18390
18536
|
}, (err, res) => {
|
|
18391
|
-
var _res$
|
|
18392
|
-
if ((res === null || res === void 0 ? void 0 : (_res$
|
|
18537
|
+
var _res$data5, _res$data5$payment_in, _res$data6, _res$data6$payment_in;
|
|
18538
|
+
if ((res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : (_res$data5$payment_in = _res$data5.payment_intent) === null || _res$data5$payment_in === void 0 ? void 0 : _res$data5$payment_in.status) === "requires_action" || (res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : (_res$data6$payment_in = _res$data6.payment_intent) === null || _res$data6$payment_in === void 0 ? void 0 : _res$data6$payment_in.status) === "requires_confirmation") {
|
|
18393
18539
|
confirmStripePaymentIntent(res);
|
|
18394
18540
|
} else {
|
|
18395
18541
|
dispatch({
|
|
@@ -18498,7 +18644,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18498
18644
|
onSuccess(res);
|
|
18499
18645
|
});
|
|
18500
18646
|
};
|
|
18501
|
-
const purchase = (gatewayService,
|
|
18647
|
+
const purchase = (gatewayService, backendSource, state, dispatch) => {
|
|
18502
18648
|
const isQuickPurchase = !Array.isArray(order);
|
|
18503
18649
|
const mappedOrderItems = isQuickPurchase ? [{
|
|
18504
18650
|
sku_id: order.id,
|
|
@@ -18513,14 +18659,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18513
18659
|
const payment = new Payment(gatewayService);
|
|
18514
18660
|
payment.execute({
|
|
18515
18661
|
type: PAYMENT_TYPES.PURCHASE_ECOMMERCE_ORDER,
|
|
18516
|
-
token:
|
|
18517
|
-
isExistingSource:
|
|
18662
|
+
token: backendSource,
|
|
18663
|
+
isExistingSource: true,
|
|
18518
18664
|
items: mappedOrderItems,
|
|
18519
18665
|
addressId: selectedAddressId,
|
|
18520
18666
|
couponCode
|
|
18521
18667
|
}, (err, orderResponse) => {
|
|
18522
|
-
var _res, _res$
|
|
18523
|
-
if (((_res = res) === null || _res === void 0 ? void 0 : (_res$
|
|
18668
|
+
var _res, _res$data7, _res$data7$payment_in, _res2, _res2$data, _res2$data$payment_in;
|
|
18669
|
+
if (((_res = res) === null || _res === void 0 ? void 0 : (_res$data7 = _res.data) === null || _res$data7 === void 0 ? void 0 : (_res$data7$payment_in = _res$data7.payment_intent) === null || _res$data7$payment_in === void 0 ? void 0 : _res$data7$payment_in.status) === "requires_action" || ((_res2 = res) === null || _res2 === void 0 ? void 0 : (_res2$data = _res2.data) === null || _res2$data === void 0 ? void 0 : (_res2$data$payment_in = _res2$data.payment_intent) === null || _res2$data$payment_in === void 0 ? void 0 : _res2$data$payment_in.status) === "requires_confirmation") {
|
|
18524
18670
|
confirmStripePaymentIntent(res);
|
|
18525
18671
|
} else {
|
|
18526
18672
|
var _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro2$user$;
|
|
@@ -18580,16 +18726,16 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18580
18726
|
}
|
|
18581
18727
|
});
|
|
18582
18728
|
};
|
|
18583
|
-
const payInvoice = (gatewayService,
|
|
18729
|
+
const payInvoice = (gatewayService, backendSource, dispatch) => {
|
|
18584
18730
|
const payment = new Payment(gatewayService);
|
|
18585
18731
|
return payment.execute({
|
|
18586
18732
|
type: PAYMENT_TYPES.PAY_INVOICE,
|
|
18587
|
-
token:
|
|
18588
|
-
isExistingSource:
|
|
18733
|
+
token: backendSource,
|
|
18734
|
+
isExistingSource: true,
|
|
18589
18735
|
invoiceId: invoice.id
|
|
18590
18736
|
}, (err, res) => {
|
|
18591
|
-
var _res$
|
|
18592
|
-
if ((res === null || res === void 0 ? void 0 : (_res$
|
|
18737
|
+
var _res$data8, _res$data8$payment_in, _res$data9, _res$data9$payment_in;
|
|
18738
|
+
if ((res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : (_res$data8$payment_in = _res$data8.payment_intent) === null || _res$data8$payment_in === void 0 ? void 0 : _res$data8$payment_in.status) === "requires_action" || (res === null || res === void 0 ? void 0 : (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : (_res$data9$payment_in = _res$data9.payment_intent) === null || _res$data9$payment_in === void 0 ? void 0 : _res$data9$payment_in.status) === "requires_confirmation") {
|
|
18593
18739
|
confirmStripePaymentIntent(res);
|
|
18594
18740
|
} else {
|
|
18595
18741
|
dispatch({
|
|
@@ -18614,11 +18760,11 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18614
18760
|
}
|
|
18615
18761
|
});
|
|
18616
18762
|
};
|
|
18763
|
+
console.log("trigger release");
|
|
18617
18764
|
const updatePaymentSource = (state, dispatch) => {
|
|
18618
18765
|
return stripe.createSource({
|
|
18619
18766
|
type: "card"
|
|
18620
18767
|
}).then(_ref8 => {
|
|
18621
|
-
var _source$card2;
|
|
18622
18768
|
let {
|
|
18623
18769
|
source,
|
|
18624
18770
|
error
|
|
@@ -18626,45 +18772,41 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18626
18772
|
if (error) {
|
|
18627
18773
|
return handlePaymentError(error);
|
|
18628
18774
|
}
|
|
18629
|
-
|
|
18630
|
-
|
|
18631
|
-
|
|
18632
|
-
|
|
18633
|
-
|
|
18634
|
-
|
|
18775
|
+
window.Pelcro.source.create({
|
|
18776
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
18777
|
+
token: source.id
|
|
18778
|
+
}, (err, res) => {
|
|
18779
|
+
var _res$data10, _res$data10$setup_int, _res$data11, _res$data11$setup_int;
|
|
18780
|
+
if (((_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : (_res$data10$setup_int = _res$data10.setup_intent) === null || _res$data10$setup_int === void 0 ? void 0 : _res$data10$setup_int.status) === "requires_action" || ((_res$data11 = res.data) === null || _res$data11 === void 0 ? void 0 : (_res$data11$setup_int = _res$data11.setup_intent) === null || _res$data11$setup_int === void 0 ? void 0 : _res$data11$setup_int.status) === "requires_confirmation") {
|
|
18781
|
+
confirmStripeIntentSetup(res, true);
|
|
18782
|
+
} else {
|
|
18783
|
+
dispatch({
|
|
18784
|
+
type: DISABLE_SUBMIT,
|
|
18785
|
+
payload: false
|
|
18786
|
+
});
|
|
18787
|
+
dispatch({
|
|
18788
|
+
type: LOADING,
|
|
18789
|
+
payload: false
|
|
18790
|
+
});
|
|
18791
|
+
if (err) {
|
|
18792
|
+
onFailure(err);
|
|
18793
|
+
return dispatch({
|
|
18794
|
+
type: SHOW_ALERT,
|
|
18795
|
+
payload: {
|
|
18796
|
+
type: "error",
|
|
18797
|
+
content: getErrorMessages(err)
|
|
18798
|
+
}
|
|
18799
|
+
});
|
|
18635
18800
|
}
|
|
18636
|
-
|
|
18637
|
-
}
|
|
18638
|
-
window.Pelcro.source.create({
|
|
18639
|
-
auth_token: window.Pelcro.user.read().auth_token,
|
|
18640
|
-
token: source.id
|
|
18641
|
-
}, (err, res) => {
|
|
18642
|
-
dispatch({
|
|
18643
|
-
type: DISABLE_SUBMIT,
|
|
18644
|
-
payload: false
|
|
18645
|
-
});
|
|
18646
|
-
dispatch({
|
|
18647
|
-
type: LOADING,
|
|
18648
|
-
payload: false
|
|
18649
|
-
});
|
|
18650
|
-
if (err) {
|
|
18651
|
-
onFailure(err);
|
|
18652
|
-
return dispatch({
|
|
18801
|
+
dispatch({
|
|
18653
18802
|
type: SHOW_ALERT,
|
|
18654
18803
|
payload: {
|
|
18655
|
-
type: "
|
|
18656
|
-
content:
|
|
18804
|
+
type: "success",
|
|
18805
|
+
content: t("messages.sourceUpdated")
|
|
18657
18806
|
}
|
|
18658
18807
|
});
|
|
18808
|
+
onSuccess(res);
|
|
18659
18809
|
}
|
|
18660
|
-
dispatch({
|
|
18661
|
-
type: SHOW_ALERT,
|
|
18662
|
-
payload: {
|
|
18663
|
-
type: "success",
|
|
18664
|
-
content: t("messages.sourceUpdated")
|
|
18665
|
-
}
|
|
18666
|
-
});
|
|
18667
|
-
onSuccess(res);
|
|
18668
18810
|
});
|
|
18669
18811
|
});
|
|
18670
18812
|
};
|
|
@@ -18732,30 +18874,31 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18732
18874
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
18733
18875
|
token: source.id
|
|
18734
18876
|
}, (err, res) => {
|
|
18735
|
-
|
|
18736
|
-
|
|
18737
|
-
|
|
18877
|
+
if (err) {
|
|
18878
|
+
onFailure(err);
|
|
18879
|
+
dispatch({
|
|
18880
|
+
type: DISABLE_SUBMIT,
|
|
18881
|
+
payload: false
|
|
18882
|
+
});
|
|
18883
|
+
dispatch({
|
|
18884
|
+
type: LOADING,
|
|
18885
|
+
payload: false
|
|
18886
|
+
});
|
|
18887
|
+
return dispatch({
|
|
18888
|
+
type: SHOW_ALERT,
|
|
18889
|
+
payload: {
|
|
18890
|
+
type: "error",
|
|
18891
|
+
content: getErrorMessages(err)
|
|
18892
|
+
}
|
|
18893
|
+
});
|
|
18738
18894
|
} else {
|
|
18739
|
-
var _res$
|
|
18740
|
-
if (
|
|
18741
|
-
|
|
18742
|
-
|
|
18743
|
-
|
|
18744
|
-
|
|
18745
|
-
});
|
|
18746
|
-
dispatch({
|
|
18747
|
-
type: LOADING,
|
|
18748
|
-
payload: false
|
|
18749
|
-
});
|
|
18750
|
-
return dispatch({
|
|
18751
|
-
type: SHOW_ALERT,
|
|
18752
|
-
payload: {
|
|
18753
|
-
type: "error",
|
|
18754
|
-
content: getErrorMessages(err)
|
|
18755
|
-
}
|
|
18756
|
-
});
|
|
18895
|
+
var _res$data12, _res$data12$setup_int, _res$data13, _res$data13$setup_int;
|
|
18896
|
+
if (((_res$data12 = res.data) === null || _res$data12 === void 0 ? void 0 : (_res$data12$setup_int = _res$data12.setup_intent) === null || _res$data12$setup_int === void 0 ? void 0 : _res$data12$setup_int.status) === "requires_action" || ((_res$data13 = res.data) === null || _res$data13 === void 0 ? void 0 : (_res$data13$setup_int = _res$data13.setup_intent) === null || _res$data13$setup_int === void 0 ? void 0 : _res$data13$setup_int.status) === "requires_confirmation") {
|
|
18897
|
+
confirmStripeIntentSetup(res);
|
|
18898
|
+
} else {
|
|
18899
|
+
var _res$data14;
|
|
18900
|
+
return handlePayment((_res$data14 = res.data) === null || _res$data14 === void 0 ? void 0 : _res$data14.source);
|
|
18757
18901
|
}
|
|
18758
|
-
return handlePayment((_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.source);
|
|
18759
18902
|
}
|
|
18760
18903
|
}));
|
|
18761
18904
|
}).catch(error => {
|
|
@@ -18785,12 +18928,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18785
18928
|
coupon_code: state === null || state === void 0 ? void 0 : state.couponCode,
|
|
18786
18929
|
address_id: selectedAddressId
|
|
18787
18930
|
}, (error, res) => {
|
|
18788
|
-
var _res$
|
|
18931
|
+
var _res$data15, _res$data16;
|
|
18789
18932
|
if (error) {
|
|
18790
18933
|
return reject(error);
|
|
18791
18934
|
}
|
|
18792
|
-
const taxAmount = (_res$
|
|
18793
|
-
const totalAmountWithTax = (_res$
|
|
18935
|
+
const taxAmount = (_res$data15 = res.data) === null || _res$data15 === void 0 ? void 0 : _res$data15.taxes;
|
|
18936
|
+
const totalAmountWithTax = (_res$data16 = res.data) === null || _res$data16 === void 0 ? void 0 : _res$data16.total;
|
|
18794
18937
|
resolve({
|
|
18795
18938
|
totalAmountWithTax,
|
|
18796
18939
|
taxAmount
|
|
@@ -18834,13 +18977,13 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18834
18977
|
}
|
|
18835
18978
|
});
|
|
18836
18979
|
};
|
|
18837
|
-
const handlePayment =
|
|
18838
|
-
if (
|
|
18839
|
-
subscribe(
|
|
18840
|
-
} else if (
|
|
18841
|
-
purchase(new StripeGateway(),
|
|
18842
|
-
} else if (
|
|
18843
|
-
payInvoice(new StripeGateway(),
|
|
18980
|
+
const handlePayment = backendSource => {
|
|
18981
|
+
if (backendSource && type === "createPayment") {
|
|
18982
|
+
subscribe(backendSource, state, dispatch);
|
|
18983
|
+
} else if (backendSource && type === "orderCreate") {
|
|
18984
|
+
purchase(new StripeGateway(), backendSource.id, state, dispatch);
|
|
18985
|
+
} else if (backendSource && type === "invoicePayment") {
|
|
18986
|
+
payInvoice(new StripeGateway(), backendSource.id, dispatch);
|
|
18844
18987
|
}
|
|
18845
18988
|
};
|
|
18846
18989
|
const handlePaymentError = error => {
|
|
@@ -20246,13 +20389,11 @@ const SubscriptionRenewView = _ref => {
|
|
|
20246
20389
|
}));
|
|
20247
20390
|
};
|
|
20248
20391
|
|
|
20249
|
-
var _window$6, _window$Pelcro$6, _window$Pelcro$uiSett$6;
|
|
20250
|
-
const ReactGA$6 = (_window$6 = window) !== null && _window$6 !== void 0 && (_window$Pelcro$6 = _window$6.Pelcro) !== null && _window$Pelcro$6 !== void 0 && (_window$Pelcro$uiSett$6 = _window$Pelcro$6.uiSettings) !== null && _window$Pelcro$uiSett$6 !== void 0 && _window$Pelcro$uiSett$6.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
20251
|
-
|
|
20252
20392
|
/**
|
|
20253
20393
|
*
|
|
20254
20394
|
*/
|
|
20255
20395
|
function SubscriptionRenewModal(_ref) {
|
|
20396
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
20256
20397
|
let {
|
|
20257
20398
|
onDisplay,
|
|
20258
20399
|
onClose,
|
|
@@ -20261,24 +20402,39 @@ function SubscriptionRenewModal(_ref) {
|
|
|
20261
20402
|
const {
|
|
20262
20403
|
switchView
|
|
20263
20404
|
} = usePelcro();
|
|
20405
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
20264
20406
|
const onSuccess = res => {
|
|
20265
|
-
var _otherProps$onSuccess
|
|
20407
|
+
var _otherProps$onSuccess;
|
|
20266
20408
|
(_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, res);
|
|
20267
|
-
|
|
20268
|
-
|
|
20269
|
-
|
|
20270
|
-
|
|
20271
|
-
}
|
|
20409
|
+
if (enableReactGA4) {
|
|
20410
|
+
ReactGA4.event("Renewed", {
|
|
20411
|
+
nonInteraction: true
|
|
20412
|
+
});
|
|
20413
|
+
} else {
|
|
20414
|
+
var _ReactGA$event;
|
|
20415
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
20416
|
+
category: "ACTIONS",
|
|
20417
|
+
action: "Renewed",
|
|
20418
|
+
nonInteraction: true
|
|
20419
|
+
});
|
|
20420
|
+
}
|
|
20272
20421
|
return switchView("subscription-success");
|
|
20273
20422
|
};
|
|
20274
20423
|
const onGiftRenewalSuccess = () => {
|
|
20275
|
-
var _otherProps$onGiftRen
|
|
20424
|
+
var _otherProps$onGiftRen;
|
|
20276
20425
|
(_otherProps$onGiftRen = otherProps.onGiftRenewalSuccess) === null || _otherProps$onGiftRen === void 0 ? void 0 : _otherProps$onGiftRen.call(otherProps);
|
|
20277
|
-
|
|
20278
|
-
|
|
20279
|
-
|
|
20280
|
-
|
|
20281
|
-
}
|
|
20426
|
+
if (enableReactGA4) {
|
|
20427
|
+
ReactGA4.event("Renewed Gift", {
|
|
20428
|
+
nonInteraction: true
|
|
20429
|
+
});
|
|
20430
|
+
} else {
|
|
20431
|
+
var _ReactGA$event2;
|
|
20432
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
|
|
20433
|
+
category: "ACTIONS",
|
|
20434
|
+
action: "Renewed Gift",
|
|
20435
|
+
nonInteraction: true
|
|
20436
|
+
});
|
|
20437
|
+
}
|
|
20282
20438
|
return switchView("subscription-success");
|
|
20283
20439
|
};
|
|
20284
20440
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
@@ -20293,7 +20449,8 @@ function SubscriptionRenewModal(_ref) {
|
|
|
20293
20449
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
20294
20450
|
|
|
20295
20451
|
const initialState$j = {
|
|
20296
|
-
cancelationReason: ""
|
|
20452
|
+
cancelationReason: "",
|
|
20453
|
+
cancelationOption: ""
|
|
20297
20454
|
};
|
|
20298
20455
|
const store$j = /*#__PURE__*/createContext(initialState$j);
|
|
20299
20456
|
const {
|
|
@@ -20308,7 +20465,6 @@ const SubscriptionCancelContainer = _ref => {
|
|
|
20308
20465
|
children,
|
|
20309
20466
|
...props
|
|
20310
20467
|
} = _ref;
|
|
20311
|
-
useTranslation("verifyEmail");
|
|
20312
20468
|
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
20313
20469
|
switch (action.type) {
|
|
20314
20470
|
case SET_CANCEL_SUBSCRIPTION_REASON:
|
|
@@ -20316,6 +20472,11 @@ const SubscriptionCancelContainer = _ref => {
|
|
|
20316
20472
|
...state,
|
|
20317
20473
|
cancelationReason: action.payload
|
|
20318
20474
|
});
|
|
20475
|
+
case SET_CANCEL_SUBSCRIPTION_OPTION:
|
|
20476
|
+
return lib_7({
|
|
20477
|
+
...state,
|
|
20478
|
+
cancelationOption: action.payload
|
|
20479
|
+
});
|
|
20319
20480
|
default:
|
|
20320
20481
|
return state;
|
|
20321
20482
|
}
|
|
@@ -20415,8 +20576,7 @@ const SubscriptionCancelReason = props => {
|
|
|
20415
20576
|
t
|
|
20416
20577
|
} = useTranslation("subscriptionCancel");
|
|
20417
20578
|
const {
|
|
20418
|
-
dispatch
|
|
20419
|
-
state
|
|
20579
|
+
dispatch
|
|
20420
20580
|
} = useContext(store$j);
|
|
20421
20581
|
const handleOnTextAreaBlur = e => {
|
|
20422
20582
|
dispatch({
|
|
@@ -20448,9 +20608,7 @@ function SvgSubscription(props) {
|
|
|
20448
20608
|
}))))));
|
|
20449
20609
|
}
|
|
20450
20610
|
|
|
20451
|
-
|
|
20452
|
-
const ReactGA$5 = (_window$5 = window) !== null && _window$5 !== void 0 && (_window$Pelcro$5 = _window$5.Pelcro) !== null && _window$Pelcro$5 !== void 0 && (_window$Pelcro$uiSett$5 = _window$Pelcro$5.uiSettings) !== null && _window$Pelcro$uiSett$5 !== void 0 && _window$Pelcro$uiSett$5.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
20453
|
-
const SubscriptionCancelNowButton = _ref => {
|
|
20611
|
+
const SubscriptionCancelButton = _ref => {
|
|
20454
20612
|
let {
|
|
20455
20613
|
subscription,
|
|
20456
20614
|
onClick,
|
|
@@ -20461,14 +20619,16 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
20461
20619
|
} = usePelcro();
|
|
20462
20620
|
const {
|
|
20463
20621
|
state: {
|
|
20464
|
-
cancelationReason
|
|
20465
|
-
|
|
20466
|
-
|
|
20622
|
+
cancelationReason,
|
|
20623
|
+
cancelationOption
|
|
20624
|
+
}
|
|
20467
20625
|
} = useContext(store$j);
|
|
20468
20626
|
const {
|
|
20469
20627
|
t
|
|
20470
20628
|
} = useTranslation("subscriptionCancel");
|
|
20471
20629
|
const cancelSubscription = (payload, onSuccess, onFailure) => {
|
|
20630
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
20631
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
20472
20632
|
window.Pelcro.subscription.cancel({
|
|
20473
20633
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
20474
20634
|
subscription_id: payload.subscription_id,
|
|
@@ -20477,36 +20637,42 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
20477
20637
|
reason: payload.reason
|
|
20478
20638
|
})
|
|
20479
20639
|
}, (err, res) => {
|
|
20480
|
-
var _ReactGA$event;
|
|
20481
20640
|
if (err) {
|
|
20482
20641
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
20483
20642
|
}
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
|
|
20487
|
-
|
|
20488
|
-
}
|
|
20643
|
+
if (enableReactGA4) {
|
|
20644
|
+
ReactGA4.event("Canceled", {
|
|
20645
|
+
nonInteraction: true
|
|
20646
|
+
});
|
|
20647
|
+
} else {
|
|
20648
|
+
var _ReactGA$event;
|
|
20649
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
20650
|
+
category: "ACTIONS",
|
|
20651
|
+
action: "Canceled",
|
|
20652
|
+
nonInteraction: true
|
|
20653
|
+
});
|
|
20654
|
+
}
|
|
20489
20655
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
20490
20656
|
});
|
|
20491
20657
|
};
|
|
20492
|
-
const
|
|
20658
|
+
const handleCancelClick = () => {
|
|
20493
20659
|
const payload = {
|
|
20494
20660
|
subscription_id: subscription.id,
|
|
20495
|
-
mode:
|
|
20661
|
+
mode: cancelationOption,
|
|
20496
20662
|
...(cancelationReason && {
|
|
20497
20663
|
reason: cancelationReason
|
|
20498
20664
|
})
|
|
20499
20665
|
};
|
|
20500
20666
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
20501
20667
|
|
|
20502
|
-
//Close the modal
|
|
20668
|
+
// Close the modal
|
|
20503
20669
|
switchView(null);
|
|
20504
20670
|
|
|
20505
|
-
//Show confirmation alert after closing the modal
|
|
20671
|
+
// Show confirmation alert after closing the modal
|
|
20506
20672
|
notify$1.confirm((onSuccess, onFailure) => {
|
|
20507
20673
|
cancelSubscription(payload, onSuccess, onFailure);
|
|
20508
20674
|
}, {
|
|
20509
|
-
confirmMessage: t("messages.subCancellation.isSureToCancelNow"),
|
|
20675
|
+
confirmMessage: cancelationOption === "now" ? t("messages.subCancellation.isSureToCancelNow") : t("messages.subCancellation.isSureToCancel"),
|
|
20510
20676
|
loadingMessage: t("messages.subCancellation.loading"),
|
|
20511
20677
|
successMessage: t("messages.subCancellation.success"),
|
|
20512
20678
|
errorMessage: t("messages.subCancellation.error")
|
|
@@ -20515,90 +20681,85 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
20515
20681
|
});
|
|
20516
20682
|
};
|
|
20517
20683
|
return /*#__PURE__*/React__default.createElement(Button, {
|
|
20518
|
-
onClick:
|
|
20519
|
-
className: `${className}
|
|
20520
|
-
|
|
20684
|
+
onClick: handleCancelClick,
|
|
20685
|
+
className: `${className}`,
|
|
20686
|
+
disabled: !cancelationOption
|
|
20687
|
+
}, t("labels.cancel"));
|
|
20521
20688
|
};
|
|
20522
20689
|
|
|
20523
|
-
|
|
20524
|
-
const ReactGA$4 = (_window$4 = window) !== null && _window$4 !== void 0 && (_window$Pelcro$4 = _window$4.Pelcro) !== null && _window$Pelcro$4 !== void 0 && (_window$Pelcro$uiSett$4 = _window$Pelcro$4.uiSettings) !== null && _window$Pelcro$uiSett$4 !== void 0 && _window$Pelcro$uiSett$4.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
20525
|
-
const SubscriptionCancelLaterButton = _ref => {
|
|
20690
|
+
const SubscriptionCancelOptions = _ref => {
|
|
20526
20691
|
let {
|
|
20527
20692
|
subscription,
|
|
20693
|
+
hasPhases,
|
|
20528
20694
|
onClick,
|
|
20529
20695
|
className
|
|
20530
20696
|
} = _ref;
|
|
20531
|
-
const {
|
|
20532
|
-
switchView
|
|
20533
|
-
} = usePelcro();
|
|
20534
20697
|
const {
|
|
20535
20698
|
state: {
|
|
20536
|
-
|
|
20699
|
+
cancelationOption
|
|
20537
20700
|
},
|
|
20538
20701
|
dispatch
|
|
20539
20702
|
} = useContext(store$j);
|
|
20540
20703
|
const {
|
|
20541
20704
|
t
|
|
20542
20705
|
} = useTranslation("subscriptionCancel");
|
|
20543
|
-
const
|
|
20544
|
-
|
|
20545
|
-
|
|
20546
|
-
|
|
20547
|
-
|
|
20548
|
-
|
|
20549
|
-
reason: payload.reason
|
|
20550
|
-
})
|
|
20551
|
-
}, (err, res) => {
|
|
20552
|
-
var _ReactGA$event;
|
|
20553
|
-
if (err) {
|
|
20554
|
-
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
20555
|
-
}
|
|
20556
|
-
ReactGA$4 === null || ReactGA$4 === void 0 ? void 0 : (_ReactGA$event = ReactGA$4.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$4, {
|
|
20557
|
-
category: "ACTIONS",
|
|
20558
|
-
action: "Canceled",
|
|
20559
|
-
nonInteraction: true
|
|
20560
|
-
});
|
|
20561
|
-
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
20562
|
-
});
|
|
20563
|
-
};
|
|
20564
|
-
const handleCancelNowClick = () => {
|
|
20565
|
-
const payload = {
|
|
20566
|
-
subscription_id: subscription.id,
|
|
20567
|
-
mode: "period_end",
|
|
20568
|
-
...(cancelationReason && {
|
|
20569
|
-
reason: cancelationReason
|
|
20570
|
-
})
|
|
20571
|
-
};
|
|
20572
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
20573
|
-
|
|
20574
|
-
//Close the modal
|
|
20575
|
-
switchView(null);
|
|
20576
|
-
|
|
20577
|
-
//Show confirmation alert after closing the modal
|
|
20578
|
-
notify$1.confirm((onSuccess, onFailure) => {
|
|
20579
|
-
cancelSubscription(payload, onSuccess, onFailure);
|
|
20580
|
-
}, {
|
|
20581
|
-
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
20582
|
-
loadingMessage: t("messages.subCancellation.loading"),
|
|
20583
|
-
successMessage: t("messages.subCancellation.success"),
|
|
20584
|
-
errorMessage: t("messages.subCancellation.error")
|
|
20585
|
-
}, {
|
|
20586
|
-
closeButtonLabel: t("labels.subCancellation.goBack")
|
|
20706
|
+
const phases = subscription.schedule.phases;
|
|
20707
|
+
const lastPhase = phases[phases.length - 1];
|
|
20708
|
+
const handleOptionSelect = event => {
|
|
20709
|
+
dispatch({
|
|
20710
|
+
type: SET_CANCEL_SUBSCRIPTION_OPTION,
|
|
20711
|
+
payload: event.target.value
|
|
20587
20712
|
});
|
|
20588
20713
|
};
|
|
20589
|
-
return /*#__PURE__*/React__default.createElement(
|
|
20590
|
-
|
|
20591
|
-
|
|
20592
|
-
|
|
20714
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
20715
|
+
className: "plc-text-left plc-mr-auto plc-mb-6"
|
|
20716
|
+
}, /*#__PURE__*/React__default.createElement("p", {
|
|
20717
|
+
className: "plc-mb-3"
|
|
20718
|
+
}, t("messages.cancelWhen")), hasPhases && /*#__PURE__*/React__default.createElement(Radio, {
|
|
20719
|
+
onChange: handleOptionSelect,
|
|
20720
|
+
checked: cancelationOption === "period_end",
|
|
20721
|
+
value: "period_end"
|
|
20722
|
+
}, t("labels.endOn"), " ", new Date(Number(`${lastPhase.end_date}000`)).toLocaleDateString("en-CA", {
|
|
20723
|
+
year: "numeric",
|
|
20724
|
+
month: "short",
|
|
20725
|
+
day: "numeric"
|
|
20726
|
+
})), /*#__PURE__*/React__default.createElement(Radio, {
|
|
20727
|
+
onChange: handleOptionSelect,
|
|
20728
|
+
checked: cancelationOption === "current_period_end",
|
|
20729
|
+
value: "current_period_end"
|
|
20730
|
+
}, t("labels.endOn"), " ", new Date(subscription === null || subscription === void 0 ? void 0 : subscription.current_period_end).toLocaleDateString("en-CA", {
|
|
20731
|
+
year: "numeric",
|
|
20732
|
+
month: "short",
|
|
20733
|
+
day: "numeric"
|
|
20734
|
+
})), /*#__PURE__*/React__default.createElement(Radio, {
|
|
20735
|
+
onChange: handleOptionSelect,
|
|
20736
|
+
checked: cancelationOption === "now",
|
|
20737
|
+
value: "now"
|
|
20738
|
+
}, t("labels.endImmediately")));
|
|
20593
20739
|
};
|
|
20594
20740
|
|
|
20595
20741
|
const SubscriptionCancelView = props => {
|
|
20596
20742
|
const {
|
|
20597
|
-
subscriptionToCancel
|
|
20743
|
+
subscriptionToCancel,
|
|
20744
|
+
switchView
|
|
20598
20745
|
} = usePelcro();
|
|
20599
20746
|
const {
|
|
20600
20747
|
t
|
|
20601
20748
|
} = useTranslation("subscriptionCancel");
|
|
20749
|
+
const getPhases = () => {
|
|
20750
|
+
if (!subscriptionToCancel.schedule) return [];
|
|
20751
|
+
const currentPhaseStartDate = subscriptionToCancel.schedule.current_phase.start_date;
|
|
20752
|
+
const currentPhase = subscriptionToCancel.schedule.phases.find(phase => {
|
|
20753
|
+
return phase.start_date === currentPhaseStartDate;
|
|
20754
|
+
});
|
|
20755
|
+
const futurePhases = subscriptionToCancel.schedule.phases.filter(phase => {
|
|
20756
|
+
return phase.start_date > currentPhaseStartDate;
|
|
20757
|
+
});
|
|
20758
|
+
return [currentPhase, ...futurePhases];
|
|
20759
|
+
};
|
|
20760
|
+
const hasPhases = getPhases().length > 0;
|
|
20761
|
+
const phases = subscriptionToCancel.schedule.phases;
|
|
20762
|
+
const lastPhase = phases[phases.length - 1];
|
|
20602
20763
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
20603
20764
|
id: "pelcro-subscription-cancel-view"
|
|
20604
20765
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -20612,17 +20773,30 @@ const SubscriptionCancelView = props => {
|
|
|
20612
20773
|
}, /*#__PURE__*/React__default.createElement(SvgSubscription, {
|
|
20613
20774
|
className: "plc-w-32 plc-h-32"
|
|
20614
20775
|
}), /*#__PURE__*/React__default.createElement("p", {
|
|
20615
|
-
className: "plc-mb-3 plc-text-gray-900 plc-text-
|
|
20616
|
-
}, t("messages.subscriptionEnd"), " ", new Date(
|
|
20776
|
+
className: "plc-mb-3 plc-text-gray-900 plc-text-left plc-mr-auto plc-whitespace-pre-line"
|
|
20777
|
+
}, t("messages.subscriptionEnd"), " ", hasPhases ? new Date(Number(`${lastPhase.end_date}000`)).toLocaleDateString("en-CA", {
|
|
20617
20778
|
year: "numeric",
|
|
20618
20779
|
month: "short",
|
|
20619
20780
|
day: "numeric"
|
|
20620
|
-
})
|
|
20621
|
-
|
|
20622
|
-
|
|
20623
|
-
|
|
20781
|
+
}) : new Date(subscriptionToCancel === null || subscriptionToCancel === void 0 ? void 0 : subscriptionToCancel.current_period_end).toLocaleDateString("en-CA", {
|
|
20782
|
+
year: "numeric",
|
|
20783
|
+
month: "short",
|
|
20784
|
+
day: "numeric"
|
|
20785
|
+
}), "."), /*#__PURE__*/React__default.createElement(SubscriptionCancelOptions, {
|
|
20786
|
+
subscription: subscriptionToCancel,
|
|
20787
|
+
hasPhases: hasPhases
|
|
20788
|
+
}), /*#__PURE__*/React__default.createElement(SubscriptionCancelReason, null), /*#__PURE__*/React__default.createElement("div", {
|
|
20789
|
+
className: "plc-space-x-0 plc-space-y-3 md:plc-space-x-3 md:plc-space-y-0 plc-w-full plc-flex plc-flex-col md:plc-flex-row plc-items-center plc-justify-center"
|
|
20790
|
+
}, /*#__PURE__*/React__default.createElement(SubscriptionCancelButton, {
|
|
20791
|
+
className: "plc-w-3/4 md:plc-w-2/5",
|
|
20624
20792
|
subscription: subscriptionToCancel
|
|
20625
|
-
})
|
|
20793
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
20794
|
+
variant: "outline",
|
|
20795
|
+
className: "plc-w-3/4 md:plc-w-2/5",
|
|
20796
|
+
onClick: () => {
|
|
20797
|
+
switchView("dashboard");
|
|
20798
|
+
}
|
|
20799
|
+
}, t("labels.subCancellation.goBack"))))));
|
|
20626
20800
|
};
|
|
20627
20801
|
|
|
20628
20802
|
const SubscriptionCancelModal = _ref => {
|
|
@@ -20762,9 +20936,8 @@ const SubscriptionSuspendDate = props => {
|
|
|
20762
20936
|
}, props));
|
|
20763
20937
|
};
|
|
20764
20938
|
|
|
20765
|
-
var _window$3, _window$Pelcro$3, _window$Pelcro$uiSett$3;
|
|
20766
|
-
const ReactGA$3 = (_window$3 = window) !== null && _window$3 !== void 0 && (_window$Pelcro$3 = _window$3.Pelcro) !== null && _window$Pelcro$3 !== void 0 && (_window$Pelcro$uiSett$3 = _window$Pelcro$3.uiSettings) !== null && _window$Pelcro$uiSett$3 !== void 0 && _window$Pelcro$uiSett$3.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
20767
20939
|
const SubscriptionSuspendButton = _ref => {
|
|
20940
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
20768
20941
|
let {
|
|
20769
20942
|
subscription,
|
|
20770
20943
|
onClick,
|
|
@@ -20783,6 +20956,7 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
20783
20956
|
const {
|
|
20784
20957
|
t
|
|
20785
20958
|
} = useTranslation("subscriptionSuspend");
|
|
20959
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
20786
20960
|
const suspendSubscription = (payload, onSuccess, onFailure) => {
|
|
20787
20961
|
window.Pelcro.subscription.update({
|
|
20788
20962
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
@@ -20790,15 +20964,21 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
20790
20964
|
suspend: 1,
|
|
20791
20965
|
shipments_suspended_until: suspendDate
|
|
20792
20966
|
}, (err, res) => {
|
|
20793
|
-
var _ReactGA$event;
|
|
20794
20967
|
if (err) {
|
|
20795
20968
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
20796
20969
|
}
|
|
20797
|
-
|
|
20798
|
-
|
|
20799
|
-
|
|
20800
|
-
|
|
20801
|
-
}
|
|
20970
|
+
if (enableReactGA4) {
|
|
20971
|
+
ReactGA4.event("Suspended", {
|
|
20972
|
+
nonInteraction: true
|
|
20973
|
+
});
|
|
20974
|
+
} else {
|
|
20975
|
+
var _ReactGA$event;
|
|
20976
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
20977
|
+
category: "ACTIONS",
|
|
20978
|
+
action: "Suspended",
|
|
20979
|
+
nonInteraction: true
|
|
20980
|
+
});
|
|
20981
|
+
}
|
|
20802
20982
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
20803
20983
|
});
|
|
20804
20984
|
};
|
|
@@ -20808,10 +20988,10 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
20808
20988
|
};
|
|
20809
20989
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
20810
20990
|
|
|
20811
|
-
//Close the modal
|
|
20991
|
+
// Close the modal
|
|
20812
20992
|
switchView(null);
|
|
20813
20993
|
|
|
20814
|
-
//Show confirmation alert after closing the modal
|
|
20994
|
+
// Show confirmation alert after closing the modal
|
|
20815
20995
|
notify$1.confirm((onSuccess, onFailure) => {
|
|
20816
20996
|
suspendSubscription(payload, onSuccess, onFailure);
|
|
20817
20997
|
}, {
|
|
@@ -22012,7 +22192,7 @@ function SubscriptionManageMembersView(props) {
|
|
|
22012
22192
|
className: "plc-font-semibold plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
22013
22193
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
22014
22194
|
className: "plc-text-2xl"
|
|
22015
|
-
}, t("labels.inviteMembers")), /*#__PURE__*/React__default.createElement("p", null, "
|
|
22195
|
+
}, t("labels.inviteMembers")), /*#__PURE__*/React__default.createElement("p", null, t("labels.listNote"), " 'john@example.com,jane@example.com'")), /*#__PURE__*/React__default.createElement("form", {
|
|
22016
22196
|
action: "javascript:void(0);",
|
|
22017
22197
|
className: "plc-mt-2 pelcro-form"
|
|
22018
22198
|
}, /*#__PURE__*/React__default.createElement(SubscriptionManageMembersContainer, props, /*#__PURE__*/React__default.createElement(AlertWithContext, null), /*#__PURE__*/React__default.createElement(SubscriptionManageMembersEmails, {
|
|
@@ -23540,7 +23720,7 @@ const {
|
|
|
23540
23720
|
Provider: Provider$d
|
|
23541
23721
|
} = store$d;
|
|
23542
23722
|
const AddressUpdateContainer = _ref => {
|
|
23543
|
-
var _props$addressId;
|
|
23723
|
+
var _props$addressId, _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
23544
23724
|
let {
|
|
23545
23725
|
style,
|
|
23546
23726
|
className = "",
|
|
@@ -23554,6 +23734,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
23554
23734
|
addressIdToEdit
|
|
23555
23735
|
} = usePelcro();
|
|
23556
23736
|
const addressId = (_props$addressId = props === null || props === void 0 ? void 0 : props.addressId) !== null && _props$addressId !== void 0 ? _props$addressId : addressIdToEdit;
|
|
23737
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
23557
23738
|
const [t] = useTranslation("address");
|
|
23558
23739
|
useEffect(() => {
|
|
23559
23740
|
const getCountries = () => {
|
|
@@ -23644,7 +23825,6 @@ const AddressUpdateContainer = _ref => {
|
|
|
23644
23825
|
});
|
|
23645
23826
|
onFailure(err);
|
|
23646
23827
|
} else {
|
|
23647
|
-
var _ReactGA$event;
|
|
23648
23828
|
dispatch({
|
|
23649
23829
|
type: SHOW_ALERT,
|
|
23650
23830
|
payload: {
|
|
@@ -23653,11 +23833,18 @@ const AddressUpdateContainer = _ref => {
|
|
|
23653
23833
|
}
|
|
23654
23834
|
});
|
|
23655
23835
|
onSuccess(res);
|
|
23656
|
-
|
|
23657
|
-
|
|
23658
|
-
|
|
23659
|
-
|
|
23660
|
-
}
|
|
23836
|
+
if (enableReactGA4) {
|
|
23837
|
+
ReactGA4.event("Updated address", {
|
|
23838
|
+
nonInteraction: true
|
|
23839
|
+
});
|
|
23840
|
+
} else {
|
|
23841
|
+
var _ReactGA$event;
|
|
23842
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
23843
|
+
category: "ACTIONS",
|
|
23844
|
+
action: "Updated address",
|
|
23845
|
+
nonInteraction: true
|
|
23846
|
+
});
|
|
23847
|
+
}
|
|
23661
23848
|
}
|
|
23662
23849
|
});
|
|
23663
23850
|
};
|
|
@@ -24181,17 +24368,24 @@ function PaymentMethodUpdateView(props) {
|
|
|
24181
24368
|
}));
|
|
24182
24369
|
}
|
|
24183
24370
|
|
|
24184
|
-
var _window$2, _window$Pelcro$2, _window$Pelcro$uiSett$2;
|
|
24185
|
-
const ReactGA$2 = (_window$2 = window) !== null && _window$2 !== void 0 && (_window$Pelcro$2 = _window$2.Pelcro) !== null && _window$Pelcro$2 !== void 0 && (_window$Pelcro$uiSett$2 = _window$Pelcro$2.uiSettings) !== null && _window$Pelcro$uiSett$2 !== void 0 && _window$Pelcro$uiSett$2.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
24186
24371
|
const PaymentMethodUpdateModal = props => {
|
|
24372
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
24373
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
24187
24374
|
const onSuccess = res => {
|
|
24188
|
-
var _props$onSuccess
|
|
24375
|
+
var _props$onSuccess;
|
|
24189
24376
|
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
24190
|
-
|
|
24191
|
-
|
|
24192
|
-
|
|
24193
|
-
|
|
24194
|
-
}
|
|
24377
|
+
if (enableReactGA4) {
|
|
24378
|
+
ReactGA4.event("Updated payment card", {
|
|
24379
|
+
nonInteraction: true
|
|
24380
|
+
});
|
|
24381
|
+
} else {
|
|
24382
|
+
var _ReactGA$event;
|
|
24383
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
24384
|
+
category: "ACTIONS",
|
|
24385
|
+
action: "Updated payment card",
|
|
24386
|
+
nonInteraction: true
|
|
24387
|
+
});
|
|
24388
|
+
}
|
|
24195
24389
|
};
|
|
24196
24390
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
24197
24391
|
id: "pelcro-payment-method-update-modal",
|
|
@@ -28068,8 +28262,6 @@ const OrderItems = _ref => {
|
|
|
28068
28262
|
});
|
|
28069
28263
|
};
|
|
28070
28264
|
|
|
28071
|
-
var _window$1, _window$Pelcro$1, _window$Pelcro$uiSett$1;
|
|
28072
|
-
const ReactGA$1 = (_window$1 = window) !== null && _window$1 !== void 0 && (_window$Pelcro$1 = _window$1.Pelcro) !== null && _window$Pelcro$1 !== void 0 && (_window$Pelcro$uiSett$1 = _window$Pelcro$1.uiSettings) !== null && _window$Pelcro$uiSett$1 !== void 0 && _window$Pelcro$uiSett$1.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
28073
28265
|
const SavedItemsMenu = () => {
|
|
28074
28266
|
const {
|
|
28075
28267
|
t
|
|
@@ -28118,8 +28310,10 @@ const SavedItems = _ref3 => {
|
|
|
28118
28310
|
isAuthenticated
|
|
28119
28311
|
} = usePelcro();
|
|
28120
28312
|
const removeItemFromMetadata = (category, title) => {
|
|
28313
|
+
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
28121
28314
|
const user = window.Pelcro.user.read();
|
|
28122
28315
|
const oldValue = user.metadata[`metadata_saved_${category}`];
|
|
28316
|
+
const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
28123
28317
|
const newMetadataValue = oldValue.filter(metadata => !((metadata === null || metadata === void 0 ? void 0 : metadata.title) === title));
|
|
28124
28318
|
if (isAuthenticated()) {
|
|
28125
28319
|
setLoading(true);
|
|
@@ -28128,17 +28322,24 @@ const SavedItems = _ref3 => {
|
|
|
28128
28322
|
value: newMetadataValue,
|
|
28129
28323
|
auth_token: window.Pelcro.user.read().auth_token
|
|
28130
28324
|
}, (error, response) => {
|
|
28131
|
-
var _response$data
|
|
28325
|
+
var _response$data;
|
|
28132
28326
|
setLoading(false);
|
|
28133
28327
|
if (error) {
|
|
28134
28328
|
return;
|
|
28135
28329
|
}
|
|
28136
28330
|
setItems(response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.metadata);
|
|
28137
|
-
|
|
28138
|
-
|
|
28139
|
-
|
|
28140
|
-
|
|
28141
|
-
}
|
|
28331
|
+
if (enableReactGA4) {
|
|
28332
|
+
ReactGA4.event("Unsave/Unfollow", {
|
|
28333
|
+
event_label: title
|
|
28334
|
+
});
|
|
28335
|
+
} else {
|
|
28336
|
+
var _ReactGA$event;
|
|
28337
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
28338
|
+
category: "ACTIONS",
|
|
28339
|
+
action: "Unsave/Unfollow",
|
|
28340
|
+
label: title
|
|
28341
|
+
});
|
|
28342
|
+
}
|
|
28142
28343
|
});
|
|
28143
28344
|
}
|
|
28144
28345
|
};
|
|
@@ -29081,8 +29282,6 @@ function getMemberShipStatus(status) {
|
|
|
29081
29282
|
};
|
|
29082
29283
|
}
|
|
29083
29284
|
|
|
29084
|
-
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
29085
|
-
const ReactGA = (_window = window) !== null && _window !== void 0 && (_window$Pelcro = _window.Pelcro) !== null && _window$Pelcro !== void 0 && (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) !== null && _window$Pelcro$uiSett !== void 0 && _window$Pelcro$uiSett.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
29086
29285
|
const SUB_MENUS = {
|
|
29087
29286
|
PROFILE: "profile",
|
|
29088
29287
|
SUBSCRIPTIONS: "subscriptions",
|
|
@@ -29137,21 +29336,27 @@ function DashboardWithHook(props) {
|
|
|
29137
29336
|
DashboardWithHook.viewId = "dashboard";
|
|
29138
29337
|
class Dashboard extends Component {
|
|
29139
29338
|
constructor(props) {
|
|
29140
|
-
var _window$Pelcro$user$r, _window$Pelcro$user$r2;
|
|
29339
|
+
var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
29141
29340
|
super(props);
|
|
29142
29341
|
_defineProperty$3(this, "componentDidMount", () => {
|
|
29143
|
-
var _ReactGA$event;
|
|
29144
29342
|
this.setState({
|
|
29145
29343
|
isOpen: true
|
|
29146
29344
|
});
|
|
29147
29345
|
window.Pelcro.insight.track("Modal Displayed", {
|
|
29148
29346
|
name: "dashboard"
|
|
29149
29347
|
});
|
|
29150
|
-
|
|
29151
|
-
|
|
29152
|
-
|
|
29153
|
-
|
|
29154
|
-
}
|
|
29348
|
+
if (this.enableReactGA4) {
|
|
29349
|
+
ReactGA4.event("Dashboard Modal Viewed", {
|
|
29350
|
+
nonInteraction: true
|
|
29351
|
+
});
|
|
29352
|
+
} else {
|
|
29353
|
+
var _ReactGA$event;
|
|
29354
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
29355
|
+
category: "VIEWS",
|
|
29356
|
+
action: "Dashboard Modal Viewed",
|
|
29357
|
+
nonInteraction: true
|
|
29358
|
+
});
|
|
29359
|
+
}
|
|
29155
29360
|
const {
|
|
29156
29361
|
addresses
|
|
29157
29362
|
} = window.Pelcro.user.read();
|
|
@@ -29179,15 +29384,21 @@ class Dashboard extends Component {
|
|
|
29179
29384
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
29180
29385
|
subscription_id: subscription_id
|
|
29181
29386
|
}, (err, res) => {
|
|
29182
|
-
var _ReactGA$event2;
|
|
29183
29387
|
if (err) {
|
|
29184
29388
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
29185
29389
|
}
|
|
29186
|
-
|
|
29187
|
-
|
|
29188
|
-
|
|
29189
|
-
|
|
29190
|
-
}
|
|
29390
|
+
if (this.enableReactGA4) {
|
|
29391
|
+
ReactGA4.event("Canceled", {
|
|
29392
|
+
nonInteraction: true
|
|
29393
|
+
});
|
|
29394
|
+
} else {
|
|
29395
|
+
var _ReactGA$event2;
|
|
29396
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
|
|
29397
|
+
category: "ACTIONS",
|
|
29398
|
+
action: "Canceled",
|
|
29399
|
+
nonInteraction: true
|
|
29400
|
+
});
|
|
29401
|
+
}
|
|
29191
29402
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
29192
29403
|
});
|
|
29193
29404
|
});
|
|
@@ -29197,15 +29408,21 @@ class Dashboard extends Component {
|
|
|
29197
29408
|
subscription_id: subscription_id,
|
|
29198
29409
|
suspend: 0
|
|
29199
29410
|
}, (err, res) => {
|
|
29200
|
-
var _ReactGA$event3;
|
|
29201
29411
|
if (err) {
|
|
29202
29412
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
29203
29413
|
}
|
|
29204
|
-
|
|
29205
|
-
|
|
29206
|
-
|
|
29207
|
-
|
|
29208
|
-
}
|
|
29414
|
+
if (this.enableReactGA4) {
|
|
29415
|
+
ReactGA4.event("UnSuspended", {
|
|
29416
|
+
nonInteraction: true
|
|
29417
|
+
});
|
|
29418
|
+
} else {
|
|
29419
|
+
var _ReactGA$event3;
|
|
29420
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event3 = ReactGA.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA, {
|
|
29421
|
+
category: "ACTIONS",
|
|
29422
|
+
action: "UnSuspended",
|
|
29423
|
+
nonInteraction: true
|
|
29424
|
+
});
|
|
29425
|
+
}
|
|
29209
29426
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
|
|
29210
29427
|
});
|
|
29211
29428
|
});
|
|
@@ -29482,6 +29699,7 @@ class Dashboard extends Component {
|
|
|
29482
29699
|
this.locale = this.props.t;
|
|
29483
29700
|
this.user = window.Pelcro.user.read();
|
|
29484
29701
|
this.menuRef = /*#__PURE__*/React__default.createRef();
|
|
29702
|
+
this.enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
|
|
29485
29703
|
}
|
|
29486
29704
|
render() {
|
|
29487
29705
|
var _window$Pelcro$user$r3, _window$Pelcro2, _window$Pelcro2$uiSet, _this$user$source, _this$user$source$pro, _this$user$source2, _this$user$source2$pr;
|
|
@@ -33515,4 +33733,6 @@ const QrCodeModal = _ref => {
|
|
|
33515
33733
|
};
|
|
33516
33734
|
QrCodeModal.viewId = "qrcode";
|
|
33517
33735
|
|
|
33736
|
+
console.log("test");
|
|
33737
|
+
|
|
33518
33738
|
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankAuthenticationSuccess, 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, IncludeFirstName, IncludeLastName, IncludePhone, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateFreeButton, 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, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserNameInput, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateTin, UserUpdateUsername, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify$1 as notify, unauthenticatedButtons, usePelcro };
|