@pelcro/react-pelcro-js 3.22.0 → 3.23.0-beta.2
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 +1768 -793
- package/dist/index.esm.js +1767 -793
- package/dist/pelcro.css +82 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3253,7 +3253,7 @@ var validation$3 = {
|
|
|
3253
3253
|
enterLastName: "Last name is required.",
|
|
3254
3254
|
enterPhone: "Phone number is required."
|
|
3255
3255
|
};
|
|
3256
|
-
var buttons$
|
|
3256
|
+
var buttons$n = {
|
|
3257
3257
|
account: "My account",
|
|
3258
3258
|
login: "Login",
|
|
3259
3259
|
subscribe: "Subscribe"
|
|
@@ -3331,7 +3331,7 @@ var confirm$b = {
|
|
|
3331
3331
|
};
|
|
3332
3332
|
var common_en = {
|
|
3333
3333
|
validation: validation$3,
|
|
3334
|
-
buttons: buttons$
|
|
3334
|
+
buttons: buttons$n,
|
|
3335
3335
|
dashboard: dashboard$4,
|
|
3336
3336
|
select: select$7,
|
|
3337
3337
|
confirm: confirm$b
|
|
@@ -3362,7 +3362,7 @@ var paymentMethod_en = {
|
|
|
3362
3362
|
var title$z = "Enter your email to subscribe to our newsletter";
|
|
3363
3363
|
var updateTitle$3 = "Update newsletter selections";
|
|
3364
3364
|
var subtitle$f = "We may use your email for other marketing communication";
|
|
3365
|
-
var labels$
|
|
3365
|
+
var labels$16 = {
|
|
3366
3366
|
submit: "Submit",
|
|
3367
3367
|
firstName: "First name",
|
|
3368
3368
|
lastName: "Last name",
|
|
@@ -3370,7 +3370,7 @@ var labels$12 = {
|
|
|
3370
3370
|
postalCode: "Postal code",
|
|
3371
3371
|
required: "required"
|
|
3372
3372
|
};
|
|
3373
|
-
var messages$
|
|
3373
|
+
var messages$1b = {
|
|
3374
3374
|
alreadyHaveAccount: "Already have an account?",
|
|
3375
3375
|
success: "Newsletters were successfully updated",
|
|
3376
3376
|
loginHere: "Login here.",
|
|
@@ -3381,14 +3381,14 @@ var newsletter_en = {
|
|
|
3381
3381
|
title: title$z,
|
|
3382
3382
|
updateTitle: updateTitle$3,
|
|
3383
3383
|
subtitle: subtitle$f,
|
|
3384
|
-
labels: labels$
|
|
3385
|
-
messages: messages$
|
|
3384
|
+
labels: labels$16,
|
|
3385
|
+
messages: messages$1b
|
|
3386
3386
|
};
|
|
3387
3387
|
|
|
3388
|
-
var labels$
|
|
3388
|
+
var labels$15 = {
|
|
3389
3389
|
"continue": "Continue to content"
|
|
3390
3390
|
};
|
|
3391
|
-
var messages$
|
|
3391
|
+
var messages$1a = {
|
|
3392
3392
|
yourFreeTrial: "Subscription successful!",
|
|
3393
3393
|
youHaveAccess: "Hope you enjoy the subscription. Please contact us if you have any questions or concerns.",
|
|
3394
3394
|
clickToLearn: {
|
|
@@ -3414,12 +3414,12 @@ var errors$j = {
|
|
|
3414
3414
|
"": ""
|
|
3415
3415
|
};
|
|
3416
3416
|
var success_en = {
|
|
3417
|
-
labels: labels$
|
|
3418
|
-
messages: messages$
|
|
3417
|
+
labels: labels$15,
|
|
3418
|
+
messages: messages$1a,
|
|
3419
3419
|
errors: errors$j
|
|
3420
3420
|
};
|
|
3421
3421
|
|
|
3422
|
-
var messages$
|
|
3422
|
+
var messages$19 = {
|
|
3423
3423
|
freeVisits: "Free visits left:",
|
|
3424
3424
|
subscribeNow: "Subscribe",
|
|
3425
3425
|
alreadyHaveAccount: "Already have an account?",
|
|
@@ -3429,16 +3429,16 @@ var errors$i = {
|
|
|
3429
3429
|
"": ""
|
|
3430
3430
|
};
|
|
3431
3431
|
var meter_en = {
|
|
3432
|
-
messages: messages$
|
|
3432
|
+
messages: messages$19,
|
|
3433
3433
|
errors: errors$i
|
|
3434
3434
|
};
|
|
3435
3435
|
|
|
3436
|
-
var messages$
|
|
3436
|
+
var messages$18 = {
|
|
3437
3437
|
youAreSafe: "You're safe - PCI compliant 128 SSL by",
|
|
3438
3438
|
bankRedirection: "Please hold, redirecting you to your bank.",
|
|
3439
3439
|
bankAuthenticationSuccess: "Please wait while we process your request."
|
|
3440
3440
|
};
|
|
3441
|
-
var labels$
|
|
3441
|
+
var labels$14 = {
|
|
3442
3442
|
card: "Enter card number",
|
|
3443
3443
|
date: "Expiration date",
|
|
3444
3444
|
CVC: "CVC",
|
|
@@ -3458,11 +3458,13 @@ var labels$10 = {
|
|
|
3458
3458
|
firstName: "First name",
|
|
3459
3459
|
lastName: "Last name",
|
|
3460
3460
|
phone: "Phone",
|
|
3461
|
-
freeItems: "Free Items"
|
|
3461
|
+
freeItems: "Free Items",
|
|
3462
|
+
email: "Email",
|
|
3463
|
+
password: "Password"
|
|
3462
3464
|
};
|
|
3463
3465
|
var checkoutForm_en = {
|
|
3464
|
-
messages: messages$
|
|
3465
|
-
labels: labels$
|
|
3466
|
+
messages: messages$18,
|
|
3467
|
+
labels: labels$14
|
|
3466
3468
|
};
|
|
3467
3469
|
|
|
3468
3470
|
var youAreSafe$3 = "You're safe - PCI compliant 128 SSL by";
|
|
@@ -3486,7 +3488,7 @@ var messages_en = {
|
|
|
3486
3488
|
zeroTotalInvoice: zeroTotalInvoice$3
|
|
3487
3489
|
};
|
|
3488
3490
|
|
|
3489
|
-
var labels
|
|
3491
|
+
var labels$13 = {
|
|
3490
3492
|
email: "Enter email",
|
|
3491
3493
|
username: "Enter username",
|
|
3492
3494
|
password: "Enter password",
|
|
@@ -3495,7 +3497,7 @@ var labels$$ = {
|
|
|
3495
3497
|
passwordPlaceholder: "Password",
|
|
3496
3498
|
login: "Login"
|
|
3497
3499
|
};
|
|
3498
|
-
var messages$
|
|
3500
|
+
var messages$17 = {
|
|
3499
3501
|
loginTo: "Login to your account",
|
|
3500
3502
|
welcome: "Welcome back, sign in with your existing account.",
|
|
3501
3503
|
dontHaveAccount: "Don't have an account yet?",
|
|
@@ -3514,28 +3516,28 @@ var errors$h = {
|
|
|
3514
3516
|
"": ""
|
|
3515
3517
|
};
|
|
3516
3518
|
var login_en = {
|
|
3517
|
-
labels: labels
|
|
3518
|
-
messages: messages$
|
|
3519
|
+
labels: labels$13,
|
|
3520
|
+
messages: messages$17,
|
|
3519
3521
|
errors: errors$h
|
|
3520
3522
|
};
|
|
3521
3523
|
|
|
3522
|
-
var labels$
|
|
3524
|
+
var labels$12 = {
|
|
3523
3525
|
title: "Verifying Passwordless Link",
|
|
3524
3526
|
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
3525
3527
|
resend: "Resend email"
|
|
3526
3528
|
};
|
|
3527
|
-
var messages$
|
|
3529
|
+
var messages$16 = {
|
|
3528
3530
|
resent: "Resent successfully",
|
|
3529
3531
|
success: "You have logged in successfully"
|
|
3530
3532
|
};
|
|
3531
3533
|
var verifyLinkToken_en = {
|
|
3532
|
-
labels: labels$
|
|
3533
|
-
messages: messages$
|
|
3534
|
+
labels: labels$12,
|
|
3535
|
+
messages: messages$16
|
|
3534
3536
|
};
|
|
3535
3537
|
|
|
3536
3538
|
var title$y = "Create an account";
|
|
3537
3539
|
var subtitle$e = "Enter your email and password below";
|
|
3538
|
-
var labels$
|
|
3540
|
+
var labels$11 = {
|
|
3539
3541
|
signUpFacebook: "Sign up with Facebook",
|
|
3540
3542
|
signUpGoogle: "Sign up with Google",
|
|
3541
3543
|
signUpEmail: "Sign up with Email",
|
|
@@ -3548,7 +3550,7 @@ var labels$Z = {
|
|
|
3548
3550
|
lastName: "Last name",
|
|
3549
3551
|
phone: "Phone"
|
|
3550
3552
|
};
|
|
3551
|
-
var messages$
|
|
3553
|
+
var messages$15 = {
|
|
3552
3554
|
alreadyHaveAccount: "Already have an account?",
|
|
3553
3555
|
createAccount: "Create account",
|
|
3554
3556
|
loginHere: "login here. ",
|
|
@@ -3594,7 +3596,8 @@ var gift$3 = {
|
|
|
3594
3596
|
enterEmail: "Please enter the gift recipient's email.",
|
|
3595
3597
|
invalidDate: "The gift date needs to be between today and a year from now.",
|
|
3596
3598
|
giftDateInfo: "The recipient will receive a gift email notification with your message on the date you select in order to redeem the gift.",
|
|
3597
|
-
giftMessageInfo: "Leave a message to the recipient and don't forget to sign your name."
|
|
3599
|
+
giftMessageInfo: "Leave a message to the recipient and don't forget to sign your name.",
|
|
3600
|
+
giftMessageAllowedCharacters: "Special characters and emojis are not allowed."
|
|
3598
3601
|
}
|
|
3599
3602
|
};
|
|
3600
3603
|
var redeem$3 = {
|
|
@@ -3622,14 +3625,14 @@ var redeem$3 = {
|
|
|
3622
3625
|
var register_en = {
|
|
3623
3626
|
title: title$y,
|
|
3624
3627
|
subtitle: subtitle$e,
|
|
3625
|
-
labels: labels$
|
|
3626
|
-
messages: messages$
|
|
3628
|
+
labels: labels$11,
|
|
3629
|
+
messages: messages$15,
|
|
3627
3630
|
errors: errors$g,
|
|
3628
3631
|
gift: gift$3,
|
|
3629
3632
|
redeem: redeem$3
|
|
3630
3633
|
};
|
|
3631
3634
|
|
|
3632
|
-
var labels$
|
|
3635
|
+
var labels$10 = {
|
|
3633
3636
|
title: "Want to update your profile?",
|
|
3634
3637
|
subtitle: "Enter your information below to update your profile",
|
|
3635
3638
|
email: "Email",
|
|
@@ -3648,21 +3651,21 @@ var labels$Y = {
|
|
|
3648
3651
|
zoom: "Zoom",
|
|
3649
3652
|
tin: "Tax Identification Number"
|
|
3650
3653
|
};
|
|
3651
|
-
var messages$
|
|
3654
|
+
var messages$14 = {
|
|
3652
3655
|
userUpdated: "Thanks! Your profile was updated successfully.",
|
|
3653
3656
|
pictureRemoved: "Your profile picture was removed successfully.",
|
|
3654
3657
|
pictureUpdated: "Your profile picture was updated successfully."
|
|
3655
3658
|
};
|
|
3656
3659
|
var userEdit_en = {
|
|
3657
|
-
labels: labels$
|
|
3658
|
-
messages: messages$
|
|
3660
|
+
labels: labels$10,
|
|
3661
|
+
messages: messages$14
|
|
3659
3662
|
};
|
|
3660
3663
|
|
|
3661
3664
|
var title$x = "Enter your shipping address";
|
|
3662
3665
|
var titleGifting$3 = "Enter your address";
|
|
3663
3666
|
var selectAddressTitle$3 = "Please select an address";
|
|
3664
3667
|
var selectAddressSubtitle$3 = "Select one of your saved addresses, or add a new one";
|
|
3665
|
-
var labels
|
|
3668
|
+
var labels$$ = {
|
|
3666
3669
|
address: "Address",
|
|
3667
3670
|
code: "Postal Code/Zip",
|
|
3668
3671
|
city: "City",
|
|
@@ -3673,12 +3676,12 @@ var labels$X = {
|
|
|
3673
3676
|
required: "required",
|
|
3674
3677
|
isDefault: "Set as default"
|
|
3675
3678
|
};
|
|
3676
|
-
var buttons$
|
|
3679
|
+
var buttons$m = {
|
|
3677
3680
|
submit: "Submit",
|
|
3678
3681
|
selectAddress: "Select address",
|
|
3679
3682
|
addAddress: "Add new address"
|
|
3680
3683
|
};
|
|
3681
|
-
var messages
|
|
3684
|
+
var messages$13 = {
|
|
3682
3685
|
addressUpdated: "The address was successfully updated!",
|
|
3683
3686
|
subRedeemed: "Your subscription has been redeemed."
|
|
3684
3687
|
};
|
|
@@ -3687,9 +3690,9 @@ var address_en = {
|
|
|
3687
3690
|
titleGifting: titleGifting$3,
|
|
3688
3691
|
selectAddressTitle: selectAddressTitle$3,
|
|
3689
3692
|
selectAddressSubtitle: selectAddressSubtitle$3,
|
|
3690
|
-
labels: labels
|
|
3691
|
-
buttons: buttons$
|
|
3692
|
-
messages: messages
|
|
3693
|
+
labels: labels$$,
|
|
3694
|
+
buttons: buttons$m,
|
|
3695
|
+
messages: messages$13
|
|
3693
3696
|
};
|
|
3694
3697
|
|
|
3695
3698
|
var title$w = "Reset your password";
|
|
@@ -3717,7 +3720,7 @@ var password$6 = "Password";
|
|
|
3717
3720
|
var submit$e = "Submit";
|
|
3718
3721
|
var required$e = "Required";
|
|
3719
3722
|
var passwordResetEmailSent$3 = "Password reset instructions have been sent to your email";
|
|
3720
|
-
var messages$
|
|
3723
|
+
var messages$12 = {
|
|
3721
3724
|
alreadyHaveAccount: "Already have an account?",
|
|
3722
3725
|
loginHere: "login here."
|
|
3723
3726
|
};
|
|
@@ -3728,7 +3731,7 @@ var passwordForgot_en = {
|
|
|
3728
3731
|
submit: submit$e,
|
|
3729
3732
|
required: required$e,
|
|
3730
3733
|
passwordResetEmailSent: passwordResetEmailSent$3,
|
|
3731
|
-
messages: messages$
|
|
3734
|
+
messages: messages$12
|
|
3732
3735
|
};
|
|
3733
3736
|
|
|
3734
3737
|
var title$u = "Change your password";
|
|
@@ -3756,7 +3759,7 @@ var title$t = "Passwordless Login";
|
|
|
3756
3759
|
var email$9 = "Enter email";
|
|
3757
3760
|
var submit$c = "Submit";
|
|
3758
3761
|
var required$c = "Required";
|
|
3759
|
-
var messages$
|
|
3762
|
+
var messages$11 = {
|
|
3760
3763
|
PasswordlessLoginSuccess: "Please check your email and follow the instructions there"
|
|
3761
3764
|
};
|
|
3762
3765
|
var passwordlessRequest_en = {
|
|
@@ -3764,7 +3767,7 @@ var passwordlessRequest_en = {
|
|
|
3764
3767
|
email: email$9,
|
|
3765
3768
|
submit: submit$c,
|
|
3766
3769
|
required: required$c,
|
|
3767
|
-
messages: messages$
|
|
3770
|
+
messages: messages$11
|
|
3768
3771
|
};
|
|
3769
3772
|
|
|
3770
3773
|
var title$s = "Your shopping cart";
|
|
@@ -3792,13 +3795,13 @@ var cart_en = {
|
|
|
3792
3795
|
removeAll: removeAll$3
|
|
3793
3796
|
};
|
|
3794
3797
|
|
|
3795
|
-
var buttons$
|
|
3798
|
+
var buttons$l = {
|
|
3796
3799
|
select: "Select",
|
|
3797
3800
|
added: "Added to cart",
|
|
3798
3801
|
purchase: "Purchase",
|
|
3799
3802
|
"continue": "Continue"
|
|
3800
3803
|
};
|
|
3801
|
-
var messages$
|
|
3804
|
+
var messages$10 = {
|
|
3802
3805
|
orderConfirmed: {
|
|
3803
3806
|
title: "Order confirmed!",
|
|
3804
3807
|
body: "Your order has been confirmed and will be shipped within the next few days. You'll shortly receive an email confirmation of this order."
|
|
@@ -3807,17 +3810,17 @@ var messages$Y = {
|
|
|
3807
3810
|
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.",
|
|
3808
3811
|
currencyMismatch: "The selected item(s) do not match your current default currency ({{currency}}). Please choose item(s) only matching this currency."
|
|
3809
3812
|
};
|
|
3810
|
-
var labels$
|
|
3813
|
+
var labels$_ = {
|
|
3811
3814
|
summary: "Order summary",
|
|
3812
3815
|
total: "total"
|
|
3813
3816
|
};
|
|
3814
3817
|
var shop_en = {
|
|
3815
|
-
buttons: buttons$
|
|
3816
|
-
messages: messages$
|
|
3817
|
-
labels: labels$
|
|
3818
|
+
buttons: buttons$l,
|
|
3819
|
+
messages: messages$10,
|
|
3820
|
+
labels: labels$_
|
|
3818
3821
|
};
|
|
3819
3822
|
|
|
3820
|
-
var labels$
|
|
3823
|
+
var labels$Z = {
|
|
3821
3824
|
cardNumber: "Card number",
|
|
3822
3825
|
securityCode: "Security Code",
|
|
3823
3826
|
submit: "Submit",
|
|
@@ -3839,7 +3842,7 @@ var labels$V = {
|
|
|
3839
3842
|
title: "Payment Information"
|
|
3840
3843
|
}
|
|
3841
3844
|
};
|
|
3842
|
-
var messages
|
|
3845
|
+
var messages$$ = {
|
|
3843
3846
|
youAreSafe: "You're safe - PCI compliant 128 SSL by",
|
|
3844
3847
|
cancel: "Cancel your subscription online at anytime.",
|
|
3845
3848
|
giftSent: "Subscription gift has been sent to",
|
|
@@ -3853,12 +3856,12 @@ var errors$f = {
|
|
|
3853
3856
|
"": ""
|
|
3854
3857
|
};
|
|
3855
3858
|
var payment_en = {
|
|
3856
|
-
labels: labels$
|
|
3857
|
-
messages: messages
|
|
3859
|
+
labels: labels$Z,
|
|
3860
|
+
messages: messages$$,
|
|
3858
3861
|
errors: errors$f
|
|
3859
3862
|
};
|
|
3860
3863
|
|
|
3861
|
-
var labels$
|
|
3864
|
+
var labels$Y = {
|
|
3862
3865
|
menu: "Pelcro Menu",
|
|
3863
3866
|
name: "Name",
|
|
3864
3867
|
email: "Email",
|
|
@@ -3944,9 +3947,12 @@ var labels$U = {
|
|
|
3944
3947
|
},
|
|
3945
3948
|
subCancellation: {
|
|
3946
3949
|
goBack: "Go back"
|
|
3950
|
+
},
|
|
3951
|
+
donationCancellation: {
|
|
3952
|
+
goBack: "Go back"
|
|
3947
3953
|
}
|
|
3948
3954
|
};
|
|
3949
|
-
var messages$
|
|
3955
|
+
var messages$_ = {
|
|
3950
3956
|
noCard: "You don't have a card",
|
|
3951
3957
|
subCancellation: {
|
|
3952
3958
|
isSureToCancel: "Are you sure you want to cancel your subscription?",
|
|
@@ -3963,19 +3969,35 @@ var messages$W = {
|
|
|
3963
3969
|
loading: "Unsuspending your subscription",
|
|
3964
3970
|
success: "Subscription is successfully unsuspended",
|
|
3965
3971
|
error: "Error while unsuspending your subscription"
|
|
3972
|
+
},
|
|
3973
|
+
donationCancellation: {
|
|
3974
|
+
isSureToCancel: "Are you sure you want to cancel your donation?",
|
|
3975
|
+
loading: "Cancelling your donation",
|
|
3976
|
+
success: "Donation is successfully cancelled",
|
|
3977
|
+
error: "Error while cancelling your donation"
|
|
3978
|
+
},
|
|
3979
|
+
donationReactivation: {
|
|
3980
|
+
success: "Donation is successfully reactivated",
|
|
3981
|
+
error: "Error while reactivating your donation"
|
|
3982
|
+
},
|
|
3983
|
+
donationUnSuspend: {
|
|
3984
|
+
isSureToUnSuspend: "Are you sure you want to unsuspend your donation?",
|
|
3985
|
+
loading: "Unsuspending your donation",
|
|
3986
|
+
success: "Donation is successfully unsuspended",
|
|
3987
|
+
error: "Error while unsuspending your donation"
|
|
3966
3988
|
}
|
|
3967
3989
|
};
|
|
3968
3990
|
var dashboard_en = {
|
|
3969
|
-
labels: labels$
|
|
3970
|
-
messages: messages$
|
|
3991
|
+
labels: labels$Y,
|
|
3992
|
+
messages: messages$_
|
|
3971
3993
|
};
|
|
3972
3994
|
|
|
3973
|
-
var messages$
|
|
3995
|
+
var messages$Z = {
|
|
3974
3996
|
alreadyHaveAccount: "Already have an account?",
|
|
3975
3997
|
loginHere: "Login here",
|
|
3976
3998
|
checkbox: "Check this box to gift this subscription"
|
|
3977
3999
|
};
|
|
3978
|
-
var labels$
|
|
4000
|
+
var labels$X = {
|
|
3979
4001
|
plan: {
|
|
3980
4002
|
title: "Subscribe to a plan",
|
|
3981
4003
|
subtitle: "Select one of the plans below and click on next."
|
|
@@ -3992,15 +4014,49 @@ var labels$T = {
|
|
|
3992
4014
|
or: "Or take a look at some of our other options below"
|
|
3993
4015
|
}
|
|
3994
4016
|
};
|
|
3995
|
-
var buttons$
|
|
4017
|
+
var buttons$k = {
|
|
3996
4018
|
next: "Next",
|
|
3997
4019
|
select: "Select",
|
|
3998
4020
|
back: "Back"
|
|
3999
4021
|
};
|
|
4000
4022
|
var select_en = {
|
|
4001
|
-
messages: messages$
|
|
4002
|
-
labels: labels$
|
|
4003
|
-
buttons: buttons$
|
|
4023
|
+
messages: messages$Z,
|
|
4024
|
+
labels: labels$X,
|
|
4025
|
+
buttons: buttons$k
|
|
4026
|
+
};
|
|
4027
|
+
|
|
4028
|
+
var messages$Y = {
|
|
4029
|
+
alreadyHaveAccount: "Already have an account?",
|
|
4030
|
+
loginHere: "Login here",
|
|
4031
|
+
checkbox: "Check this box to gift this subscription"
|
|
4032
|
+
};
|
|
4033
|
+
var labels$W = {
|
|
4034
|
+
plan: {
|
|
4035
|
+
title: "Subscribe to a plan",
|
|
4036
|
+
subtitle: "Select one of the plans below and click on next."
|
|
4037
|
+
},
|
|
4038
|
+
product: {
|
|
4039
|
+
title: "Subscribe to a product",
|
|
4040
|
+
subtitle: "Select one of the products below and click on next."
|
|
4041
|
+
},
|
|
4042
|
+
selectProduct: "Select a product",
|
|
4043
|
+
selectPlan: "Select a plan",
|
|
4044
|
+
startingAt: "Starting at",
|
|
4045
|
+
restrictiveArticles: {
|
|
4046
|
+
subscribeTo: "Subscribe to one of the following options to get access to this page",
|
|
4047
|
+
or: "Or take a look at some of our other options below"
|
|
4048
|
+
}
|
|
4049
|
+
};
|
|
4050
|
+
var buttons$j = {
|
|
4051
|
+
signupAndDonate: "Sign up & donate",
|
|
4052
|
+
donate: "Donate",
|
|
4053
|
+
select: "Select",
|
|
4054
|
+
back: "Back"
|
|
4055
|
+
};
|
|
4056
|
+
var donation_en = {
|
|
4057
|
+
messages: messages$Y,
|
|
4058
|
+
labels: labels$W,
|
|
4059
|
+
buttons: buttons$j
|
|
4004
4060
|
};
|
|
4005
4061
|
|
|
4006
4062
|
var confirm$9 = {
|
|
@@ -4013,46 +4069,46 @@ var notification_en = {
|
|
|
4013
4069
|
confirm: confirm$9
|
|
4014
4070
|
};
|
|
4015
4071
|
|
|
4016
|
-
var labels$
|
|
4072
|
+
var labels$V = {
|
|
4017
4073
|
title: "Verify your email",
|
|
4018
4074
|
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
4019
4075
|
resend: "Resend email"
|
|
4020
4076
|
};
|
|
4021
|
-
var messages$
|
|
4077
|
+
var messages$X = {
|
|
4022
4078
|
resent: "Resent successfully",
|
|
4023
4079
|
success: "Email verified successfully!"
|
|
4024
4080
|
};
|
|
4025
4081
|
var verifyEmail_en = {
|
|
4026
|
-
labels: labels$
|
|
4027
|
-
messages: messages$
|
|
4082
|
+
labels: labels$V,
|
|
4083
|
+
messages: messages$X
|
|
4028
4084
|
};
|
|
4029
4085
|
|
|
4030
4086
|
var title$r = "Invoice details";
|
|
4031
|
-
var labels$
|
|
4087
|
+
var labels$U = {
|
|
4032
4088
|
summary: "Summary",
|
|
4033
4089
|
total: "Total",
|
|
4034
4090
|
amountPaid: "Amount paid",
|
|
4035
4091
|
amountDue: "Amount due",
|
|
4036
4092
|
creationDate: "Created on:"
|
|
4037
4093
|
};
|
|
4038
|
-
var buttons$
|
|
4094
|
+
var buttons$i = {
|
|
4039
4095
|
download: "Download",
|
|
4040
4096
|
pay: "Pay now"
|
|
4041
4097
|
};
|
|
4042
4098
|
var invoiceDetails_en = {
|
|
4043
4099
|
title: title$r,
|
|
4044
|
-
labels: labels$
|
|
4045
|
-
buttons: buttons$
|
|
4100
|
+
labels: labels$U,
|
|
4101
|
+
buttons: buttons$i
|
|
4046
4102
|
};
|
|
4047
4103
|
|
|
4048
|
-
var labels$
|
|
4104
|
+
var labels$T = {
|
|
4049
4105
|
title: "Cancel subscription",
|
|
4050
4106
|
cancelReason: "Cancellation reason",
|
|
4051
4107
|
subCancellation: {
|
|
4052
4108
|
goBack: "Go back"
|
|
4053
4109
|
}
|
|
4054
4110
|
};
|
|
4055
|
-
var messages$
|
|
4111
|
+
var messages$W = {
|
|
4056
4112
|
subscriptionEnd: "This subscription is set to expire on",
|
|
4057
4113
|
cancelNow: "Cancel Subscription Now",
|
|
4058
4114
|
cancelLater: "Cancel at Period End",
|
|
@@ -4065,18 +4121,18 @@ var messages$T = {
|
|
|
4065
4121
|
}
|
|
4066
4122
|
};
|
|
4067
4123
|
var subscriptionCancel_en = {
|
|
4068
|
-
labels: labels$
|
|
4069
|
-
messages: messages$
|
|
4124
|
+
labels: labels$T,
|
|
4125
|
+
messages: messages$W
|
|
4070
4126
|
};
|
|
4071
4127
|
|
|
4072
|
-
var labels$
|
|
4128
|
+
var labels$S = {
|
|
4073
4129
|
title: "Annuler l'abonnement",
|
|
4074
4130
|
cancelReason: "Motif d'annulation",
|
|
4075
4131
|
subCancellation: {
|
|
4076
4132
|
goBack: "Retourner"
|
|
4077
4133
|
}
|
|
4078
4134
|
};
|
|
4079
|
-
var messages$
|
|
4135
|
+
var messages$V = {
|
|
4080
4136
|
subscriptionEnd: "Cet abonnement doit expirer le",
|
|
4081
4137
|
cancelNow: "Cancel Subscription Now",
|
|
4082
4138
|
cancelLater: "Annuler l'abonnement maintenant",
|
|
@@ -4089,18 +4145,18 @@ var messages$S = {
|
|
|
4089
4145
|
}
|
|
4090
4146
|
};
|
|
4091
4147
|
var subscriptionCancel_fr = {
|
|
4092
|
-
labels: labels$
|
|
4093
|
-
messages: messages$
|
|
4148
|
+
labels: labels$S,
|
|
4149
|
+
messages: messages$V
|
|
4094
4150
|
};
|
|
4095
4151
|
|
|
4096
|
-
var labels$
|
|
4152
|
+
var labels$R = {
|
|
4097
4153
|
title: "구독 취소",
|
|
4098
4154
|
cancelReason: "취소 사유",
|
|
4099
4155
|
subCancellation: {
|
|
4100
4156
|
goBack: "돌아가기"
|
|
4101
4157
|
}
|
|
4102
4158
|
};
|
|
4103
|
-
var messages$
|
|
4159
|
+
var messages$U = {
|
|
4104
4160
|
subscriptionEnd: "이 구독은 다음 날짜에 만료되도록 설정되었습니다.",
|
|
4105
4161
|
cancelNow: "지금 구독 취소",
|
|
4106
4162
|
cancelLater: "기간 종료 시 취소",
|
|
@@ -4113,11 +4169,11 @@ var messages$R = {
|
|
|
4113
4169
|
}
|
|
4114
4170
|
};
|
|
4115
4171
|
var subscriptionCancel_ko = {
|
|
4116
|
-
labels: labels$
|
|
4117
|
-
messages: messages$
|
|
4172
|
+
labels: labels$R,
|
|
4173
|
+
messages: messages$U
|
|
4118
4174
|
};
|
|
4119
4175
|
|
|
4120
|
-
var labels$
|
|
4176
|
+
var labels$Q = {
|
|
4121
4177
|
inviteMembers: "Invite Members",
|
|
4122
4178
|
listOfMembers: "List of members",
|
|
4123
4179
|
invite: "Invite",
|
|
@@ -4128,10 +4184,10 @@ var labels$N = {
|
|
|
4128
4184
|
email: "Email"
|
|
4129
4185
|
};
|
|
4130
4186
|
var subscriptionManageMembers_en = {
|
|
4131
|
-
labels: labels$
|
|
4187
|
+
labels: labels$Q
|
|
4132
4188
|
};
|
|
4133
4189
|
|
|
4134
|
-
var labels$
|
|
4190
|
+
var labels$P = {
|
|
4135
4191
|
inviteMembers: "Inviter des membres",
|
|
4136
4192
|
listOfMembers: "Liste des membres",
|
|
4137
4193
|
invite: "Inviter",
|
|
@@ -4142,10 +4198,10 @@ var labels$M = {
|
|
|
4142
4198
|
email: "E-mail"
|
|
4143
4199
|
};
|
|
4144
4200
|
var subscriptionManageMembers_fr = {
|
|
4145
|
-
labels: labels$
|
|
4201
|
+
labels: labels$P
|
|
4146
4202
|
};
|
|
4147
4203
|
|
|
4148
|
-
var labels$
|
|
4204
|
+
var labels$O = {
|
|
4149
4205
|
inviteMembers: "회원 초대",
|
|
4150
4206
|
listOfMembers: "구성원 목록",
|
|
4151
4207
|
invite: "초대",
|
|
@@ -4156,17 +4212,17 @@ var labels$L = {
|
|
|
4156
4212
|
email: "이메일"
|
|
4157
4213
|
};
|
|
4158
4214
|
var subscriptionManageMembers_ko = {
|
|
4159
|
-
labels: labels$
|
|
4215
|
+
labels: labels$O
|
|
4160
4216
|
};
|
|
4161
4217
|
|
|
4162
|
-
var labels$
|
|
4218
|
+
var labels$N = {
|
|
4163
4219
|
title: "Suspend subscription",
|
|
4164
4220
|
suspensionDate: "Suspension date",
|
|
4165
4221
|
subCancellation: {
|
|
4166
4222
|
goBack: "Go back"
|
|
4167
4223
|
}
|
|
4168
4224
|
};
|
|
4169
|
-
var messages$
|
|
4225
|
+
var messages$T = {
|
|
4170
4226
|
suspensionEnd: "The suspension is set to expire on",
|
|
4171
4227
|
suspendNow: "Suspend Subscription Now",
|
|
4172
4228
|
suspendLater: "Suspend at Period End",
|
|
@@ -4179,8 +4235,8 @@ var messages$Q = {
|
|
|
4179
4235
|
}
|
|
4180
4236
|
};
|
|
4181
4237
|
var subscriptionSuspend_en = {
|
|
4182
|
-
labels: labels$
|
|
4183
|
-
messages: messages$
|
|
4238
|
+
labels: labels$N,
|
|
4239
|
+
messages: messages$T
|
|
4184
4240
|
};
|
|
4185
4241
|
|
|
4186
4242
|
var validation$2 = {
|
|
@@ -4195,7 +4251,7 @@ var validation$2 = {
|
|
|
4195
4251
|
enterLastName: "Le nom de famille est requis.",
|
|
4196
4252
|
enterPhone: "Le numéro de téléphone est requis."
|
|
4197
4253
|
};
|
|
4198
|
-
var buttons$
|
|
4254
|
+
var buttons$h = {
|
|
4199
4255
|
account: "Accès abonné(e)s",
|
|
4200
4256
|
login: "Se connecter",
|
|
4201
4257
|
subscribe: "S'abonner"
|
|
@@ -4273,7 +4329,7 @@ var confirm$8 = {
|
|
|
4273
4329
|
};
|
|
4274
4330
|
var common_fr = {
|
|
4275
4331
|
validation: validation$2,
|
|
4276
|
-
buttons: buttons$
|
|
4332
|
+
buttons: buttons$h,
|
|
4277
4333
|
dashboard: dashboard$3,
|
|
4278
4334
|
select: select$5,
|
|
4279
4335
|
confirm: confirm$8
|
|
@@ -4304,7 +4360,7 @@ var paymentMethod_fr = {
|
|
|
4304
4360
|
var title$q = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
4305
4361
|
var updateTitle$2 = "Mettre à jour son choix d'infolettres";
|
|
4306
4362
|
var subtitle$b = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
|
|
4307
|
-
var labels$
|
|
4363
|
+
var labels$M = {
|
|
4308
4364
|
submit: "Lire l’article !",
|
|
4309
4365
|
firstName: "Prénom",
|
|
4310
4366
|
lastName: "Nom de famille",
|
|
@@ -4312,7 +4368,7 @@ var labels$J = {
|
|
|
4312
4368
|
postalCode: "Code postal",
|
|
4313
4369
|
required: "Champs obligatoires"
|
|
4314
4370
|
};
|
|
4315
|
-
var messages$
|
|
4371
|
+
var messages$S = {
|
|
4316
4372
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4317
4373
|
success: "Votre choix d'infolettres à été mis à jour",
|
|
4318
4374
|
loginHere: "Connectez-vous ici",
|
|
@@ -4323,14 +4379,14 @@ var newsletter_fr = {
|
|
|
4323
4379
|
title: title$q,
|
|
4324
4380
|
updateTitle: updateTitle$2,
|
|
4325
4381
|
subtitle: subtitle$b,
|
|
4326
|
-
labels: labels$
|
|
4327
|
-
messages: messages$
|
|
4382
|
+
labels: labels$M,
|
|
4383
|
+
messages: messages$S
|
|
4328
4384
|
};
|
|
4329
4385
|
|
|
4330
|
-
var labels$
|
|
4386
|
+
var labels$L = {
|
|
4331
4387
|
"continue": "Abonnement réussi !"
|
|
4332
4388
|
};
|
|
4333
|
-
var messages$
|
|
4389
|
+
var messages$R = {
|
|
4334
4390
|
yourFreeTrial: "Votre essai gratuit vient de débuter",
|
|
4335
4391
|
youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
|
|
4336
4392
|
clickToLearn: {
|
|
@@ -4356,12 +4412,12 @@ var errors$e = {
|
|
|
4356
4412
|
"": ""
|
|
4357
4413
|
};
|
|
4358
4414
|
var success_fr = {
|
|
4359
|
-
labels: labels$
|
|
4360
|
-
messages: messages$
|
|
4415
|
+
labels: labels$L,
|
|
4416
|
+
messages: messages$R,
|
|
4361
4417
|
errors: errors$e
|
|
4362
4418
|
};
|
|
4363
4419
|
|
|
4364
|
-
var messages$
|
|
4420
|
+
var messages$Q = {
|
|
4365
4421
|
freeVisits: "Visites gratuites restantes:",
|
|
4366
4422
|
subscribeNow: "Abonnez-vous maintenant !",
|
|
4367
4423
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
@@ -4371,16 +4427,16 @@ var errors$d = {
|
|
|
4371
4427
|
"": ""
|
|
4372
4428
|
};
|
|
4373
4429
|
var meter_fr = {
|
|
4374
|
-
messages: messages$
|
|
4430
|
+
messages: messages$Q,
|
|
4375
4431
|
errors: errors$d
|
|
4376
4432
|
};
|
|
4377
4433
|
|
|
4378
|
-
var messages$
|
|
4434
|
+
var messages$P = {
|
|
4379
4435
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
4380
4436
|
bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque.",
|
|
4381
4437
|
bankAuthenticationSuccess: "Veuillez patienter pendant que nous accédons à votre requête."
|
|
4382
4438
|
};
|
|
4383
|
-
var labels$
|
|
4439
|
+
var labels$K = {
|
|
4384
4440
|
card: "Entrez le numéro de carte",
|
|
4385
4441
|
date: "Date d’expiration",
|
|
4386
4442
|
CVC: "CVC",
|
|
@@ -4400,11 +4456,13 @@ var labels$H = {
|
|
|
4400
4456
|
firstName: "Prénom",
|
|
4401
4457
|
lastName: "Nom de famille",
|
|
4402
4458
|
phone: "Téléphoner",
|
|
4403
|
-
freeItems: "Articles gratuits"
|
|
4459
|
+
freeItems: "Articles gratuits",
|
|
4460
|
+
email: "Courriel",
|
|
4461
|
+
password: "Créer un mot de passe"
|
|
4404
4462
|
};
|
|
4405
4463
|
var checkoutForm_fr = {
|
|
4406
|
-
messages: messages$
|
|
4407
|
-
labels: labels$
|
|
4464
|
+
messages: messages$P,
|
|
4465
|
+
labels: labels$K
|
|
4408
4466
|
};
|
|
4409
4467
|
|
|
4410
4468
|
var youAreSafe$2 = "Vous êtes en sécurité - PCI conforme 128 SSL par";
|
|
@@ -4428,7 +4486,7 @@ var messages_fr = {
|
|
|
4428
4486
|
zeroTotalInvoice: zeroTotalInvoice$2
|
|
4429
4487
|
};
|
|
4430
4488
|
|
|
4431
|
-
var labels$
|
|
4489
|
+
var labels$J = {
|
|
4432
4490
|
email: "Entrez votre adresse courriel",
|
|
4433
4491
|
username: "Saisissez votre nom d'utilisateur",
|
|
4434
4492
|
password: "Entrez votre mot de passe",
|
|
@@ -4437,7 +4495,7 @@ var labels$G = {
|
|
|
4437
4495
|
passwordPlaceholder: "Mot de passe",
|
|
4438
4496
|
login: "Connexion"
|
|
4439
4497
|
};
|
|
4440
|
-
var messages$
|
|
4498
|
+
var messages$O = {
|
|
4441
4499
|
loginTo: "Connectez-vous à votre compte",
|
|
4442
4500
|
welcome: "Bienvenue, connectez-vous avec votre compte existant.",
|
|
4443
4501
|
dontHaveAccount: "Vous n’avez pas encore de compte ?",
|
|
@@ -4456,28 +4514,28 @@ var errors$c = {
|
|
|
4456
4514
|
"": ""
|
|
4457
4515
|
};
|
|
4458
4516
|
var login_fr = {
|
|
4459
|
-
labels: labels$
|
|
4460
|
-
messages: messages$
|
|
4517
|
+
labels: labels$J,
|
|
4518
|
+
messages: messages$O,
|
|
4461
4519
|
errors: errors$c
|
|
4462
4520
|
};
|
|
4463
4521
|
|
|
4464
|
-
var labels$
|
|
4522
|
+
var labels$I = {
|
|
4465
4523
|
title: "Confirmez votre courriel",
|
|
4466
4524
|
instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
|
|
4467
4525
|
resend: "Renvoyer le courriel"
|
|
4468
4526
|
};
|
|
4469
|
-
var messages$
|
|
4527
|
+
var messages$N = {
|
|
4470
4528
|
resent: "Renvoyé avec succès",
|
|
4471
4529
|
success: "Vous vous êtes connecté avec succès"
|
|
4472
4530
|
};
|
|
4473
4531
|
var verifyLinkToken_fr = {
|
|
4474
|
-
labels: labels$
|
|
4475
|
-
messages: messages$
|
|
4532
|
+
labels: labels$I,
|
|
4533
|
+
messages: messages$N
|
|
4476
4534
|
};
|
|
4477
4535
|
|
|
4478
4536
|
var title$p = "Créer un compte";
|
|
4479
4537
|
var subtitle$a = "Entrez votre courriel et votre mot de passe ci-dessous";
|
|
4480
|
-
var labels$
|
|
4538
|
+
var labels$H = {
|
|
4481
4539
|
signUpFacebook: "Inscrivez-vous avec Facebook",
|
|
4482
4540
|
signUpGoogle: "Inscrivez-vous avec Google",
|
|
4483
4541
|
signUpEmail: "Inscrivez-vous avec votre courriel",
|
|
@@ -4490,7 +4548,7 @@ var labels$E = {
|
|
|
4490
4548
|
lastName: "Nom de famille",
|
|
4491
4549
|
phone: "Téléphoner"
|
|
4492
4550
|
};
|
|
4493
|
-
var messages$
|
|
4551
|
+
var messages$M = {
|
|
4494
4552
|
alreadyHaveAccount: "Vous avez déjà un compte?",
|
|
4495
4553
|
createAccount: "Créer un compte",
|
|
4496
4554
|
loginHere: "Connectez-vous ici",
|
|
@@ -4537,7 +4595,8 @@ var gift$2 = {
|
|
|
4537
4595
|
enterEmail: "Veuillez entrer l’adresse courriel du destinataire du cadeau.",
|
|
4538
4596
|
invalidDate: "La date du cadeau doit être comprise entre aujourd'hui et un an.",
|
|
4539
4597
|
giftDateInfo: "Le destinataire recevra un courriel à la date déterminée afin d'activer leur abonnement cadeau.",
|
|
4540
|
-
giftMessageInfo: "Laissez un message au destinataire sans oublier de signer votre nom."
|
|
4598
|
+
giftMessageInfo: "Laissez un message au destinataire sans oublier de signer votre nom.",
|
|
4599
|
+
giftMessageAllowedCharacters: "Les caractères spéciaux et les emojis ne sont pas autorisés."
|
|
4541
4600
|
}
|
|
4542
4601
|
};
|
|
4543
4602
|
var redeem$2 = {
|
|
@@ -4565,14 +4624,14 @@ var redeem$2 = {
|
|
|
4565
4624
|
var register_fr = {
|
|
4566
4625
|
title: title$p,
|
|
4567
4626
|
subtitle: subtitle$a,
|
|
4568
|
-
labels: labels$
|
|
4569
|
-
messages: messages$
|
|
4627
|
+
labels: labels$H,
|
|
4628
|
+
messages: messages$M,
|
|
4570
4629
|
errors: errors$b,
|
|
4571
4630
|
gift: gift$2,
|
|
4572
4631
|
redeem: redeem$2
|
|
4573
4632
|
};
|
|
4574
4633
|
|
|
4575
|
-
var labels$
|
|
4634
|
+
var labels$G = {
|
|
4576
4635
|
title: "Voulez-vous mettre à jour votre profil ?",
|
|
4577
4636
|
subtitle: "Entrez vos informations ci-dessous pour mettre à jour votre profil",
|
|
4578
4637
|
email: "Address courriel",
|
|
@@ -4591,21 +4650,21 @@ var labels$D = {
|
|
|
4591
4650
|
zoom: "Zoom",
|
|
4592
4651
|
tin: "Numéro d'identification fiscale"
|
|
4593
4652
|
};
|
|
4594
|
-
var messages$
|
|
4653
|
+
var messages$L = {
|
|
4595
4654
|
userUpdated: "Votre profil a été mis à jour avec succès.",
|
|
4596
4655
|
pictureRemoved: "Votre photo de profil a été supprimée avec succès.",
|
|
4597
4656
|
pictureUpdated: "Votre photo de profil a été mise à jour avec succès."
|
|
4598
4657
|
};
|
|
4599
4658
|
var userEdit_fr = {
|
|
4600
|
-
labels: labels$
|
|
4601
|
-
messages: messages$
|
|
4659
|
+
labels: labels$G,
|
|
4660
|
+
messages: messages$L
|
|
4602
4661
|
};
|
|
4603
4662
|
|
|
4604
4663
|
var title$o = "Entrez votre adresse de livraison";
|
|
4605
4664
|
var titleGifting$2 = "Entrez votre adresse";
|
|
4606
4665
|
var selectAddressTitle$2 = "Veuillez sélectionner une adresse";
|
|
4607
4666
|
var selectAddressSubtitle$2 = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
|
|
4608
|
-
var labels$
|
|
4667
|
+
var labels$F = {
|
|
4609
4668
|
address: "Adresse",
|
|
4610
4669
|
code: "Code postal / Zip",
|
|
4611
4670
|
city: "Ville",
|
|
@@ -4616,12 +4675,12 @@ var labels$C = {
|
|
|
4616
4675
|
required: "Champs obligatoires",
|
|
4617
4676
|
isDefault: "Définir par défaut"
|
|
4618
4677
|
};
|
|
4619
|
-
var buttons$
|
|
4678
|
+
var buttons$g = {
|
|
4620
4679
|
submit: "Valider",
|
|
4621
4680
|
selectAddress: "Choisir cette adresse",
|
|
4622
4681
|
addAddress: "Ajouter une nouvelle adresse"
|
|
4623
4682
|
};
|
|
4624
|
-
var messages$
|
|
4683
|
+
var messages$K = {
|
|
4625
4684
|
addressUpdated: "Votre adresse a été mise à jour avec succès",
|
|
4626
4685
|
subRedeemed: "Votre abonnement a bien été activé."
|
|
4627
4686
|
};
|
|
@@ -4630,9 +4689,9 @@ var address_fr = {
|
|
|
4630
4689
|
titleGifting: titleGifting$2,
|
|
4631
4690
|
selectAddressTitle: selectAddressTitle$2,
|
|
4632
4691
|
selectAddressSubtitle: selectAddressSubtitle$2,
|
|
4633
|
-
labels: labels$
|
|
4634
|
-
buttons: buttons$
|
|
4635
|
-
messages: messages$
|
|
4692
|
+
labels: labels$F,
|
|
4693
|
+
buttons: buttons$g,
|
|
4694
|
+
messages: messages$K
|
|
4636
4695
|
};
|
|
4637
4696
|
|
|
4638
4697
|
var title$n = "Réinitialiser votre mot de passe";
|
|
@@ -4660,7 +4719,7 @@ var password$4 = "Mot de passe";
|
|
|
4660
4719
|
var submit$a = "Soumettre";
|
|
4661
4720
|
var required$a = "Champs obligatoires";
|
|
4662
4721
|
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.";
|
|
4663
|
-
var messages$
|
|
4722
|
+
var messages$J = {
|
|
4664
4723
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4665
4724
|
loginHere: "Connectez-vous ici"
|
|
4666
4725
|
};
|
|
@@ -4671,7 +4730,7 @@ var passwordForgot_fr = {
|
|
|
4671
4730
|
submit: submit$a,
|
|
4672
4731
|
required: required$a,
|
|
4673
4732
|
passwordResetEmailSent: passwordResetEmailSent$2,
|
|
4674
|
-
messages: messages$
|
|
4733
|
+
messages: messages$J
|
|
4675
4734
|
};
|
|
4676
4735
|
|
|
4677
4736
|
var title$l = "Changez votre mot de passe";
|
|
@@ -4699,7 +4758,7 @@ var title$k = "Connexion sans mot de passe";
|
|
|
4699
4758
|
var email$6 = "Entrez votre adresse courriel";
|
|
4700
4759
|
var submit$8 = "Soumettre";
|
|
4701
4760
|
var required$8 = "Champs obligatoires";
|
|
4702
|
-
var messages$
|
|
4761
|
+
var messages$I = {
|
|
4703
4762
|
PasswordlessLoginSuccess: "Vous avez été authentifié avec succès avec la connexion sans mot de passe"
|
|
4704
4763
|
};
|
|
4705
4764
|
var passwordlessRequest_fr = {
|
|
@@ -4707,7 +4766,7 @@ var passwordlessRequest_fr = {
|
|
|
4707
4766
|
email: email$6,
|
|
4708
4767
|
submit: submit$8,
|
|
4709
4768
|
required: required$8,
|
|
4710
|
-
messages: messages$
|
|
4769
|
+
messages: messages$I
|
|
4711
4770
|
};
|
|
4712
4771
|
|
|
4713
4772
|
var title$j = "Votre panier";
|
|
@@ -4735,13 +4794,13 @@ var cart_fr = {
|
|
|
4735
4794
|
removeAll: removeAll$2
|
|
4736
4795
|
};
|
|
4737
4796
|
|
|
4738
|
-
var buttons$
|
|
4797
|
+
var buttons$f = {
|
|
4739
4798
|
select: "Choisir",
|
|
4740
4799
|
added: "Ajouté au panier",
|
|
4741
4800
|
purchase: "Acheter",
|
|
4742
4801
|
"continue": "Continuer au contenu"
|
|
4743
4802
|
};
|
|
4744
|
-
var messages$
|
|
4803
|
+
var messages$H = {
|
|
4745
4804
|
orderConfirmed: {
|
|
4746
4805
|
title: "Votre commande est confirmée !",
|
|
4747
4806
|
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."
|
|
@@ -4750,17 +4809,17 @@ var messages$E = {
|
|
|
4750
4809
|
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.",
|
|
4751
4810
|
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."
|
|
4752
4811
|
};
|
|
4753
|
-
var labels$
|
|
4812
|
+
var labels$E = {
|
|
4754
4813
|
summary: "récapitulatif de commande",
|
|
4755
4814
|
total: "total"
|
|
4756
4815
|
};
|
|
4757
4816
|
var shop_fr = {
|
|
4758
|
-
buttons: buttons$
|
|
4759
|
-
messages: messages$
|
|
4760
|
-
labels: labels$
|
|
4817
|
+
buttons: buttons$f,
|
|
4818
|
+
messages: messages$H,
|
|
4819
|
+
labels: labels$E
|
|
4761
4820
|
};
|
|
4762
4821
|
|
|
4763
|
-
var labels$
|
|
4822
|
+
var labels$D = {
|
|
4764
4823
|
cardNumber: "Numéro de carte",
|
|
4765
4824
|
securityCode: "Code de sécurité",
|
|
4766
4825
|
submit: "Soumettre",
|
|
@@ -4782,7 +4841,7 @@ var labels$A = {
|
|
|
4782
4841
|
title: "Informations de paiement"
|
|
4783
4842
|
}
|
|
4784
4843
|
};
|
|
4785
|
-
var messages$
|
|
4844
|
+
var messages$G = {
|
|
4786
4845
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
4787
4846
|
cancel: "Annuler votre abonnement en ligne à tout moment.",
|
|
4788
4847
|
giftSent: "Le cadeau d’abonnement a été envoyé à",
|
|
@@ -4796,12 +4855,12 @@ var errors$a = {
|
|
|
4796
4855
|
"": ""
|
|
4797
4856
|
};
|
|
4798
4857
|
var payment_fr = {
|
|
4799
|
-
labels: labels$
|
|
4800
|
-
messages: messages$
|
|
4858
|
+
labels: labels$D,
|
|
4859
|
+
messages: messages$G,
|
|
4801
4860
|
errors: errors$a
|
|
4802
4861
|
};
|
|
4803
4862
|
|
|
4804
|
-
var labels$
|
|
4863
|
+
var labels$C = {
|
|
4805
4864
|
menu: "Menu Pelcro",
|
|
4806
4865
|
name: "Nom",
|
|
4807
4866
|
email: "Courriel",
|
|
@@ -4887,9 +4946,12 @@ var labels$z = {
|
|
|
4887
4946
|
},
|
|
4888
4947
|
subCancellation: {
|
|
4889
4948
|
goBack: "Retourner"
|
|
4949
|
+
},
|
|
4950
|
+
donationCancellation: {
|
|
4951
|
+
goBack: "Go back"
|
|
4890
4952
|
}
|
|
4891
4953
|
};
|
|
4892
|
-
var messages$
|
|
4954
|
+
var messages$F = {
|
|
4893
4955
|
noCard: "Vous n’avez pas une carte",
|
|
4894
4956
|
subCancellation: {
|
|
4895
4957
|
isSureToCancel: "Êtes-vous certain de vouloir annuler votre abonnement?",
|
|
@@ -4906,19 +4968,35 @@ var messages$C = {
|
|
|
4906
4968
|
loading: "Annulation de la suspension de votre abonnement",
|
|
4907
4969
|
success: "L'abonnement a été suspendu avec succès",
|
|
4908
4970
|
error: "Erreur lors de l'annulation de la suspension de votre abonnement"
|
|
4971
|
+
},
|
|
4972
|
+
donationCancellation: {
|
|
4973
|
+
isSureToCancel: "Êtes-vous certain de vouloir annuler votre don?",
|
|
4974
|
+
loading: "Annulation de l'don",
|
|
4975
|
+
success: "L'don a été annulé avec succès",
|
|
4976
|
+
error: "Une erreur s'est produite lors de l'annulation de l'don"
|
|
4977
|
+
},
|
|
4978
|
+
donationReactivation: {
|
|
4979
|
+
success: "L'don a été réactivé avec succès",
|
|
4980
|
+
error: "Erreur lors de la réactivation de votre don"
|
|
4981
|
+
},
|
|
4982
|
+
donationUnSuspend: {
|
|
4983
|
+
isSureToUnSuspend: "Êtes-vous sûr de vouloir annuler la suspension de votre don ?",
|
|
4984
|
+
loading: "Annulation de la suspension de votre don",
|
|
4985
|
+
success: "L'don a été suspendu avec succès",
|
|
4986
|
+
error: "Erreur lors de l'annulation de la suspension de votre don"
|
|
4909
4987
|
}
|
|
4910
4988
|
};
|
|
4911
4989
|
var dashboard_fr = {
|
|
4912
|
-
labels: labels$
|
|
4913
|
-
messages: messages$
|
|
4990
|
+
labels: labels$C,
|
|
4991
|
+
messages: messages$F
|
|
4914
4992
|
};
|
|
4915
4993
|
|
|
4916
|
-
var messages$
|
|
4994
|
+
var messages$E = {
|
|
4917
4995
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4918
4996
|
loginHere: "Connectez-vous ici",
|
|
4919
4997
|
checkbox: "Cochez cette case pour offrir cet abonnement"
|
|
4920
4998
|
};
|
|
4921
|
-
var labels$
|
|
4999
|
+
var labels$B = {
|
|
4922
5000
|
plan: {
|
|
4923
5001
|
title: "Abonnez-vous à un plan",
|
|
4924
5002
|
subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
|
|
@@ -4935,67 +5013,100 @@ var labels$y = {
|
|
|
4935
5013
|
or: "Sinon, jetez un coup d'oeil à d'autres offres ci-dessous"
|
|
4936
5014
|
}
|
|
4937
5015
|
};
|
|
4938
|
-
var buttons$
|
|
5016
|
+
var buttons$e = {
|
|
4939
5017
|
next: "Prochain",
|
|
4940
5018
|
select: "Choisir",
|
|
4941
5019
|
back: "Retour"
|
|
4942
5020
|
};
|
|
4943
5021
|
var select_fr = {
|
|
4944
|
-
messages: messages$
|
|
4945
|
-
labels: labels$
|
|
4946
|
-
buttons: buttons$
|
|
5022
|
+
messages: messages$E,
|
|
5023
|
+
labels: labels$B,
|
|
5024
|
+
buttons: buttons$e
|
|
4947
5025
|
};
|
|
4948
5026
|
|
|
4949
|
-
var
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
5027
|
+
var messages$D = {
|
|
5028
|
+
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
5029
|
+
loginHere: "Connectez-vous ici",
|
|
5030
|
+
checkbox: "Cochez cette case pour offrir cet abonnement"
|
|
5031
|
+
};
|
|
5032
|
+
var labels$A = {
|
|
5033
|
+
plan: {
|
|
5034
|
+
title: "Abonnez-vous à un plan",
|
|
5035
|
+
subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
|
|
5036
|
+
},
|
|
5037
|
+
product: {
|
|
5038
|
+
title: "Abonnez-vous à un produit",
|
|
5039
|
+
subtitle: "Sélectionnez l’un des produits ci-dessous et cliquez sur suivant."
|
|
5040
|
+
},
|
|
5041
|
+
selectProduct: "Sélectionnez un produit",
|
|
5042
|
+
selectPlan: "Sélectionnez un plan",
|
|
5043
|
+
starningAt: "À partir de",
|
|
5044
|
+
restrictiveArticles: {
|
|
5045
|
+
subscribeTo: "Abonnez-vous à une des options suivantes pour accéder au contenu de cette page",
|
|
5046
|
+
or: "Sinon, jetez un coup d'oeil à d'autres offres ci-dessous"
|
|
5047
|
+
}
|
|
5048
|
+
};
|
|
5049
|
+
var buttons$d = {
|
|
5050
|
+
next: "Prochain",
|
|
5051
|
+
select: "Choisir",
|
|
5052
|
+
back: "Retour"
|
|
5053
|
+
};
|
|
5054
|
+
var donation_fr = {
|
|
5055
|
+
messages: messages$D,
|
|
5056
|
+
labels: labels$A,
|
|
5057
|
+
buttons: buttons$d
|
|
5058
|
+
};
|
|
5059
|
+
|
|
5060
|
+
var confirm$6 = {
|
|
5061
|
+
labels: {
|
|
5062
|
+
confirm: "Confirmer",
|
|
5063
|
+
close: "Fermer"
|
|
5064
|
+
}
|
|
4954
5065
|
};
|
|
4955
5066
|
var notification_fr = {
|
|
4956
5067
|
confirm: confirm$6
|
|
4957
5068
|
};
|
|
4958
5069
|
|
|
4959
|
-
var labels$
|
|
5070
|
+
var labels$z = {
|
|
4960
5071
|
title: "Confirmez votre courriel",
|
|
4961
5072
|
instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
|
|
4962
5073
|
resend: "Renvoyer le courriel"
|
|
4963
5074
|
};
|
|
4964
|
-
var messages$
|
|
5075
|
+
var messages$C = {
|
|
4965
5076
|
resent: "Renvoyé avec succès",
|
|
4966
5077
|
success: "Adresse courriel vérifiée avec succès"
|
|
4967
5078
|
};
|
|
4968
5079
|
var verifyEmail_fr = {
|
|
4969
|
-
labels: labels$
|
|
4970
|
-
messages: messages$
|
|
5080
|
+
labels: labels$z,
|
|
5081
|
+
messages: messages$C
|
|
4971
5082
|
};
|
|
4972
5083
|
|
|
4973
5084
|
var title$i = "Détails de la facture";
|
|
4974
|
-
var labels$
|
|
5085
|
+
var labels$y = {
|
|
4975
5086
|
summary: "Résumé",
|
|
4976
5087
|
total: "Total",
|
|
4977
5088
|
amountPaid: "Montant payé",
|
|
4978
5089
|
amountDue: "Montant dû",
|
|
4979
5090
|
creationDate: "Créé le:"
|
|
4980
5091
|
};
|
|
4981
|
-
var buttons$
|
|
5092
|
+
var buttons$c = {
|
|
4982
5093
|
download: "Télécharger",
|
|
4983
5094
|
pay: "Payer"
|
|
4984
5095
|
};
|
|
4985
5096
|
var invoiceDetails_fr = {
|
|
4986
5097
|
title: title$i,
|
|
4987
|
-
labels: labels$
|
|
4988
|
-
buttons: buttons$
|
|
5098
|
+
labels: labels$y,
|
|
5099
|
+
buttons: buttons$c
|
|
4989
5100
|
};
|
|
4990
5101
|
|
|
4991
|
-
var labels$
|
|
5102
|
+
var labels$x = {
|
|
4992
5103
|
title: "Suspendre l'abonnement",
|
|
4993
5104
|
suspensionDate: "Date de suspension",
|
|
4994
5105
|
subCancellation: {
|
|
4995
5106
|
goBack: "Revenir en arrière"
|
|
4996
5107
|
}
|
|
4997
5108
|
};
|
|
4998
|
-
var messages$
|
|
5109
|
+
var messages$B = {
|
|
4999
5110
|
suspensionEnd: "La suspension doit expirer le",
|
|
5000
5111
|
suspendNow: "Suspendre l'abonnement maintenant",
|
|
5001
5112
|
suspendLater: "Suspendre à la fin de la période",
|
|
@@ -5008,8 +5119,8 @@ var messages$z = {
|
|
|
5008
5119
|
}
|
|
5009
5120
|
};
|
|
5010
5121
|
var subscriptionSuspend_fr = {
|
|
5011
|
-
labels: labels$
|
|
5012
|
-
messages: messages$
|
|
5122
|
+
labels: labels$x,
|
|
5123
|
+
messages: messages$B
|
|
5013
5124
|
};
|
|
5014
5125
|
|
|
5015
5126
|
var validation$1 = {
|
|
@@ -5023,7 +5134,7 @@ var validation$1 = {
|
|
|
5023
5134
|
enterLastName: "성은 필수 항목입니다.",
|
|
5024
5135
|
enterPhone: "전화번호는 필수 항목입니다."
|
|
5025
5136
|
};
|
|
5026
|
-
var buttons$
|
|
5137
|
+
var buttons$b = {
|
|
5027
5138
|
account: "내 계정",
|
|
5028
5139
|
login: "로그인",
|
|
5029
5140
|
subscribe: "구독하다"
|
|
@@ -5101,7 +5212,7 @@ var confirm$5 = {
|
|
|
5101
5212
|
};
|
|
5102
5213
|
var common_ko = {
|
|
5103
5214
|
validation: validation$1,
|
|
5104
|
-
buttons: buttons$
|
|
5215
|
+
buttons: buttons$b,
|
|
5105
5216
|
dashboard: dashboard$2,
|
|
5106
5217
|
select: select$3,
|
|
5107
5218
|
confirm: confirm$5
|
|
@@ -5132,7 +5243,7 @@ var paymentMethod_ko = {
|
|
|
5132
5243
|
var title$h = "Frieze 뉴스레터를 구독하려면 이메일을 입력하세요.";
|
|
5133
5244
|
var updateTitle$1 = "뉴스레터 선택 업데이트";
|
|
5134
5245
|
var subtitle$7 = "귀하의 이메일은 다른 마케팅 용도로도 사용됩니다.";
|
|
5135
|
-
var labels$
|
|
5246
|
+
var labels$w = {
|
|
5136
5247
|
submit: "제출",
|
|
5137
5248
|
firstName: "이름",
|
|
5138
5249
|
lastName: "성",
|
|
@@ -5140,7 +5251,7 @@ var labels$u = {
|
|
|
5140
5251
|
postalCode: "우편번호",
|
|
5141
5252
|
required: "필수 항목"
|
|
5142
5253
|
};
|
|
5143
|
-
var messages$
|
|
5254
|
+
var messages$A = {
|
|
5144
5255
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5145
5256
|
success: "뉴스레터가 성공적으로 업데이트되었습니다.",
|
|
5146
5257
|
loginHere: "여기에서 로그인하세요.",
|
|
@@ -5151,14 +5262,14 @@ var newsletter_ko = {
|
|
|
5151
5262
|
title: title$h,
|
|
5152
5263
|
updateTitle: updateTitle$1,
|
|
5153
5264
|
subtitle: subtitle$7,
|
|
5154
|
-
labels: labels$
|
|
5155
|
-
messages: messages$
|
|
5265
|
+
labels: labels$w,
|
|
5266
|
+
messages: messages$A
|
|
5156
5267
|
};
|
|
5157
5268
|
|
|
5158
|
-
var labels$
|
|
5269
|
+
var labels$v = {
|
|
5159
5270
|
"continue": "콘텐츠로 돌아가기"
|
|
5160
5271
|
};
|
|
5161
|
-
var messages$
|
|
5272
|
+
var messages$z = {
|
|
5162
5273
|
yourFreeTrial: "유료 멤버십에 가입하셨습니다!",
|
|
5163
5274
|
youHaveAccess: "멤버십 혜택을 즐기시기를 바라며, 질문이나 문의 사항이 있으면 저희에게 연락주십시오.",
|
|
5164
5275
|
clickToLearn: {
|
|
@@ -5184,12 +5295,12 @@ var errors$9 = {
|
|
|
5184
5295
|
"": ""
|
|
5185
5296
|
};
|
|
5186
5297
|
var success_ko = {
|
|
5187
|
-
labels: labels$
|
|
5188
|
-
messages: messages$
|
|
5298
|
+
labels: labels$v,
|
|
5299
|
+
messages: messages$z,
|
|
5189
5300
|
errors: errors$9
|
|
5190
5301
|
};
|
|
5191
5302
|
|
|
5192
|
-
var messages$
|
|
5303
|
+
var messages$y = {
|
|
5193
5304
|
freeVisits: "남은 무료 방문 기간:",
|
|
5194
5305
|
subscribeNow: "멤버십 가입",
|
|
5195
5306
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
@@ -5199,16 +5310,16 @@ var errors$8 = {
|
|
|
5199
5310
|
"": ""
|
|
5200
5311
|
};
|
|
5201
5312
|
var meter_ko = {
|
|
5202
|
-
messages: messages$
|
|
5313
|
+
messages: messages$y,
|
|
5203
5314
|
errors: errors$8
|
|
5204
5315
|
};
|
|
5205
5316
|
|
|
5206
|
-
var messages$
|
|
5317
|
+
var messages$x = {
|
|
5207
5318
|
youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
|
|
5208
5319
|
bankRedirection: "잠시만 기다려 주십시오. 결제 은행으로 연결 중입니다.",
|
|
5209
5320
|
bankAuthenticationSuccess: "요청을 처리하는 동안 기다려 주십시오."
|
|
5210
5321
|
};
|
|
5211
|
-
var labels$
|
|
5322
|
+
var labels$u = {
|
|
5212
5323
|
card: "카드 번호 입력",
|
|
5213
5324
|
date: "만료일",
|
|
5214
5325
|
CVC: "CVC",
|
|
@@ -5228,11 +5339,13 @@ var labels$s = {
|
|
|
5228
5339
|
firstName: "이름",
|
|
5229
5340
|
lastName: "성",
|
|
5230
5341
|
phone: "핸드폰",
|
|
5231
|
-
freeItems: "무료 아이템"
|
|
5342
|
+
freeItems: "무료 아이템",
|
|
5343
|
+
email: "이메일",
|
|
5344
|
+
password: "비밀번호"
|
|
5232
5345
|
};
|
|
5233
5346
|
var checkoutForm_ko = {
|
|
5234
|
-
messages: messages$
|
|
5235
|
-
labels: labels$
|
|
5347
|
+
messages: messages$x,
|
|
5348
|
+
labels: labels$u
|
|
5236
5349
|
};
|
|
5237
5350
|
|
|
5238
5351
|
var youAreSafe$1 = "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ";
|
|
@@ -5256,7 +5369,7 @@ var messages_ko = {
|
|
|
5256
5369
|
zeroTotalInvoice: zeroTotalInvoice$1
|
|
5257
5370
|
};
|
|
5258
5371
|
|
|
5259
|
-
var labels$
|
|
5372
|
+
var labels$t = {
|
|
5260
5373
|
email: "이메일 입력",
|
|
5261
5374
|
username: "사용자 이름 입력",
|
|
5262
5375
|
password: "비밀번호 입력",
|
|
@@ -5265,7 +5378,7 @@ var labels$r = {
|
|
|
5265
5378
|
passwordPlaceholder: "비밀번호",
|
|
5266
5379
|
login: "로그인"
|
|
5267
5380
|
};
|
|
5268
|
-
var messages$
|
|
5381
|
+
var messages$w = {
|
|
5269
5382
|
loginTo: "귀하의 계정에 로그인",
|
|
5270
5383
|
welcome: "반갑습니다. 귀하의 기존 계정으로 로그인하세요.",
|
|
5271
5384
|
dontHaveAccount: "아직 계정이 없으신가요?",
|
|
@@ -5284,28 +5397,28 @@ var errors$7 = {
|
|
|
5284
5397
|
"": ""
|
|
5285
5398
|
};
|
|
5286
5399
|
var login_ko = {
|
|
5287
|
-
labels: labels$
|
|
5288
|
-
messages: messages$
|
|
5400
|
+
labels: labels$t,
|
|
5401
|
+
messages: messages$w,
|
|
5289
5402
|
errors: errors$7
|
|
5290
5403
|
};
|
|
5291
5404
|
|
|
5292
|
-
var labels$
|
|
5405
|
+
var labels$s = {
|
|
5293
5406
|
title: "비밀번호 없는 링크 확인",
|
|
5294
5407
|
instructions: "가는 중입니다!\n이메일 주소를 확인하겠습니다.\n이메일로 전송된 확인 링크를 클릭하세요.",
|
|
5295
5408
|
resend: "이메일 재전송"
|
|
5296
5409
|
};
|
|
5297
|
-
var messages$
|
|
5410
|
+
var messages$v = {
|
|
5298
5411
|
resent: "성공적으로 재전송",
|
|
5299
5412
|
success: "성공적으로 로그인했습니다"
|
|
5300
5413
|
};
|
|
5301
5414
|
var verifyLinkToken_ko = {
|
|
5302
|
-
labels: labels$
|
|
5303
|
-
messages: messages$
|
|
5415
|
+
labels: labels$s,
|
|
5416
|
+
messages: messages$v
|
|
5304
5417
|
};
|
|
5305
5418
|
|
|
5306
5419
|
var title$g = "계정 만들기";
|
|
5307
5420
|
var subtitle$6 = "아래에 이메일과 비밀번호를 입력하세요.";
|
|
5308
|
-
var labels$
|
|
5421
|
+
var labels$r = {
|
|
5309
5422
|
signUpFacebook: "Facebook으로 가입하기",
|
|
5310
5423
|
signUpGoogle: "Google로 가입하기",
|
|
5311
5424
|
signUpEmail: "이메일로 가입하기",
|
|
@@ -5318,7 +5431,7 @@ var labels$p = {
|
|
|
5318
5431
|
lastName: "성",
|
|
5319
5432
|
phone: "핸드폰"
|
|
5320
5433
|
};
|
|
5321
|
-
var messages$
|
|
5434
|
+
var messages$u = {
|
|
5322
5435
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5323
5436
|
createAccount: "계정 만들기",
|
|
5324
5437
|
loginHere: "여기에서 로그인하세요.",
|
|
@@ -5364,7 +5477,8 @@ var gift$1 = {
|
|
|
5364
5477
|
enterEmail: "선물을 받을 분의 이메일을 입력해주세요.",
|
|
5365
5478
|
invalidDate: "선물 날짜는 오늘로부터 1년 이내여야 합니다.",
|
|
5366
5479
|
giftDateInfo: "받는 분이 선물을 사용하실 수 있도록, 선택된 날짜에 귀하의 선물 메시지가 담겨 있는 이메일 알림이 전송됩니다.",
|
|
5367
|
-
giftMessageInfo: "받는 분을 위한 선물 메시지와 서명을 남기는 것을 잊지 마시기 바랍니다."
|
|
5480
|
+
giftMessageInfo: "받는 분을 위한 선물 메시지와 서명을 남기는 것을 잊지 마시기 바랍니다.",
|
|
5481
|
+
giftMessageAllowedCharacters: "특수문자 및 이모티콘 사용 불가."
|
|
5368
5482
|
}
|
|
5369
5483
|
};
|
|
5370
5484
|
var redeem$1 = {
|
|
@@ -5392,14 +5506,14 @@ var redeem$1 = {
|
|
|
5392
5506
|
var register_ko = {
|
|
5393
5507
|
title: title$g,
|
|
5394
5508
|
subtitle: subtitle$6,
|
|
5395
|
-
labels: labels$
|
|
5396
|
-
messages: messages$
|
|
5509
|
+
labels: labels$r,
|
|
5510
|
+
messages: messages$u,
|
|
5397
5511
|
errors: errors$6,
|
|
5398
5512
|
gift: gift$1,
|
|
5399
5513
|
redeem: redeem$1
|
|
5400
5514
|
};
|
|
5401
5515
|
|
|
5402
|
-
var labels$
|
|
5516
|
+
var labels$q = {
|
|
5403
5517
|
title: "프로파일을 업데이트하시겠습니까?",
|
|
5404
5518
|
subtitle: "프로필을 업데이트하려면 아래 정보를 입력하세요.",
|
|
5405
5519
|
email: "이메일",
|
|
@@ -5418,21 +5532,21 @@ var labels$o = {
|
|
|
5418
5532
|
zoom: "확대",
|
|
5419
5533
|
tin: "세금 식별 번호"
|
|
5420
5534
|
};
|
|
5421
|
-
var messages$
|
|
5535
|
+
var messages$t = {
|
|
5422
5536
|
userUpdated: "감사합니다! 프로필이 성공적으로 업데이트되었습니다.",
|
|
5423
5537
|
pictureRemoved: "귀하의 프로필 사진이 제거되었습니다.",
|
|
5424
5538
|
pictureUpdated: "귀하의 프로필 사진이 업데이트되었습니다."
|
|
5425
5539
|
};
|
|
5426
5540
|
var userEdit_ko = {
|
|
5427
|
-
labels: labels$
|
|
5428
|
-
messages: messages$
|
|
5541
|
+
labels: labels$q,
|
|
5542
|
+
messages: messages$t
|
|
5429
5543
|
};
|
|
5430
5544
|
|
|
5431
5545
|
var title$f = "배송 주소를 입력하십시오.";
|
|
5432
5546
|
var titleGifting$1 = "주소를 입력하세요";
|
|
5433
5547
|
var selectAddressTitle$1 = "주소를 선택하십시오.";
|
|
5434
5548
|
var selectAddressSubtitle$1 = "저장된 주소에서 선택하거나 새 주소를 추가하십시오.";
|
|
5435
|
-
var labels$
|
|
5549
|
+
var labels$p = {
|
|
5436
5550
|
address: "주소",
|
|
5437
5551
|
code: "우편번호",
|
|
5438
5552
|
city: "도시",
|
|
@@ -5443,12 +5557,12 @@ var labels$n = {
|
|
|
5443
5557
|
required: "필수 항목",
|
|
5444
5558
|
isDefault: "기본값으로 설정"
|
|
5445
5559
|
};
|
|
5446
|
-
var buttons$
|
|
5560
|
+
var buttons$a = {
|
|
5447
5561
|
submit: "제출",
|
|
5448
5562
|
selectAddress: "주소 선택",
|
|
5449
5563
|
addAddress: "새 주소 추가"
|
|
5450
5564
|
};
|
|
5451
|
-
var messages$
|
|
5565
|
+
var messages$s = {
|
|
5452
5566
|
addressUpdated: "주소가 성공적으로 업데이트되었습니다!",
|
|
5453
5567
|
subRedeemed: "귀하의 유료 멤버십이 사용되었습니다."
|
|
5454
5568
|
};
|
|
@@ -5457,9 +5571,9 @@ var address_ko = {
|
|
|
5457
5571
|
titleGifting: titleGifting$1,
|
|
5458
5572
|
selectAddressTitle: selectAddressTitle$1,
|
|
5459
5573
|
selectAddressSubtitle: selectAddressSubtitle$1,
|
|
5460
|
-
labels: labels$
|
|
5461
|
-
buttons: buttons$
|
|
5462
|
-
messages: messages$
|
|
5574
|
+
labels: labels$p,
|
|
5575
|
+
buttons: buttons$a,
|
|
5576
|
+
messages: messages$s
|
|
5463
5577
|
};
|
|
5464
5578
|
|
|
5465
5579
|
var title$e = "비밀번호 재설정";
|
|
@@ -5487,7 +5601,7 @@ var password$2 = "비밀번호";
|
|
|
5487
5601
|
var submit$6 = "제출";
|
|
5488
5602
|
var required$6 = "필수 항목";
|
|
5489
5603
|
var passwordResetEmailSent$1 = "비밀번호 재설정 안내가 귀하의 이메일로 발송되었습니다.";
|
|
5490
|
-
var messages$
|
|
5604
|
+
var messages$r = {
|
|
5491
5605
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5492
5606
|
loginHere: "여기에서 로그인하세요."
|
|
5493
5607
|
};
|
|
@@ -5498,7 +5612,7 @@ var passwordForgot_ko = {
|
|
|
5498
5612
|
submit: submit$6,
|
|
5499
5613
|
required: required$6,
|
|
5500
5614
|
passwordResetEmailSent: passwordResetEmailSent$1,
|
|
5501
|
-
messages: messages$
|
|
5615
|
+
messages: messages$r
|
|
5502
5616
|
};
|
|
5503
5617
|
|
|
5504
5618
|
var title$c = "비밀번호를 변경합니다.";
|
|
@@ -5526,7 +5640,7 @@ var title$b = "비밀번호 없는 로그인";
|
|
|
5526
5640
|
var email$3 = "이메일 입력";
|
|
5527
5641
|
var submit$4 = "제출";
|
|
5528
5642
|
var required$4 = "필수 항목";
|
|
5529
|
-
var messages$
|
|
5643
|
+
var messages$q = {
|
|
5530
5644
|
PasswordlessLoginSuccess: "비밀번호 없는 로그인으로 성공적으로 인증되었습니다."
|
|
5531
5645
|
};
|
|
5532
5646
|
var passwordlessRequest_ko = {
|
|
@@ -5534,7 +5648,7 @@ var passwordlessRequest_ko = {
|
|
|
5534
5648
|
email: email$3,
|
|
5535
5649
|
submit: submit$4,
|
|
5536
5650
|
required: required$4,
|
|
5537
|
-
messages: messages$
|
|
5651
|
+
messages: messages$q
|
|
5538
5652
|
};
|
|
5539
5653
|
|
|
5540
5654
|
var title$a = "귀하의 장바구니";
|
|
@@ -5562,13 +5676,13 @@ var cart_ko = {
|
|
|
5562
5676
|
removeAll: removeAll$1
|
|
5563
5677
|
};
|
|
5564
5678
|
|
|
5565
|
-
var buttons$
|
|
5679
|
+
var buttons$9 = {
|
|
5566
5680
|
select: "선택",
|
|
5567
5681
|
added: "장바구니에 추가",
|
|
5568
5682
|
purchase: "구매",
|
|
5569
5683
|
"continue": "계속"
|
|
5570
5684
|
};
|
|
5571
|
-
var messages$
|
|
5685
|
+
var messages$p = {
|
|
5572
5686
|
orderConfirmed: {
|
|
5573
5687
|
title: "주문이 확인되었습니다!",
|
|
5574
5688
|
body: "귀하의 주문이 확인되었으며 며칠 안에 배송될 예정입니다. 이 주문의 확인 이메일이 귀하에게 전송됩니다."
|
|
@@ -5577,17 +5691,17 @@ var messages$n = {
|
|
|
5577
5691
|
multipleCurrencies: "장바구니에 다른 통화로만 결제가 가능한 아이템이 있습니다. 결제를 계속 진행하려면 모든 아이템의 결제 통화가 동일한지 확인하십시오.",
|
|
5578
5692
|
currencyMismatch: "선택하신 아이템(들)이 귀하가 설정한 기본 통화({{currency}})와 일치하지 않습니다. 기본 통화와 일치하는 아이템(들)만 선택하십시오."
|
|
5579
5693
|
};
|
|
5580
|
-
var labels$
|
|
5694
|
+
var labels$o = {
|
|
5581
5695
|
summary: "주문 요약",
|
|
5582
5696
|
total: "총계"
|
|
5583
5697
|
};
|
|
5584
5698
|
var shop_ko = {
|
|
5585
|
-
buttons: buttons$
|
|
5586
|
-
messages: messages$
|
|
5587
|
-
labels: labels$
|
|
5699
|
+
buttons: buttons$9,
|
|
5700
|
+
messages: messages$p,
|
|
5701
|
+
labels: labels$o
|
|
5588
5702
|
};
|
|
5589
5703
|
|
|
5590
|
-
var labels$
|
|
5704
|
+
var labels$n = {
|
|
5591
5705
|
cardNumber: "카드 번호",
|
|
5592
5706
|
securityCode: "보안 코드",
|
|
5593
5707
|
submit: "제출",
|
|
@@ -5609,7 +5723,7 @@ var labels$l = {
|
|
|
5609
5723
|
title: "결제 정보"
|
|
5610
5724
|
}
|
|
5611
5725
|
};
|
|
5612
|
-
var messages$
|
|
5726
|
+
var messages$o = {
|
|
5613
5727
|
youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
|
|
5614
5728
|
cancel: "유료 멤버십은 언제든 온라인으로 취소가 가능합니다.",
|
|
5615
5729
|
giftSent: "유료 멤버십 선물이 ",
|
|
@@ -5623,12 +5737,12 @@ var errors$5 = {
|
|
|
5623
5737
|
"": ""
|
|
5624
5738
|
};
|
|
5625
5739
|
var payment_ko = {
|
|
5626
|
-
labels: labels$
|
|
5627
|
-
messages: messages$
|
|
5740
|
+
labels: labels$n,
|
|
5741
|
+
messages: messages$o,
|
|
5628
5742
|
errors: errors$5
|
|
5629
5743
|
};
|
|
5630
5744
|
|
|
5631
|
-
var labels$
|
|
5745
|
+
var labels$m = {
|
|
5632
5746
|
menu: "Pelcro 메뉴",
|
|
5633
5747
|
name: "이름",
|
|
5634
5748
|
email: "이메일",
|
|
@@ -5776,7 +5890,10 @@ var savedItems = {
|
|
|
5776
5890
|
var subCancellation = {
|
|
5777
5891
|
goBack: "뒤로 가기"
|
|
5778
5892
|
};
|
|
5779
|
-
var
|
|
5893
|
+
var donationCancellation = {
|
|
5894
|
+
goBack: "뒤로 가기"
|
|
5895
|
+
};
|
|
5896
|
+
var messages$n = {
|
|
5780
5897
|
noCard: "등록된 카드가 없습니다.",
|
|
5781
5898
|
subCancellation: {
|
|
5782
5899
|
isSureToCancel: "정말로 유료 멤버십을 취소하시겠습니까?",
|
|
@@ -5793,10 +5910,26 @@ var messages$l = {
|
|
|
5793
5910
|
loading: "구독 일시 중단 해제",
|
|
5794
5911
|
success: "구독이 성공적으로 일시 중단 해제되었습니다",
|
|
5795
5912
|
error: "구독 일시 중단을 해제하는 동안 오류가 발생했습니다."
|
|
5913
|
+
},
|
|
5914
|
+
donationCancellation: {
|
|
5915
|
+
isSureToCancel: "정말로 유료 멤버십을 취소하시겠습니까?",
|
|
5916
|
+
loading: "귀하의 유료 멤버십을 취소합니다.",
|
|
5917
|
+
success: "유료 멤버십이 성공적으로 취소되었습니다.",
|
|
5918
|
+
error: "유료 멤버십 취소 과정에서 오류가 발생했습니다."
|
|
5919
|
+
},
|
|
5920
|
+
donationReactivation: {
|
|
5921
|
+
success: "구독이 성공적으로 재활성화되었습니다.",
|
|
5922
|
+
error: "구독을 재활성화하는 동안 오류가 발생했습니다."
|
|
5923
|
+
},
|
|
5924
|
+
donationUnSuspend: {
|
|
5925
|
+
isSureToUnSuspend: "구독 일시 중단을 해제하시겠습니까?",
|
|
5926
|
+
loading: "구독 일시 중단 해제",
|
|
5927
|
+
success: "구독이 성공적으로 일시 중단 해제되었습니다",
|
|
5928
|
+
error: "구독 일시 중단을 해제하는 동안 오류가 발생했습니다."
|
|
5796
5929
|
}
|
|
5797
5930
|
};
|
|
5798
5931
|
var dashboard_ko = {
|
|
5799
|
-
labels: labels$
|
|
5932
|
+
labels: labels$m,
|
|
5800
5933
|
shipments: shipments,
|
|
5801
5934
|
logout: logout,
|
|
5802
5935
|
dashboard: dashboard$1,
|
|
@@ -5845,15 +5978,16 @@ var dashboard_ko = {
|
|
|
5845
5978
|
orders: orders,
|
|
5846
5979
|
savedItems: savedItems,
|
|
5847
5980
|
subCancellation: subCancellation,
|
|
5848
|
-
|
|
5981
|
+
donationCancellation: donationCancellation,
|
|
5982
|
+
messages: messages$n
|
|
5849
5983
|
};
|
|
5850
5984
|
|
|
5851
|
-
var messages$
|
|
5985
|
+
var messages$m = {
|
|
5852
5986
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5853
5987
|
loginHere: "여기에서 로그인하세요.",
|
|
5854
5988
|
checkbox: "이 유료 멤버십을 선물하려면 체크하세요."
|
|
5855
5989
|
};
|
|
5856
|
-
var labels$
|
|
5990
|
+
var labels$l = {
|
|
5857
5991
|
plan: {
|
|
5858
5992
|
title: "요금제 가입하기",
|
|
5859
5993
|
subtitle: "아래 요금제 중 하나를 선택하고 다음을 클릭하세요."
|
|
@@ -5870,15 +6004,48 @@ var labels$j = {
|
|
|
5870
6004
|
or: "아래에서 다른 상품을 선택해주시기 바랍니다."
|
|
5871
6005
|
}
|
|
5872
6006
|
};
|
|
5873
|
-
var buttons$
|
|
6007
|
+
var buttons$8 = {
|
|
5874
6008
|
next: "다음",
|
|
5875
6009
|
select: "선택",
|
|
5876
6010
|
back: "뒤로"
|
|
5877
6011
|
};
|
|
5878
6012
|
var select_ko = {
|
|
5879
|
-
messages: messages$
|
|
5880
|
-
labels: labels$
|
|
5881
|
-
buttons: buttons$
|
|
6013
|
+
messages: messages$m,
|
|
6014
|
+
labels: labels$l,
|
|
6015
|
+
buttons: buttons$8
|
|
6016
|
+
};
|
|
6017
|
+
|
|
6018
|
+
var messages$l = {
|
|
6019
|
+
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
6020
|
+
loginHere: "여기에서 로그인하세요.",
|
|
6021
|
+
checkbox: "이 유료 멤버십을 선물하려면 체크하세요."
|
|
6022
|
+
};
|
|
6023
|
+
var labels$k = {
|
|
6024
|
+
plan: {
|
|
6025
|
+
title: "요금제 가입하기",
|
|
6026
|
+
subtitle: "아래 요금제 중 하나를 선택하고 다음을 클릭하세요."
|
|
6027
|
+
},
|
|
6028
|
+
product: {
|
|
6029
|
+
title: "상품 가입하기",
|
|
6030
|
+
subtitle: "아래 상품 중 하나를 선택하고 다음을 클릭하세요."
|
|
6031
|
+
},
|
|
6032
|
+
selectProduct: "상품 선택",
|
|
6033
|
+
selectPlan: "요금제 선택",
|
|
6034
|
+
startingAt: "시작일:",
|
|
6035
|
+
restrictiveArticles: {
|
|
6036
|
+
subscribeTo: "이 페이지에 액세스하려면 다음 요금제 중 하나에 가입하거나",
|
|
6037
|
+
or: "아래에서 다른 상품을 선택해주시기 바랍니다."
|
|
6038
|
+
}
|
|
6039
|
+
};
|
|
6040
|
+
var buttons$7 = {
|
|
6041
|
+
next: "다음",
|
|
6042
|
+
select: "선택",
|
|
6043
|
+
back: "뒤로"
|
|
6044
|
+
};
|
|
6045
|
+
var donation_ko = {
|
|
6046
|
+
messages: messages$l,
|
|
6047
|
+
labels: labels$k,
|
|
6048
|
+
buttons: buttons$7
|
|
5882
6049
|
};
|
|
5883
6050
|
|
|
5884
6051
|
var confirm$3 = {
|
|
@@ -5891,46 +6058,46 @@ var notification_ko = {
|
|
|
5891
6058
|
confirm: confirm$3
|
|
5892
6059
|
};
|
|
5893
6060
|
|
|
5894
|
-
var labels$
|
|
6061
|
+
var labels$j = {
|
|
5895
6062
|
title: "이메일 주소를 인증하세요.",
|
|
5896
6063
|
instructions: "거의 완료되었습니다!\n이메일 주소만 인증하면 됩니다.\n다음 이메일 주소로 전송된 인증 링크를 클릭해 주십시오:",
|
|
5897
6064
|
resend: "이메일 재전송"
|
|
5898
6065
|
};
|
|
5899
|
-
var messages$
|
|
6066
|
+
var messages$k = {
|
|
5900
6067
|
resent: "재전송 완료",
|
|
5901
6068
|
success: "이메일 주소가 인증되었습니다!"
|
|
5902
6069
|
};
|
|
5903
6070
|
var verifyEmail_ko = {
|
|
5904
|
-
labels: labels$
|
|
5905
|
-
messages: messages$
|
|
6071
|
+
labels: labels$j,
|
|
6072
|
+
messages: messages$k
|
|
5906
6073
|
};
|
|
5907
6074
|
|
|
5908
6075
|
var title$9 = "인보이스 세부 정보";
|
|
5909
|
-
var labels$
|
|
6076
|
+
var labels$i = {
|
|
5910
6077
|
summary: "요약",
|
|
5911
6078
|
total: "총계",
|
|
5912
6079
|
amountPaid: "지불된 금액",
|
|
5913
6080
|
amountDue: "지불액",
|
|
5914
6081
|
creationDate: "생성일:"
|
|
5915
6082
|
};
|
|
5916
|
-
var buttons$
|
|
6083
|
+
var buttons$6 = {
|
|
5917
6084
|
download: "다운로드",
|
|
5918
6085
|
pay: "지금 지불"
|
|
5919
6086
|
};
|
|
5920
6087
|
var invoiceDetails_ko = {
|
|
5921
6088
|
title: title$9,
|
|
5922
|
-
labels: labels$
|
|
5923
|
-
buttons: buttons$
|
|
6089
|
+
labels: labels$i,
|
|
6090
|
+
buttons: buttons$6
|
|
5924
6091
|
};
|
|
5925
6092
|
|
|
5926
|
-
var labels$
|
|
6093
|
+
var labels$h = {
|
|
5927
6094
|
title: "구독 중단",
|
|
5928
6095
|
suspensionDate: "중단 날짜",
|
|
5929
6096
|
subCancellation: {
|
|
5930
6097
|
goBack: "돌아가기"
|
|
5931
6098
|
}
|
|
5932
6099
|
};
|
|
5933
|
-
var messages$
|
|
6100
|
+
var messages$j = {
|
|
5934
6101
|
suspensionEnd: "일시 중지가 만료되도록 설정되었습니다.",
|
|
5935
6102
|
suspendNow: "지금 구독 일시 중단",
|
|
5936
6103
|
suspendLater: "기간 종료 시 일시 중단",
|
|
@@ -5943,8 +6110,8 @@ var messages$i = {
|
|
|
5943
6110
|
}
|
|
5944
6111
|
};
|
|
5945
6112
|
var subscriptionSuspend_ko = {
|
|
5946
|
-
labels: labels$
|
|
5947
|
-
messages: messages$
|
|
6113
|
+
labels: labels$h,
|
|
6114
|
+
messages: messages$j
|
|
5948
6115
|
};
|
|
5949
6116
|
|
|
5950
6117
|
var validation = {
|
|
@@ -5956,7 +6123,7 @@ var validation = {
|
|
|
5956
6123
|
enterLastName: "El apellido es obligatorio.",
|
|
5957
6124
|
enterPhone: "El número de teléfono es obligatorio."
|
|
5958
6125
|
};
|
|
5959
|
-
var buttons$
|
|
6126
|
+
var buttons$5 = {
|
|
5960
6127
|
account: "Mi cuenta",
|
|
5961
6128
|
login: "Iniciar Sesión"
|
|
5962
6129
|
};
|
|
@@ -6033,7 +6200,7 @@ var confirm$2 = {
|
|
|
6033
6200
|
};
|
|
6034
6201
|
var common_es = {
|
|
6035
6202
|
validation: validation,
|
|
6036
|
-
buttons: buttons$
|
|
6203
|
+
buttons: buttons$5,
|
|
6037
6204
|
dashboard: dashboard,
|
|
6038
6205
|
select: select$1,
|
|
6039
6206
|
confirm: confirm$2
|
|
@@ -6064,7 +6231,7 @@ var paymentMethod_es = {
|
|
|
6064
6231
|
var title$8 = "Ingresa tu correo para suscribirte a nuestro boletín";
|
|
6065
6232
|
var updateTitle = "Actualizar selecciones del boletín";
|
|
6066
6233
|
var subtitle$3 = "Podríamos usar tu dirección de correo para otras comunicaciones de marketing";
|
|
6067
|
-
var labels$
|
|
6234
|
+
var labels$g = {
|
|
6068
6235
|
submit: "Enviar",
|
|
6069
6236
|
firstName: "Nombre",
|
|
6070
6237
|
lastName: "Apellido",
|
|
@@ -6072,7 +6239,7 @@ var labels$f = {
|
|
|
6072
6239
|
postalCode: "Código postal",
|
|
6073
6240
|
required: "obligatorio"
|
|
6074
6241
|
};
|
|
6075
|
-
var messages$
|
|
6242
|
+
var messages$i = {
|
|
6076
6243
|
alreadyHaveAccount: "¿Ya tienes una cuenta?",
|
|
6077
6244
|
success: "El boletín se actualizó con éxito",
|
|
6078
6245
|
loginHere: "Inicia sesión aquí.",
|
|
@@ -6083,14 +6250,14 @@ var newsletter_es = {
|
|
|
6083
6250
|
title: title$8,
|
|
6084
6251
|
updateTitle: updateTitle,
|
|
6085
6252
|
subtitle: subtitle$3,
|
|
6086
|
-
labels: labels$
|
|
6087
|
-
messages: messages$
|
|
6253
|
+
labels: labels$g,
|
|
6254
|
+
messages: messages$i
|
|
6088
6255
|
};
|
|
6089
6256
|
|
|
6090
|
-
var labels$
|
|
6257
|
+
var labels$f = {
|
|
6091
6258
|
"continue": "Continuar al contenido"
|
|
6092
6259
|
};
|
|
6093
|
-
var messages$
|
|
6260
|
+
var messages$h = {
|
|
6094
6261
|
yourFreeTrial: "¡Suscripción exitosa!",
|
|
6095
6262
|
youHaveAccess: "Esperamos que disfrutes de tu suscripción. Por favor, contáctanos si tienes alguna pregunta o inquietud.",
|
|
6096
6263
|
clickToLearn: {
|
|
@@ -6116,12 +6283,12 @@ var errors$4 = {
|
|
|
6116
6283
|
"": ""
|
|
6117
6284
|
};
|
|
6118
6285
|
var success_es = {
|
|
6119
|
-
labels: labels$
|
|
6120
|
-
messages: messages$
|
|
6286
|
+
labels: labels$f,
|
|
6287
|
+
messages: messages$h,
|
|
6121
6288
|
errors: errors$4
|
|
6122
6289
|
};
|
|
6123
6290
|
|
|
6124
|
-
var messages$
|
|
6291
|
+
var messages$g = {
|
|
6125
6292
|
freeVisits: "Visitas gratuitas restantes:",
|
|
6126
6293
|
subscribeNow: "Suscribir",
|
|
6127
6294
|
alreadyHaveAccount: "¿Ya tienes una cuenta?",
|
|
@@ -6131,16 +6298,16 @@ var errors$3 = {
|
|
|
6131
6298
|
"": ""
|
|
6132
6299
|
};
|
|
6133
6300
|
var meter_es = {
|
|
6134
|
-
messages: messages$
|
|
6301
|
+
messages: messages$g,
|
|
6135
6302
|
errors: errors$3
|
|
6136
6303
|
};
|
|
6137
6304
|
|
|
6138
|
-
var messages$
|
|
6305
|
+
var messages$f = {
|
|
6139
6306
|
youAreSafe: "Estás seguro - PCI compliance 128 SSL por",
|
|
6140
6307
|
bankRedirection: "Por favor, espera, estamos redireccionando a tu banco.",
|
|
6141
6308
|
bankAuthenticationSuccess: "Por favor, espera un momento mientras procesamos tu solicitud."
|
|
6142
6309
|
};
|
|
6143
|
-
var labels$
|
|
6310
|
+
var labels$e = {
|
|
6144
6311
|
card: "Ingresar número de tarjeta",
|
|
6145
6312
|
date: "Vencimiento",
|
|
6146
6313
|
CVC: "CVC",
|
|
@@ -6160,11 +6327,13 @@ var labels$d = {
|
|
|
6160
6327
|
firstName: "Nombre",
|
|
6161
6328
|
lastName: "Apellido",
|
|
6162
6329
|
phone: "Teléfono",
|
|
6163
|
-
freeItems: "Artículos gratis"
|
|
6330
|
+
freeItems: "Artículos gratis",
|
|
6331
|
+
email: "Correo",
|
|
6332
|
+
password: "Contraseña"
|
|
6164
6333
|
};
|
|
6165
6334
|
var checkoutForm_es = {
|
|
6166
|
-
messages: messages$
|
|
6167
|
-
labels: labels$
|
|
6335
|
+
messages: messages$f,
|
|
6336
|
+
labels: labels$e
|
|
6168
6337
|
};
|
|
6169
6338
|
|
|
6170
6339
|
var youAreSafe = "Estás seguro - PCI compliance 128 SSL por";
|
|
@@ -6186,7 +6355,7 @@ var messages_es = {
|
|
|
6186
6355
|
zeroTotalInvoice: zeroTotalInvoice
|
|
6187
6356
|
};
|
|
6188
6357
|
|
|
6189
|
-
var labels$
|
|
6358
|
+
var labels$d = {
|
|
6190
6359
|
email: "Ingresar correo",
|
|
6191
6360
|
password: "Ingresar contraseña",
|
|
6192
6361
|
required: "obligatorio",
|
|
@@ -6194,7 +6363,7 @@ var labels$c = {
|
|
|
6194
6363
|
passwordPlaceholder: "Contraseña",
|
|
6195
6364
|
login: "Iniciar Sesión"
|
|
6196
6365
|
};
|
|
6197
|
-
var messages$
|
|
6366
|
+
var messages$e = {
|
|
6198
6367
|
loginTo: "Inicia sesión en tu cuenta",
|
|
6199
6368
|
welcome: "Bienvenido de vuelta, inicia sesión con tu cuenta existente.",
|
|
6200
6369
|
dontHaveAccount: "¿Aún no tienes una cuenta?",
|
|
@@ -6213,28 +6382,28 @@ var errors$2 = {
|
|
|
6213
6382
|
"": ""
|
|
6214
6383
|
};
|
|
6215
6384
|
var login_es = {
|
|
6216
|
-
labels: labels$
|
|
6217
|
-
messages: messages$
|
|
6385
|
+
labels: labels$d,
|
|
6386
|
+
messages: messages$e,
|
|
6218
6387
|
errors: errors$2
|
|
6219
6388
|
};
|
|
6220
6389
|
|
|
6221
|
-
var labels$
|
|
6390
|
+
var labels$c = {
|
|
6222
6391
|
title: "Verificando Enlace Sin Contraseña",
|
|
6223
6392
|
instructions: "¡Ya casi terminas!\nVamos a confirmar tu dirección de correo.\nPulsa el enlace de verificación que hemos enviado a tu correo:",
|
|
6224
6393
|
resend: "Reenviar correo"
|
|
6225
6394
|
};
|
|
6226
|
-
var messages$
|
|
6395
|
+
var messages$d = {
|
|
6227
6396
|
resent: "Reenvío exitoso",
|
|
6228
6397
|
success: "Inicio de sesión exitoso"
|
|
6229
6398
|
};
|
|
6230
6399
|
var verifyLinkToken_es = {
|
|
6231
|
-
labels: labels$
|
|
6232
|
-
messages: messages$
|
|
6400
|
+
labels: labels$c,
|
|
6401
|
+
messages: messages$d
|
|
6233
6402
|
};
|
|
6234
6403
|
|
|
6235
6404
|
var title$7 = "Crear una cuenta";
|
|
6236
6405
|
var subtitle$2 = "Ingresa tu correo y contraseña a continuación";
|
|
6237
|
-
var labels$
|
|
6406
|
+
var labels$b = {
|
|
6238
6407
|
signUpFacebook: "Regístrate con Facebook",
|
|
6239
6408
|
signUpGoogle: "Regístrate con Google",
|
|
6240
6409
|
signUpEmail: "Regístrate con Correo",
|
|
@@ -6247,7 +6416,7 @@ var labels$a = {
|
|
|
6247
6416
|
lastName: "Apellido",
|
|
6248
6417
|
phone: "Teléfono"
|
|
6249
6418
|
};
|
|
6250
|
-
var messages$
|
|
6419
|
+
var messages$c = {
|
|
6251
6420
|
alreadyHaveAccount: " ¿Ya tienes una cuenta?",
|
|
6252
6421
|
createAccount: "Crear cuenta",
|
|
6253
6422
|
loginHere: "inicia sesión aquí",
|
|
@@ -6293,7 +6462,8 @@ var gift = {
|
|
|
6293
6462
|
enterEmail: "Por favor, ingresa el correo del destinatario del regalo",
|
|
6294
6463
|
invalidDate: "La fecha del regalo debe ser entre hoy y un año a partir de ahora.",
|
|
6295
6464
|
giftDateInfo: "El destinatario recibirá un correo de notificación del regalo con tu mensaje en la fecha que seleccionaste en la orden para redimir el regalo.",
|
|
6296
|
-
giftMessageInfo: "Deja un mensaje para el destinatario y no olvides firmar con tu nombre."
|
|
6465
|
+
giftMessageInfo: "Deja un mensaje para el destinatario y no olvides firmar con tu nombre.",
|
|
6466
|
+
giftMessageAllowedCharacters: "No se permiten caracteres especiales ni emojis."
|
|
6297
6467
|
}
|
|
6298
6468
|
};
|
|
6299
6469
|
var redeem = {
|
|
@@ -6321,14 +6491,14 @@ var redeem = {
|
|
|
6321
6491
|
var register_es = {
|
|
6322
6492
|
title: title$7,
|
|
6323
6493
|
subtitle: subtitle$2,
|
|
6324
|
-
labels: labels$
|
|
6325
|
-
messages: messages$
|
|
6494
|
+
labels: labels$b,
|
|
6495
|
+
messages: messages$c,
|
|
6326
6496
|
errors: errors$1,
|
|
6327
6497
|
gift: gift,
|
|
6328
6498
|
redeem: redeem
|
|
6329
6499
|
};
|
|
6330
6500
|
|
|
6331
|
-
var labels$
|
|
6501
|
+
var labels$a = {
|
|
6332
6502
|
title: "¿Quieres actualizar tu perfil?",
|
|
6333
6503
|
subtitle: "Ingresa tu información a continuación para actualizar tu perfil",
|
|
6334
6504
|
email: "Correo",
|
|
@@ -6347,21 +6517,21 @@ var labels$9 = {
|
|
|
6347
6517
|
zoom: "Acercar",
|
|
6348
6518
|
tin: "Número de Identificación Fiscal"
|
|
6349
6519
|
};
|
|
6350
|
-
var messages$
|
|
6520
|
+
var messages$b = {
|
|
6351
6521
|
userUpdated: "¡Gracias! Tu perfil se actualizó con éxito.",
|
|
6352
6522
|
pictureRemoved: "Tu foto de perfil se eliminó con éxito.",
|
|
6353
6523
|
pictureUpdated: "Tu foto de perfil se actualizó con éxito."
|
|
6354
6524
|
};
|
|
6355
6525
|
var userEdit_es = {
|
|
6356
|
-
labels: labels$
|
|
6357
|
-
messages: messages$
|
|
6526
|
+
labels: labels$a,
|
|
6527
|
+
messages: messages$b
|
|
6358
6528
|
};
|
|
6359
6529
|
|
|
6360
6530
|
var title$6 = "Ingresa tu dirección de envío";
|
|
6361
6531
|
var titleGifting = "Introduce tu dirección";
|
|
6362
6532
|
var selectAddressTitle = "Por favor, selecciona una dirección";
|
|
6363
6533
|
var selectAddressSubtitle = "Selecciona una de tus direcciones guardadas o añade una nueva";
|
|
6364
|
-
var labels$
|
|
6534
|
+
var labels$9 = {
|
|
6365
6535
|
address: "Dirección",
|
|
6366
6536
|
code: "Código Postal/Área",
|
|
6367
6537
|
city: "Ciudad",
|
|
@@ -6372,12 +6542,12 @@ var labels$8 = {
|
|
|
6372
6542
|
required: "obligatorio",
|
|
6373
6543
|
isDefault: "Configurar como dirección Principal"
|
|
6374
6544
|
};
|
|
6375
|
-
var buttons$
|
|
6545
|
+
var buttons$4 = {
|
|
6376
6546
|
submit: "Enviar",
|
|
6377
6547
|
selectAddress: "Seleccionar dirección",
|
|
6378
6548
|
addAddress: "Añadir nueva dirección"
|
|
6379
6549
|
};
|
|
6380
|
-
var messages$
|
|
6550
|
+
var messages$a = {
|
|
6381
6551
|
addressUpdated: "¡La dirección se actualizó con éxito!",
|
|
6382
6552
|
subRedeemed: "Tu suscripción ha sido redimida."
|
|
6383
6553
|
};
|
|
@@ -6386,9 +6556,9 @@ var address_es = {
|
|
|
6386
6556
|
titleGifting: titleGifting,
|
|
6387
6557
|
selectAddressTitle: selectAddressTitle,
|
|
6388
6558
|
selectAddressSubtitle: selectAddressSubtitle,
|
|
6389
|
-
labels: labels$
|
|
6390
|
-
buttons: buttons$
|
|
6391
|
-
messages: messages$
|
|
6559
|
+
labels: labels$9,
|
|
6560
|
+
buttons: buttons$4,
|
|
6561
|
+
messages: messages$a
|
|
6392
6562
|
};
|
|
6393
6563
|
|
|
6394
6564
|
var title$5 = "Restablecer tu contraseña";
|
|
@@ -6416,7 +6586,7 @@ var password = "Contraseña";
|
|
|
6416
6586
|
var submit$2 = "Enviar";
|
|
6417
6587
|
var required$2 = "Obligatorio";
|
|
6418
6588
|
var passwordResetEmailSent = "Las instrucciones de restablecimiento de la contraseña se han enviado a tu correo";
|
|
6419
|
-
var messages$
|
|
6589
|
+
var messages$9 = {
|
|
6420
6590
|
alreadyHaveAccount: "¿Ya tienes una cuenta?",
|
|
6421
6591
|
loginHere: "Inicia sesión aquí."
|
|
6422
6592
|
};
|
|
@@ -6427,7 +6597,7 @@ var passwordForgot_es = {
|
|
|
6427
6597
|
submit: submit$2,
|
|
6428
6598
|
required: required$2,
|
|
6429
6599
|
passwordResetEmailSent: passwordResetEmailSent,
|
|
6430
|
-
messages: messages$
|
|
6600
|
+
messages: messages$9
|
|
6431
6601
|
};
|
|
6432
6602
|
|
|
6433
6603
|
var title$3 = "Cambiar tu contraseña";
|
|
@@ -6455,7 +6625,7 @@ var title$2 = "Acceso sin contraseña";
|
|
|
6455
6625
|
var email = "Ingresar correo";
|
|
6456
6626
|
var submit = "Enviar";
|
|
6457
6627
|
var required = "obligatorio";
|
|
6458
|
-
var messages$
|
|
6628
|
+
var messages$8 = {
|
|
6459
6629
|
PasswordlessLoginSuccess: "Por favor, revisa tu correo y sigue las instrucciones que se indican"
|
|
6460
6630
|
};
|
|
6461
6631
|
var passwordlessRequest_es = {
|
|
@@ -6463,7 +6633,7 @@ var passwordlessRequest_es = {
|
|
|
6463
6633
|
email: email,
|
|
6464
6634
|
submit: submit,
|
|
6465
6635
|
required: required,
|
|
6466
|
-
messages: messages$
|
|
6636
|
+
messages: messages$8
|
|
6467
6637
|
};
|
|
6468
6638
|
|
|
6469
6639
|
var title$1 = "Tu carrito de compras";
|
|
@@ -6491,13 +6661,13 @@ var cart_es = {
|
|
|
6491
6661
|
removeAll: removeAll
|
|
6492
6662
|
};
|
|
6493
6663
|
|
|
6494
|
-
var buttons$
|
|
6664
|
+
var buttons$3 = {
|
|
6495
6665
|
select: "Seleccionar",
|
|
6496
6666
|
added: "Añadido al carrito",
|
|
6497
6667
|
purchase: "Compra",
|
|
6498
6668
|
"continue": "Continuar"
|
|
6499
6669
|
};
|
|
6500
|
-
var messages$
|
|
6670
|
+
var messages$7 = {
|
|
6501
6671
|
orderConfirmed: {
|
|
6502
6672
|
title: "¡Orden confirmada!",
|
|
6503
6673
|
body: "Tu orden ha sido confirmada y será enviada en los próximos días. En breve recibirás un correo electrónico de confirmación de esta orden."
|
|
@@ -6506,17 +6676,17 @@ var messages$6 = {
|
|
|
6506
6676
|
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.",
|
|
6507
6677
|
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."
|
|
6508
6678
|
};
|
|
6509
|
-
var labels$
|
|
6679
|
+
var labels$8 = {
|
|
6510
6680
|
summary: "Resumen de la orden",
|
|
6511
6681
|
total: "total"
|
|
6512
6682
|
};
|
|
6513
6683
|
var shop_es = {
|
|
6514
|
-
buttons: buttons$
|
|
6515
|
-
messages: messages$
|
|
6516
|
-
labels: labels$
|
|
6684
|
+
buttons: buttons$3,
|
|
6685
|
+
messages: messages$7,
|
|
6686
|
+
labels: labels$8
|
|
6517
6687
|
};
|
|
6518
6688
|
|
|
6519
|
-
var labels$
|
|
6689
|
+
var labels$7 = {
|
|
6520
6690
|
cardNumber: "Número de Tarjeta",
|
|
6521
6691
|
securityCode: "Código de Seguridad",
|
|
6522
6692
|
submit: "Enviar",
|
|
@@ -6538,7 +6708,7 @@ var labels$6 = {
|
|
|
6538
6708
|
title: "Información de Pago"
|
|
6539
6709
|
}
|
|
6540
6710
|
};
|
|
6541
|
-
var messages$
|
|
6711
|
+
var messages$6 = {
|
|
6542
6712
|
youAreSafe: "Estás seguro - PCI compliance 128 SSL por",
|
|
6543
6713
|
cancel: "Cancela tu suscripción en línea en cualquier momento.",
|
|
6544
6714
|
giftSent: "La suscripción de regalo se ha enviado a",
|
|
@@ -6552,12 +6722,12 @@ var errors = {
|
|
|
6552
6722
|
"": ""
|
|
6553
6723
|
};
|
|
6554
6724
|
var payment_es = {
|
|
6555
|
-
labels: labels$
|
|
6556
|
-
messages: messages$
|
|
6725
|
+
labels: labels$7,
|
|
6726
|
+
messages: messages$6,
|
|
6557
6727
|
errors: errors
|
|
6558
6728
|
};
|
|
6559
6729
|
|
|
6560
|
-
var labels$
|
|
6730
|
+
var labels$6 = {
|
|
6561
6731
|
menu: "Menú de Pelcro",
|
|
6562
6732
|
name: "Nombre",
|
|
6563
6733
|
email: "Correo",
|
|
@@ -6642,9 +6812,12 @@ var labels$5 = {
|
|
|
6642
6812
|
},
|
|
6643
6813
|
subCancellation: {
|
|
6644
6814
|
goBack: "Volver"
|
|
6815
|
+
},
|
|
6816
|
+
donationCancellation: {
|
|
6817
|
+
goBack: "Go back"
|
|
6645
6818
|
}
|
|
6646
6819
|
};
|
|
6647
|
-
var messages$
|
|
6820
|
+
var messages$5 = {
|
|
6648
6821
|
noCard: "No tienes una tarjeta",
|
|
6649
6822
|
subCancellation: {
|
|
6650
6823
|
isSureToCancel: "¿Estás seguro de que quieres cancelar tu suscripción?",
|
|
@@ -6661,11 +6834,60 @@ var messages$4 = {
|
|
|
6661
6834
|
loading: "Reanudando tu suscripción",
|
|
6662
6835
|
success: "La suscripción se reanudó con éxito",
|
|
6663
6836
|
error: "Error al reanudar tu suscripción"
|
|
6837
|
+
},
|
|
6838
|
+
donationCancellation: {
|
|
6839
|
+
isSureToCancel: "¿Estás seguro de que quieres cancelar tu donación?",
|
|
6840
|
+
loading: "Cancelando tu donación",
|
|
6841
|
+
success: "La donación se canceló con éxito",
|
|
6842
|
+
error: "Error al cancelar tu donación"
|
|
6843
|
+
},
|
|
6844
|
+
donationReactivation: {
|
|
6845
|
+
success: "La donación se reactivó con éxito",
|
|
6846
|
+
error: "Error al reactivar su donación"
|
|
6847
|
+
},
|
|
6848
|
+
donationUnSuspend: {
|
|
6849
|
+
isSureToUnSuspend: "¿Estás seguro de que quieres reanudar tu donación?",
|
|
6850
|
+
loading: "Reanudando tu donación",
|
|
6851
|
+
success: "La donación se reanudó con éxito",
|
|
6852
|
+
error: "Error al reanudar tu donación"
|
|
6664
6853
|
}
|
|
6665
6854
|
};
|
|
6666
6855
|
var dashboard_es = {
|
|
6856
|
+
labels: labels$6,
|
|
6857
|
+
messages: messages$5
|
|
6858
|
+
};
|
|
6859
|
+
|
|
6860
|
+
var messages$4 = {
|
|
6861
|
+
alreadyHaveAccount: "¿Ya tienes una cuenta?",
|
|
6862
|
+
loginHere: "Inicia sesión aquí",
|
|
6863
|
+
checkbox: "Marca esta casilla para regalar esta suscripción"
|
|
6864
|
+
};
|
|
6865
|
+
var labels$5 = {
|
|
6866
|
+
plan: {
|
|
6867
|
+
title: "Suscribirse a un plan",
|
|
6868
|
+
subtitle: "Selecciona uno de los planes a continuación y pulsa en siguiente."
|
|
6869
|
+
},
|
|
6870
|
+
product: {
|
|
6871
|
+
title: "Suscribirse a un producto",
|
|
6872
|
+
subtitle: "Selecciona uno de los productos a continuación y pulsa en siguiente."
|
|
6873
|
+
},
|
|
6874
|
+
selectProduct: "Selecciona un producto",
|
|
6875
|
+
selectPlan: "Selecciona un plan",
|
|
6876
|
+
startingAt: "Inicia el",
|
|
6877
|
+
restrictiveArticles: {
|
|
6878
|
+
subscribeTo: "Suscríbete a una de las siguientes opciones para obtener acceso a esta página",
|
|
6879
|
+
or: "O revisa algunas de nuestras otras opciones a continuación"
|
|
6880
|
+
}
|
|
6881
|
+
};
|
|
6882
|
+
var buttons$2 = {
|
|
6883
|
+
next: "Siguiente",
|
|
6884
|
+
select: "Seleccionar",
|
|
6885
|
+
back: "Volver"
|
|
6886
|
+
};
|
|
6887
|
+
var select_es = {
|
|
6888
|
+
messages: messages$4,
|
|
6667
6889
|
labels: labels$5,
|
|
6668
|
-
|
|
6890
|
+
buttons: buttons$2
|
|
6669
6891
|
};
|
|
6670
6892
|
|
|
6671
6893
|
var messages$3 = {
|
|
@@ -6695,7 +6917,7 @@ var buttons$1 = {
|
|
|
6695
6917
|
select: "Seleccionar",
|
|
6696
6918
|
back: "Volver"
|
|
6697
6919
|
};
|
|
6698
|
-
var
|
|
6920
|
+
var donation_es = {
|
|
6699
6921
|
messages: messages$3,
|
|
6700
6922
|
labels: labels$4,
|
|
6701
6923
|
buttons: buttons$1
|
|
@@ -8129,7 +8351,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8129
8351
|
OutboundLink$1.origTrackLink = OutboundLink$1.trackLink;
|
|
8130
8352
|
OutboundLink$1.trackLink = outboundLink;
|
|
8131
8353
|
var OutboundLink = OutboundLink$1;
|
|
8132
|
-
var ReactGA = _objectSpread({}, Defaults, {
|
|
8354
|
+
var ReactGA$1 = _objectSpread({}, Defaults, {
|
|
8133
8355
|
OutboundLink: OutboundLink
|
|
8134
8356
|
});
|
|
8135
8357
|
|
|
@@ -8369,7 +8591,7 @@ class PelcroActions {
|
|
|
8369
8591
|
return console.warn("You are already logged out.");
|
|
8370
8592
|
}
|
|
8371
8593
|
window.Pelcro.user.logout();
|
|
8372
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
8594
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
8373
8595
|
category: "ACTIONS",
|
|
8374
8596
|
action: "Logged out",
|
|
8375
8597
|
nonInteraction: true
|
|
@@ -8539,6 +8761,9 @@ const initialState$n = {
|
|
|
8539
8761
|
giftCode: "",
|
|
8540
8762
|
subscriptionIdToRenew: null,
|
|
8541
8763
|
subscriptionToManageMembers: null,
|
|
8764
|
+
isDonation: false,
|
|
8765
|
+
selectedDonationAmount: null,
|
|
8766
|
+
customDonationAmount: null,
|
|
8542
8767
|
// E-commerce
|
|
8543
8768
|
cartItems: [],
|
|
8544
8769
|
order: null,
|
|
@@ -8722,7 +8947,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
|
|
|
8722
8947
|
* @return {boolean}
|
|
8723
8948
|
*/
|
|
8724
8949
|
const isValidViewFromURL = viewID => {
|
|
8725
|
-
if (["login", "register", "plan-select", "gift-redeem", "password-forgot", "password-reset", "password-change", "passwordless-request", "passwordless-login", "payment-method-update", "user-edit", "newsletter", "address-create", "order-create", "cart", "email-verify", "invoice-details", "manage-members"].includes(viewID) || hasValidNewsletterUpdateUrl()) {
|
|
8950
|
+
if (["login", "register", "plan-select", "donation-select", "gift-redeem", "password-forgot", "password-reset", "password-change", "passwordless-request", "passwordless-login", "payment-method-update", "user-edit", "newsletter", "address-create", "order-create", "cart", "email-verify", "invoice-details", "manage-members"].includes(viewID) || hasValidNewsletterUpdateUrl()) {
|
|
8726
8951
|
return true;
|
|
8727
8952
|
}
|
|
8728
8953
|
return false;
|
|
@@ -8798,16 +9023,16 @@ const trackSubscriptionOnGA = () => {
|
|
|
8798
9023
|
return;
|
|
8799
9024
|
}
|
|
8800
9025
|
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;
|
|
8801
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$set = ReactGA.set) === null || _ReactGA$set === void 0 ? void 0 : _ReactGA$set.call(ReactGA, {
|
|
9026
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$set = ReactGA$1.set) === null || _ReactGA$set === void 0 ? void 0 : _ReactGA$set.call(ReactGA$1, {
|
|
8802
9027
|
currencyCode: currencyCode
|
|
8803
9028
|
});
|
|
8804
|
-
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", {
|
|
9029
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$plugin = ReactGA$1.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", {
|
|
8805
9030
|
id: lastSubscriptionId,
|
|
8806
9031
|
affiliation: "Pelcro",
|
|
8807
9032
|
revenue: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
|
|
8808
9033
|
coupon: couponCode
|
|
8809
9034
|
});
|
|
8810
|
-
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", {
|
|
9035
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$plugin2 = ReactGA$1.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", {
|
|
8811
9036
|
id: lastSubscriptionId,
|
|
8812
9037
|
name: product.name,
|
|
8813
9038
|
category: product.description,
|
|
@@ -8815,8 +9040,8 @@ const trackSubscriptionOnGA = () => {
|
|
|
8815
9040
|
price: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
|
|
8816
9041
|
quantity: 1
|
|
8817
9042
|
});
|
|
8818
|
-
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");
|
|
8819
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
9043
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$plugin3 = ReactGA$1.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");
|
|
9044
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
8820
9045
|
category: "ACTIONS",
|
|
8821
9046
|
action: "Subscribed",
|
|
8822
9047
|
nonInteraction: true
|
|
@@ -8928,6 +9153,13 @@ function notifyBugsnag(callback, startOptions) {
|
|
|
8928
9153
|
}
|
|
8929
9154
|
callback();
|
|
8930
9155
|
}
|
|
9156
|
+
function isStringValid(str) {
|
|
9157
|
+
// Define the regular expression to match only letters, numbers and spaces
|
|
9158
|
+
var regex = /^[a-zA-Z0-9\s]+$/;
|
|
9159
|
+
|
|
9160
|
+
// Test the string against the regular expression
|
|
9161
|
+
return regex.test(str);
|
|
9162
|
+
}
|
|
8931
9163
|
|
|
8932
9164
|
const resources = {
|
|
8933
9165
|
en: {
|
|
@@ -8953,6 +9185,7 @@ const resources = {
|
|
|
8953
9185
|
payment: payment_en,
|
|
8954
9186
|
dashboard: dashboard_en,
|
|
8955
9187
|
select: select_en,
|
|
9188
|
+
donation: donation_en,
|
|
8956
9189
|
notification: notification_en,
|
|
8957
9190
|
invoiceDetails: invoiceDetails_en,
|
|
8958
9191
|
subscriptionCancel: subscriptionCancel_en,
|
|
@@ -8982,6 +9215,7 @@ const resources = {
|
|
|
8982
9215
|
payment: payment_fr,
|
|
8983
9216
|
dashboard: dashboard_fr,
|
|
8984
9217
|
select: select_fr,
|
|
9218
|
+
donation: donation_fr,
|
|
8985
9219
|
notification: notification_fr,
|
|
8986
9220
|
invoiceDetails: invoiceDetails_fr,
|
|
8987
9221
|
subscriptionCancel: subscriptionCancel_fr,
|
|
@@ -9011,6 +9245,7 @@ const resources = {
|
|
|
9011
9245
|
payment: payment_ko,
|
|
9012
9246
|
dashboard: dashboard_ko,
|
|
9013
9247
|
select: select_ko,
|
|
9248
|
+
donation: donation_ko,
|
|
9014
9249
|
notification: notification_ko,
|
|
9015
9250
|
invoiceDetails: invoiceDetails_ko,
|
|
9016
9251
|
subscriptionCancel: subscriptionCancel_ko,
|
|
@@ -9040,6 +9275,7 @@ const resources = {
|
|
|
9040
9275
|
payment: payment_es,
|
|
9041
9276
|
dashboard: dashboard_es,
|
|
9042
9277
|
select: select_es,
|
|
9278
|
+
donation: donation_es,
|
|
9043
9279
|
notification: notification_es,
|
|
9044
9280
|
invoiceDetails: invoiceDetails_es,
|
|
9045
9281
|
subscriptionCancel: subscriptionCancel_es,
|
|
@@ -9075,88 +9311,257 @@ pageLanguageObserver.observe(document.documentElement, {
|
|
|
9075
9311
|
attributes: true
|
|
9076
9312
|
});
|
|
9077
9313
|
|
|
9078
|
-
function
|
|
9079
|
-
var descriptor = privateMap.get(receiver);
|
|
9314
|
+
var pure$1 = createCommonjsModule(function (module, exports) {
|
|
9080
9315
|
|
|
9081
|
-
|
|
9082
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
9083
|
-
}
|
|
9316
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9084
9317
|
|
|
9085
|
-
|
|
9086
|
-
|
|
9318
|
+
function _typeof(obj) {
|
|
9319
|
+
"@babel/helpers - typeof";
|
|
9320
|
+
|
|
9321
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
9322
|
+
_typeof = function (obj) {
|
|
9323
|
+
return typeof obj;
|
|
9324
|
+
};
|
|
9325
|
+
} else {
|
|
9326
|
+
_typeof = function (obj) {
|
|
9327
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
9328
|
+
};
|
|
9087
9329
|
}
|
|
9088
9330
|
|
|
9089
|
-
return
|
|
9331
|
+
return _typeof(obj);
|
|
9090
9332
|
}
|
|
9091
9333
|
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
var
|
|
9095
|
-
var
|
|
9096
|
-
var
|
|
9097
|
-
|
|
9098
|
-
var
|
|
9099
|
-
var
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9334
|
+
var V3_URL = 'https://js.stripe.com/v3';
|
|
9335
|
+
var V3_URL_REGEX = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;
|
|
9336
|
+
var EXISTING_SCRIPT_MESSAGE = 'loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used';
|
|
9337
|
+
var findScript = function findScript() {
|
|
9338
|
+
var scripts = document.querySelectorAll("script[src^=\"".concat(V3_URL, "\"]"));
|
|
9339
|
+
|
|
9340
|
+
for (var i = 0; i < scripts.length; i++) {
|
|
9341
|
+
var script = scripts[i];
|
|
9342
|
+
|
|
9343
|
+
if (!V3_URL_REGEX.test(script.src)) {
|
|
9344
|
+
continue;
|
|
9345
|
+
}
|
|
9346
|
+
|
|
9347
|
+
return script;
|
|
9348
|
+
}
|
|
9349
|
+
|
|
9350
|
+
return null;
|
|
9351
|
+
};
|
|
9352
|
+
|
|
9353
|
+
var injectScript = function injectScript(params) {
|
|
9354
|
+
var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';
|
|
9355
|
+
var script = document.createElement('script');
|
|
9356
|
+
script.src = "".concat(V3_URL).concat(queryString);
|
|
9357
|
+
var headOrBody = document.head || document.body;
|
|
9358
|
+
|
|
9359
|
+
if (!headOrBody) {
|
|
9360
|
+
throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');
|
|
9361
|
+
}
|
|
9362
|
+
|
|
9363
|
+
headOrBody.appendChild(script);
|
|
9364
|
+
return script;
|
|
9365
|
+
};
|
|
9366
|
+
|
|
9367
|
+
var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
9368
|
+
if (!stripe || !stripe._registerWrapper) {
|
|
9369
|
+
return;
|
|
9370
|
+
}
|
|
9371
|
+
|
|
9372
|
+
stripe._registerWrapper({
|
|
9373
|
+
name: 'stripe-js',
|
|
9374
|
+
version: "1.21.1",
|
|
9375
|
+
startTime: startTime
|
|
9376
|
+
});
|
|
9377
|
+
};
|
|
9378
|
+
|
|
9379
|
+
var stripePromise = null;
|
|
9380
|
+
var loadScript = function loadScript(params) {
|
|
9381
|
+
// Ensure that we only attempt to load Stripe.js at most once
|
|
9382
|
+
if (stripePromise !== null) {
|
|
9383
|
+
return stripePromise;
|
|
9384
|
+
}
|
|
9385
|
+
|
|
9386
|
+
stripePromise = new Promise(function (resolve, reject) {
|
|
9387
|
+
if (typeof window === 'undefined') {
|
|
9388
|
+
// Resolve to null when imported server side. This makes the module
|
|
9389
|
+
// safe to import in an isomorphic code base.
|
|
9390
|
+
resolve(null);
|
|
9391
|
+
return;
|
|
9392
|
+
}
|
|
9393
|
+
|
|
9394
|
+
if (window.Stripe && params) {
|
|
9395
|
+
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
9396
|
+
}
|
|
9397
|
+
|
|
9398
|
+
if (window.Stripe) {
|
|
9399
|
+
resolve(window.Stripe);
|
|
9400
|
+
return;
|
|
9401
|
+
}
|
|
9402
|
+
|
|
9403
|
+
try {
|
|
9404
|
+
var script = findScript();
|
|
9405
|
+
|
|
9406
|
+
if (script && params) {
|
|
9407
|
+
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
9408
|
+
} else if (!script) {
|
|
9409
|
+
script = injectScript(params);
|
|
9149
9410
|
}
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9411
|
+
|
|
9412
|
+
script.addEventListener('load', function () {
|
|
9413
|
+
if (window.Stripe) {
|
|
9414
|
+
resolve(window.Stripe);
|
|
9415
|
+
} else {
|
|
9416
|
+
reject(new Error('Stripe.js not available'));
|
|
9417
|
+
}
|
|
9418
|
+
});
|
|
9419
|
+
script.addEventListener('error', function () {
|
|
9420
|
+
reject(new Error('Failed to load Stripe.js'));
|
|
9421
|
+
});
|
|
9422
|
+
} catch (error) {
|
|
9423
|
+
reject(error);
|
|
9424
|
+
return;
|
|
9425
|
+
}
|
|
9426
|
+
});
|
|
9427
|
+
return stripePromise;
|
|
9428
|
+
};
|
|
9429
|
+
var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
9430
|
+
if (maybeStripe === null) {
|
|
9431
|
+
return null;
|
|
9432
|
+
}
|
|
9433
|
+
|
|
9434
|
+
var stripe = maybeStripe.apply(undefined, args);
|
|
9435
|
+
registerWrapper(stripe, startTime);
|
|
9436
|
+
return stripe;
|
|
9437
|
+
};
|
|
9438
|
+
var validateLoadParams = function validateLoadParams(params) {
|
|
9439
|
+
var errorMessage = "invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(params), "\n");
|
|
9440
|
+
|
|
9441
|
+
if (params === null || _typeof(params) !== 'object') {
|
|
9442
|
+
throw new Error(errorMessage);
|
|
9443
|
+
}
|
|
9444
|
+
|
|
9445
|
+
if (Object.keys(params).length === 1 && typeof params.advancedFraudSignals === 'boolean') {
|
|
9446
|
+
return params;
|
|
9447
|
+
}
|
|
9448
|
+
|
|
9449
|
+
throw new Error(errorMessage);
|
|
9450
|
+
};
|
|
9451
|
+
|
|
9452
|
+
var loadParams;
|
|
9453
|
+
var loadStripeCalled = false;
|
|
9454
|
+
var loadStripe = function loadStripe() {
|
|
9455
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9456
|
+
args[_key] = arguments[_key];
|
|
9457
|
+
}
|
|
9458
|
+
|
|
9459
|
+
loadStripeCalled = true;
|
|
9460
|
+
var startTime = Date.now();
|
|
9461
|
+
return loadScript(loadParams).then(function (maybeStripe) {
|
|
9462
|
+
return initStripe(maybeStripe, args, startTime);
|
|
9463
|
+
});
|
|
9464
|
+
};
|
|
9465
|
+
|
|
9466
|
+
loadStripe.setLoadParameters = function (params) {
|
|
9467
|
+
if (loadStripeCalled) {
|
|
9468
|
+
throw new Error('You cannot change load parameters after calling loadStripe');
|
|
9469
|
+
}
|
|
9470
|
+
|
|
9471
|
+
loadParams = validateLoadParams(params);
|
|
9472
|
+
};
|
|
9473
|
+
|
|
9474
|
+
exports.loadStripe = loadStripe;
|
|
9475
|
+
});
|
|
9476
|
+
|
|
9477
|
+
unwrapExports(pure$1);
|
|
9478
|
+
pure$1.loadStripe;
|
|
9479
|
+
|
|
9480
|
+
var pure = pure$1;
|
|
9481
|
+
var pure_1 = pure.loadStripe;
|
|
9482
|
+
|
|
9483
|
+
function _classPrivateFieldGet(receiver, privateMap) {
|
|
9484
|
+
var descriptor = privateMap.get(receiver);
|
|
9485
|
+
|
|
9486
|
+
if (!descriptor) {
|
|
9487
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
9488
|
+
}
|
|
9489
|
+
|
|
9490
|
+
if (descriptor.get) {
|
|
9491
|
+
return descriptor.get.call(receiver);
|
|
9492
|
+
}
|
|
9493
|
+
|
|
9494
|
+
return descriptor.value;
|
|
9495
|
+
}
|
|
9496
|
+
|
|
9497
|
+
function _classPrivateFieldInitSpec$2(obj, privateMap, value) { _checkPrivateRedeclaration$2(obj, privateMap); privateMap.set(obj, value); }
|
|
9498
|
+
function _checkPrivateRedeclaration$2(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
9499
|
+
var _isAlreadySaved = /*#__PURE__*/new WeakMap();
|
|
9500
|
+
var _markButtonAsLoading = /*#__PURE__*/new WeakMap();
|
|
9501
|
+
var _removeLoadingState = /*#__PURE__*/new WeakMap();
|
|
9502
|
+
var _markButtonAsSaved = /*#__PURE__*/new WeakMap();
|
|
9503
|
+
var _unmarkSavedButton = /*#__PURE__*/new WeakMap();
|
|
9504
|
+
var _markAllSavedButtons = /*#__PURE__*/new WeakMap();
|
|
9505
|
+
var _unmarkAllSavedButtons = /*#__PURE__*/new WeakMap();
|
|
9506
|
+
var _saveToMetadata = /*#__PURE__*/new WeakMap();
|
|
9507
|
+
var _removeMetaData = /*#__PURE__*/new WeakMap();
|
|
9508
|
+
var _onClick = /*#__PURE__*/new WeakMap();
|
|
9509
|
+
class SaveToMetadataButtonClass {
|
|
9510
|
+
constructor() {
|
|
9511
|
+
_defineProperty$3(this, "authenticated", () => {
|
|
9512
|
+
_classPrivateFieldGet(this, _onClick).call(this, _classPrivateFieldGet(this, _saveToMetadata));
|
|
9513
|
+
_classPrivateFieldGet(this, _markAllSavedButtons).call(this);
|
|
9514
|
+
});
|
|
9515
|
+
_defineProperty$3(this, "unauthenticated", () => {
|
|
9516
|
+
const {
|
|
9517
|
+
switchView
|
|
9518
|
+
} = usePelcro.getStore();
|
|
9519
|
+
_classPrivateFieldGet(this, _onClick).call(this, () => switchView("login"));
|
|
9520
|
+
_classPrivateFieldGet(this, _unmarkAllSavedButtons).call(this);
|
|
9521
|
+
});
|
|
9522
|
+
_classPrivateFieldInitSpec$2(this, _isAlreadySaved, {
|
|
9523
|
+
writable: true,
|
|
9524
|
+
value: button => {
|
|
9525
|
+
return button.classList.contains("pelcro-is-active");
|
|
9526
|
+
}
|
|
9527
|
+
});
|
|
9528
|
+
_classPrivateFieldInitSpec$2(this, _markButtonAsLoading, {
|
|
9529
|
+
writable: true,
|
|
9530
|
+
value: button => {
|
|
9531
|
+
button.classList.add("pelcro-is-loading");
|
|
9532
|
+
button.disabled = true;
|
|
9533
|
+
}
|
|
9534
|
+
});
|
|
9535
|
+
_classPrivateFieldInitSpec$2(this, _removeLoadingState, {
|
|
9536
|
+
writable: true,
|
|
9537
|
+
value: button => {
|
|
9538
|
+
button.classList.remove("pelcro-is-loading");
|
|
9539
|
+
button.disabled = false;
|
|
9540
|
+
}
|
|
9541
|
+
});
|
|
9542
|
+
_classPrivateFieldInitSpec$2(this, _markButtonAsSaved, {
|
|
9543
|
+
writable: true,
|
|
9544
|
+
value: button => {
|
|
9545
|
+
button.classList.add("pelcro-is-active");
|
|
9546
|
+
_classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
9547
|
+
}
|
|
9548
|
+
});
|
|
9549
|
+
_classPrivateFieldInitSpec$2(this, _unmarkSavedButton, {
|
|
9550
|
+
writable: true,
|
|
9551
|
+
value: button => {
|
|
9552
|
+
button.classList.remove("pelcro-is-active");
|
|
9553
|
+
_classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
9554
|
+
}
|
|
9555
|
+
});
|
|
9556
|
+
_classPrivateFieldInitSpec$2(this, _markAllSavedButtons, {
|
|
9557
|
+
writable: true,
|
|
9558
|
+
value: () => {
|
|
9559
|
+
var _Object$values, _window$Pelcro$user$r;
|
|
9560
|
+
const userMetadataArray = (_Object$values = Object.values((_window$Pelcro$user$r = window.Pelcro.user.read().metadata) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : {})) === null || _Object$values === void 0 ? void 0 : _Object$values.flat();
|
|
9561
|
+
this.saveButtons.forEach(button => {
|
|
9562
|
+
const buttonMetadata = button.dataset;
|
|
9563
|
+
userMetadataArray === null || userMetadataArray === void 0 ? void 0 : userMetadataArray.forEach(value => {
|
|
9564
|
+
if ((value === null || value === void 0 ? void 0 : value.title) === (buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title)) {
|
|
9160
9565
|
_classPrivateFieldGet(this, _markButtonAsSaved).call(this, button);
|
|
9161
9566
|
}
|
|
9162
9567
|
});
|
|
@@ -9213,7 +9618,7 @@ class SaveToMetadataButtonClass {
|
|
|
9213
9618
|
return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
9214
9619
|
}
|
|
9215
9620
|
_classPrivateFieldGet(this, _markButtonAsSaved).call(this, button);
|
|
9216
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
9621
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
9217
9622
|
category: "ACTIONS",
|
|
9218
9623
|
action: "Save/Follow",
|
|
9219
9624
|
label: buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title
|
|
@@ -9245,7 +9650,7 @@ class SaveToMetadataButtonClass {
|
|
|
9245
9650
|
return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
9246
9651
|
}
|
|
9247
9652
|
_classPrivateFieldGet(this, _unmarkSavedButton).call(this, button);
|
|
9248
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
|
|
9653
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
|
|
9249
9654
|
category: "ACTIONS",
|
|
9250
9655
|
action: "Unsave/Unfollow",
|
|
9251
9656
|
label: title
|
|
@@ -10250,7 +10655,7 @@ toast.confirm = function (onConfirm, _ref3) {
|
|
|
10250
10655
|
...options
|
|
10251
10656
|
});
|
|
10252
10657
|
setTimeout(() => {
|
|
10253
|
-
notify
|
|
10658
|
+
notify.dismiss(id);
|
|
10254
10659
|
}, 3000);
|
|
10255
10660
|
};
|
|
10256
10661
|
const onFailure = errorValue => {
|
|
@@ -10259,11 +10664,11 @@ toast.confirm = function (onConfirm, _ref3) {
|
|
|
10259
10664
|
...options
|
|
10260
10665
|
});
|
|
10261
10666
|
setTimeout(() => {
|
|
10262
|
-
notify
|
|
10667
|
+
notify.dismiss(id);
|
|
10263
10668
|
}, 3000);
|
|
10264
10669
|
};
|
|
10265
10670
|
};
|
|
10266
|
-
const notify
|
|
10671
|
+
const notify = toast;
|
|
10267
10672
|
|
|
10268
10673
|
const translations = i18next.t("common:buttons", {
|
|
10269
10674
|
returnObjects: true
|
|
@@ -10324,7 +10729,7 @@ const init$1 = () => {
|
|
|
10324
10729
|
const errorMessage = i18next.t("messages:invalidSubscription", {
|
|
10325
10730
|
returnObjects: true
|
|
10326
10731
|
});
|
|
10327
|
-
return notify
|
|
10732
|
+
return notify.error(errorMessage);
|
|
10328
10733
|
}
|
|
10329
10734
|
switchView("manage-members");
|
|
10330
10735
|
});
|
|
@@ -10332,7 +10737,7 @@ const init$1 = () => {
|
|
|
10332
10737
|
const errorMessage = i18next.t("messages:invalidSubscription", {
|
|
10333
10738
|
returnObjects: true
|
|
10334
10739
|
});
|
|
10335
|
-
return notify
|
|
10740
|
+
return notify.error(errorMessage);
|
|
10336
10741
|
}
|
|
10337
10742
|
}
|
|
10338
10743
|
}
|
|
@@ -10390,6 +10795,57 @@ const init$1 = () => {
|
|
|
10390
10795
|
}
|
|
10391
10796
|
}
|
|
10392
10797
|
}
|
|
10798
|
+
const pelcroDonateButtonsByClass = document.getElementsByClassName("pelcro-donate-button");
|
|
10799
|
+
if (pelcroDonateButtonsByClass.length !== 0) {
|
|
10800
|
+
for (let j = 0; j < pelcroDonateButtonsByClass.length; j++) {
|
|
10801
|
+
if (pelcroDonateButtonsByClass[j].dataset && "productId" in pelcroDonateButtonsByClass[j].dataset) {
|
|
10802
|
+
pelcroDonateButtonsByClass[j].addEventListener("click", e => {
|
|
10803
|
+
var _selectedProduct$plan2;
|
|
10804
|
+
set({
|
|
10805
|
+
isDonation: true
|
|
10806
|
+
});
|
|
10807
|
+
const productsList = window.Pelcro.product.list();
|
|
10808
|
+
if (!(productsList !== null && productsList !== void 0 && productsList.length)) return;
|
|
10809
|
+
const [productId, planId, isGift] = [e.target.dataset.productId, e.target.dataset.planId, e.target.dataset.isGift];
|
|
10810
|
+
const selectedProduct = productsList.find(product => product.id === Number(productId));
|
|
10811
|
+
const selectedPlan = selectedProduct === null || selectedProduct === void 0 ? void 0 : (_selectedProduct$plan2 = selectedProduct.plans) === null || _selectedProduct$plan2 === void 0 ? void 0 : _selectedProduct$plan2.find(plan => plan.id === Number(planId));
|
|
10812
|
+
set({
|
|
10813
|
+
product: selectedProduct,
|
|
10814
|
+
plan: selectedPlan,
|
|
10815
|
+
isGift: Boolean(isGift)
|
|
10816
|
+
});
|
|
10817
|
+
if (!selectedProduct || !selectedPlan) {
|
|
10818
|
+
return switchView("plan-select");
|
|
10819
|
+
}
|
|
10820
|
+
|
|
10821
|
+
// if (!isAuthenticated()) {
|
|
10822
|
+
// return switchView("register");
|
|
10823
|
+
// }
|
|
10824
|
+
|
|
10825
|
+
if (isGift) {
|
|
10826
|
+
return switchView("gift-create");
|
|
10827
|
+
}
|
|
10828
|
+
|
|
10829
|
+
// const requiresAddress = Boolean(
|
|
10830
|
+
// selectedProduct.address_required
|
|
10831
|
+
// );
|
|
10832
|
+
|
|
10833
|
+
// if (requiresAddress) {
|
|
10834
|
+
// return switchToAddressView();
|
|
10835
|
+
// }
|
|
10836
|
+
|
|
10837
|
+
return switchToPaymentView();
|
|
10838
|
+
});
|
|
10839
|
+
} else {
|
|
10840
|
+
pelcroDonateButtonsByClass[j].addEventListener("click", () => {
|
|
10841
|
+
set({
|
|
10842
|
+
isDonation: true
|
|
10843
|
+
});
|
|
10844
|
+
switchView("donation-select");
|
|
10845
|
+
});
|
|
10846
|
+
}
|
|
10847
|
+
}
|
|
10848
|
+
}
|
|
10393
10849
|
const pelcroOfflineSubButtonsByClass = document.getElementsByClassName("pelcro-offline-subscribe-button");
|
|
10394
10850
|
if (pelcroOfflineSubButtonsByClass.length !== 0) {
|
|
10395
10851
|
for (let j = 0; j < pelcroOfflineSubButtonsByClass.length; j++) {
|
|
@@ -10469,7 +10925,7 @@ const init$1 = () => {
|
|
|
10469
10925
|
const errorMsg = i18next.t("shop:messages.currencyMismatch", {
|
|
10470
10926
|
currency: userCurrency
|
|
10471
10927
|
});
|
|
10472
|
-
notify
|
|
10928
|
+
notify.error(errorMsg);
|
|
10473
10929
|
}
|
|
10474
10930
|
});
|
|
10475
10931
|
}
|
|
@@ -10562,7 +11018,7 @@ const init = () => {
|
|
|
10562
11018
|
unblurElemWhenUserLogsIn(elemDeepClone, entitlements);
|
|
10563
11019
|
unblurElemWhenUserLogsOut(elemDeepClone, entitlements);
|
|
10564
11020
|
const NOTIFICATION_ID = "entitlement";
|
|
10565
|
-
notify
|
|
11021
|
+
notify( /*#__PURE__*/React__default['default'].createElement("p", null, /*#__PURE__*/React__default['default'].createElement(Trans, {
|
|
10566
11022
|
i18nKey: "messages:entitlement"
|
|
10567
11023
|
}, "Some of the content on this page is available with one or more of our plans.", /*#__PURE__*/React__default['default'].createElement(Link, {
|
|
10568
11024
|
onClick: () => {
|
|
@@ -10577,7 +11033,7 @@ const init = () => {
|
|
|
10577
11033
|
plan: selectedPlan
|
|
10578
11034
|
});
|
|
10579
11035
|
}
|
|
10580
|
-
notify
|
|
11036
|
+
notify.dismiss(NOTIFICATION_ID);
|
|
10581
11037
|
switchView("_plan-select-entitlements");
|
|
10582
11038
|
}
|
|
10583
11039
|
}, "Subscribe"), "now to get full page access.")), {
|
|
@@ -10642,208 +11098,39 @@ function shouldBlurContent(entitlements) {
|
|
|
10642
11098
|
return entitlements.every(entitlement => !window.Pelcro.user.isEntitledTo(entitlement));
|
|
10643
11099
|
}
|
|
10644
11100
|
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
if (
|
|
10653
|
-
|
|
10654
|
-
return typeof obj;
|
|
10655
|
-
};
|
|
10656
|
-
} else {
|
|
10657
|
-
_typeof = function (obj) {
|
|
10658
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
10659
|
-
};
|
|
11101
|
+
/**
|
|
11102
|
+
* Extracts error message from the response error object
|
|
11103
|
+
* @param {Object} error Error object
|
|
11104
|
+
* @return {string}
|
|
11105
|
+
*/
|
|
11106
|
+
const getErrorMessages = error => {
|
|
11107
|
+
var _error$error, _error$response, _error$response$data, _error$response3, _error$response3$data, _error$response3$data2, _error$response5, _error$response5$data;
|
|
11108
|
+
if (error !== null && error !== void 0 && (_error$error = error.error) !== null && _error$error !== void 0 && _error$error.message) {
|
|
11109
|
+
return error.error.message;
|
|
10660
11110
|
}
|
|
11111
|
+
if (error !== null && error !== void 0 && (_error$response = error.response) !== null && _error$response !== void 0 && (_error$response$data = _error$response.data) !== null && _error$response$data !== void 0 && _error$response$data.message) {
|
|
11112
|
+
var _error$response2, _error$response2$data;
|
|
11113
|
+
return error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : _error$response2$data.message;
|
|
11114
|
+
}
|
|
11115
|
+
if (error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.error) !== null && _error$response3$data2 !== void 0 && _error$response3$data2.message) {
|
|
11116
|
+
var _error$response4, _error$response4$data, _error$response4$data2;
|
|
11117
|
+
return error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.error) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2.message;
|
|
11118
|
+
}
|
|
11119
|
+
if (error !== null && error !== void 0 && (_error$response5 = error.response) !== null && _error$response5 !== void 0 && (_error$response5$data = _error$response5.data) !== null && _error$response5$data !== void 0 && _error$response5$data.errors) {
|
|
11120
|
+
var _error$response6, _error$response6$data;
|
|
11121
|
+
const errorMessages = [];
|
|
10661
11122
|
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
|
-
|
|
10667
|
-
var EXISTING_SCRIPT_MESSAGE = 'loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used';
|
|
10668
|
-
var findScript = function findScript() {
|
|
10669
|
-
var scripts = document.querySelectorAll("script[src^=\"".concat(V3_URL, "\"]"));
|
|
10670
|
-
|
|
10671
|
-
for (var i = 0; i < scripts.length; i++) {
|
|
10672
|
-
var script = scripts[i];
|
|
10673
|
-
|
|
10674
|
-
if (!V3_URL_REGEX.test(script.src)) {
|
|
10675
|
-
continue;
|
|
10676
|
-
}
|
|
11123
|
+
// enumerable error (ex: validation errors)
|
|
11124
|
+
Object.values(error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : _error$response6$data.errors).forEach(_ref => {
|
|
11125
|
+
let [errorMessage] = _ref;
|
|
11126
|
+
errorMessages.push(errorMessage);
|
|
11127
|
+
});
|
|
10677
11128
|
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
|
|
10681
|
-
|
|
10682
|
-
|
|
10683
|
-
|
|
10684
|
-
var injectScript = function injectScript(params) {
|
|
10685
|
-
var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';
|
|
10686
|
-
var script = document.createElement('script');
|
|
10687
|
-
script.src = "".concat(V3_URL).concat(queryString);
|
|
10688
|
-
var headOrBody = document.head || document.body;
|
|
10689
|
-
|
|
10690
|
-
if (!headOrBody) {
|
|
10691
|
-
throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');
|
|
10692
|
-
}
|
|
10693
|
-
|
|
10694
|
-
headOrBody.appendChild(script);
|
|
10695
|
-
return script;
|
|
10696
|
-
};
|
|
10697
|
-
|
|
10698
|
-
var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
10699
|
-
if (!stripe || !stripe._registerWrapper) {
|
|
10700
|
-
return;
|
|
10701
|
-
}
|
|
10702
|
-
|
|
10703
|
-
stripe._registerWrapper({
|
|
10704
|
-
name: 'stripe-js',
|
|
10705
|
-
version: "1.21.1",
|
|
10706
|
-
startTime: startTime
|
|
10707
|
-
});
|
|
10708
|
-
};
|
|
10709
|
-
|
|
10710
|
-
var stripePromise = null;
|
|
10711
|
-
var loadScript = function loadScript(params) {
|
|
10712
|
-
// Ensure that we only attempt to load Stripe.js at most once
|
|
10713
|
-
if (stripePromise !== null) {
|
|
10714
|
-
return stripePromise;
|
|
10715
|
-
}
|
|
10716
|
-
|
|
10717
|
-
stripePromise = new Promise(function (resolve, reject) {
|
|
10718
|
-
if (typeof window === 'undefined') {
|
|
10719
|
-
// Resolve to null when imported server side. This makes the module
|
|
10720
|
-
// safe to import in an isomorphic code base.
|
|
10721
|
-
resolve(null);
|
|
10722
|
-
return;
|
|
10723
|
-
}
|
|
10724
|
-
|
|
10725
|
-
if (window.Stripe && params) {
|
|
10726
|
-
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
10727
|
-
}
|
|
10728
|
-
|
|
10729
|
-
if (window.Stripe) {
|
|
10730
|
-
resolve(window.Stripe);
|
|
10731
|
-
return;
|
|
10732
|
-
}
|
|
10733
|
-
|
|
10734
|
-
try {
|
|
10735
|
-
var script = findScript();
|
|
10736
|
-
|
|
10737
|
-
if (script && params) {
|
|
10738
|
-
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
10739
|
-
} else if (!script) {
|
|
10740
|
-
script = injectScript(params);
|
|
10741
|
-
}
|
|
10742
|
-
|
|
10743
|
-
script.addEventListener('load', function () {
|
|
10744
|
-
if (window.Stripe) {
|
|
10745
|
-
resolve(window.Stripe);
|
|
10746
|
-
} else {
|
|
10747
|
-
reject(new Error('Stripe.js not available'));
|
|
10748
|
-
}
|
|
10749
|
-
});
|
|
10750
|
-
script.addEventListener('error', function () {
|
|
10751
|
-
reject(new Error('Failed to load Stripe.js'));
|
|
10752
|
-
});
|
|
10753
|
-
} catch (error) {
|
|
10754
|
-
reject(error);
|
|
10755
|
-
return;
|
|
10756
|
-
}
|
|
10757
|
-
});
|
|
10758
|
-
return stripePromise;
|
|
10759
|
-
};
|
|
10760
|
-
var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
10761
|
-
if (maybeStripe === null) {
|
|
10762
|
-
return null;
|
|
10763
|
-
}
|
|
10764
|
-
|
|
10765
|
-
var stripe = maybeStripe.apply(undefined, args);
|
|
10766
|
-
registerWrapper(stripe, startTime);
|
|
10767
|
-
return stripe;
|
|
10768
|
-
};
|
|
10769
|
-
var validateLoadParams = function validateLoadParams(params) {
|
|
10770
|
-
var errorMessage = "invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(params), "\n");
|
|
10771
|
-
|
|
10772
|
-
if (params === null || _typeof(params) !== 'object') {
|
|
10773
|
-
throw new Error(errorMessage);
|
|
10774
|
-
}
|
|
10775
|
-
|
|
10776
|
-
if (Object.keys(params).length === 1 && typeof params.advancedFraudSignals === 'boolean') {
|
|
10777
|
-
return params;
|
|
10778
|
-
}
|
|
10779
|
-
|
|
10780
|
-
throw new Error(errorMessage);
|
|
10781
|
-
};
|
|
10782
|
-
|
|
10783
|
-
var loadParams;
|
|
10784
|
-
var loadStripeCalled = false;
|
|
10785
|
-
var loadStripe = function loadStripe() {
|
|
10786
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10787
|
-
args[_key] = arguments[_key];
|
|
10788
|
-
}
|
|
10789
|
-
|
|
10790
|
-
loadStripeCalled = true;
|
|
10791
|
-
var startTime = Date.now();
|
|
10792
|
-
return loadScript(loadParams).then(function (maybeStripe) {
|
|
10793
|
-
return initStripe(maybeStripe, args, startTime);
|
|
10794
|
-
});
|
|
10795
|
-
};
|
|
10796
|
-
|
|
10797
|
-
loadStripe.setLoadParameters = function (params) {
|
|
10798
|
-
if (loadStripeCalled) {
|
|
10799
|
-
throw new Error('You cannot change load parameters after calling loadStripe');
|
|
10800
|
-
}
|
|
10801
|
-
|
|
10802
|
-
loadParams = validateLoadParams(params);
|
|
10803
|
-
};
|
|
10804
|
-
|
|
10805
|
-
exports.loadStripe = loadStripe;
|
|
10806
|
-
});
|
|
10807
|
-
|
|
10808
|
-
unwrapExports(pure$1);
|
|
10809
|
-
pure$1.loadStripe;
|
|
10810
|
-
|
|
10811
|
-
var pure = pure$1;
|
|
10812
|
-
var pure_1 = pure.loadStripe;
|
|
10813
|
-
|
|
10814
|
-
/**
|
|
10815
|
-
* Extracts error message from the response error object
|
|
10816
|
-
* @param {Object} error Error object
|
|
10817
|
-
* @return {string}
|
|
10818
|
-
*/
|
|
10819
|
-
const getErrorMessages = error => {
|
|
10820
|
-
var _error$error, _error$response, _error$response$data, _error$response3, _error$response3$data, _error$response3$data2, _error$response5, _error$response5$data;
|
|
10821
|
-
if (error !== null && error !== void 0 && (_error$error = error.error) !== null && _error$error !== void 0 && _error$error.message) {
|
|
10822
|
-
return error.error.message;
|
|
10823
|
-
}
|
|
10824
|
-
if (error !== null && error !== void 0 && (_error$response = error.response) !== null && _error$response !== void 0 && (_error$response$data = _error$response.data) !== null && _error$response$data !== void 0 && _error$response$data.message) {
|
|
10825
|
-
var _error$response2, _error$response2$data;
|
|
10826
|
-
return error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : _error$response2$data.message;
|
|
10827
|
-
}
|
|
10828
|
-
if (error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.error) !== null && _error$response3$data2 !== void 0 && _error$response3$data2.message) {
|
|
10829
|
-
var _error$response4, _error$response4$data, _error$response4$data2;
|
|
10830
|
-
return error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.error) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2.message;
|
|
10831
|
-
}
|
|
10832
|
-
if (error !== null && error !== void 0 && (_error$response5 = error.response) !== null && _error$response5 !== void 0 && (_error$response5$data = _error$response5.data) !== null && _error$response5$data !== void 0 && _error$response5$data.errors) {
|
|
10833
|
-
var _error$response6, _error$response6$data;
|
|
10834
|
-
const errorMessages = [];
|
|
10835
|
-
|
|
10836
|
-
// enumerable error (ex: validation errors)
|
|
10837
|
-
Object.values(error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : _error$response6$data.errors).forEach(_ref => {
|
|
10838
|
-
let [errorMessage] = _ref;
|
|
10839
|
-
errorMessages.push(errorMessage);
|
|
10840
|
-
});
|
|
10841
|
-
|
|
10842
|
-
// convert to multiline string
|
|
10843
|
-
return errorMessages.join("\n");
|
|
10844
|
-
}
|
|
10845
|
-
if (error !== null && error !== void 0 && error.message) {
|
|
10846
|
-
return error.message;
|
|
11129
|
+
// convert to multiline string
|
|
11130
|
+
return errorMessages.join("\n");
|
|
11131
|
+
}
|
|
11132
|
+
if (error !== null && error !== void 0 && error.message) {
|
|
11133
|
+
return error.message;
|
|
10847
11134
|
}
|
|
10848
11135
|
};
|
|
10849
11136
|
|
|
@@ -10961,16 +11248,12 @@ const initPaywalls = () => {
|
|
|
10961
11248
|
};
|
|
10962
11249
|
const loadPaymentSDKs = () => {
|
|
10963
11250
|
// Lazy load stripe's SDK
|
|
10964
|
-
|
|
10965
|
-
whenUserReady
|
|
10966
|
-
} = usePelcro.getStore();
|
|
11251
|
+
usePelcro.getStore();
|
|
10967
11252
|
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
10968
11253
|
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
10972
|
-
}
|
|
10973
|
-
});
|
|
11254
|
+
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
11255
|
+
pure_1(window.Pelcro.environment.stripe);
|
|
11256
|
+
}
|
|
10974
11257
|
|
|
10975
11258
|
// Load PayPal SDKs
|
|
10976
11259
|
const supportsPaypal = Boolean(window.Pelcro.site.read().braintree_tokenization);
|
|
@@ -11017,12 +11300,12 @@ const initSecuritySdk = () => {
|
|
|
11017
11300
|
};
|
|
11018
11301
|
const initGATracking = () => {
|
|
11019
11302
|
var _ReactGA$initialize, _ReactGA$plugin, _ReactGA$plugin$requi;
|
|
11020
|
-
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);
|
|
11021
|
-
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");
|
|
11303
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$initialize = ReactGA$1.initialize) === null || _ReactGA$initialize === void 0 ? void 0 : _ReactGA$initialize.call(ReactGA$1, window.Pelcro.site.read().google_analytics_id);
|
|
11304
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$plugin = ReactGA$1.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");
|
|
11022
11305
|
};
|
|
11023
11306
|
const dispatchModalDisplayEvents = modalName => {
|
|
11024
11307
|
var _ReactGA$event, _modalName$replace, _modalName$replace2;
|
|
11025
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
11308
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
11026
11309
|
category: "VIEWS",
|
|
11027
11310
|
action: `${modalName === null || modalName === void 0 ? void 0 : (_modalName$replace = modalName.replace("pelcro-", "")) === null || _modalName$replace === void 0 ? void 0 : _modalName$replace.replaceAll("-", " ")} viewed`,
|
|
11028
11311
|
nonInteraction: true
|
|
@@ -11121,6 +11404,9 @@ const initViewFromURL = () => {
|
|
|
11121
11404
|
if (view === "plan-select") {
|
|
11122
11405
|
return initSubscriptionFromURL();
|
|
11123
11406
|
}
|
|
11407
|
+
if (view === "donation-select") {
|
|
11408
|
+
return initDonationFromURL();
|
|
11409
|
+
}
|
|
11124
11410
|
if (view === "register") {
|
|
11125
11411
|
const offlinePlanId = window.Pelcro.helpers.getURLParameter("plan_id");
|
|
11126
11412
|
if (offlinePlanId) {
|
|
@@ -11203,6 +11489,61 @@ const initSubscriptionFromURL = () => {
|
|
|
11203
11489
|
});
|
|
11204
11490
|
};
|
|
11205
11491
|
|
|
11492
|
+
/**
|
|
11493
|
+
* Initializes the donation flow if 'product_id' & 'plan_id' params exist
|
|
11494
|
+
* with valid IDs. Otherwise, switches to the donation selection flow
|
|
11495
|
+
*/
|
|
11496
|
+
const initDonationFromURL = () => {
|
|
11497
|
+
const {
|
|
11498
|
+
switchView,
|
|
11499
|
+
whenSiteReady,
|
|
11500
|
+
set
|
|
11501
|
+
} = usePelcro.getStore();
|
|
11502
|
+
whenSiteReady(() => {
|
|
11503
|
+
var _selectedProduct$plan2;
|
|
11504
|
+
const productsList = window.Pelcro.product.list();
|
|
11505
|
+
if (!(productsList !== null && productsList !== void 0 && productsList.length)) {
|
|
11506
|
+
return;
|
|
11507
|
+
}
|
|
11508
|
+
const [productId, planId, isGiftParam] = [window.Pelcro.helpers.getURLParameter("product_id"), window.Pelcro.helpers.getURLParameter("plan_id"), window.Pelcro.helpers.getURLParameter("is_gift")];
|
|
11509
|
+
const isGift = (isGiftParam === null || isGiftParam === void 0 ? void 0 : isGiftParam.toLowerCase()) === "true";
|
|
11510
|
+
const selectedProduct = productsList.find(product => product.id === Number(productId));
|
|
11511
|
+
const selectedPlan = selectedProduct === null || selectedProduct === void 0 ? void 0 : (_selectedProduct$plan2 = selectedProduct.plans) === null || _selectedProduct$plan2 === void 0 ? void 0 : _selectedProduct$plan2.find(plan => plan.id === Number(planId));
|
|
11512
|
+
set({
|
|
11513
|
+
product: selectedProduct,
|
|
11514
|
+
plan: selectedPlan,
|
|
11515
|
+
isGift
|
|
11516
|
+
});
|
|
11517
|
+
if (!selectedProduct || !selectedPlan) {
|
|
11518
|
+
set({
|
|
11519
|
+
isDonation: true
|
|
11520
|
+
});
|
|
11521
|
+
return switchView("donation-select");
|
|
11522
|
+
}
|
|
11523
|
+
const {
|
|
11524
|
+
isAuthenticated,
|
|
11525
|
+
switchToAddressView,
|
|
11526
|
+
switchToPaymentView
|
|
11527
|
+
} = usePelcro.getStore();
|
|
11528
|
+
|
|
11529
|
+
// if (!isAuthenticated()) {
|
|
11530
|
+
// return switchView("register");
|
|
11531
|
+
// }
|
|
11532
|
+
|
|
11533
|
+
// if (isGift) {
|
|
11534
|
+
// return switchView("gift-create");
|
|
11535
|
+
// }
|
|
11536
|
+
|
|
11537
|
+
// const requiresAddress = Boolean(selectedProduct.address_required);
|
|
11538
|
+
//
|
|
11539
|
+
// if (requiresAddress) {
|
|
11540
|
+
// return switchToAddressView();
|
|
11541
|
+
// }
|
|
11542
|
+
|
|
11543
|
+
return switchToPaymentView();
|
|
11544
|
+
});
|
|
11545
|
+
};
|
|
11546
|
+
|
|
11206
11547
|
/**
|
|
11207
11548
|
* Initializes offline subscription flow if 'plan_id' params exist
|
|
11208
11549
|
* with valid IDs, Otherwise, ignore the param
|
|
@@ -11302,9 +11643,9 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
11302
11643
|
token: emailToken
|
|
11303
11644
|
}, (err, res) => {
|
|
11304
11645
|
if (err) {
|
|
11305
|
-
return notify
|
|
11646
|
+
return notify.error(getErrorMessages(err));
|
|
11306
11647
|
}
|
|
11307
|
-
return notify
|
|
11648
|
+
return notify.success(translations.success);
|
|
11308
11649
|
});
|
|
11309
11650
|
}, {
|
|
11310
11651
|
once: true
|
|
@@ -11328,7 +11669,7 @@ const verifyLinkTokenFromUrl = () => {
|
|
|
11328
11669
|
token: loginToken
|
|
11329
11670
|
}, (err, res) => {
|
|
11330
11671
|
if (err) {
|
|
11331
|
-
return notify
|
|
11672
|
+
return notify.error(getErrorMessages(err));
|
|
11332
11673
|
}
|
|
11333
11674
|
const {
|
|
11334
11675
|
auth_token
|
|
@@ -11337,10 +11678,10 @@ const verifyLinkTokenFromUrl = () => {
|
|
|
11337
11678
|
auth_token
|
|
11338
11679
|
}, (err, res) => {
|
|
11339
11680
|
if (err) {
|
|
11340
|
-
return notify
|
|
11681
|
+
return notify.error(getErrorMessages(err));
|
|
11341
11682
|
}
|
|
11342
11683
|
resetView();
|
|
11343
|
-
return notify
|
|
11684
|
+
return notify.success(translations.success);
|
|
11344
11685
|
});
|
|
11345
11686
|
});
|
|
11346
11687
|
}, {
|
|
@@ -11415,7 +11756,7 @@ const showInvoiceDetailsFromUrl = () => {
|
|
|
11415
11756
|
const errorMessage = i18next.t("messages:invalidInvoice", {
|
|
11416
11757
|
returnObjects: true
|
|
11417
11758
|
});
|
|
11418
|
-
return notify
|
|
11759
|
+
return notify.error(errorMessage);
|
|
11419
11760
|
}
|
|
11420
11761
|
const {
|
|
11421
11762
|
invoice
|
|
@@ -11424,7 +11765,7 @@ const showInvoiceDetailsFromUrl = () => {
|
|
|
11424
11765
|
const errorMessage = i18next.t("messages:zeroTotalInvoice", {
|
|
11425
11766
|
returnObjects: true
|
|
11426
11767
|
});
|
|
11427
|
-
return notify
|
|
11768
|
+
return notify.error(errorMessage);
|
|
11428
11769
|
}
|
|
11429
11770
|
return switchView("invoice-details");
|
|
11430
11771
|
});
|
|
@@ -11449,7 +11790,7 @@ const showSubscriptionManageMembersFromUrl = () => {
|
|
|
11449
11790
|
const errorMessage = i18next.t("messages:invalidSubscription", {
|
|
11450
11791
|
returnObjects: true
|
|
11451
11792
|
});
|
|
11452
|
-
return notify
|
|
11793
|
+
return notify.error(errorMessage);
|
|
11453
11794
|
}
|
|
11454
11795
|
return switchView("manage-members");
|
|
11455
11796
|
});
|
|
@@ -11474,8 +11815,18 @@ const PelcroModalController = _ref => {
|
|
|
11474
11815
|
const {
|
|
11475
11816
|
view,
|
|
11476
11817
|
isAuthenticated,
|
|
11477
|
-
whenSiteReady
|
|
11818
|
+
whenSiteReady,
|
|
11819
|
+
isDonation
|
|
11478
11820
|
} = usePelcro();
|
|
11821
|
+
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
11822
|
+
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
11823
|
+
React__default['default'].useEffect(() => {
|
|
11824
|
+
if (isDonation) {
|
|
11825
|
+
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
11826
|
+
pure_1(window.Pelcro.environment.stripe);
|
|
11827
|
+
}
|
|
11828
|
+
}
|
|
11829
|
+
}, [isDonation]);
|
|
11479
11830
|
React__default['default'].useEffect(() => {
|
|
11480
11831
|
init$1();
|
|
11481
11832
|
renderShopView(React__default['default'].Children.map(children, child => child).find(_ref2 => {
|
|
@@ -11886,7 +12237,13 @@ const LoginContainer = _ref => {
|
|
|
11886
12237
|
});
|
|
11887
12238
|
onFailure(err);
|
|
11888
12239
|
} else {
|
|
12240
|
+
var _ReactGA, _ReactGA$event;
|
|
11889
12241
|
onSuccess(res);
|
|
12242
|
+
(_ReactGA = ReactGA) === null || _ReactGA === void 0 ? void 0 : (_ReactGA$event = _ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(_ReactGA, {
|
|
12243
|
+
category: "ACTIONS",
|
|
12244
|
+
action: "Logged in",
|
|
12245
|
+
nonInteraction: true
|
|
12246
|
+
});
|
|
11890
12247
|
}
|
|
11891
12248
|
});
|
|
11892
12249
|
};
|
|
@@ -12276,7 +12633,7 @@ const Logout = props => {
|
|
|
12276
12633
|
const handleLogout = () => {
|
|
12277
12634
|
var _ReactGA$event;
|
|
12278
12635
|
window.Pelcro.user.logout();
|
|
12279
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
12636
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
12280
12637
|
category: "ACTIONS",
|
|
12281
12638
|
action: "Logged out",
|
|
12282
12639
|
nonInteraction: true
|
|
@@ -13863,7 +14220,7 @@ function RegisterModal(props) {
|
|
|
13863
14220
|
};
|
|
13864
14221
|
const handleAfterRegistrationLogic = () => {
|
|
13865
14222
|
var _ReactGA$event, _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
13866
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
14223
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
13867
14224
|
category: "ACTIONS",
|
|
13868
14225
|
action: "Registered",
|
|
13869
14226
|
nonInteraction: true
|
|
@@ -13987,7 +14344,402 @@ function SelectModalWithHook(props) {
|
|
|
13987
14344
|
setProductAndPlan: (product, plan, isGift) => set({
|
|
13988
14345
|
product,
|
|
13989
14346
|
plan,
|
|
13990
|
-
isGift
|
|
14347
|
+
isGift
|
|
14348
|
+
}),
|
|
14349
|
+
setView: switchView,
|
|
14350
|
+
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
14351
|
+
});
|
|
14352
|
+
}
|
|
14353
|
+
function productsWithMatchedTaggedFirst$1() {
|
|
14354
|
+
var _window$Pelcro$produc;
|
|
14355
|
+
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
14356
|
+
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
14357
|
+
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
14358
|
+
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
14359
|
+
}
|
|
14360
|
+
function productMatchPageLanguage(product) {
|
|
14361
|
+
if (!product) {
|
|
14362
|
+
return false;
|
|
14363
|
+
}
|
|
14364
|
+
if (product.language === null) {
|
|
14365
|
+
return true;
|
|
14366
|
+
}
|
|
14367
|
+
const siteLanguage = window.Pelcro.helpers.getHtmlLanguageAttribute();
|
|
14368
|
+
return product.language === siteLanguage;
|
|
14369
|
+
}
|
|
14370
|
+
SelectModalWithHook.viewId = "plan-select";
|
|
14371
|
+
class SelectModal extends React.Component {
|
|
14372
|
+
constructor(props) {
|
|
14373
|
+
super(props);
|
|
14374
|
+
_defineProperty$3(this, "componentDidMount", () => {
|
|
14375
|
+
if (this.props.product) {
|
|
14376
|
+
const {
|
|
14377
|
+
product
|
|
14378
|
+
} = this.props;
|
|
14379
|
+
const planList = product.plans;
|
|
14380
|
+
this.setState({
|
|
14381
|
+
product,
|
|
14382
|
+
planList,
|
|
14383
|
+
mode: "plan"
|
|
14384
|
+
});
|
|
14385
|
+
}
|
|
14386
|
+
if (this.props.plan) {
|
|
14387
|
+
const {
|
|
14388
|
+
plan
|
|
14389
|
+
} = this.props;
|
|
14390
|
+
this.setState({
|
|
14391
|
+
plan,
|
|
14392
|
+
disabled: false
|
|
14393
|
+
});
|
|
14394
|
+
}
|
|
14395
|
+
if (this.state.productList.length === 1) {
|
|
14396
|
+
this.setState({
|
|
14397
|
+
product: this.state.productList[0],
|
|
14398
|
+
planList: this.state.productList[0].plans,
|
|
14399
|
+
mode: "plan"
|
|
14400
|
+
});
|
|
14401
|
+
}
|
|
14402
|
+
if (this.state.productList.length === 0 && !window.Pelcro.user.isAuthenticated()) {
|
|
14403
|
+
this.props.setView("register");
|
|
14404
|
+
}
|
|
14405
|
+
document.addEventListener("keydown", this.handleSubmit);
|
|
14406
|
+
if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
|
|
14407
|
+
var _window$Pelcro, _window$Pelcro$user, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$site;
|
|
14408
|
+
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;
|
|
14409
|
+
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;
|
|
14410
|
+
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;
|
|
14411
|
+
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 => {
|
|
14412
|
+
const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
|
|
14413
|
+
if (filteredPlans.length) return filteredPlans;
|
|
14414
|
+
});
|
|
14415
|
+
const productsMatchingUserCountry = productsMatchingUserCurrency.filter(product => {
|
|
14416
|
+
const filteredPlans = product.plans.filter(plan => {
|
|
14417
|
+
var _plan$countries;
|
|
14418
|
+
return plan.countries && ((_plan$countries = plan.countries) === null || _plan$countries === void 0 ? void 0 : _plan$countries.includes(userCountry)) || !plan.countries || !plan.countries.length;
|
|
14419
|
+
});
|
|
14420
|
+
if (filteredPlans.length) return filteredPlans;
|
|
14421
|
+
});
|
|
14422
|
+
notifyBugsnag(() => {
|
|
14423
|
+
Bugsnag.notify("SelectModal - No data viewed", event => {
|
|
14424
|
+
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;
|
|
14425
|
+
event.addMetadata("MetaData", {
|
|
14426
|
+
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(),
|
|
14427
|
+
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(),
|
|
14428
|
+
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,
|
|
14429
|
+
environment: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : _window$Pelcro8.environment,
|
|
14430
|
+
matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
|
|
14431
|
+
productListState: this.state.productList,
|
|
14432
|
+
methods: {
|
|
14433
|
+
productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst$1(),
|
|
14434
|
+
pelcroSDKProductsListMethod: window.Pelcro.product.list(),
|
|
14435
|
+
pelcroSDKGetByEntitlements: this.props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(this.props.matchingEntitlements) : null
|
|
14436
|
+
},
|
|
14437
|
+
userCurrency: userCurrency,
|
|
14438
|
+
userCountry: userCountry,
|
|
14439
|
+
userLanguage: userLanguage,
|
|
14440
|
+
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(),
|
|
14441
|
+
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,
|
|
14442
|
+
currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
|
|
14443
|
+
country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
|
|
14444
|
+
language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
|
|
14445
|
+
});
|
|
14446
|
+
});
|
|
14447
|
+
});
|
|
14448
|
+
}
|
|
14449
|
+
});
|
|
14450
|
+
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
14451
|
+
document.removeEventListener("keydown", this.handleSubmit);
|
|
14452
|
+
});
|
|
14453
|
+
_defineProperty$3(this, "handleSubmit", e => {
|
|
14454
|
+
if (e.key === "Enter" && !this.state.disabled) this.submitOption();
|
|
14455
|
+
});
|
|
14456
|
+
_defineProperty$3(this, "onProductChange", e => {
|
|
14457
|
+
const product = window.Pelcro.product.list()[e.target.selectedIndex];
|
|
14458
|
+
this.setState({
|
|
14459
|
+
product: product,
|
|
14460
|
+
plan: product.plans[0]
|
|
14461
|
+
});
|
|
14462
|
+
});
|
|
14463
|
+
_defineProperty$3(this, "onPlanChange", e => {
|
|
14464
|
+
this.setState({
|
|
14465
|
+
plan: this.state.product.plans[e.target.selectedIndex]
|
|
14466
|
+
});
|
|
14467
|
+
});
|
|
14468
|
+
_defineProperty$3(this, "onIsGiftChange", e => {
|
|
14469
|
+
this.setState({
|
|
14470
|
+
isGift: e.target.checked
|
|
14471
|
+
});
|
|
14472
|
+
});
|
|
14473
|
+
_defineProperty$3(this, "countStartPrice", arr => {
|
|
14474
|
+
let startingPlan = arr[0];
|
|
14475
|
+
for (const plan of arr) {
|
|
14476
|
+
if (plan.amount < startingPlan.amount) {
|
|
14477
|
+
startingPlan = plan;
|
|
14478
|
+
}
|
|
14479
|
+
}
|
|
14480
|
+
return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval}s` : `${startingPlan.interval}`}`;
|
|
14481
|
+
});
|
|
14482
|
+
_defineProperty$3(this, "renderOneProduct", (product, index, options) => {
|
|
14483
|
+
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
14484
|
+
const productButtonLabel = isPlanMode ? this.locale("buttons.back") : this.locale("buttons.select");
|
|
14485
|
+
const productButtonCallback = isPlanMode ? this.goBack : this.selectProduct;
|
|
14486
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14487
|
+
key: product.id,
|
|
14488
|
+
className: `plc-flex plc-items-start plc-p-2 plc-mt-4 plc-space-x-3 plc-text-gray-900 plc-border-solid plc-rounded plc-border-primary-500 pelcro-select-product-wrapper ${options !== null && options !== void 0 && options.emphasize ? "plc-border-2" : "plc-border"}`
|
|
14489
|
+
}, product.image && /*#__PURE__*/React__default['default'].createElement("img", {
|
|
14490
|
+
alt: `image of ${product.name}`,
|
|
14491
|
+
src: product.image,
|
|
14492
|
+
className: "plc-object-contain plc-w-1/4 pelcro-select-product-image"
|
|
14493
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14494
|
+
className: `plc-flex plc-flex-wrap ${product.image ? "plc-w-3/4" : "plc-w-full"}`
|
|
14495
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14496
|
+
className: "plc-w-full pelcro-select-product-header"
|
|
14497
|
+
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14498
|
+
className: "plc-font-bold pelcro-select-product-title"
|
|
14499
|
+
}, product.name), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14500
|
+
className: "plc-text-xs pelcro-select-product-description"
|
|
14501
|
+
}, product.description)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14502
|
+
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
14503
|
+
}, product.plans && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14504
|
+
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
14505
|
+
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
14506
|
+
onClick: productButtonCallback,
|
|
14507
|
+
"data-key": product.id,
|
|
14508
|
+
id: "pelcro-select-product-back-button",
|
|
14509
|
+
className: `plc-ml-auto plc-text-xs ${options !== null && options !== void 0 && options.emphasize ? "plc-bg-primary-700" : ""}`
|
|
14510
|
+
}, index === 0 && {
|
|
14511
|
+
autoFocus: true
|
|
14512
|
+
}), productButtonLabel))));
|
|
14513
|
+
});
|
|
14514
|
+
_defineProperty$3(this, "renderProducts", () => {
|
|
14515
|
+
const userDidSelectProduct = Boolean(this.state.mode === "plan");
|
|
14516
|
+
const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
|
|
14517
|
+
return productsToShow.map((product, index) => {
|
|
14518
|
+
if (product.plans.filter(plan => plan.type === "regular").length > 0) {
|
|
14519
|
+
return this.renderOneProduct(product, index);
|
|
14520
|
+
}
|
|
14521
|
+
});
|
|
14522
|
+
});
|
|
14523
|
+
_defineProperty$3(this, "renderMatchingProductsFirst", () => {
|
|
14524
|
+
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
14525
|
+
if (isPlanMode) {
|
|
14526
|
+
return this.renderOneProduct(this.state.product);
|
|
14527
|
+
}
|
|
14528
|
+
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst$1();
|
|
14529
|
+
|
|
14530
|
+
// Render normal products if there are no available matching products
|
|
14531
|
+
if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
|
|
14532
|
+
return this.renderProducts();
|
|
14533
|
+
}
|
|
14534
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("h3", {
|
|
14535
|
+
className: "plc-text-sm plc-font-semibold"
|
|
14536
|
+
}, this.locale("labels.restrictiveArticles.subscribeTo")), productsThatMatchArticleTag.map((product, index) => this.renderOneProduct(product, index, {
|
|
14537
|
+
emphasize: true
|
|
14538
|
+
})), (allProductsMinusMatched === null || allProductsMinusMatched === void 0 ? void 0 : allProductsMinusMatched.length) > 0 && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("hr", {
|
|
14539
|
+
className: "plc-my-4"
|
|
14540
|
+
}), /*#__PURE__*/React__default['default'].createElement("h3", {
|
|
14541
|
+
className: "plc-text-sm plc-font-semibold"
|
|
14542
|
+
}, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
|
|
14543
|
+
});
|
|
14544
|
+
_defineProperty$3(this, "renderPlans", () => {
|
|
14545
|
+
return this.state.planList.map(plan => {
|
|
14546
|
+
const isChecked = this.state.plan.id === plan.id ? true : false;
|
|
14547
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14548
|
+
key: plan.id,
|
|
14549
|
+
className: "plc-p-2 plc-mx-3 plc-mt-2 plc-text-gray-900 plc-border plc-border-gray-400 plc-border-solid plc-rounded pelcro-select-plan-wrapper"
|
|
14550
|
+
}, /*#__PURE__*/React__default['default'].createElement(Radio, {
|
|
14551
|
+
className: "plc-self-start pelcro-select-plan-radio",
|
|
14552
|
+
labelClassName: "plc-cursor-pointer plc-w-full",
|
|
14553
|
+
id: `pelcro-select-plan-${plan.id}`,
|
|
14554
|
+
name: "plan",
|
|
14555
|
+
checked: isChecked,
|
|
14556
|
+
"data-key": plan.id,
|
|
14557
|
+
onChange: this.selectPlan
|
|
14558
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14559
|
+
className: "plc-font-bold pelcro-select-plan-title"
|
|
14560
|
+
}, plan.nickname), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14561
|
+
className: "plc-text-xs pelcro-select-plan-description"
|
|
14562
|
+
}, plan.description)), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14563
|
+
className: "plc-mt-3 plc-font-bold pelcro-select-plan-price"
|
|
14564
|
+
}, plan.amount_formatted)));
|
|
14565
|
+
});
|
|
14566
|
+
});
|
|
14567
|
+
_defineProperty$3(this, "selectProduct", e => {
|
|
14568
|
+
const id = e.target.dataset.key;
|
|
14569
|
+
for (const product of this.state.productList) {
|
|
14570
|
+
if (+product.id === +id) {
|
|
14571
|
+
var _this$state$plan;
|
|
14572
|
+
this.setState({
|
|
14573
|
+
product: product
|
|
14574
|
+
});
|
|
14575
|
+
this.setState({
|
|
14576
|
+
planList: product.plans.filter(plan => plan.type === "regular")
|
|
14577
|
+
});
|
|
14578
|
+
this.setState({
|
|
14579
|
+
mode: "plan"
|
|
14580
|
+
});
|
|
14581
|
+
const isSelectedPlanPartOfThisProduct = ((_this$state$plan = this.state.plan) === null || _this$state$plan === void 0 ? void 0 : _this$state$plan.product_id) === Number(product.id);
|
|
14582
|
+
if (isSelectedPlanPartOfThisProduct) {
|
|
14583
|
+
this.setState({
|
|
14584
|
+
disabled: false
|
|
14585
|
+
});
|
|
14586
|
+
}
|
|
14587
|
+
}
|
|
14588
|
+
}
|
|
14589
|
+
});
|
|
14590
|
+
_defineProperty$3(this, "selectPlan", e => {
|
|
14591
|
+
const id = e.target.dataset.key;
|
|
14592
|
+
for (const plan of this.state.planList) {
|
|
14593
|
+
if (+plan.id === +id) {
|
|
14594
|
+
plan.isCheked = true;
|
|
14595
|
+
this.setState({
|
|
14596
|
+
plan: plan
|
|
14597
|
+
});
|
|
14598
|
+
this.setState({
|
|
14599
|
+
disabled: false
|
|
14600
|
+
});
|
|
14601
|
+
} else {
|
|
14602
|
+
plan.isCheked = false;
|
|
14603
|
+
}
|
|
14604
|
+
}
|
|
14605
|
+
});
|
|
14606
|
+
_defineProperty$3(this, "goBack", () => {
|
|
14607
|
+
this.setState({
|
|
14608
|
+
disabled: true
|
|
14609
|
+
});
|
|
14610
|
+
this.setState({
|
|
14611
|
+
mode: "product"
|
|
14612
|
+
});
|
|
14613
|
+
});
|
|
14614
|
+
_defineProperty$3(this, "submitOption", () => {
|
|
14615
|
+
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
14616
|
+
const {
|
|
14617
|
+
product,
|
|
14618
|
+
isGift
|
|
14619
|
+
} = this.state;
|
|
14620
|
+
const {
|
|
14621
|
+
setView
|
|
14622
|
+
} = this.props;
|
|
14623
|
+
const isAuthenticated = window.Pelcro.user.isAuthenticated();
|
|
14624
|
+
const {
|
|
14625
|
+
switchToAddressView,
|
|
14626
|
+
switchToPaymentView
|
|
14627
|
+
} = usePelcro.getStore();
|
|
14628
|
+
if (!isAuthenticated) {
|
|
14629
|
+
return setView("register");
|
|
14630
|
+
}
|
|
14631
|
+
if (isGift) {
|
|
14632
|
+
return setView("gift-create");
|
|
14633
|
+
}
|
|
14634
|
+
if (product.address_required) {
|
|
14635
|
+
return switchToAddressView();
|
|
14636
|
+
}
|
|
14637
|
+
return switchToPaymentView();
|
|
14638
|
+
});
|
|
14639
|
+
_defineProperty$3(this, "displayLoginView", () => {
|
|
14640
|
+
this.props.setView("login");
|
|
14641
|
+
});
|
|
14642
|
+
this.state = {
|
|
14643
|
+
product: {},
|
|
14644
|
+
plan: {},
|
|
14645
|
+
isGift: props.isGift,
|
|
14646
|
+
disabled: true,
|
|
14647
|
+
mode: "product",
|
|
14648
|
+
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
14649
|
+
};
|
|
14650
|
+
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
14651
|
+
this.locale = this.props.t;
|
|
14652
|
+
this.closeButton = window.Pelcro.paywall.displayCloseButton();
|
|
14653
|
+
}
|
|
14654
|
+
render() {
|
|
14655
|
+
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
14656
|
+
const {
|
|
14657
|
+
disableGifting
|
|
14658
|
+
} = this.props;
|
|
14659
|
+
if (this.state.mode === "product") {
|
|
14660
|
+
var _ReactGA$event;
|
|
14661
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
14662
|
+
category: "VIEWS",
|
|
14663
|
+
action: "Product Modal Viewed",
|
|
14664
|
+
nonInteraction: true
|
|
14665
|
+
});
|
|
14666
|
+
} else if (this.state.mode === "plan") {
|
|
14667
|
+
var _ReactGA$event2;
|
|
14668
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
|
|
14669
|
+
category: "VIEWS",
|
|
14670
|
+
action: "Plan Modal Viewed",
|
|
14671
|
+
nonInteraction: true
|
|
14672
|
+
});
|
|
14673
|
+
}
|
|
14674
|
+
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
14675
|
+
hideCloseButton: !this.closeButton,
|
|
14676
|
+
onClose: this.props.onClose,
|
|
14677
|
+
id: "pelcro-selection-modal"
|
|
14678
|
+
}, /*#__PURE__*/React__default['default'].createElement(ModalBody, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14679
|
+
id: "pelcro-selection-view"
|
|
14680
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14681
|
+
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
14682
|
+
}, /*#__PURE__*/React__default['default'].createElement("h4", {
|
|
14683
|
+
className: "plc-text-2xl plc-font-semibold"
|
|
14684
|
+
}, this.product && this.product.paywall.select_title || ((_window$Pelcro$produc2 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc2 === void 0 ? void 0 : _window$Pelcro$produc2.paywall.select_title)), /*#__PURE__*/React__default['default'].createElement("p", null, this.product && this.product.paywall.select_subtitle || ((_window$Pelcro$produc3 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc3 === void 0 ? void 0 : _window$Pelcro$produc3.paywall.select_subtitle))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14685
|
+
className: "pelcro-select-products-wrapper"
|
|
14686
|
+
}, (_window$Pelcro$site$r = window.Pelcro.site.read()) !== null && _window$Pelcro$site$r !== void 0 && _window$Pelcro$site$r.restrictive_paywall_metatags_enabled ? this.renderMatchingProductsFirst() : this.renderProducts()), this.state.mode === "plan" && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14687
|
+
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
14688
|
+
}, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14689
|
+
className: "plc-flex plc-justify-center plc-mt-2"
|
|
14690
|
+
}, /*#__PURE__*/React__default['default'].createElement(Checkbox, {
|
|
14691
|
+
onChange: this.onIsGiftChange,
|
|
14692
|
+
checked: this.state.isGift,
|
|
14693
|
+
id: "pelcro-input-is-gift"
|
|
14694
|
+
}, this.locale("messages.checkbox"))), /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
14695
|
+
disabled: this.state.disabled,
|
|
14696
|
+
onClick: this.submitOption,
|
|
14697
|
+
id: "pelcro-submit",
|
|
14698
|
+
className: "plc-w-full plc-mt-2"
|
|
14699
|
+
}, this.locale("buttons.next"))))), /*#__PURE__*/React__default['default'].createElement(ModalFooter, null, !window.Pelcro.user.isAuthenticated() && /*#__PURE__*/React__default['default'].createElement("p", null, this.locale("messages.alreadyHaveAccount") + " ", /*#__PURE__*/React__default['default'].createElement(Link, {
|
|
14700
|
+
id: "pelcro-link-login",
|
|
14701
|
+
onClick: this.displayLoginView
|
|
14702
|
+
}, this.locale("messages.loginHere"))), /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
|
|
14703
|
+
}
|
|
14704
|
+
}
|
|
14705
|
+
const SelectModalWithTrans = withTranslation("select")(SelectModal);
|
|
14706
|
+
|
|
14707
|
+
/**
|
|
14708
|
+
*
|
|
14709
|
+
*/
|
|
14710
|
+
function DonationModalWithHook(props) {
|
|
14711
|
+
React__default['default'].useEffect(() => {
|
|
14712
|
+
var _props$onDisplay;
|
|
14713
|
+
(_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
|
|
14714
|
+
}, []);
|
|
14715
|
+
const {
|
|
14716
|
+
isGift,
|
|
14717
|
+
plan,
|
|
14718
|
+
product,
|
|
14719
|
+
isRenewingGift,
|
|
14720
|
+
switchView,
|
|
14721
|
+
resetView,
|
|
14722
|
+
view,
|
|
14723
|
+
set
|
|
14724
|
+
} = usePelcro();
|
|
14725
|
+
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
14726
|
+
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
14727
|
+
return /*#__PURE__*/React__default['default'].createElement(DonationModalWithTrans, {
|
|
14728
|
+
isGift: isGift,
|
|
14729
|
+
disableGifting: isRenewingGift,
|
|
14730
|
+
plan: plan,
|
|
14731
|
+
product: product,
|
|
14732
|
+
onClose: () => {
|
|
14733
|
+
var _props$onClose;
|
|
14734
|
+
(_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
|
|
14735
|
+
resetView();
|
|
14736
|
+
},
|
|
14737
|
+
setProductAndPlan: (product, plan, isGift, selectedDonationAmount, customDonationAmount) => set({
|
|
14738
|
+
product,
|
|
14739
|
+
plan,
|
|
14740
|
+
isGift,
|
|
14741
|
+
selectedDonationAmount,
|
|
14742
|
+
customDonationAmount
|
|
13991
14743
|
}),
|
|
13992
14744
|
setView: switchView,
|
|
13993
14745
|
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
@@ -14000,18 +14752,8 @@ function productsWithMatchedTaggedFirst() {
|
|
|
14000
14752
|
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
14001
14753
|
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
14002
14754
|
}
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
return false;
|
|
14006
|
-
}
|
|
14007
|
-
if (product.language === null) {
|
|
14008
|
-
return true;
|
|
14009
|
-
}
|
|
14010
|
-
const siteLanguage = window.Pelcro.helpers.getHtmlLanguageAttribute();
|
|
14011
|
-
return product.language === siteLanguage;
|
|
14012
|
-
}
|
|
14013
|
-
SelectModalWithHook.viewId = "plan-select";
|
|
14014
|
-
class SelectModal extends React.Component {
|
|
14755
|
+
DonationModalWithHook.viewId = "donation-select";
|
|
14756
|
+
class DonationModal extends React.Component {
|
|
14015
14757
|
constructor(props) {
|
|
14016
14758
|
super(props);
|
|
14017
14759
|
_defineProperty$3(this, "componentDidMount", () => {
|
|
@@ -14042,53 +14784,39 @@ class SelectModal extends React.Component {
|
|
|
14042
14784
|
mode: "plan"
|
|
14043
14785
|
});
|
|
14044
14786
|
}
|
|
14045
|
-
|
|
14046
|
-
|
|
14047
|
-
|
|
14787
|
+
|
|
14788
|
+
// if (
|
|
14789
|
+
// this.state.productList.length === 0 &&
|
|
14790
|
+
// !window.Pelcro.user.isAuthenticated()
|
|
14791
|
+
// ) {
|
|
14792
|
+
// this.props.setView("register");
|
|
14793
|
+
// }
|
|
14794
|
+
|
|
14048
14795
|
document.addEventListener("keydown", this.handleSubmit);
|
|
14049
14796
|
if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
|
|
14050
14797
|
var _window$Pelcro, _window$Pelcro$user, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$site;
|
|
14051
14798
|
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;
|
|
14052
14799
|
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;
|
|
14053
|
-
|
|
14800
|
+
(_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;
|
|
14054
14801
|
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 => {
|
|
14055
14802
|
const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
|
|
14056
14803
|
if (filteredPlans.length) return filteredPlans;
|
|
14057
14804
|
});
|
|
14058
|
-
|
|
14805
|
+
productsMatchingUserCurrency.filter(product => {
|
|
14059
14806
|
const filteredPlans = product.plans.filter(plan => {
|
|
14060
14807
|
var _plan$countries;
|
|
14061
14808
|
return plan.countries && ((_plan$countries = plan.countries) === null || _plan$countries === void 0 ? void 0 : _plan$countries.includes(userCountry)) || !plan.countries || !plan.countries.length;
|
|
14062
14809
|
});
|
|
14063
14810
|
if (filteredPlans.length) return filteredPlans;
|
|
14064
14811
|
});
|
|
14065
|
-
|
|
14066
|
-
|
|
14067
|
-
|
|
14068
|
-
|
|
14069
|
-
|
|
14070
|
-
|
|
14071
|
-
|
|
14072
|
-
environment: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : _window$Pelcro8.environment,
|
|
14073
|
-
matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
|
|
14074
|
-
productListState: this.state.productList,
|
|
14075
|
-
methods: {
|
|
14076
|
-
productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst(),
|
|
14077
|
-
pelcroSDKProductsListMethod: window.Pelcro.product.list(),
|
|
14078
|
-
pelcroSDKGetByEntitlements: this.props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(this.props.matchingEntitlements) : null
|
|
14079
|
-
},
|
|
14080
|
-
userCurrency: userCurrency,
|
|
14081
|
-
userCountry: userCountry,
|
|
14082
|
-
userLanguage: userLanguage,
|
|
14083
|
-
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(),
|
|
14084
|
-
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,
|
|
14085
|
-
currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
|
|
14086
|
-
country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
|
|
14087
|
-
language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
|
|
14088
|
-
});
|
|
14089
|
-
});
|
|
14812
|
+
}
|
|
14813
|
+
});
|
|
14814
|
+
_defineProperty$3(this, "componentDidUpdate", (prevProps, prevState) => {
|
|
14815
|
+
var _this$state$planList;
|
|
14816
|
+
if (((_this$state$planList = this.state.planList) === null || _this$state$planList === void 0 ? void 0 : _this$state$planList.length) === 1 && this.state.plan !== this.state.planList[0]) {
|
|
14817
|
+
this.setState({
|
|
14818
|
+
plan: this.state.planList[0]
|
|
14090
14819
|
});
|
|
14091
|
-
console.log("bugsnag Triggered");
|
|
14092
14820
|
}
|
|
14093
14821
|
});
|
|
14094
14822
|
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
@@ -14144,9 +14872,7 @@ class SelectModal extends React.Component {
|
|
|
14144
14872
|
className: "plc-text-xs pelcro-select-product-description"
|
|
14145
14873
|
}, product.description)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14146
14874
|
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
14147
|
-
},
|
|
14148
|
-
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
14149
|
-
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
14875
|
+
}, /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
14150
14876
|
onClick: productButtonCallback,
|
|
14151
14877
|
"data-key": product.id,
|
|
14152
14878
|
id: "pelcro-select-product-back-button",
|
|
@@ -14186,24 +14912,90 @@ class SelectModal extends React.Component {
|
|
|
14186
14912
|
_defineProperty$3(this, "renderPlans", () => {
|
|
14187
14913
|
return this.state.planList.map(plan => {
|
|
14188
14914
|
const isChecked = this.state.plan.id === plan.id ? true : false;
|
|
14915
|
+
let planDetails = /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14916
|
+
className: "plc-bg-gray-100 plc-rounded-md plc-p-3 plc-mt-3 plc-text-sm plc-flex plc-items-center"
|
|
14917
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14918
|
+
className: "plc-flex plc-items-center plc-flex-1"
|
|
14919
|
+
}, "Auto renew:", " ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14920
|
+
className: "plc-inline-flex plc-w-6 plc-ml-1"
|
|
14921
|
+
}, plan.auto_renew ? /*#__PURE__*/React__default['default'].createElement(SvgCheck, {
|
|
14922
|
+
className: "plc-text-green-500"
|
|
14923
|
+
}) : /*#__PURE__*/React__default['default'].createElement(SvgXIcon, {
|
|
14924
|
+
className: "plc-text-red-500"
|
|
14925
|
+
})), " "), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14926
|
+
className: "plc-flex plc-items-center plc-flex-1"
|
|
14927
|
+
}, "Renewed every:", " ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14928
|
+
className: "plc-inline-flex plc-w-6 plc-ml-1 plc-font-bold plc-capitalize"
|
|
14929
|
+
}, plan.interval || "-"))), plan.preset_donation_values && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14930
|
+
className: "plc-mt-3 plc-pt-3 plc-border-t plc-border-gray-200"
|
|
14931
|
+
}, /*#__PURE__*/React__default['default'].createElement("h5", {
|
|
14932
|
+
className: "plc-mb-4 plc-font-medium plc-text-center"
|
|
14933
|
+
}, "Select amount"), /*#__PURE__*/React__default['default'].createElement("ul", {
|
|
14934
|
+
className: "plc-grid plc-grid-cols-2 plc-gap-3"
|
|
14935
|
+
}, plan.preset_donation_values.map(value => /*#__PURE__*/React__default['default'].createElement("li", {
|
|
14936
|
+
key: value
|
|
14937
|
+
}, /*#__PURE__*/React__default['default'].createElement("button", {
|
|
14938
|
+
className: `plc-bg-white plc-rounded-md plc-flex plc-items-center plc-justify-center plc-text-lg plc-w-full plc-min-h-16 focus:plc-outline-none ${isChecked && +this.state.selectedDonationAmount === +value ? "plc-border-primary-500 plc-text-primary-900 plc-border-2" : "plc-border-gray-200 plc-text-gray-900 plc-border"}`,
|
|
14939
|
+
onClick: () => {
|
|
14940
|
+
this.setState({
|
|
14941
|
+
selectedDonationAmount: +value,
|
|
14942
|
+
customDonationAmount: "",
|
|
14943
|
+
disabled: false
|
|
14944
|
+
});
|
|
14945
|
+
}
|
|
14946
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14947
|
+
className: "plc-font-bold plc-mr-1"
|
|
14948
|
+
}, value), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14949
|
+
className: "plc-uppercase"
|
|
14950
|
+
}, plan === null || plan === void 0 ? void 0 : plan.currency))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14951
|
+
className: "plc-relative plc-py-3 plc-mt-3"
|
|
14952
|
+
}, /*#__PURE__*/React__default['default'].createElement("hr", null), " ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14953
|
+
className: "plc-absolute plc-top-1/2 plc-left-1/2 plc-transform plc--translate-x-1/2 plc--translate-y-1/2 plc-leading-none plc-bg-white plc-px-2"
|
|
14954
|
+
}, "or"))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14955
|
+
className: "plc-relative plc-mt-3"
|
|
14956
|
+
}, /*#__PURE__*/React__default['default'].createElement(Input, {
|
|
14957
|
+
type: "number",
|
|
14958
|
+
value: this.state.customDonationAmount,
|
|
14959
|
+
onChange: e => {
|
|
14960
|
+
if (+e.target.value > 0) {
|
|
14961
|
+
this.setState({
|
|
14962
|
+
customDonationAmount: +e.target.value,
|
|
14963
|
+
selectedDonationAmount: null,
|
|
14964
|
+
disabled: false
|
|
14965
|
+
});
|
|
14966
|
+
} else {
|
|
14967
|
+
this.setState({
|
|
14968
|
+
customDonationAmount: ""
|
|
14969
|
+
});
|
|
14970
|
+
this.setState({
|
|
14971
|
+
disabled: true
|
|
14972
|
+
});
|
|
14973
|
+
}
|
|
14974
|
+
},
|
|
14975
|
+
placeholder: "Donate a custom amount ...",
|
|
14976
|
+
className: "plc-pr-14",
|
|
14977
|
+
wrapperClassName: "plc-mb-0"
|
|
14978
|
+
}), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14979
|
+
className: "plc-absolute plc-top-1/2 plc-transform plc--translate-y-1/2 plc-right-3 plc-pl-3 plc-border-l plc-border-gray-200 plc-uppercase plc-text-sm"
|
|
14980
|
+
}, plan.currency)));
|
|
14189
14981
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14190
14982
|
key: plan.id,
|
|
14191
|
-
className:
|
|
14983
|
+
className: `plc-p-2 plc-mx-3 plc-mt-2 plc-text-gray-900 plc-border-solid plc-rounded pelcro-select-plan-wrapper ${isChecked ? "plc-border-primary-500 plc-border-2" : "plc-border-gray-400 plc-border "}`
|
|
14192
14984
|
}, /*#__PURE__*/React__default['default'].createElement(Radio, {
|
|
14193
|
-
className: "plc-self-start pelcro-select-plan-radio",
|
|
14194
|
-
labelClassName: "plc-cursor-pointer plc-w-full",
|
|
14985
|
+
className: "plc-self-start pelcro-select-plan-radio plc-hidden",
|
|
14986
|
+
labelClassName: "plc-cursor-pointer plc-w-full plc-ml-0",
|
|
14195
14987
|
id: `pelcro-select-plan-${plan.id}`,
|
|
14196
14988
|
name: "plan",
|
|
14197
14989
|
checked: isChecked,
|
|
14198
14990
|
"data-key": plan.id,
|
|
14199
14991
|
onChange: this.selectPlan
|
|
14200
|
-
}, /*#__PURE__*/React__default['default'].createElement("div",
|
|
14992
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14993
|
+
className: "plc-text-center"
|
|
14994
|
+
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14201
14995
|
className: "plc-font-bold pelcro-select-plan-title"
|
|
14202
14996
|
}, plan.nickname), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14203
14997
|
className: "plc-text-xs pelcro-select-plan-description"
|
|
14204
|
-
}, plan.description)),
|
|
14205
|
-
className: "plc-mt-3 plc-font-bold pelcro-select-plan-price"
|
|
14206
|
-
}, plan.amount_formatted)));
|
|
14998
|
+
}, plan.description))), isChecked && planDetails);
|
|
14207
14999
|
});
|
|
14208
15000
|
});
|
|
14209
15001
|
_defineProperty$3(this, "selectProduct", e => {
|
|
@@ -14211,13 +15003,15 @@ class SelectModal extends React.Component {
|
|
|
14211
15003
|
for (const product of this.state.productList) {
|
|
14212
15004
|
if (+product.id === +id) {
|
|
14213
15005
|
var _this$state$plan;
|
|
15006
|
+
const planList = product.plans.filter(plan => plan.type === "donation");
|
|
15007
|
+
if (planList.length === 1) {
|
|
15008
|
+
this.setState({
|
|
15009
|
+
plan: planList[0]
|
|
15010
|
+
});
|
|
15011
|
+
}
|
|
14214
15012
|
this.setState({
|
|
14215
|
-
product: product
|
|
14216
|
-
|
|
14217
|
-
this.setState({
|
|
14218
|
-
planList: product.plans
|
|
14219
|
-
});
|
|
14220
|
-
this.setState({
|
|
15013
|
+
product: product,
|
|
15014
|
+
planList: planList,
|
|
14221
15015
|
mode: "plan"
|
|
14222
15016
|
});
|
|
14223
15017
|
const isSelectedPlanPartOfThisProduct = ((_this$state$plan = this.state.plan) === null || _this$state$plan === void 0 ? void 0 : _this$state$plan.product_id) === Number(product.id);
|
|
@@ -14230,6 +15024,12 @@ class SelectModal extends React.Component {
|
|
|
14230
15024
|
}
|
|
14231
15025
|
});
|
|
14232
15026
|
_defineProperty$3(this, "selectPlan", e => {
|
|
15027
|
+
this.setState({
|
|
15028
|
+
selectedDonationAmount: null
|
|
15029
|
+
});
|
|
15030
|
+
this.setState({
|
|
15031
|
+
disabled: true
|
|
15032
|
+
});
|
|
14233
15033
|
const id = e.target.dataset.key;
|
|
14234
15034
|
for (const plan of this.state.planList) {
|
|
14235
15035
|
if (+plan.id === +id) {
|
|
@@ -14237,9 +15037,6 @@ class SelectModal extends React.Component {
|
|
|
14237
15037
|
this.setState({
|
|
14238
15038
|
plan: plan
|
|
14239
15039
|
});
|
|
14240
|
-
this.setState({
|
|
14241
|
-
disabled: false
|
|
14242
|
-
});
|
|
14243
15040
|
} else {
|
|
14244
15041
|
plan.isCheked = false;
|
|
14245
15042
|
}
|
|
@@ -14254,7 +15051,7 @@ class SelectModal extends React.Component {
|
|
|
14254
15051
|
});
|
|
14255
15052
|
});
|
|
14256
15053
|
_defineProperty$3(this, "submitOption", () => {
|
|
14257
|
-
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
15054
|
+
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift, this.state.selectedDonationAmount, this.state.customDonationAmount);
|
|
14258
15055
|
const {
|
|
14259
15056
|
product,
|
|
14260
15057
|
isGift
|
|
@@ -14267,12 +15064,14 @@ class SelectModal extends React.Component {
|
|
|
14267
15064
|
switchToAddressView,
|
|
14268
15065
|
switchToPaymentView
|
|
14269
15066
|
} = usePelcro.getStore();
|
|
14270
|
-
if (!isAuthenticated) {
|
|
15067
|
+
if (!isAuthenticated && product.address_required) {
|
|
14271
15068
|
return setView("register");
|
|
14272
15069
|
}
|
|
14273
|
-
|
|
14274
|
-
|
|
14275
|
-
|
|
15070
|
+
|
|
15071
|
+
// if (isGift) {
|
|
15072
|
+
// return setView("gift-create");
|
|
15073
|
+
// }
|
|
15074
|
+
|
|
14276
15075
|
if (product.address_required) {
|
|
14277
15076
|
return switchToAddressView();
|
|
14278
15077
|
}
|
|
@@ -14281,13 +15080,16 @@ class SelectModal extends React.Component {
|
|
|
14281
15080
|
_defineProperty$3(this, "displayLoginView", () => {
|
|
14282
15081
|
this.props.setView("login");
|
|
14283
15082
|
});
|
|
15083
|
+
const productList = props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements).filter(product => product.has_donation_plans === true) : window.Pelcro.product.list().filter(product => product.has_donation_plans === true);
|
|
14284
15084
|
this.state = {
|
|
14285
15085
|
product: {},
|
|
14286
15086
|
plan: {},
|
|
14287
15087
|
isGift: props.isGift,
|
|
14288
15088
|
disabled: true,
|
|
14289
15089
|
mode: "product",
|
|
14290
|
-
productList:
|
|
15090
|
+
productList: productList,
|
|
15091
|
+
selectedDonationAmount: null,
|
|
15092
|
+
customDonationAmount: ""
|
|
14291
15093
|
};
|
|
14292
15094
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
14293
15095
|
this.locale = this.props.t;
|
|
@@ -14295,19 +15097,17 @@ class SelectModal extends React.Component {
|
|
|
14295
15097
|
}
|
|
14296
15098
|
render() {
|
|
14297
15099
|
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
14298
|
-
|
|
14299
|
-
disableGifting
|
|
14300
|
-
} = this.props;
|
|
15100
|
+
this.props;
|
|
14301
15101
|
if (this.state.mode === "product") {
|
|
14302
15102
|
var _ReactGA$event;
|
|
14303
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
15103
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
14304
15104
|
category: "VIEWS",
|
|
14305
15105
|
action: "Product Modal Viewed",
|
|
14306
15106
|
nonInteraction: true
|
|
14307
15107
|
});
|
|
14308
15108
|
} else if (this.state.mode === "plan") {
|
|
14309
15109
|
var _ReactGA$event2;
|
|
14310
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
|
|
15110
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
|
|
14311
15111
|
category: "VIEWS",
|
|
14312
15112
|
action: "Plan Modal Viewed",
|
|
14313
15113
|
nonInteraction: true
|
|
@@ -14326,25 +15126,16 @@ class SelectModal extends React.Component {
|
|
|
14326
15126
|
}, this.product && this.product.paywall.select_title || ((_window$Pelcro$produc2 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc2 === void 0 ? void 0 : _window$Pelcro$produc2.paywall.select_title)), /*#__PURE__*/React__default['default'].createElement("p", null, this.product && this.product.paywall.select_subtitle || ((_window$Pelcro$produc3 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc3 === void 0 ? void 0 : _window$Pelcro$produc3.paywall.select_subtitle))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14327
15127
|
className: "pelcro-select-products-wrapper"
|
|
14328
15128
|
}, (_window$Pelcro$site$r = window.Pelcro.site.read()) !== null && _window$Pelcro$site$r !== void 0 && _window$Pelcro$site$r.restrictive_paywall_metatags_enabled ? this.renderMatchingProductsFirst() : this.renderProducts()), this.state.mode === "plan" && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14329
|
-
className: "plc-overflow-y-scroll
|
|
14330
|
-
}, this.renderPlans()),
|
|
14331
|
-
className: "plc-flex plc-justify-center plc-mt-2"
|
|
14332
|
-
}, /*#__PURE__*/React__default['default'].createElement(Checkbox, {
|
|
14333
|
-
onChange: this.onIsGiftChange,
|
|
14334
|
-
checked: this.state.isGift,
|
|
14335
|
-
id: "pelcro-input-is-gift"
|
|
14336
|
-
}, this.locale("messages.checkbox"))), /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
15129
|
+
className: "plc-overflow-y-scroll pelcro-select-plans-wrapper"
|
|
15130
|
+
}, this.renderPlans()), /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
14337
15131
|
disabled: this.state.disabled,
|
|
14338
|
-
onClick: this.submitOption,
|
|
15132
|
+
onClick: () => this.submitOption(),
|
|
14339
15133
|
id: "pelcro-submit",
|
|
14340
15134
|
className: "plc-w-full plc-mt-2"
|
|
14341
|
-
}, this.locale("buttons.
|
|
14342
|
-
id: "pelcro-link-login",
|
|
14343
|
-
onClick: this.displayLoginView
|
|
14344
|
-
}, this.locale("messages.loginHere"))), /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
|
|
15135
|
+
}, this.locale("buttons.donate"))))), /*#__PURE__*/React__default['default'].createElement(ModalFooter, null, /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
|
|
14345
15136
|
}
|
|
14346
15137
|
}
|
|
14347
|
-
const
|
|
15138
|
+
const DonationModalWithTrans = withTranslation("donation")(DonationModal);
|
|
14348
15139
|
|
|
14349
15140
|
var Provider_1 = createCommonjsModule(function (module, exports) {
|
|
14350
15141
|
|
|
@@ -16556,11 +17347,15 @@ const initialState$k = {
|
|
|
16556
17347
|
firstName: "",
|
|
16557
17348
|
lastName: "",
|
|
16558
17349
|
phone: "",
|
|
17350
|
+
email: "",
|
|
17351
|
+
password: "",
|
|
16559
17352
|
firstNameError: null,
|
|
16560
17353
|
lastNameError: null,
|
|
16561
17354
|
phoneError: null,
|
|
17355
|
+
emailError: null,
|
|
16562
17356
|
month: "",
|
|
16563
17357
|
year: "",
|
|
17358
|
+
passwordError: null,
|
|
16564
17359
|
alert: {
|
|
16565
17360
|
type: "error",
|
|
16566
17361
|
content: ""
|
|
@@ -16593,7 +17388,11 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
16593
17388
|
set,
|
|
16594
17389
|
order,
|
|
16595
17390
|
selectedPaymentMethodId,
|
|
16596
|
-
couponCode
|
|
17391
|
+
couponCode,
|
|
17392
|
+
selectedDonationAmount,
|
|
17393
|
+
customDonationAmount,
|
|
17394
|
+
isAuthenticated,
|
|
17395
|
+
switchView
|
|
16597
17396
|
} = usePelcro();
|
|
16598
17397
|
const {
|
|
16599
17398
|
whenUserReady
|
|
@@ -16869,7 +17668,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
16869
17668
|
|
|
16870
17669
|
/*====== Start Tap integration ========*/
|
|
16871
17670
|
const submitUsingTap = state => {
|
|
16872
|
-
var _ref3, _ref4,
|
|
17671
|
+
var _ref3, _ref4, _getPlanAmount;
|
|
16873
17672
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
16874
17673
|
if (isUsingExistingPaymentMethod) {
|
|
16875
17674
|
// no need to create a new source using tap
|
|
@@ -16893,7 +17692,15 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
16893
17692
|
return total + item.price * item.quantity;
|
|
16894
17693
|
}, 0);
|
|
16895
17694
|
};
|
|
16896
|
-
|
|
17695
|
+
function getPlanAmount() {
|
|
17696
|
+
if (state.updatedPrice) return state.updatedPrice;
|
|
17697
|
+
if (plan.type === "donation" && (selectedDonationAmount || customDonationAmount)) {
|
|
17698
|
+
return selectedDonationAmount ? selectedDonationAmount * plan.amount : customDonationAmount * plan.amount;
|
|
17699
|
+
} else {
|
|
17700
|
+
return plan.amount;
|
|
17701
|
+
}
|
|
17702
|
+
}
|
|
17703
|
+
const totalAmount = (_ref3 = (_ref4 = (_getPlanAmount = getPlanAmount()) !== null && _getPlanAmount !== void 0 ? _getPlanAmount : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref4 !== void 0 ? _ref4 : getOrderItemsTotal()) !== null && _ref3 !== void 0 ? _ref3 : 10;
|
|
16897
17704
|
tapInstanceRef.current.createToken(tapInstanceCard.current).then(function (result) {
|
|
16898
17705
|
if (result.error) {
|
|
16899
17706
|
// Inform the user if there was an error
|
|
@@ -17372,24 +18179,32 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17372
18179
|
}, [selectedPaymentMethodId]);
|
|
17373
18180
|
const initPaymentRequest = (state, dispatch) => {
|
|
17374
18181
|
if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
|
|
18182
|
+
function getPlanAmount() {
|
|
18183
|
+
if (state.updatedPrice) return state.updatedPrice;
|
|
18184
|
+
if (plan.type === "donation" && (selectedDonationAmount || customDonationAmount)) {
|
|
18185
|
+
return selectedDonationAmount ? selectedDonationAmount * plan.amount : customDonationAmount * plan.amount;
|
|
18186
|
+
} else {
|
|
18187
|
+
return plan.amount;
|
|
18188
|
+
}
|
|
18189
|
+
}
|
|
17375
18190
|
try {
|
|
17376
18191
|
const paymentRequest = stripe.paymentRequest({
|
|
17377
18192
|
country: window.Pelcro.user.location.countryCode || "US",
|
|
17378
18193
|
currency: plan.currency,
|
|
17379
18194
|
total: {
|
|
17380
18195
|
label: plan.nickname || plan.description,
|
|
17381
|
-
amount:
|
|
18196
|
+
amount: getPlanAmount()
|
|
17382
18197
|
}
|
|
17383
18198
|
});
|
|
17384
18199
|
|
|
17385
18200
|
// When Google pay / Apple pay source created
|
|
17386
|
-
paymentRequest.on("source",
|
|
18201
|
+
paymentRequest.on("source", _ref5 => {
|
|
17387
18202
|
var _source$card;
|
|
17388
18203
|
let {
|
|
17389
18204
|
complete,
|
|
17390
18205
|
source,
|
|
17391
18206
|
...data
|
|
17392
|
-
} =
|
|
18207
|
+
} = _ref5;
|
|
17393
18208
|
dispatch({
|
|
17394
18209
|
type: DISABLE_COUPON_BUTTON,
|
|
17395
18210
|
payload: true
|
|
@@ -17404,11 +18219,11 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17404
18219
|
});
|
|
17405
18220
|
complete("success");
|
|
17406
18221
|
if ((source === null || source === void 0 ? void 0 : (_source$card = source.card) === null || _source$card === void 0 ? void 0 : _source$card.three_d_secure) === "required") {
|
|
17407
|
-
return generate3DSecureSource(source).then(
|
|
18222
|
+
return generate3DSecureSource(source).then(_ref6 => {
|
|
17408
18223
|
let {
|
|
17409
18224
|
source,
|
|
17410
18225
|
error
|
|
17411
|
-
} =
|
|
18226
|
+
} = _ref6;
|
|
17412
18227
|
if (error) {
|
|
17413
18228
|
return handlePaymentError(error);
|
|
17414
18229
|
}
|
|
@@ -18009,12 +18824,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18009
18824
|
const updatePaymentSource = (state, dispatch) => {
|
|
18010
18825
|
return stripe.createSource({
|
|
18011
18826
|
type: "card"
|
|
18012
|
-
}).then(
|
|
18827
|
+
}).then(_ref7 => {
|
|
18013
18828
|
var _source$card2;
|
|
18014
18829
|
let {
|
|
18015
18830
|
source,
|
|
18016
18831
|
error
|
|
18017
|
-
} =
|
|
18832
|
+
} = _ref7;
|
|
18018
18833
|
if (error) {
|
|
18019
18834
|
return handlePaymentError(error);
|
|
18020
18835
|
}
|
|
@@ -18069,6 +18884,50 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18069
18884
|
}
|
|
18070
18885
|
});
|
|
18071
18886
|
};
|
|
18887
|
+
const sendRegisterRequest = (state, callback) => {
|
|
18888
|
+
window.Pelcro.user.register({
|
|
18889
|
+
email: state.email,
|
|
18890
|
+
password: state.password
|
|
18891
|
+
}, (err, res) => {
|
|
18892
|
+
if (err) {
|
|
18893
|
+
var _err$response, _err$response$data;
|
|
18894
|
+
let {
|
|
18895
|
+
registered_on_other_sites,
|
|
18896
|
+
...errors
|
|
18897
|
+
} = err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.errors;
|
|
18898
|
+
err.response.data.errors = {
|
|
18899
|
+
...errors
|
|
18900
|
+
};
|
|
18901
|
+
let errorContent;
|
|
18902
|
+
if (getErrorMessages(err) === "This email is already in use.") {
|
|
18903
|
+
errorContent = /*#__PURE__*/React__default['default'].createElement("p", null, "This email is already in use.", " ", /*#__PURE__*/React__default['default'].createElement("button", {
|
|
18904
|
+
className: "plc-font-bold plc-underline hover:plc-no-underline",
|
|
18905
|
+
onClick: () => switchView("login")
|
|
18906
|
+
}, "Login to continue"));
|
|
18907
|
+
} else {
|
|
18908
|
+
errorContent = getErrorMessages(err);
|
|
18909
|
+
}
|
|
18910
|
+
dispatch({
|
|
18911
|
+
type: SHOW_ALERT,
|
|
18912
|
+
payload: {
|
|
18913
|
+
type: "error",
|
|
18914
|
+
content: errorContent
|
|
18915
|
+
}
|
|
18916
|
+
});
|
|
18917
|
+
dispatch({
|
|
18918
|
+
type: DISABLE_SUBMIT,
|
|
18919
|
+
payload: false
|
|
18920
|
+
});
|
|
18921
|
+
dispatch({
|
|
18922
|
+
type: LOADING,
|
|
18923
|
+
payload: false
|
|
18924
|
+
});
|
|
18925
|
+
onFailure(err);
|
|
18926
|
+
} else {
|
|
18927
|
+
callback();
|
|
18928
|
+
}
|
|
18929
|
+
});
|
|
18930
|
+
};
|
|
18072
18931
|
const submitPayment = (state, dispatch) => {
|
|
18073
18932
|
if (skipPayment && props !== null && props !== void 0 && props.freeOrders) {
|
|
18074
18933
|
const isQuickPurchase = !Array.isArray(order);
|
|
@@ -18095,12 +18954,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18095
18954
|
}
|
|
18096
18955
|
stripe.createSource({
|
|
18097
18956
|
type: "card"
|
|
18098
|
-
}).then(
|
|
18099
|
-
var
|
|
18957
|
+
}).then(_ref8 => {
|
|
18958
|
+
var _ref9, _ref10, _state$updatedPrice;
|
|
18100
18959
|
let {
|
|
18101
18960
|
source,
|
|
18102
18961
|
error
|
|
18103
|
-
} =
|
|
18962
|
+
} = _ref8;
|
|
18104
18963
|
if (error) {
|
|
18105
18964
|
return handlePaymentError(error);
|
|
18106
18965
|
}
|
|
@@ -18119,7 +18978,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18119
18978
|
return total + item.price * item.quantity;
|
|
18120
18979
|
}, 0);
|
|
18121
18980
|
};
|
|
18122
|
-
(
|
|
18981
|
+
(_ref9 = (_ref10 = (_state$updatedPrice = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice !== void 0 ? _state$updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref10 !== void 0 ? _ref10 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref9 !== void 0 ? _ref9 : getOrderItemsTotal();
|
|
18123
18982
|
return handlePayment(source);
|
|
18124
18983
|
}).catch(error => {
|
|
18125
18984
|
return handlePaymentError(error);
|
|
@@ -18330,25 +19189,47 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18330
19189
|
return submitPayment(state);
|
|
18331
19190
|
}
|
|
18332
19191
|
if (getSiteCardProcessor() === "vantiv") {
|
|
18333
|
-
|
|
19192
|
+
if (!isAuthenticated() && plan.type === "donation") {
|
|
19193
|
+
return sendRegisterRequest(state, () => submitUsingVantiv(state));
|
|
19194
|
+
} else {
|
|
19195
|
+
return submitUsingVantiv(state);
|
|
19196
|
+
}
|
|
18334
19197
|
}
|
|
18335
19198
|
if (getSiteCardProcessor() === "tap") {
|
|
18336
|
-
|
|
19199
|
+
if (!isAuthenticated() && plan.type === "donation") {
|
|
19200
|
+
return sendRegisterRequest(state, () => submitUsingTap(state));
|
|
19201
|
+
} else {
|
|
19202
|
+
return submitUsingTap(state);
|
|
19203
|
+
}
|
|
19204
|
+
}
|
|
19205
|
+
if (getSiteCardProcessor() === "cybersource") {
|
|
19206
|
+
return submitUsingCybersource(state, dispatch);
|
|
18337
19207
|
}
|
|
18338
19208
|
if (getSiteCardProcessor() === "cybersource") {
|
|
18339
19209
|
return submitUsingCybersource(state, dispatch);
|
|
18340
19210
|
}
|
|
18341
19211
|
if (selectedPaymentMethodId) {
|
|
18342
|
-
|
|
18343
|
-
|
|
18344
|
-
|
|
18345
|
-
|
|
18346
|
-
|
|
19212
|
+
if (!isAuthenticated() && plan.type === "donation") {
|
|
19213
|
+
return sendRegisterRequest(state, () => handlePayment({
|
|
19214
|
+
id: selectedPaymentMethodId,
|
|
19215
|
+
isExistingSource: true
|
|
19216
|
+
}));
|
|
19217
|
+
} else {
|
|
19218
|
+
// pay with selected method (source) if exists already
|
|
19219
|
+
return handlePayment({
|
|
19220
|
+
id: selectedPaymentMethodId,
|
|
19221
|
+
isExistingSource: true
|
|
19222
|
+
});
|
|
19223
|
+
}
|
|
18347
19224
|
}
|
|
18348
19225
|
if (type === "updatePaymentSource") {
|
|
18349
19226
|
return updatePaymentSource(state, dispatch);
|
|
18350
19227
|
}
|
|
18351
|
-
|
|
19228
|
+
if (!isAuthenticated() && plan.type === "donation") {
|
|
19229
|
+
return sendRegisterRequest(state, () => submitPayment(state));
|
|
19230
|
+
} else {
|
|
19231
|
+
return submitPayment(state);
|
|
19232
|
+
}
|
|
18352
19233
|
});
|
|
18353
19234
|
case HANDLE_PAYPAL_SUBSCRIPTION:
|
|
18354
19235
|
return lib_5(state, (state, dispatch) => {
|
|
@@ -18433,6 +19314,18 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18433
19314
|
phone: action.payload,
|
|
18434
19315
|
phoneError: null
|
|
18435
19316
|
});
|
|
19317
|
+
case SET_EMAIL:
|
|
19318
|
+
return lib_7({
|
|
19319
|
+
...state,
|
|
19320
|
+
email: action.payload,
|
|
19321
|
+
emailError: null
|
|
19322
|
+
});
|
|
19323
|
+
case SET_PASSWORD:
|
|
19324
|
+
return lib_7({
|
|
19325
|
+
...state,
|
|
19326
|
+
password: action.payload,
|
|
19327
|
+
passwordError: null
|
|
19328
|
+
});
|
|
18436
19329
|
case SET_FIRST_NAME_ERROR:
|
|
18437
19330
|
return lib_7({
|
|
18438
19331
|
...state,
|
|
@@ -18451,6 +19344,18 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18451
19344
|
phoneError: action.payload,
|
|
18452
19345
|
phone: null
|
|
18453
19346
|
});
|
|
19347
|
+
case SET_EMAIL_ERROR:
|
|
19348
|
+
return lib_7({
|
|
19349
|
+
...state,
|
|
19350
|
+
emailError: action.payload,
|
|
19351
|
+
email: ""
|
|
19352
|
+
});
|
|
19353
|
+
case SET_PASSWORD_ERROR:
|
|
19354
|
+
return lib_7({
|
|
19355
|
+
...state,
|
|
19356
|
+
passwordError: action.payload,
|
|
19357
|
+
password: ""
|
|
19358
|
+
});
|
|
18454
19359
|
case SHOW_ALERT:
|
|
18455
19360
|
return lib_7({
|
|
18456
19361
|
...state,
|
|
@@ -18484,18 +19389,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18484
19389
|
const UnwrappedForm = es_12(PaymentMethodContainerWithoutStripe);
|
|
18485
19390
|
const PaymentMethodContainer = props => {
|
|
18486
19391
|
const [isStripeLoaded, setIsStripeLoaded] = React.useState(Boolean(window.Stripe));
|
|
18487
|
-
|
|
18488
|
-
whenUserReady
|
|
18489
|
-
} = usePelcro.getStore();
|
|
19392
|
+
usePelcro.getStore();
|
|
18490
19393
|
const cardProcessor = getSiteCardProcessor();
|
|
18491
19394
|
React.useEffect(() => {
|
|
18492
|
-
|
|
18493
|
-
|
|
18494
|
-
|
|
18495
|
-
|
|
18496
|
-
|
|
18497
|
-
}
|
|
18498
|
-
});
|
|
19395
|
+
if (!window.Stripe && cardProcessor === "stripe") {
|
|
19396
|
+
document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
|
|
19397
|
+
setIsStripeLoaded(true);
|
|
19398
|
+
});
|
|
19399
|
+
}
|
|
18499
19400
|
}, []);
|
|
18500
19401
|
if (isStripeLoaded) {
|
|
18501
19402
|
return /*#__PURE__*/React__default['default'].createElement(es_13, {
|
|
@@ -18720,12 +19621,12 @@ const CheckoutForm = () => {
|
|
|
18720
19621
|
className: "plc-w-6/12 plc-pr-4"
|
|
18721
19622
|
}, /*#__PURE__*/React__default['default'].createElement(MonthSelect, {
|
|
18722
19623
|
store: store$k,
|
|
18723
|
-
placeholder: "Exp Month"
|
|
19624
|
+
placeholder: "Exp Month *"
|
|
18724
19625
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18725
19626
|
className: "plc-w-6/12"
|
|
18726
19627
|
}, /*#__PURE__*/React__default['default'].createElement(YearSelect, {
|
|
18727
19628
|
store: store$k,
|
|
18728
|
-
placeholder: "Exp Year"
|
|
19629
|
+
placeholder: "Exp Year *"
|
|
18729
19630
|
}))));
|
|
18730
19631
|
}
|
|
18731
19632
|
if (cardProcessor === "stripe") {
|
|
@@ -18788,13 +19689,15 @@ const DiscountedPrice = props => {
|
|
|
18788
19689
|
};
|
|
18789
19690
|
|
|
18790
19691
|
const SubmitPaymentMethod = _ref => {
|
|
18791
|
-
var _plan$quantity, _window$Pelcro$site$r;
|
|
19692
|
+
var _plan$quantity, _plan$quantity2, _plan$quantity3, _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
18792
19693
|
let {
|
|
18793
19694
|
onClick,
|
|
18794
19695
|
...otherProps
|
|
18795
19696
|
} = _ref;
|
|
18796
19697
|
const {
|
|
18797
|
-
plan
|
|
19698
|
+
plan,
|
|
19699
|
+
selectedDonationAmount,
|
|
19700
|
+
customDonationAmount
|
|
18798
19701
|
} = usePelcro();
|
|
18799
19702
|
const {
|
|
18800
19703
|
t
|
|
@@ -18805,18 +19708,23 @@ const SubmitPaymentMethod = _ref => {
|
|
|
18805
19708
|
firstNameError,
|
|
18806
19709
|
lastNameError,
|
|
18807
19710
|
phoneError,
|
|
19711
|
+
emailError,
|
|
19712
|
+
passwordError,
|
|
18808
19713
|
firstName,
|
|
18809
19714
|
lastName,
|
|
18810
19715
|
phone,
|
|
18811
19716
|
disableSubmit,
|
|
18812
19717
|
isLoading,
|
|
18813
|
-
updatedPrice
|
|
19718
|
+
updatedPrice,
|
|
19719
|
+
month,
|
|
19720
|
+
year
|
|
18814
19721
|
}
|
|
18815
19722
|
} = React.useContext(store$k);
|
|
18816
19723
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
18817
19724
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
18818
|
-
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
19725
|
+
const priceFormatted = (plan === null || plan === void 0 ? void 0 : plan.type) === "donation" && (selectedDonationAmount || customDonationAmount) ? getFormattedPriceByLocal(selectedDonationAmount ? selectedDonationAmount * (plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity2 = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity2 !== void 0 ? _plan$quantity2 : 1) : customDonationAmount * (plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity3 = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity3 !== void 0 ? _plan$quantity3 : 1), plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage()) : getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
18819
19726
|
const supportsTap = Boolean((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.tap_gateway_settings);
|
|
19727
|
+
const supportsCybersource = Boolean((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.cybersource_gateway_settings);
|
|
18820
19728
|
const isUserFirstName = Boolean(window.Pelcro.user.read().first_name);
|
|
18821
19729
|
const isUserLastName = Boolean(window.Pelcro.user.read().last_name);
|
|
18822
19730
|
const isUserPhone = Boolean(window.Pelcro.user.read().phone);
|
|
@@ -18825,9 +19733,9 @@ const SubmitPaymentMethod = _ref => {
|
|
|
18825
19733
|
if (supportsTap && isUserFirstName && isUserLastName && isUserPhone) {
|
|
18826
19734
|
setDisabled(disableSubmit);
|
|
18827
19735
|
} else {
|
|
18828
|
-
setDisabled(disableSubmit || supportsTap && firstNameError || supportsTap && lastNameError || supportsTap && phoneError || supportsTap && !(firstName !== null && firstName !== void 0 && firstName.length) || supportsTap && !(lastName !== null && lastName !== void 0 && lastName.length) || supportsTap && !(phone !== null && phone !== void 0 && phone.length));
|
|
19736
|
+
setDisabled(disableSubmit || supportsTap && firstNameError || supportsTap && lastNameError || supportsTap && phoneError || supportsTap && !(firstName !== null && firstName !== void 0 && firstName.length) || supportsTap && !(lastName !== null && lastName !== void 0 && lastName.length) || supportsTap && !(phone !== null && phone !== void 0 && phone.length) || emailError || passwordError || supportsCybersource && !(month !== null && month !== void 0 && month.length) || supportsCybersource && !(year !== null && year !== void 0 && year.length));
|
|
18829
19737
|
}
|
|
18830
|
-
}, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone]);
|
|
19738
|
+
}, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone, emailError, passwordError, month, year]);
|
|
18831
19739
|
return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
18832
19740
|
role: "submit",
|
|
18833
19741
|
className: "plc-w-full plc-py-3",
|
|
@@ -19462,6 +20370,14 @@ const OrderCreateFreeButton = _ref => {
|
|
|
19462
20370
|
}, otherProps), t("labels.submit"));
|
|
19463
20371
|
};
|
|
19464
20372
|
|
|
20373
|
+
const DonationEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
20374
|
+
store: store$k
|
|
20375
|
+
}, props));
|
|
20376
|
+
|
|
20377
|
+
const DonationPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
|
|
20378
|
+
store: store$k
|
|
20379
|
+
}, props));
|
|
20380
|
+
|
|
19465
20381
|
/**
|
|
19466
20382
|
*
|
|
19467
20383
|
*/
|
|
@@ -19481,6 +20397,10 @@ function PaymentMethodView(_ref) {
|
|
|
19481
20397
|
const {
|
|
19482
20398
|
t
|
|
19483
20399
|
} = useTranslation("checkoutForm");
|
|
20400
|
+
const {
|
|
20401
|
+
plan,
|
|
20402
|
+
isAuthenticated
|
|
20403
|
+
} = usePelcro();
|
|
19484
20404
|
const cardProcessor = getSiteCardProcessor();
|
|
19485
20405
|
const supportsVantiv = Boolean((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.vantiv_gateway_settings);
|
|
19486
20406
|
const supportsTap = Boolean((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.tap_gateway_settings);
|
|
@@ -19538,6 +20458,17 @@ function PaymentMethodView(_ref) {
|
|
|
19538
20458
|
errorId: "pelcro-input-phone-error",
|
|
19539
20459
|
label: t("labels.phone"),
|
|
19540
20460
|
required: true
|
|
20461
|
+
})), !isAuthenticated() && (plan === null || plan === void 0 ? void 0 : plan.type) === "donation" && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(DonationEmail, {
|
|
20462
|
+
id: "pelcro-input-email",
|
|
20463
|
+
errorId: "pelcro-input-email-error",
|
|
20464
|
+
label: t("labels.email"),
|
|
20465
|
+
required: true,
|
|
20466
|
+
autoFocus: true
|
|
20467
|
+
}), /*#__PURE__*/React__default['default'].createElement(DonationPassword, {
|
|
20468
|
+
id: "pelcro-input-password",
|
|
20469
|
+
errorId: "pelcro-input-password-error",
|
|
20470
|
+
label: t("labels.password"),
|
|
20471
|
+
required: true
|
|
19541
20472
|
})), /*#__PURE__*/React__default['default'].createElement(CheckoutForm, null), showCoupon && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19542
20473
|
className: "plc-mb-2"
|
|
19543
20474
|
}, /*#__PURE__*/React__default['default'].createElement(CouponCode, null), /*#__PURE__*/React__default['default'].createElement(DiscountedPrice, null)), /*#__PURE__*/React__default['default'].createElement(TaxAmount, null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -19615,7 +20546,7 @@ function SubscriptionRenewModal(_ref) {
|
|
|
19615
20546
|
const onSuccess = res => {
|
|
19616
20547
|
var _otherProps$onSuccess, _ReactGA$event;
|
|
19617
20548
|
(_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, res);
|
|
19618
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
20549
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
19619
20550
|
category: "ACTIONS",
|
|
19620
20551
|
action: "Renewed",
|
|
19621
20552
|
nonInteraction: true
|
|
@@ -19625,7 +20556,7 @@ function SubscriptionRenewModal(_ref) {
|
|
|
19625
20556
|
const onGiftRenewalSuccess = () => {
|
|
19626
20557
|
var _otherProps$onGiftRen, _ReactGA$event2;
|
|
19627
20558
|
(_otherProps$onGiftRen = otherProps.onGiftRenewalSuccess) === null || _otherProps$onGiftRen === void 0 ? void 0 : _otherProps$onGiftRen.call(otherProps);
|
|
19628
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
|
|
20559
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
|
|
19629
20560
|
category: "ACTIONS",
|
|
19630
20561
|
action: "Renewed Gift",
|
|
19631
20562
|
nonInteraction: true
|
|
@@ -19830,7 +20761,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
19830
20761
|
if (err) {
|
|
19831
20762
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
19832
20763
|
}
|
|
19833
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
20764
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
19834
20765
|
category: "ACTIONS",
|
|
19835
20766
|
action: "Canceled",
|
|
19836
20767
|
nonInteraction: true
|
|
@@ -19852,7 +20783,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
19852
20783
|
switchView(null);
|
|
19853
20784
|
|
|
19854
20785
|
//Show confirmation alert after closing the modal
|
|
19855
|
-
notify
|
|
20786
|
+
notify.confirm((onSuccess, onFailure) => {
|
|
19856
20787
|
cancelSubscription(payload, onSuccess, onFailure);
|
|
19857
20788
|
}, {
|
|
19858
20789
|
confirmMessage: t("messages.subCancellation.isSureToCancelNow"),
|
|
@@ -19900,7 +20831,7 @@ const SubscriptionCancelLaterButton = _ref => {
|
|
|
19900
20831
|
if (err) {
|
|
19901
20832
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
19902
20833
|
}
|
|
19903
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
20834
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
19904
20835
|
category: "ACTIONS",
|
|
19905
20836
|
action: "Canceled",
|
|
19906
20837
|
nonInteraction: true
|
|
@@ -19922,7 +20853,7 @@ const SubscriptionCancelLaterButton = _ref => {
|
|
|
19922
20853
|
switchView(null);
|
|
19923
20854
|
|
|
19924
20855
|
//Show confirmation alert after closing the modal
|
|
19925
|
-
notify
|
|
20856
|
+
notify.confirm((onSuccess, onFailure) => {
|
|
19926
20857
|
cancelSubscription(payload, onSuccess, onFailure);
|
|
19927
20858
|
}, {
|
|
19928
20859
|
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
@@ -20139,7 +21070,7 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
20139
21070
|
if (err) {
|
|
20140
21071
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
20141
21072
|
}
|
|
20142
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
21073
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
20143
21074
|
category: "ACTIONS",
|
|
20144
21075
|
action: "Suspended",
|
|
20145
21076
|
nonInteraction: true
|
|
@@ -20157,7 +21088,7 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
20157
21088
|
switchView(null);
|
|
20158
21089
|
|
|
20159
21090
|
//Show confirmation alert after closing the modal
|
|
20160
|
-
notify
|
|
21091
|
+
notify.confirm((onSuccess, onFailure) => {
|
|
20161
21092
|
suspendSubscription(payload, onSuccess, onFailure);
|
|
20162
21093
|
}, {
|
|
20163
21094
|
confirmMessage: t("messages.subCancellation.isSureToSuspendNow"),
|
|
@@ -20877,12 +21808,14 @@ const SubscriptionCreateView = _ref => {
|
|
|
20877
21808
|
} = useTranslation("checkoutForm");
|
|
20878
21809
|
const {
|
|
20879
21810
|
product,
|
|
20880
|
-
plan
|
|
21811
|
+
plan,
|
|
21812
|
+
selectedDonationAmount,
|
|
21813
|
+
customDonationAmount
|
|
20881
21814
|
} = usePelcro();
|
|
20882
21815
|
const skipPayment = (_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.skipPaymentForFreePlans;
|
|
20883
21816
|
const showSubscriptionButton = skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0;
|
|
20884
21817
|
const getPricingText = plan => {
|
|
20885
|
-
var _plan$quantity;
|
|
21818
|
+
var _plan$quantity, _plan$quantity2, _plan$quantity3;
|
|
20886
21819
|
const autoRenewed = plan.auto_renew;
|
|
20887
21820
|
const {
|
|
20888
21821
|
interval,
|
|
@@ -20892,7 +21825,7 @@ const SubscriptionCreateView = _ref => {
|
|
|
20892
21825
|
interval,
|
|
20893
21826
|
count: interval_count
|
|
20894
21827
|
});
|
|
20895
|
-
const priceFormatted = getFormattedPriceByLocal((plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1), plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
21828
|
+
const priceFormatted = plan.type === "donation" && (selectedDonationAmount || customDonationAmount) ? getFormattedPriceByLocal(selectedDonationAmount ? selectedDonationAmount * (plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1) : customDonationAmount * (plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity2 = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity2 !== void 0 ? _plan$quantity2 : 1), plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage()) : getFormattedPriceByLocal((plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity3 = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity3 !== void 0 ? _plan$quantity3 : 1), plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
20896
21829
|
return /*#__PURE__*/React__default['default'].createElement("p", {
|
|
20897
21830
|
className: "plc-text-gray-600"
|
|
20898
21831
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
@@ -22215,7 +23148,7 @@ const AddressCreateContainer = _ref => {
|
|
|
22215
23148
|
});
|
|
22216
23149
|
return onFailure(err);
|
|
22217
23150
|
}
|
|
22218
|
-
notify
|
|
23151
|
+
notify.success(t("messages.addressUpdated"));
|
|
22219
23152
|
return onMembershipAdressUpdateSuccess(res);
|
|
22220
23153
|
});
|
|
22221
23154
|
}
|
|
@@ -22987,6 +23920,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
22987
23920
|
});
|
|
22988
23921
|
onFailure(err);
|
|
22989
23922
|
} else {
|
|
23923
|
+
var _ReactGA, _ReactGA$event;
|
|
22990
23924
|
dispatch({
|
|
22991
23925
|
type: SHOW_ALERT,
|
|
22992
23926
|
payload: {
|
|
@@ -22995,6 +23929,11 @@ const AddressUpdateContainer = _ref => {
|
|
|
22995
23929
|
}
|
|
22996
23930
|
});
|
|
22997
23931
|
onSuccess(res);
|
|
23932
|
+
(_ReactGA = ReactGA) === null || _ReactGA === void 0 ? void 0 : (_ReactGA$event = _ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(_ReactGA, {
|
|
23933
|
+
category: "ACTIONS",
|
|
23934
|
+
action: "Updated address",
|
|
23935
|
+
nonInteraction: true
|
|
23936
|
+
});
|
|
22998
23937
|
}
|
|
22999
23938
|
});
|
|
23000
23939
|
};
|
|
@@ -23522,7 +24461,7 @@ const PaymentMethodUpdateModal = props => {
|
|
|
23522
24461
|
const onSuccess = res => {
|
|
23523
24462
|
var _props$onSuccess, _ReactGA$event;
|
|
23524
24463
|
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
23525
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
24464
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
23526
24465
|
category: "ACTIONS",
|
|
23527
24466
|
action: "Updated payment card",
|
|
23528
24467
|
nonInteraction: true
|
|
@@ -25088,6 +26027,16 @@ const GiftCreateContainer = _ref => {
|
|
|
25088
26027
|
return onFailure();
|
|
25089
26028
|
}
|
|
25090
26029
|
}
|
|
26030
|
+
if (giftRecipient.giftMessage && !isStringValid(giftRecipient.giftMessage)) {
|
|
26031
|
+
dispatch({
|
|
26032
|
+
type: SHOW_ALERT,
|
|
26033
|
+
payload: {
|
|
26034
|
+
type: "error",
|
|
26035
|
+
content: t("gift.messages.giftMessageAllowedCharacters")
|
|
26036
|
+
}
|
|
26037
|
+
});
|
|
26038
|
+
return onFailure();
|
|
26039
|
+
}
|
|
25091
26040
|
set({
|
|
25092
26041
|
giftRecipient
|
|
25093
26042
|
});
|
|
@@ -25695,7 +26644,7 @@ const AddressSelectContainer = _ref => {
|
|
|
25695
26644
|
});
|
|
25696
26645
|
return onFailure(err);
|
|
25697
26646
|
}
|
|
25698
|
-
notify
|
|
26647
|
+
notify.success(t("messages.addressUpdated"));
|
|
25699
26648
|
return onMembershipAdressUpdateSuccess(res);
|
|
25700
26649
|
});
|
|
25701
26650
|
}
|
|
@@ -27466,7 +28415,7 @@ const SavedItems = _ref3 => {
|
|
|
27466
28415
|
return;
|
|
27467
28416
|
}
|
|
27468
28417
|
setItems(response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.metadata);
|
|
27469
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
28418
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
27470
28419
|
category: "ACTIONS",
|
|
27471
28420
|
action: "Unsave/Unfollow",
|
|
27472
28421
|
label: title
|
|
@@ -27654,7 +28603,7 @@ const SubscriptionsItems = _ref => {
|
|
|
27654
28603
|
return switchView("email-verify");
|
|
27655
28604
|
}
|
|
27656
28605
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
27657
|
-
notify
|
|
28606
|
+
notify.confirm((onSuccess, onFailure) => {
|
|
27658
28607
|
cancelSubscription(sub.id, onSuccess, onFailure);
|
|
27659
28608
|
}, {
|
|
27660
28609
|
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
@@ -27671,7 +28620,7 @@ const SubscriptionsItems = _ref => {
|
|
|
27671
28620
|
if (userMustVerifyEmail()) {
|
|
27672
28621
|
return switchView("email-verify");
|
|
27673
28622
|
}
|
|
27674
|
-
reactivateSubscription(sub.id);
|
|
28623
|
+
reactivateSubscription(sub.id, false);
|
|
27675
28624
|
};
|
|
27676
28625
|
|
|
27677
28626
|
// Renew click
|
|
@@ -27709,7 +28658,7 @@ const SubscriptionsItems = _ref => {
|
|
|
27709
28658
|
return switchView("email-verify");
|
|
27710
28659
|
}
|
|
27711
28660
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
27712
|
-
notify
|
|
28661
|
+
notify.confirm((onSuccess, onFailure) => {
|
|
27713
28662
|
unSuspendSubscription(sub.id, onSuccess, onFailure);
|
|
27714
28663
|
}, {
|
|
27715
28664
|
confirmMessage: t("messages.subUnSuspend.isSureToUnSuspend"),
|
|
@@ -27791,7 +28740,7 @@ const SubscriptionsItems = _ref => {
|
|
|
27791
28740
|
onClick: onCancelClick,
|
|
27792
28741
|
disabled: disableSubmit,
|
|
27793
28742
|
"data-key": sub.id
|
|
27794
|
-
}, t("labels.unsubscribe")) : "", (sub === null || sub === void 0 ? void 0 : (_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) ===
|
|
28743
|
+
}, t("labels.unsubscribe")) : "", (sub === null || sub === void 0 ? void 0 : (_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) === "membership" && /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
27795
28744
|
variant: "ghost",
|
|
27796
28745
|
className: "plc-text-blue-400 pelcro-dashboard-sub-manage-members-button",
|
|
27797
28746
|
icon: /*#__PURE__*/React__default['default'].createElement(SvgRefresh, null),
|
|
@@ -27838,7 +28787,10 @@ const SubscriptionsItems = _ref => {
|
|
|
27838
28787
|
};
|
|
27839
28788
|
function getNonDonationSubs() {
|
|
27840
28789
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3;
|
|
27841
|
-
return (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub =>
|
|
28790
|
+
return (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => {
|
|
28791
|
+
var _sub$plan2;
|
|
28792
|
+
return ((_sub$plan2 = sub.plan) === null || _sub$plan2 === void 0 ? void 0 : _sub$plan2.type) !== "donation";
|
|
28793
|
+
})) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
27842
28794
|
}
|
|
27843
28795
|
function isDateAfterToday(date) {
|
|
27844
28796
|
const today = new Date().setHours(0, 0, 0, 0);
|
|
@@ -28126,6 +29078,7 @@ function SvgQrcode(props) {
|
|
|
28126
29078
|
|
|
28127
29079
|
const DonationsMenu = _ref => {
|
|
28128
29080
|
let {
|
|
29081
|
+
onClose,
|
|
28129
29082
|
reactivateSubscription,
|
|
28130
29083
|
disableSubmit,
|
|
28131
29084
|
cancelSubscription
|
|
@@ -28137,10 +29090,10 @@ const DonationsMenu = _ref => {
|
|
|
28137
29090
|
switchView,
|
|
28138
29091
|
setSubscriptionToCancel
|
|
28139
29092
|
} = usePelcro();
|
|
28140
|
-
const
|
|
29093
|
+
const donations = getDonationSubs().sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
|
|
29094
|
+
console.log("Sub", sub);
|
|
28141
29095
|
// Cancel button click handlers
|
|
28142
29096
|
const onCancelClick = () => {
|
|
28143
|
-
var _onClose;
|
|
28144
29097
|
const isImmediateCancelationEnabled = window.Pelcro.site.read().cancel_settings.status;
|
|
28145
29098
|
if (isImmediateCancelationEnabled) {
|
|
28146
29099
|
setSubscriptionToCancel(sub.id);
|
|
@@ -28149,16 +29102,16 @@ const DonationsMenu = _ref => {
|
|
|
28149
29102
|
if (userMustVerifyEmail()) {
|
|
28150
29103
|
return switchView("email-verify");
|
|
28151
29104
|
}
|
|
28152
|
-
|
|
29105
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
28153
29106
|
notify.confirm((onSuccess, onFailure) => {
|
|
28154
29107
|
cancelSubscription(sub.id, onSuccess, onFailure);
|
|
28155
29108
|
}, {
|
|
28156
|
-
confirmMessage: t("messages.
|
|
28157
|
-
loadingMessage: t("messages.
|
|
28158
|
-
successMessage: t("messages.
|
|
28159
|
-
errorMessage: t("messages.
|
|
29109
|
+
confirmMessage: t("messages.donationCancellation.isSureToCancel"),
|
|
29110
|
+
loadingMessage: t("messages.donationCancellation.loading"),
|
|
29111
|
+
successMessage: t("messages.donationCancellation.success"),
|
|
29112
|
+
errorMessage: t("messages.donationCancellation.error")
|
|
28160
29113
|
}, {
|
|
28161
|
-
closeButtonLabel: t("labels.
|
|
29114
|
+
closeButtonLabel: t("labels.donationCancellation.goBack")
|
|
28162
29115
|
});
|
|
28163
29116
|
};
|
|
28164
29117
|
|
|
@@ -28167,7 +29120,7 @@ const DonationsMenu = _ref => {
|
|
|
28167
29120
|
if (userMustVerifyEmail()) {
|
|
28168
29121
|
return switchView("email-verify");
|
|
28169
29122
|
}
|
|
28170
|
-
reactivateSubscription(sub.id);
|
|
29123
|
+
reactivateSubscription(sub.id, true);
|
|
28171
29124
|
};
|
|
28172
29125
|
return /*#__PURE__*/React__default['default'].createElement("tr", {
|
|
28173
29126
|
key: sub.id,
|
|
@@ -28208,12 +29161,18 @@ const DonationsMenu = _ref => {
|
|
|
28208
29161
|
className: "plc-w-3/12 "
|
|
28209
29162
|
}, t("labels.actions")))), /*#__PURE__*/React__default['default'].createElement("tbody", null, /*#__PURE__*/React__default['default'].createElement("tr", {
|
|
28210
29163
|
className: "plc-h-4"
|
|
28211
|
-
}),
|
|
29164
|
+
}), donations));
|
|
28212
29165
|
};
|
|
28213
29166
|
function getDonationSubs() {
|
|
28214
29167
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r, _window$Pelcro$user$r2;
|
|
28215
|
-
const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub =>
|
|
28216
|
-
|
|
29168
|
+
const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => {
|
|
29169
|
+
var _sub$plan;
|
|
29170
|
+
return ((_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) === "donation";
|
|
29171
|
+
})) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
29172
|
+
const canceledDonations = (_window$Pelcro$user$r = (_window$Pelcro$user$r2 = window.Pelcro.user.read().expired_subscriptions) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.filter(sub => {
|
|
29173
|
+
var _sub$plan2;
|
|
29174
|
+
return ((_sub$plan2 = sub.plan) === null || _sub$plan2 === void 0 ? void 0 : _sub$plan2.type) === "donation";
|
|
29175
|
+
})) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
|
|
28217
29176
|
return [...donations, ...canceledDonations];
|
|
28218
29177
|
}
|
|
28219
29178
|
function formatStartDate(date) {
|
|
@@ -28477,7 +29436,7 @@ class Dashboard extends React.Component {
|
|
|
28477
29436
|
window.Pelcro.insight.track("Modal Displayed", {
|
|
28478
29437
|
name: "dashboard"
|
|
28479
29438
|
});
|
|
28480
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
29439
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
28481
29440
|
category: "VIEWS",
|
|
28482
29441
|
action: "Dashboard Modal Viewed",
|
|
28483
29442
|
nonInteraction: true
|
|
@@ -28513,7 +29472,7 @@ class Dashboard extends React.Component {
|
|
|
28513
29472
|
if (err) {
|
|
28514
29473
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
28515
29474
|
}
|
|
28516
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
|
|
29475
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
|
|
28517
29476
|
category: "ACTIONS",
|
|
28518
29477
|
action: "Canceled",
|
|
28519
29478
|
nonInteraction: true
|
|
@@ -28531,7 +29490,7 @@ class Dashboard extends React.Component {
|
|
|
28531
29490
|
if (err) {
|
|
28532
29491
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
28533
29492
|
}
|
|
28534
|
-
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event3 = ReactGA.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA, {
|
|
29493
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event3 = ReactGA$1.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA$1, {
|
|
28535
29494
|
category: "ACTIONS",
|
|
28536
29495
|
action: "UnSuspended",
|
|
28537
29496
|
nonInteraction: true
|
|
@@ -28602,7 +29561,7 @@ class Dashboard extends React.Component {
|
|
|
28602
29561
|
const formattedRenewDate = new Intl.DateTimeFormat("en-CA").format(renewDate);
|
|
28603
29562
|
return `${this.locale("labels.renewsOn")} ${formattedRenewDate}`;
|
|
28604
29563
|
});
|
|
28605
|
-
_defineProperty$3(this, "reactivateSubscription", subscription_id => {
|
|
29564
|
+
_defineProperty$3(this, "reactivateSubscription", (subscription_id, isDonation) => {
|
|
28606
29565
|
// disable the Login button to prevent repeated clicks
|
|
28607
29566
|
this.setState({
|
|
28608
29567
|
disableSubmit: true
|
|
@@ -28616,9 +29575,17 @@ class Dashboard extends React.Component {
|
|
|
28616
29575
|
});
|
|
28617
29576
|
this.props.onClose();
|
|
28618
29577
|
if (err) {
|
|
28619
|
-
|
|
29578
|
+
if (isDonation) {
|
|
29579
|
+
return notify.error(this.locale("messages.donationReactivation.error"));
|
|
29580
|
+
} else {
|
|
29581
|
+
return notify.error(this.locale("messages.subReactivation.error"));
|
|
29582
|
+
}
|
|
29583
|
+
}
|
|
29584
|
+
if (isDonation) {
|
|
29585
|
+
return notify.success(this.locale("messages.donationReactivation.success"));
|
|
29586
|
+
} else {
|
|
29587
|
+
return notify.success(this.locale("messages.subReactivation.success"));
|
|
28620
29588
|
}
|
|
28621
|
-
return notify$1.success(this.locale("messages.subReactivation.success"));
|
|
28622
29589
|
});
|
|
28623
29590
|
});
|
|
28624
29591
|
_defineProperty$3(this, "getSubscriptionStatus", sub => {
|
|
@@ -28980,6 +29947,7 @@ class Dashboard extends React.Component {
|
|
|
28980
29947
|
}),
|
|
28981
29948
|
title: this.locale("labels.donations"),
|
|
28982
29949
|
content: /*#__PURE__*/React__default['default'].createElement(DonationsMenu, {
|
|
29950
|
+
onClose: this.props.onClose,
|
|
28983
29951
|
reactivateSubscription: this.reactivateSubscription,
|
|
28984
29952
|
disableSubmit: this.state.disableSubmit,
|
|
28985
29953
|
cancelSubscription: this.cancelSubscription
|
|
@@ -29021,8 +29989,14 @@ function hasInvoices() {
|
|
|
29021
29989
|
}
|
|
29022
29990
|
function hasDonationSubs() {
|
|
29023
29991
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
|
|
29024
|
-
const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub =>
|
|
29025
|
-
|
|
29992
|
+
const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => {
|
|
29993
|
+
var _sub$plan;
|
|
29994
|
+
return ((_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) === "donation";
|
|
29995
|
+
})) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
29996
|
+
const canceledDonations = (_window$Pelcro$user$r4 = (_window$Pelcro$user$r5 = window.Pelcro.user.read().expired_subscriptions) === null || _window$Pelcro$user$r5 === void 0 ? void 0 : _window$Pelcro$user$r5.filter(sub => {
|
|
29997
|
+
var _sub$plan2;
|
|
29998
|
+
return ((_sub$plan2 = sub.plan) === null || _sub$plan2 === void 0 ? void 0 : _sub$plan2.type) === "donation";
|
|
29999
|
+
})) !== null && _window$Pelcro$user$r4 !== void 0 ? _window$Pelcro$user$r4 : [];
|
|
29026
30000
|
return donations.length > 0 || canceledDonations.length > 0;
|
|
29027
30001
|
}
|
|
29028
30002
|
function hasActiveMemberships() {
|
|
@@ -31187,7 +32161,7 @@ function VerifyLinkTokenModal(_ref) {
|
|
|
31187
32161
|
var _props$onSuccess;
|
|
31188
32162
|
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
31189
32163
|
resetView();
|
|
31190
|
-
notify
|
|
32164
|
+
notify.success(t("messages.success"));
|
|
31191
32165
|
};
|
|
31192
32166
|
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
31193
32167
|
id: "pelcro-login-modal",
|
|
@@ -32901,6 +33875,7 @@ exports.Dashboard = DashboardWithHook;
|
|
|
32901
33875
|
exports.DashboardOpenButton = DashboardOpenButton;
|
|
32902
33876
|
exports.DatePicker = DatePicker;
|
|
32903
33877
|
exports.DiscountedPrice = DiscountedPrice;
|
|
33878
|
+
exports.DonationModal = DonationModalWithHook;
|
|
32904
33879
|
exports.Email = Email;
|
|
32905
33880
|
exports.EmailVerifyContainer = EmailVerifyContainer;
|
|
32906
33881
|
exports.EmailVerifyModal = EmailVerifyModal;
|
|
@@ -33078,6 +34053,6 @@ exports.i18n = i18next;
|
|
|
33078
34053
|
exports.initButtons = init$1;
|
|
33079
34054
|
exports.initContentEntitlement = init;
|
|
33080
34055
|
exports.invoicePaymentSubmitButton = invoicePaymentSubmitButton;
|
|
33081
|
-
exports.notify = notify
|
|
34056
|
+
exports.notify = notify;
|
|
33082
34057
|
exports.unauthenticatedButtons = unauthenticatedButtons;
|
|
33083
34058
|
exports.usePelcro = usePelcro;
|