@pelcro/react-pelcro-js 3.25.0-beta.3 → 3.25.1
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 +651 -1649
- package/dist/index.esm.js +651 -1648
- package/dist/pelcro.css +0 -82
- 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$j = {
|
|
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$j,
|
|
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$12 = {
|
|
3366
3366
|
submit: "Submit",
|
|
3367
3367
|
firstName: "First name",
|
|
3368
3368
|
lastName: "Last name",
|
|
@@ -3370,7 +3370,7 @@ var labels$16 = {
|
|
|
3370
3370
|
postalCode: "Postal code",
|
|
3371
3371
|
required: "required"
|
|
3372
3372
|
};
|
|
3373
|
-
var messages$
|
|
3373
|
+
var messages$17 = {
|
|
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$12,
|
|
3385
|
+
messages: messages$17
|
|
3386
3386
|
};
|
|
3387
3387
|
|
|
3388
|
-
var labels$
|
|
3388
|
+
var labels$11 = {
|
|
3389
3389
|
"continue": "Continue to content"
|
|
3390
3390
|
};
|
|
3391
|
-
var messages$
|
|
3391
|
+
var messages$16 = {
|
|
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$11,
|
|
3418
|
+
messages: messages$16,
|
|
3419
3419
|
errors: errors$j
|
|
3420
3420
|
};
|
|
3421
3421
|
|
|
3422
|
-
var messages$
|
|
3422
|
+
var messages$15 = {
|
|
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$15,
|
|
3433
3433
|
errors: errors$i
|
|
3434
3434
|
};
|
|
3435
3435
|
|
|
3436
|
-
var messages$
|
|
3436
|
+
var messages$14 = {
|
|
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$10 = {
|
|
3442
3442
|
card: "Enter card number",
|
|
3443
3443
|
date: "Expiration date",
|
|
3444
3444
|
CVC: "CVC",
|
|
@@ -3458,13 +3458,11 @@ var labels$14 = {
|
|
|
3458
3458
|
firstName: "First name",
|
|
3459
3459
|
lastName: "Last name",
|
|
3460
3460
|
phone: "Phone",
|
|
3461
|
-
freeItems: "Free Items"
|
|
3462
|
-
email: "Email",
|
|
3463
|
-
password: "Password"
|
|
3461
|
+
freeItems: "Free Items"
|
|
3464
3462
|
};
|
|
3465
3463
|
var checkoutForm_en = {
|
|
3466
|
-
messages: messages$
|
|
3467
|
-
labels: labels$
|
|
3464
|
+
messages: messages$14,
|
|
3465
|
+
labels: labels$10
|
|
3468
3466
|
};
|
|
3469
3467
|
|
|
3470
3468
|
var youAreSafe$3 = "You're safe - PCI compliant 128 SSL by";
|
|
@@ -3488,7 +3486,7 @@ var messages_en = {
|
|
|
3488
3486
|
zeroTotalInvoice: zeroTotalInvoice$3
|
|
3489
3487
|
};
|
|
3490
3488
|
|
|
3491
|
-
var labels
|
|
3489
|
+
var labels$$ = {
|
|
3492
3490
|
email: "Enter email",
|
|
3493
3491
|
username: "Enter username",
|
|
3494
3492
|
password: "Enter password",
|
|
@@ -3497,7 +3495,7 @@ var labels$13 = {
|
|
|
3497
3495
|
passwordPlaceholder: "Password",
|
|
3498
3496
|
login: "Login"
|
|
3499
3497
|
};
|
|
3500
|
-
var messages$
|
|
3498
|
+
var messages$13 = {
|
|
3501
3499
|
loginTo: "Login to your account",
|
|
3502
3500
|
welcome: "Welcome back, sign in with your existing account.",
|
|
3503
3501
|
dontHaveAccount: "Don't have an account yet?",
|
|
@@ -3516,28 +3514,28 @@ var errors$h = {
|
|
|
3516
3514
|
"": ""
|
|
3517
3515
|
};
|
|
3518
3516
|
var login_en = {
|
|
3519
|
-
labels: labels
|
|
3520
|
-
messages: messages$
|
|
3517
|
+
labels: labels$$,
|
|
3518
|
+
messages: messages$13,
|
|
3521
3519
|
errors: errors$h
|
|
3522
3520
|
};
|
|
3523
3521
|
|
|
3524
|
-
var labels$
|
|
3522
|
+
var labels$_ = {
|
|
3525
3523
|
title: "Verifying Passwordless Link",
|
|
3526
3524
|
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
3527
3525
|
resend: "Resend email"
|
|
3528
3526
|
};
|
|
3529
|
-
var messages$
|
|
3527
|
+
var messages$12 = {
|
|
3530
3528
|
resent: "Resent successfully",
|
|
3531
3529
|
success: "You have logged in successfully"
|
|
3532
3530
|
};
|
|
3533
3531
|
var verifyLinkToken_en = {
|
|
3534
|
-
labels: labels$
|
|
3535
|
-
messages: messages$
|
|
3532
|
+
labels: labels$_,
|
|
3533
|
+
messages: messages$12
|
|
3536
3534
|
};
|
|
3537
3535
|
|
|
3538
3536
|
var title$y = "Create an account";
|
|
3539
3537
|
var subtitle$e = "Enter your email and password below";
|
|
3540
|
-
var labels$
|
|
3538
|
+
var labels$Z = {
|
|
3541
3539
|
signUpFacebook: "Sign up with Facebook",
|
|
3542
3540
|
signUpGoogle: "Sign up with Google",
|
|
3543
3541
|
signUpEmail: "Sign up with Email",
|
|
@@ -3550,7 +3548,7 @@ var labels$11 = {
|
|
|
3550
3548
|
lastName: "Last name",
|
|
3551
3549
|
phone: "Phone"
|
|
3552
3550
|
};
|
|
3553
|
-
var messages$
|
|
3551
|
+
var messages$11 = {
|
|
3554
3552
|
alreadyHaveAccount: "Already have an account?",
|
|
3555
3553
|
createAccount: "Create account",
|
|
3556
3554
|
loginHere: "login here. ",
|
|
@@ -3596,8 +3594,7 @@ var gift$3 = {
|
|
|
3596
3594
|
enterEmail: "Please enter the gift recipient's email.",
|
|
3597
3595
|
invalidDate: "The gift date needs to be between today and a year from now.",
|
|
3598
3596
|
giftDateInfo: "The recipient will receive a gift email notification with your message on the date you select in order to redeem the gift.",
|
|
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."
|
|
3597
|
+
giftMessageInfo: "Leave a message to the recipient and don't forget to sign your name."
|
|
3601
3598
|
}
|
|
3602
3599
|
};
|
|
3603
3600
|
var redeem$3 = {
|
|
@@ -3625,14 +3622,14 @@ var redeem$3 = {
|
|
|
3625
3622
|
var register_en = {
|
|
3626
3623
|
title: title$y,
|
|
3627
3624
|
subtitle: subtitle$e,
|
|
3628
|
-
labels: labels$
|
|
3629
|
-
messages: messages$
|
|
3625
|
+
labels: labels$Z,
|
|
3626
|
+
messages: messages$11,
|
|
3630
3627
|
errors: errors$g,
|
|
3631
3628
|
gift: gift$3,
|
|
3632
3629
|
redeem: redeem$3
|
|
3633
3630
|
};
|
|
3634
3631
|
|
|
3635
|
-
var labels$
|
|
3632
|
+
var labels$Y = {
|
|
3636
3633
|
title: "Want to update your profile?",
|
|
3637
3634
|
subtitle: "Enter your information below to update your profile",
|
|
3638
3635
|
email: "Email",
|
|
@@ -3651,21 +3648,21 @@ var labels$10 = {
|
|
|
3651
3648
|
zoom: "Zoom",
|
|
3652
3649
|
tin: "Tax Identification Number"
|
|
3653
3650
|
};
|
|
3654
|
-
var messages$
|
|
3651
|
+
var messages$10 = {
|
|
3655
3652
|
userUpdated: "Thanks! Your profile was updated successfully.",
|
|
3656
3653
|
pictureRemoved: "Your profile picture was removed successfully.",
|
|
3657
3654
|
pictureUpdated: "Your profile picture was updated successfully."
|
|
3658
3655
|
};
|
|
3659
3656
|
var userEdit_en = {
|
|
3660
|
-
labels: labels$
|
|
3661
|
-
messages: messages$
|
|
3657
|
+
labels: labels$Y,
|
|
3658
|
+
messages: messages$10
|
|
3662
3659
|
};
|
|
3663
3660
|
|
|
3664
3661
|
var title$x = "Enter your shipping address";
|
|
3665
3662
|
var titleGifting$3 = "Enter your address";
|
|
3666
3663
|
var selectAddressTitle$3 = "Please select an address";
|
|
3667
3664
|
var selectAddressSubtitle$3 = "Select one of your saved addresses, or add a new one";
|
|
3668
|
-
var labels
|
|
3665
|
+
var labels$X = {
|
|
3669
3666
|
address: "Address",
|
|
3670
3667
|
code: "Postal Code/Zip",
|
|
3671
3668
|
city: "City",
|
|
@@ -3676,12 +3673,12 @@ var labels$$ = {
|
|
|
3676
3673
|
required: "required",
|
|
3677
3674
|
isDefault: "Set as default"
|
|
3678
3675
|
};
|
|
3679
|
-
var buttons$
|
|
3676
|
+
var buttons$i = {
|
|
3680
3677
|
submit: "Submit",
|
|
3681
3678
|
selectAddress: "Select address",
|
|
3682
3679
|
addAddress: "Add new address"
|
|
3683
3680
|
};
|
|
3684
|
-
var messages
|
|
3681
|
+
var messages$$ = {
|
|
3685
3682
|
addressUpdated: "The address was successfully updated!",
|
|
3686
3683
|
subRedeemed: "Your subscription has been redeemed."
|
|
3687
3684
|
};
|
|
@@ -3690,9 +3687,9 @@ var address_en = {
|
|
|
3690
3687
|
titleGifting: titleGifting$3,
|
|
3691
3688
|
selectAddressTitle: selectAddressTitle$3,
|
|
3692
3689
|
selectAddressSubtitle: selectAddressSubtitle$3,
|
|
3693
|
-
labels: labels
|
|
3694
|
-
buttons: buttons$
|
|
3695
|
-
messages: messages
|
|
3690
|
+
labels: labels$X,
|
|
3691
|
+
buttons: buttons$i,
|
|
3692
|
+
messages: messages$$
|
|
3696
3693
|
};
|
|
3697
3694
|
|
|
3698
3695
|
var title$w = "Reset your password";
|
|
@@ -3720,7 +3717,7 @@ var password$6 = "Password";
|
|
|
3720
3717
|
var submit$e = "Submit";
|
|
3721
3718
|
var required$e = "Required";
|
|
3722
3719
|
var passwordResetEmailSent$3 = "Password reset instructions have been sent to your email";
|
|
3723
|
-
var messages$
|
|
3720
|
+
var messages$_ = {
|
|
3724
3721
|
alreadyHaveAccount: "Already have an account?",
|
|
3725
3722
|
loginHere: "login here."
|
|
3726
3723
|
};
|
|
@@ -3731,7 +3728,7 @@ var passwordForgot_en = {
|
|
|
3731
3728
|
submit: submit$e,
|
|
3732
3729
|
required: required$e,
|
|
3733
3730
|
passwordResetEmailSent: passwordResetEmailSent$3,
|
|
3734
|
-
messages: messages$
|
|
3731
|
+
messages: messages$_
|
|
3735
3732
|
};
|
|
3736
3733
|
|
|
3737
3734
|
var title$u = "Change your password";
|
|
@@ -3759,7 +3756,7 @@ var title$t = "Passwordless Login";
|
|
|
3759
3756
|
var email$9 = "Enter email";
|
|
3760
3757
|
var submit$c = "Submit";
|
|
3761
3758
|
var required$c = "Required";
|
|
3762
|
-
var messages$
|
|
3759
|
+
var messages$Z = {
|
|
3763
3760
|
PasswordlessLoginSuccess: "Please check your email and follow the instructions there"
|
|
3764
3761
|
};
|
|
3765
3762
|
var passwordlessRequest_en = {
|
|
@@ -3767,7 +3764,7 @@ var passwordlessRequest_en = {
|
|
|
3767
3764
|
email: email$9,
|
|
3768
3765
|
submit: submit$c,
|
|
3769
3766
|
required: required$c,
|
|
3770
|
-
messages: messages$
|
|
3767
|
+
messages: messages$Z
|
|
3771
3768
|
};
|
|
3772
3769
|
|
|
3773
3770
|
var title$s = "Your shopping cart";
|
|
@@ -3795,13 +3792,13 @@ var cart_en = {
|
|
|
3795
3792
|
removeAll: removeAll$3
|
|
3796
3793
|
};
|
|
3797
3794
|
|
|
3798
|
-
var buttons$
|
|
3795
|
+
var buttons$h = {
|
|
3799
3796
|
select: "Select",
|
|
3800
3797
|
added: "Added to cart",
|
|
3801
3798
|
purchase: "Purchase",
|
|
3802
3799
|
"continue": "Continue"
|
|
3803
3800
|
};
|
|
3804
|
-
var messages$
|
|
3801
|
+
var messages$Y = {
|
|
3805
3802
|
orderConfirmed: {
|
|
3806
3803
|
title: "Order confirmed!",
|
|
3807
3804
|
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."
|
|
@@ -3810,17 +3807,17 @@ var messages$10 = {
|
|
|
3810
3807
|
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.",
|
|
3811
3808
|
currencyMismatch: "The selected item(s) do not match your current default currency ({{currency}}). Please choose item(s) only matching this currency."
|
|
3812
3809
|
};
|
|
3813
|
-
var labels$
|
|
3810
|
+
var labels$W = {
|
|
3814
3811
|
summary: "Order summary",
|
|
3815
3812
|
total: "total"
|
|
3816
3813
|
};
|
|
3817
3814
|
var shop_en = {
|
|
3818
|
-
buttons: buttons$
|
|
3819
|
-
messages: messages$
|
|
3820
|
-
labels: labels$
|
|
3815
|
+
buttons: buttons$h,
|
|
3816
|
+
messages: messages$Y,
|
|
3817
|
+
labels: labels$W
|
|
3821
3818
|
};
|
|
3822
3819
|
|
|
3823
|
-
var labels$
|
|
3820
|
+
var labels$V = {
|
|
3824
3821
|
cardNumber: "Card number",
|
|
3825
3822
|
securityCode: "Security Code",
|
|
3826
3823
|
submit: "Submit",
|
|
@@ -3842,7 +3839,7 @@ var labels$Z = {
|
|
|
3842
3839
|
title: "Payment Information"
|
|
3843
3840
|
}
|
|
3844
3841
|
};
|
|
3845
|
-
var messages
|
|
3842
|
+
var messages$X = {
|
|
3846
3843
|
youAreSafe: "You're safe - PCI compliant 128 SSL by",
|
|
3847
3844
|
cancel: "Cancel your subscription online at anytime.",
|
|
3848
3845
|
giftSent: "Subscription gift has been sent to",
|
|
@@ -3856,12 +3853,12 @@ var errors$f = {
|
|
|
3856
3853
|
"": ""
|
|
3857
3854
|
};
|
|
3858
3855
|
var payment_en = {
|
|
3859
|
-
labels: labels$
|
|
3860
|
-
messages: messages
|
|
3856
|
+
labels: labels$V,
|
|
3857
|
+
messages: messages$X,
|
|
3861
3858
|
errors: errors$f
|
|
3862
3859
|
};
|
|
3863
3860
|
|
|
3864
|
-
var labels$
|
|
3861
|
+
var labels$U = {
|
|
3865
3862
|
menu: "Pelcro Menu",
|
|
3866
3863
|
name: "Name",
|
|
3867
3864
|
email: "Email",
|
|
@@ -3947,12 +3944,9 @@ var labels$Y = {
|
|
|
3947
3944
|
},
|
|
3948
3945
|
subCancellation: {
|
|
3949
3946
|
goBack: "Go back"
|
|
3950
|
-
},
|
|
3951
|
-
donationCancellation: {
|
|
3952
|
-
goBack: "Go back"
|
|
3953
3947
|
}
|
|
3954
3948
|
};
|
|
3955
|
-
var messages$
|
|
3949
|
+
var messages$W = {
|
|
3956
3950
|
noCard: "You don't have a card",
|
|
3957
3951
|
subCancellation: {
|
|
3958
3952
|
isSureToCancel: "Are you sure you want to cancel your subscription?",
|
|
@@ -3969,35 +3963,19 @@ var messages$_ = {
|
|
|
3969
3963
|
loading: "Unsuspending your subscription",
|
|
3970
3964
|
success: "Subscription is successfully unsuspended",
|
|
3971
3965
|
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"
|
|
3988
3966
|
}
|
|
3989
3967
|
};
|
|
3990
3968
|
var dashboard_en = {
|
|
3991
|
-
labels: labels$
|
|
3992
|
-
messages: messages$
|
|
3969
|
+
labels: labels$U,
|
|
3970
|
+
messages: messages$W
|
|
3993
3971
|
};
|
|
3994
3972
|
|
|
3995
|
-
var messages$
|
|
3973
|
+
var messages$V = {
|
|
3996
3974
|
alreadyHaveAccount: "Already have an account?",
|
|
3997
3975
|
loginHere: "Login here",
|
|
3998
3976
|
checkbox: "Check this box to gift this subscription"
|
|
3999
3977
|
};
|
|
4000
|
-
var labels$
|
|
3978
|
+
var labels$T = {
|
|
4001
3979
|
plan: {
|
|
4002
3980
|
title: "Subscribe to a plan",
|
|
4003
3981
|
subtitle: "Select one of the plans below and click on next."
|
|
@@ -4014,49 +3992,15 @@ var labels$X = {
|
|
|
4014
3992
|
or: "Or take a look at some of our other options below"
|
|
4015
3993
|
}
|
|
4016
3994
|
};
|
|
4017
|
-
var buttons$
|
|
3995
|
+
var buttons$g = {
|
|
4018
3996
|
next: "Next",
|
|
4019
3997
|
select: "Select",
|
|
4020
3998
|
back: "Back"
|
|
4021
3999
|
};
|
|
4022
4000
|
var select_en = {
|
|
4023
|
-
messages: messages$
|
|
4024
|
-
labels: labels$
|
|
4025
|
-
buttons: buttons$
|
|
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
|
|
4001
|
+
messages: messages$V,
|
|
4002
|
+
labels: labels$T,
|
|
4003
|
+
buttons: buttons$g
|
|
4060
4004
|
};
|
|
4061
4005
|
|
|
4062
4006
|
var confirm$9 = {
|
|
@@ -4069,46 +4013,46 @@ var notification_en = {
|
|
|
4069
4013
|
confirm: confirm$9
|
|
4070
4014
|
};
|
|
4071
4015
|
|
|
4072
|
-
var labels$
|
|
4016
|
+
var labels$S = {
|
|
4073
4017
|
title: "Verify your email",
|
|
4074
4018
|
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
4075
4019
|
resend: "Resend email"
|
|
4076
4020
|
};
|
|
4077
|
-
var messages$
|
|
4021
|
+
var messages$U = {
|
|
4078
4022
|
resent: "Resent successfully",
|
|
4079
4023
|
success: "Email verified successfully!"
|
|
4080
4024
|
};
|
|
4081
4025
|
var verifyEmail_en = {
|
|
4082
|
-
labels: labels$
|
|
4083
|
-
messages: messages$
|
|
4026
|
+
labels: labels$S,
|
|
4027
|
+
messages: messages$U
|
|
4084
4028
|
};
|
|
4085
4029
|
|
|
4086
4030
|
var title$r = "Invoice details";
|
|
4087
|
-
var labels$
|
|
4031
|
+
var labels$R = {
|
|
4088
4032
|
summary: "Summary",
|
|
4089
4033
|
total: "Total",
|
|
4090
4034
|
amountPaid: "Amount paid",
|
|
4091
4035
|
amountDue: "Amount due",
|
|
4092
4036
|
creationDate: "Created on:"
|
|
4093
4037
|
};
|
|
4094
|
-
var buttons$
|
|
4038
|
+
var buttons$f = {
|
|
4095
4039
|
download: "Download",
|
|
4096
4040
|
pay: "Pay now"
|
|
4097
4041
|
};
|
|
4098
4042
|
var invoiceDetails_en = {
|
|
4099
4043
|
title: title$r,
|
|
4100
|
-
labels: labels$
|
|
4101
|
-
buttons: buttons$
|
|
4044
|
+
labels: labels$R,
|
|
4045
|
+
buttons: buttons$f
|
|
4102
4046
|
};
|
|
4103
4047
|
|
|
4104
|
-
var labels$
|
|
4048
|
+
var labels$Q = {
|
|
4105
4049
|
title: "Cancel subscription",
|
|
4106
4050
|
cancelReason: "Cancellation reason",
|
|
4107
4051
|
subCancellation: {
|
|
4108
4052
|
goBack: "Go back"
|
|
4109
4053
|
}
|
|
4110
4054
|
};
|
|
4111
|
-
var messages$
|
|
4055
|
+
var messages$T = {
|
|
4112
4056
|
subscriptionEnd: "This subscription is set to expire on",
|
|
4113
4057
|
cancelNow: "Cancel Subscription Now",
|
|
4114
4058
|
cancelLater: "Cancel at Period End",
|
|
@@ -4121,18 +4065,18 @@ var messages$W = {
|
|
|
4121
4065
|
}
|
|
4122
4066
|
};
|
|
4123
4067
|
var subscriptionCancel_en = {
|
|
4124
|
-
labels: labels$
|
|
4125
|
-
messages: messages$
|
|
4068
|
+
labels: labels$Q,
|
|
4069
|
+
messages: messages$T
|
|
4126
4070
|
};
|
|
4127
4071
|
|
|
4128
|
-
var labels$
|
|
4072
|
+
var labels$P = {
|
|
4129
4073
|
title: "Annuler l'abonnement",
|
|
4130
4074
|
cancelReason: "Motif d'annulation",
|
|
4131
4075
|
subCancellation: {
|
|
4132
4076
|
goBack: "Retourner"
|
|
4133
4077
|
}
|
|
4134
4078
|
};
|
|
4135
|
-
var messages$
|
|
4079
|
+
var messages$S = {
|
|
4136
4080
|
subscriptionEnd: "Cet abonnement doit expirer le",
|
|
4137
4081
|
cancelNow: "Cancel Subscription Now",
|
|
4138
4082
|
cancelLater: "Annuler l'abonnement maintenant",
|
|
@@ -4145,18 +4089,18 @@ var messages$V = {
|
|
|
4145
4089
|
}
|
|
4146
4090
|
};
|
|
4147
4091
|
var subscriptionCancel_fr = {
|
|
4148
|
-
labels: labels$
|
|
4149
|
-
messages: messages$
|
|
4092
|
+
labels: labels$P,
|
|
4093
|
+
messages: messages$S
|
|
4150
4094
|
};
|
|
4151
4095
|
|
|
4152
|
-
var labels$
|
|
4096
|
+
var labels$O = {
|
|
4153
4097
|
title: "구독 취소",
|
|
4154
4098
|
cancelReason: "취소 사유",
|
|
4155
4099
|
subCancellation: {
|
|
4156
4100
|
goBack: "돌아가기"
|
|
4157
4101
|
}
|
|
4158
4102
|
};
|
|
4159
|
-
var messages$
|
|
4103
|
+
var messages$R = {
|
|
4160
4104
|
subscriptionEnd: "이 구독은 다음 날짜에 만료되도록 설정되었습니다.",
|
|
4161
4105
|
cancelNow: "지금 구독 취소",
|
|
4162
4106
|
cancelLater: "기간 종료 시 취소",
|
|
@@ -4169,11 +4113,11 @@ var messages$U = {
|
|
|
4169
4113
|
}
|
|
4170
4114
|
};
|
|
4171
4115
|
var subscriptionCancel_ko = {
|
|
4172
|
-
labels: labels$
|
|
4173
|
-
messages: messages$
|
|
4116
|
+
labels: labels$O,
|
|
4117
|
+
messages: messages$R
|
|
4174
4118
|
};
|
|
4175
4119
|
|
|
4176
|
-
var labels$
|
|
4120
|
+
var labels$N = {
|
|
4177
4121
|
inviteMembers: "Invite Members",
|
|
4178
4122
|
listOfMembers: "List of members",
|
|
4179
4123
|
invite: "Invite",
|
|
@@ -4184,10 +4128,10 @@ var labels$Q = {
|
|
|
4184
4128
|
email: "Email"
|
|
4185
4129
|
};
|
|
4186
4130
|
var subscriptionManageMembers_en = {
|
|
4187
|
-
labels: labels$
|
|
4131
|
+
labels: labels$N
|
|
4188
4132
|
};
|
|
4189
4133
|
|
|
4190
|
-
var labels$
|
|
4134
|
+
var labels$M = {
|
|
4191
4135
|
inviteMembers: "Inviter des membres",
|
|
4192
4136
|
listOfMembers: "Liste des membres",
|
|
4193
4137
|
invite: "Inviter",
|
|
@@ -4198,10 +4142,10 @@ var labels$P = {
|
|
|
4198
4142
|
email: "E-mail"
|
|
4199
4143
|
};
|
|
4200
4144
|
var subscriptionManageMembers_fr = {
|
|
4201
|
-
labels: labels$
|
|
4145
|
+
labels: labels$M
|
|
4202
4146
|
};
|
|
4203
4147
|
|
|
4204
|
-
var labels$
|
|
4148
|
+
var labels$L = {
|
|
4205
4149
|
inviteMembers: "회원 초대",
|
|
4206
4150
|
listOfMembers: "구성원 목록",
|
|
4207
4151
|
invite: "초대",
|
|
@@ -4212,17 +4156,17 @@ var labels$O = {
|
|
|
4212
4156
|
email: "이메일"
|
|
4213
4157
|
};
|
|
4214
4158
|
var subscriptionManageMembers_ko = {
|
|
4215
|
-
labels: labels$
|
|
4159
|
+
labels: labels$L
|
|
4216
4160
|
};
|
|
4217
4161
|
|
|
4218
|
-
var labels$
|
|
4162
|
+
var labels$K = {
|
|
4219
4163
|
title: "Suspend subscription",
|
|
4220
4164
|
suspensionDate: "Suspension date",
|
|
4221
4165
|
subCancellation: {
|
|
4222
4166
|
goBack: "Go back"
|
|
4223
4167
|
}
|
|
4224
4168
|
};
|
|
4225
|
-
var messages$
|
|
4169
|
+
var messages$Q = {
|
|
4226
4170
|
suspensionEnd: "The suspension is set to expire on",
|
|
4227
4171
|
suspendNow: "Suspend Subscription Now",
|
|
4228
4172
|
suspendLater: "Suspend at Period End",
|
|
@@ -4235,8 +4179,8 @@ var messages$T = {
|
|
|
4235
4179
|
}
|
|
4236
4180
|
};
|
|
4237
4181
|
var subscriptionSuspend_en = {
|
|
4238
|
-
labels: labels$
|
|
4239
|
-
messages: messages$
|
|
4182
|
+
labels: labels$K,
|
|
4183
|
+
messages: messages$Q
|
|
4240
4184
|
};
|
|
4241
4185
|
|
|
4242
4186
|
var validation$2 = {
|
|
@@ -4251,7 +4195,7 @@ var validation$2 = {
|
|
|
4251
4195
|
enterLastName: "Le nom de famille est requis.",
|
|
4252
4196
|
enterPhone: "Le numéro de téléphone est requis."
|
|
4253
4197
|
};
|
|
4254
|
-
var buttons$
|
|
4198
|
+
var buttons$e = {
|
|
4255
4199
|
account: "Accès abonné(e)s",
|
|
4256
4200
|
login: "Se connecter",
|
|
4257
4201
|
subscribe: "S'abonner"
|
|
@@ -4329,7 +4273,7 @@ var confirm$8 = {
|
|
|
4329
4273
|
};
|
|
4330
4274
|
var common_fr = {
|
|
4331
4275
|
validation: validation$2,
|
|
4332
|
-
buttons: buttons$
|
|
4276
|
+
buttons: buttons$e,
|
|
4333
4277
|
dashboard: dashboard$3,
|
|
4334
4278
|
select: select$5,
|
|
4335
4279
|
confirm: confirm$8
|
|
@@ -4360,7 +4304,7 @@ var paymentMethod_fr = {
|
|
|
4360
4304
|
var title$q = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
4361
4305
|
var updateTitle$2 = "Mettre à jour son choix d'infolettres";
|
|
4362
4306
|
var subtitle$b = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
|
|
4363
|
-
var labels$
|
|
4307
|
+
var labels$J = {
|
|
4364
4308
|
submit: "Lire l’article !",
|
|
4365
4309
|
firstName: "Prénom",
|
|
4366
4310
|
lastName: "Nom de famille",
|
|
@@ -4368,7 +4312,7 @@ var labels$M = {
|
|
|
4368
4312
|
postalCode: "Code postal",
|
|
4369
4313
|
required: "Champs obligatoires"
|
|
4370
4314
|
};
|
|
4371
|
-
var messages$
|
|
4315
|
+
var messages$P = {
|
|
4372
4316
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4373
4317
|
success: "Votre choix d'infolettres à été mis à jour",
|
|
4374
4318
|
loginHere: "Connectez-vous ici",
|
|
@@ -4379,14 +4323,14 @@ var newsletter_fr = {
|
|
|
4379
4323
|
title: title$q,
|
|
4380
4324
|
updateTitle: updateTitle$2,
|
|
4381
4325
|
subtitle: subtitle$b,
|
|
4382
|
-
labels: labels$
|
|
4383
|
-
messages: messages$
|
|
4326
|
+
labels: labels$J,
|
|
4327
|
+
messages: messages$P
|
|
4384
4328
|
};
|
|
4385
4329
|
|
|
4386
|
-
var labels$
|
|
4330
|
+
var labels$I = {
|
|
4387
4331
|
"continue": "Abonnement réussi !"
|
|
4388
4332
|
};
|
|
4389
|
-
var messages$
|
|
4333
|
+
var messages$O = {
|
|
4390
4334
|
yourFreeTrial: "Votre essai gratuit vient de débuter",
|
|
4391
4335
|
youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
|
|
4392
4336
|
clickToLearn: {
|
|
@@ -4412,12 +4356,12 @@ var errors$e = {
|
|
|
4412
4356
|
"": ""
|
|
4413
4357
|
};
|
|
4414
4358
|
var success_fr = {
|
|
4415
|
-
labels: labels$
|
|
4416
|
-
messages: messages$
|
|
4359
|
+
labels: labels$I,
|
|
4360
|
+
messages: messages$O,
|
|
4417
4361
|
errors: errors$e
|
|
4418
4362
|
};
|
|
4419
4363
|
|
|
4420
|
-
var messages$
|
|
4364
|
+
var messages$N = {
|
|
4421
4365
|
freeVisits: "Visites gratuites restantes:",
|
|
4422
4366
|
subscribeNow: "Abonnez-vous maintenant !",
|
|
4423
4367
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
@@ -4427,16 +4371,16 @@ var errors$d = {
|
|
|
4427
4371
|
"": ""
|
|
4428
4372
|
};
|
|
4429
4373
|
var meter_fr = {
|
|
4430
|
-
messages: messages$
|
|
4374
|
+
messages: messages$N,
|
|
4431
4375
|
errors: errors$d
|
|
4432
4376
|
};
|
|
4433
4377
|
|
|
4434
|
-
var messages$
|
|
4378
|
+
var messages$M = {
|
|
4435
4379
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
4436
4380
|
bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque.",
|
|
4437
4381
|
bankAuthenticationSuccess: "Veuillez patienter pendant que nous accédons à votre requête."
|
|
4438
4382
|
};
|
|
4439
|
-
var labels$
|
|
4383
|
+
var labels$H = {
|
|
4440
4384
|
card: "Entrez le numéro de carte",
|
|
4441
4385
|
date: "Date d’expiration",
|
|
4442
4386
|
CVC: "CVC",
|
|
@@ -4456,13 +4400,11 @@ var labels$K = {
|
|
|
4456
4400
|
firstName: "Prénom",
|
|
4457
4401
|
lastName: "Nom de famille",
|
|
4458
4402
|
phone: "Téléphoner",
|
|
4459
|
-
freeItems: "Articles gratuits"
|
|
4460
|
-
email: "Courriel",
|
|
4461
|
-
password: "Créer un mot de passe"
|
|
4403
|
+
freeItems: "Articles gratuits"
|
|
4462
4404
|
};
|
|
4463
4405
|
var checkoutForm_fr = {
|
|
4464
|
-
messages: messages$
|
|
4465
|
-
labels: labels$
|
|
4406
|
+
messages: messages$M,
|
|
4407
|
+
labels: labels$H
|
|
4466
4408
|
};
|
|
4467
4409
|
|
|
4468
4410
|
var youAreSafe$2 = "Vous êtes en sécurité - PCI conforme 128 SSL par";
|
|
@@ -4486,7 +4428,7 @@ var messages_fr = {
|
|
|
4486
4428
|
zeroTotalInvoice: zeroTotalInvoice$2
|
|
4487
4429
|
};
|
|
4488
4430
|
|
|
4489
|
-
var labels$
|
|
4431
|
+
var labels$G = {
|
|
4490
4432
|
email: "Entrez votre adresse courriel",
|
|
4491
4433
|
username: "Saisissez votre nom d'utilisateur",
|
|
4492
4434
|
password: "Entrez votre mot de passe",
|
|
@@ -4495,7 +4437,7 @@ var labels$J = {
|
|
|
4495
4437
|
passwordPlaceholder: "Mot de passe",
|
|
4496
4438
|
login: "Connexion"
|
|
4497
4439
|
};
|
|
4498
|
-
var messages$
|
|
4440
|
+
var messages$L = {
|
|
4499
4441
|
loginTo: "Connectez-vous à votre compte",
|
|
4500
4442
|
welcome: "Bienvenue, connectez-vous avec votre compte existant.",
|
|
4501
4443
|
dontHaveAccount: "Vous n’avez pas encore de compte ?",
|
|
@@ -4514,28 +4456,28 @@ var errors$c = {
|
|
|
4514
4456
|
"": ""
|
|
4515
4457
|
};
|
|
4516
4458
|
var login_fr = {
|
|
4517
|
-
labels: labels$
|
|
4518
|
-
messages: messages$
|
|
4459
|
+
labels: labels$G,
|
|
4460
|
+
messages: messages$L,
|
|
4519
4461
|
errors: errors$c
|
|
4520
4462
|
};
|
|
4521
4463
|
|
|
4522
|
-
var labels$
|
|
4464
|
+
var labels$F = {
|
|
4523
4465
|
title: "Confirmez votre courriel",
|
|
4524
4466
|
instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
|
|
4525
4467
|
resend: "Renvoyer le courriel"
|
|
4526
4468
|
};
|
|
4527
|
-
var messages$
|
|
4469
|
+
var messages$K = {
|
|
4528
4470
|
resent: "Renvoyé avec succès",
|
|
4529
4471
|
success: "Vous vous êtes connecté avec succès"
|
|
4530
4472
|
};
|
|
4531
4473
|
var verifyLinkToken_fr = {
|
|
4532
|
-
labels: labels$
|
|
4533
|
-
messages: messages$
|
|
4474
|
+
labels: labels$F,
|
|
4475
|
+
messages: messages$K
|
|
4534
4476
|
};
|
|
4535
4477
|
|
|
4536
4478
|
var title$p = "Créer un compte";
|
|
4537
4479
|
var subtitle$a = "Entrez votre courriel et votre mot de passe ci-dessous";
|
|
4538
|
-
var labels$
|
|
4480
|
+
var labels$E = {
|
|
4539
4481
|
signUpFacebook: "Inscrivez-vous avec Facebook",
|
|
4540
4482
|
signUpGoogle: "Inscrivez-vous avec Google",
|
|
4541
4483
|
signUpEmail: "Inscrivez-vous avec votre courriel",
|
|
@@ -4548,7 +4490,7 @@ var labels$H = {
|
|
|
4548
4490
|
lastName: "Nom de famille",
|
|
4549
4491
|
phone: "Téléphoner"
|
|
4550
4492
|
};
|
|
4551
|
-
var messages$
|
|
4493
|
+
var messages$J = {
|
|
4552
4494
|
alreadyHaveAccount: "Vous avez déjà un compte?",
|
|
4553
4495
|
createAccount: "Créer un compte",
|
|
4554
4496
|
loginHere: "Connectez-vous ici",
|
|
@@ -4595,8 +4537,7 @@ var gift$2 = {
|
|
|
4595
4537
|
enterEmail: "Veuillez entrer l’adresse courriel du destinataire du cadeau.",
|
|
4596
4538
|
invalidDate: "La date du cadeau doit être comprise entre aujourd'hui et un an.",
|
|
4597
4539
|
giftDateInfo: "Le destinataire recevra un courriel à la date déterminée afin d'activer leur abonnement cadeau.",
|
|
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."
|
|
4540
|
+
giftMessageInfo: "Laissez un message au destinataire sans oublier de signer votre nom."
|
|
4600
4541
|
}
|
|
4601
4542
|
};
|
|
4602
4543
|
var redeem$2 = {
|
|
@@ -4624,14 +4565,14 @@ var redeem$2 = {
|
|
|
4624
4565
|
var register_fr = {
|
|
4625
4566
|
title: title$p,
|
|
4626
4567
|
subtitle: subtitle$a,
|
|
4627
|
-
labels: labels$
|
|
4628
|
-
messages: messages$
|
|
4568
|
+
labels: labels$E,
|
|
4569
|
+
messages: messages$J,
|
|
4629
4570
|
errors: errors$b,
|
|
4630
4571
|
gift: gift$2,
|
|
4631
4572
|
redeem: redeem$2
|
|
4632
4573
|
};
|
|
4633
4574
|
|
|
4634
|
-
var labels$
|
|
4575
|
+
var labels$D = {
|
|
4635
4576
|
title: "Voulez-vous mettre à jour votre profil ?",
|
|
4636
4577
|
subtitle: "Entrez vos informations ci-dessous pour mettre à jour votre profil",
|
|
4637
4578
|
email: "Address courriel",
|
|
@@ -4650,21 +4591,21 @@ var labels$G = {
|
|
|
4650
4591
|
zoom: "Zoom",
|
|
4651
4592
|
tin: "Numéro d'identification fiscale"
|
|
4652
4593
|
};
|
|
4653
|
-
var messages$
|
|
4594
|
+
var messages$I = {
|
|
4654
4595
|
userUpdated: "Votre profil a été mis à jour avec succès.",
|
|
4655
4596
|
pictureRemoved: "Votre photo de profil a été supprimée avec succès.",
|
|
4656
4597
|
pictureUpdated: "Votre photo de profil a été mise à jour avec succès."
|
|
4657
4598
|
};
|
|
4658
4599
|
var userEdit_fr = {
|
|
4659
|
-
labels: labels$
|
|
4660
|
-
messages: messages$
|
|
4600
|
+
labels: labels$D,
|
|
4601
|
+
messages: messages$I
|
|
4661
4602
|
};
|
|
4662
4603
|
|
|
4663
4604
|
var title$o = "Entrez votre adresse de livraison";
|
|
4664
4605
|
var titleGifting$2 = "Entrez votre adresse";
|
|
4665
4606
|
var selectAddressTitle$2 = "Veuillez sélectionner une adresse";
|
|
4666
4607
|
var selectAddressSubtitle$2 = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
|
|
4667
|
-
var labels$
|
|
4608
|
+
var labels$C = {
|
|
4668
4609
|
address: "Adresse",
|
|
4669
4610
|
code: "Code postal / Zip",
|
|
4670
4611
|
city: "Ville",
|
|
@@ -4675,12 +4616,12 @@ var labels$F = {
|
|
|
4675
4616
|
required: "Champs obligatoires",
|
|
4676
4617
|
isDefault: "Définir par défaut"
|
|
4677
4618
|
};
|
|
4678
|
-
var buttons$
|
|
4619
|
+
var buttons$d = {
|
|
4679
4620
|
submit: "Valider",
|
|
4680
4621
|
selectAddress: "Choisir cette adresse",
|
|
4681
4622
|
addAddress: "Ajouter une nouvelle adresse"
|
|
4682
4623
|
};
|
|
4683
|
-
var messages$
|
|
4624
|
+
var messages$H = {
|
|
4684
4625
|
addressUpdated: "Votre adresse a été mise à jour avec succès",
|
|
4685
4626
|
subRedeemed: "Votre abonnement a bien été activé."
|
|
4686
4627
|
};
|
|
@@ -4689,9 +4630,9 @@ var address_fr = {
|
|
|
4689
4630
|
titleGifting: titleGifting$2,
|
|
4690
4631
|
selectAddressTitle: selectAddressTitle$2,
|
|
4691
4632
|
selectAddressSubtitle: selectAddressSubtitle$2,
|
|
4692
|
-
labels: labels$
|
|
4693
|
-
buttons: buttons$
|
|
4694
|
-
messages: messages$
|
|
4633
|
+
labels: labels$C,
|
|
4634
|
+
buttons: buttons$d,
|
|
4635
|
+
messages: messages$H
|
|
4695
4636
|
};
|
|
4696
4637
|
|
|
4697
4638
|
var title$n = "Réinitialiser votre mot de passe";
|
|
@@ -4719,7 +4660,7 @@ var password$4 = "Mot de passe";
|
|
|
4719
4660
|
var submit$a = "Soumettre";
|
|
4720
4661
|
var required$a = "Champs obligatoires";
|
|
4721
4662
|
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.";
|
|
4722
|
-
var messages$
|
|
4663
|
+
var messages$G = {
|
|
4723
4664
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4724
4665
|
loginHere: "Connectez-vous ici"
|
|
4725
4666
|
};
|
|
@@ -4730,7 +4671,7 @@ var passwordForgot_fr = {
|
|
|
4730
4671
|
submit: submit$a,
|
|
4731
4672
|
required: required$a,
|
|
4732
4673
|
passwordResetEmailSent: passwordResetEmailSent$2,
|
|
4733
|
-
messages: messages$
|
|
4674
|
+
messages: messages$G
|
|
4734
4675
|
};
|
|
4735
4676
|
|
|
4736
4677
|
var title$l = "Changez votre mot de passe";
|
|
@@ -4758,7 +4699,7 @@ var title$k = "Connexion sans mot de passe";
|
|
|
4758
4699
|
var email$6 = "Entrez votre adresse courriel";
|
|
4759
4700
|
var submit$8 = "Soumettre";
|
|
4760
4701
|
var required$8 = "Champs obligatoires";
|
|
4761
|
-
var messages$
|
|
4702
|
+
var messages$F = {
|
|
4762
4703
|
PasswordlessLoginSuccess: "Vous avez été authentifié avec succès avec la connexion sans mot de passe"
|
|
4763
4704
|
};
|
|
4764
4705
|
var passwordlessRequest_fr = {
|
|
@@ -4766,7 +4707,7 @@ var passwordlessRequest_fr = {
|
|
|
4766
4707
|
email: email$6,
|
|
4767
4708
|
submit: submit$8,
|
|
4768
4709
|
required: required$8,
|
|
4769
|
-
messages: messages$
|
|
4710
|
+
messages: messages$F
|
|
4770
4711
|
};
|
|
4771
4712
|
|
|
4772
4713
|
var title$j = "Votre panier";
|
|
@@ -4794,13 +4735,13 @@ var cart_fr = {
|
|
|
4794
4735
|
removeAll: removeAll$2
|
|
4795
4736
|
};
|
|
4796
4737
|
|
|
4797
|
-
var buttons$
|
|
4738
|
+
var buttons$c = {
|
|
4798
4739
|
select: "Choisir",
|
|
4799
4740
|
added: "Ajouté au panier",
|
|
4800
4741
|
purchase: "Acheter",
|
|
4801
4742
|
"continue": "Continuer au contenu"
|
|
4802
4743
|
};
|
|
4803
|
-
var messages$
|
|
4744
|
+
var messages$E = {
|
|
4804
4745
|
orderConfirmed: {
|
|
4805
4746
|
title: "Votre commande est confirmée !",
|
|
4806
4747
|
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."
|
|
@@ -4809,17 +4750,17 @@ var messages$H = {
|
|
|
4809
4750
|
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.",
|
|
4810
4751
|
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."
|
|
4811
4752
|
};
|
|
4812
|
-
var labels$
|
|
4753
|
+
var labels$B = {
|
|
4813
4754
|
summary: "récapitulatif de commande",
|
|
4814
4755
|
total: "total"
|
|
4815
4756
|
};
|
|
4816
4757
|
var shop_fr = {
|
|
4817
|
-
buttons: buttons$
|
|
4818
|
-
messages: messages$
|
|
4819
|
-
labels: labels$
|
|
4758
|
+
buttons: buttons$c,
|
|
4759
|
+
messages: messages$E,
|
|
4760
|
+
labels: labels$B
|
|
4820
4761
|
};
|
|
4821
4762
|
|
|
4822
|
-
var labels$
|
|
4763
|
+
var labels$A = {
|
|
4823
4764
|
cardNumber: "Numéro de carte",
|
|
4824
4765
|
securityCode: "Code de sécurité",
|
|
4825
4766
|
submit: "Soumettre",
|
|
@@ -4841,7 +4782,7 @@ var labels$D = {
|
|
|
4841
4782
|
title: "Informations de paiement"
|
|
4842
4783
|
}
|
|
4843
4784
|
};
|
|
4844
|
-
var messages$
|
|
4785
|
+
var messages$D = {
|
|
4845
4786
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
4846
4787
|
cancel: "Annuler votre abonnement en ligne à tout moment.",
|
|
4847
4788
|
giftSent: "Le cadeau d’abonnement a été envoyé à",
|
|
@@ -4855,12 +4796,12 @@ var errors$a = {
|
|
|
4855
4796
|
"": ""
|
|
4856
4797
|
};
|
|
4857
4798
|
var payment_fr = {
|
|
4858
|
-
labels: labels$
|
|
4859
|
-
messages: messages$
|
|
4799
|
+
labels: labels$A,
|
|
4800
|
+
messages: messages$D,
|
|
4860
4801
|
errors: errors$a
|
|
4861
4802
|
};
|
|
4862
4803
|
|
|
4863
|
-
var labels$
|
|
4804
|
+
var labels$z = {
|
|
4864
4805
|
menu: "Menu Pelcro",
|
|
4865
4806
|
name: "Nom",
|
|
4866
4807
|
email: "Courriel",
|
|
@@ -4946,12 +4887,9 @@ var labels$C = {
|
|
|
4946
4887
|
},
|
|
4947
4888
|
subCancellation: {
|
|
4948
4889
|
goBack: "Retourner"
|
|
4949
|
-
},
|
|
4950
|
-
donationCancellation: {
|
|
4951
|
-
goBack: "Go back"
|
|
4952
4890
|
}
|
|
4953
4891
|
};
|
|
4954
|
-
var messages$
|
|
4892
|
+
var messages$C = {
|
|
4955
4893
|
noCard: "Vous n’avez pas une carte",
|
|
4956
4894
|
subCancellation: {
|
|
4957
4895
|
isSureToCancel: "Êtes-vous certain de vouloir annuler votre abonnement?",
|
|
@@ -4968,35 +4906,19 @@ var messages$F = {
|
|
|
4968
4906
|
loading: "Annulation de la suspension de votre abonnement",
|
|
4969
4907
|
success: "L'abonnement a été suspendu avec succès",
|
|
4970
4908
|
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"
|
|
4987
4909
|
}
|
|
4988
4910
|
};
|
|
4989
4911
|
var dashboard_fr = {
|
|
4990
|
-
labels: labels$
|
|
4991
|
-
messages: messages$
|
|
4912
|
+
labels: labels$z,
|
|
4913
|
+
messages: messages$C
|
|
4992
4914
|
};
|
|
4993
4915
|
|
|
4994
|
-
var messages$
|
|
4916
|
+
var messages$B = {
|
|
4995
4917
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4996
4918
|
loginHere: "Connectez-vous ici",
|
|
4997
4919
|
checkbox: "Cochez cette case pour offrir cet abonnement"
|
|
4998
4920
|
};
|
|
4999
|
-
var labels$
|
|
4921
|
+
var labels$y = {
|
|
5000
4922
|
plan: {
|
|
5001
4923
|
title: "Abonnez-vous à un plan",
|
|
5002
4924
|
subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
|
|
@@ -5013,48 +4935,15 @@ var labels$B = {
|
|
|
5013
4935
|
or: "Sinon, jetez un coup d'oeil à d'autres offres ci-dessous"
|
|
5014
4936
|
}
|
|
5015
4937
|
};
|
|
5016
|
-
var buttons$
|
|
4938
|
+
var buttons$b = {
|
|
5017
4939
|
next: "Prochain",
|
|
5018
4940
|
select: "Choisir",
|
|
5019
4941
|
back: "Retour"
|
|
5020
4942
|
};
|
|
5021
4943
|
var select_fr = {
|
|
5022
|
-
messages: messages$
|
|
5023
|
-
labels: labels$
|
|
5024
|
-
buttons: buttons$
|
|
5025
|
-
};
|
|
5026
|
-
|
|
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
|
|
4944
|
+
messages: messages$B,
|
|
4945
|
+
labels: labels$y,
|
|
4946
|
+
buttons: buttons$b
|
|
5058
4947
|
};
|
|
5059
4948
|
|
|
5060
4949
|
var confirm$6 = {
|
|
@@ -5067,46 +4956,46 @@ var notification_fr = {
|
|
|
5067
4956
|
confirm: confirm$6
|
|
5068
4957
|
};
|
|
5069
4958
|
|
|
5070
|
-
var labels$
|
|
4959
|
+
var labels$x = {
|
|
5071
4960
|
title: "Confirmez votre courriel",
|
|
5072
4961
|
instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
|
|
5073
4962
|
resend: "Renvoyer le courriel"
|
|
5074
4963
|
};
|
|
5075
|
-
var messages$
|
|
4964
|
+
var messages$A = {
|
|
5076
4965
|
resent: "Renvoyé avec succès",
|
|
5077
4966
|
success: "Adresse courriel vérifiée avec succès"
|
|
5078
4967
|
};
|
|
5079
4968
|
var verifyEmail_fr = {
|
|
5080
|
-
labels: labels$
|
|
5081
|
-
messages: messages$
|
|
4969
|
+
labels: labels$x,
|
|
4970
|
+
messages: messages$A
|
|
5082
4971
|
};
|
|
5083
4972
|
|
|
5084
4973
|
var title$i = "Détails de la facture";
|
|
5085
|
-
var labels$
|
|
4974
|
+
var labels$w = {
|
|
5086
4975
|
summary: "Résumé",
|
|
5087
4976
|
total: "Total",
|
|
5088
4977
|
amountPaid: "Montant payé",
|
|
5089
4978
|
amountDue: "Montant dû",
|
|
5090
4979
|
creationDate: "Créé le:"
|
|
5091
4980
|
};
|
|
5092
|
-
var buttons$
|
|
4981
|
+
var buttons$a = {
|
|
5093
4982
|
download: "Télécharger",
|
|
5094
4983
|
pay: "Payer"
|
|
5095
4984
|
};
|
|
5096
4985
|
var invoiceDetails_fr = {
|
|
5097
4986
|
title: title$i,
|
|
5098
|
-
labels: labels$
|
|
5099
|
-
buttons: buttons$
|
|
4987
|
+
labels: labels$w,
|
|
4988
|
+
buttons: buttons$a
|
|
5100
4989
|
};
|
|
5101
4990
|
|
|
5102
|
-
var labels$
|
|
4991
|
+
var labels$v = {
|
|
5103
4992
|
title: "Suspendre l'abonnement",
|
|
5104
4993
|
suspensionDate: "Date de suspension",
|
|
5105
4994
|
subCancellation: {
|
|
5106
4995
|
goBack: "Revenir en arrière"
|
|
5107
4996
|
}
|
|
5108
4997
|
};
|
|
5109
|
-
var messages$
|
|
4998
|
+
var messages$z = {
|
|
5110
4999
|
suspensionEnd: "La suspension doit expirer le",
|
|
5111
5000
|
suspendNow: "Suspendre l'abonnement maintenant",
|
|
5112
5001
|
suspendLater: "Suspendre à la fin de la période",
|
|
@@ -5119,8 +5008,8 @@ var messages$B = {
|
|
|
5119
5008
|
}
|
|
5120
5009
|
};
|
|
5121
5010
|
var subscriptionSuspend_fr = {
|
|
5122
|
-
labels: labels$
|
|
5123
|
-
messages: messages$
|
|
5011
|
+
labels: labels$v,
|
|
5012
|
+
messages: messages$z
|
|
5124
5013
|
};
|
|
5125
5014
|
|
|
5126
5015
|
var validation$1 = {
|
|
@@ -5134,7 +5023,7 @@ var validation$1 = {
|
|
|
5134
5023
|
enterLastName: "성은 필수 항목입니다.",
|
|
5135
5024
|
enterPhone: "전화번호는 필수 항목입니다."
|
|
5136
5025
|
};
|
|
5137
|
-
var buttons$
|
|
5026
|
+
var buttons$9 = {
|
|
5138
5027
|
account: "내 계정",
|
|
5139
5028
|
login: "로그인",
|
|
5140
5029
|
subscribe: "구독하다"
|
|
@@ -5212,7 +5101,7 @@ var confirm$5 = {
|
|
|
5212
5101
|
};
|
|
5213
5102
|
var common_ko = {
|
|
5214
5103
|
validation: validation$1,
|
|
5215
|
-
buttons: buttons$
|
|
5104
|
+
buttons: buttons$9,
|
|
5216
5105
|
dashboard: dashboard$2,
|
|
5217
5106
|
select: select$3,
|
|
5218
5107
|
confirm: confirm$5
|
|
@@ -5243,7 +5132,7 @@ var paymentMethod_ko = {
|
|
|
5243
5132
|
var title$h = "Frieze 뉴스레터를 구독하려면 이메일을 입력하세요.";
|
|
5244
5133
|
var updateTitle$1 = "뉴스레터 선택 업데이트";
|
|
5245
5134
|
var subtitle$7 = "귀하의 이메일은 다른 마케팅 용도로도 사용됩니다.";
|
|
5246
|
-
var labels$
|
|
5135
|
+
var labels$u = {
|
|
5247
5136
|
submit: "제출",
|
|
5248
5137
|
firstName: "이름",
|
|
5249
5138
|
lastName: "성",
|
|
@@ -5251,7 +5140,7 @@ var labels$w = {
|
|
|
5251
5140
|
postalCode: "우편번호",
|
|
5252
5141
|
required: "필수 항목"
|
|
5253
5142
|
};
|
|
5254
|
-
var messages$
|
|
5143
|
+
var messages$y = {
|
|
5255
5144
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5256
5145
|
success: "뉴스레터가 성공적으로 업데이트되었습니다.",
|
|
5257
5146
|
loginHere: "여기에서 로그인하세요.",
|
|
@@ -5262,14 +5151,14 @@ var newsletter_ko = {
|
|
|
5262
5151
|
title: title$h,
|
|
5263
5152
|
updateTitle: updateTitle$1,
|
|
5264
5153
|
subtitle: subtitle$7,
|
|
5265
|
-
labels: labels$
|
|
5266
|
-
messages: messages$
|
|
5154
|
+
labels: labels$u,
|
|
5155
|
+
messages: messages$y
|
|
5267
5156
|
};
|
|
5268
5157
|
|
|
5269
|
-
var labels$
|
|
5158
|
+
var labels$t = {
|
|
5270
5159
|
"continue": "콘텐츠로 돌아가기"
|
|
5271
5160
|
};
|
|
5272
|
-
var messages$
|
|
5161
|
+
var messages$x = {
|
|
5273
5162
|
yourFreeTrial: "유료 멤버십에 가입하셨습니다!",
|
|
5274
5163
|
youHaveAccess: "멤버십 혜택을 즐기시기를 바라며, 질문이나 문의 사항이 있으면 저희에게 연락주십시오.",
|
|
5275
5164
|
clickToLearn: {
|
|
@@ -5295,12 +5184,12 @@ var errors$9 = {
|
|
|
5295
5184
|
"": ""
|
|
5296
5185
|
};
|
|
5297
5186
|
var success_ko = {
|
|
5298
|
-
labels: labels$
|
|
5299
|
-
messages: messages$
|
|
5187
|
+
labels: labels$t,
|
|
5188
|
+
messages: messages$x,
|
|
5300
5189
|
errors: errors$9
|
|
5301
5190
|
};
|
|
5302
5191
|
|
|
5303
|
-
var messages$
|
|
5192
|
+
var messages$w = {
|
|
5304
5193
|
freeVisits: "남은 무료 방문 기간:",
|
|
5305
5194
|
subscribeNow: "멤버십 가입",
|
|
5306
5195
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
@@ -5310,16 +5199,16 @@ var errors$8 = {
|
|
|
5310
5199
|
"": ""
|
|
5311
5200
|
};
|
|
5312
5201
|
var meter_ko = {
|
|
5313
|
-
messages: messages$
|
|
5202
|
+
messages: messages$w,
|
|
5314
5203
|
errors: errors$8
|
|
5315
5204
|
};
|
|
5316
5205
|
|
|
5317
|
-
var messages$
|
|
5206
|
+
var messages$v = {
|
|
5318
5207
|
youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
|
|
5319
5208
|
bankRedirection: "잠시만 기다려 주십시오. 결제 은행으로 연결 중입니다.",
|
|
5320
5209
|
bankAuthenticationSuccess: "요청을 처리하는 동안 기다려 주십시오."
|
|
5321
5210
|
};
|
|
5322
|
-
var labels$
|
|
5211
|
+
var labels$s = {
|
|
5323
5212
|
card: "카드 번호 입력",
|
|
5324
5213
|
date: "만료일",
|
|
5325
5214
|
CVC: "CVC",
|
|
@@ -5339,13 +5228,11 @@ var labels$u = {
|
|
|
5339
5228
|
firstName: "이름",
|
|
5340
5229
|
lastName: "성",
|
|
5341
5230
|
phone: "핸드폰",
|
|
5342
|
-
freeItems: "무료 아이템"
|
|
5343
|
-
email: "이메일",
|
|
5344
|
-
password: "비밀번호"
|
|
5231
|
+
freeItems: "무료 아이템"
|
|
5345
5232
|
};
|
|
5346
5233
|
var checkoutForm_ko = {
|
|
5347
|
-
messages: messages$
|
|
5348
|
-
labels: labels$
|
|
5234
|
+
messages: messages$v,
|
|
5235
|
+
labels: labels$s
|
|
5349
5236
|
};
|
|
5350
5237
|
|
|
5351
5238
|
var youAreSafe$1 = "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ";
|
|
@@ -5369,7 +5256,7 @@ var messages_ko = {
|
|
|
5369
5256
|
zeroTotalInvoice: zeroTotalInvoice$1
|
|
5370
5257
|
};
|
|
5371
5258
|
|
|
5372
|
-
var labels$
|
|
5259
|
+
var labels$r = {
|
|
5373
5260
|
email: "이메일 입력",
|
|
5374
5261
|
username: "사용자 이름 입력",
|
|
5375
5262
|
password: "비밀번호 입력",
|
|
@@ -5378,7 +5265,7 @@ var labels$t = {
|
|
|
5378
5265
|
passwordPlaceholder: "비밀번호",
|
|
5379
5266
|
login: "로그인"
|
|
5380
5267
|
};
|
|
5381
|
-
var messages$
|
|
5268
|
+
var messages$u = {
|
|
5382
5269
|
loginTo: "귀하의 계정에 로그인",
|
|
5383
5270
|
welcome: "반갑습니다. 귀하의 기존 계정으로 로그인하세요.",
|
|
5384
5271
|
dontHaveAccount: "아직 계정이 없으신가요?",
|
|
@@ -5397,28 +5284,28 @@ var errors$7 = {
|
|
|
5397
5284
|
"": ""
|
|
5398
5285
|
};
|
|
5399
5286
|
var login_ko = {
|
|
5400
|
-
labels: labels$
|
|
5401
|
-
messages: messages$
|
|
5287
|
+
labels: labels$r,
|
|
5288
|
+
messages: messages$u,
|
|
5402
5289
|
errors: errors$7
|
|
5403
5290
|
};
|
|
5404
5291
|
|
|
5405
|
-
var labels$
|
|
5292
|
+
var labels$q = {
|
|
5406
5293
|
title: "비밀번호 없는 링크 확인",
|
|
5407
5294
|
instructions: "가는 중입니다!\n이메일 주소를 확인하겠습니다.\n이메일로 전송된 확인 링크를 클릭하세요.",
|
|
5408
5295
|
resend: "이메일 재전송"
|
|
5409
5296
|
};
|
|
5410
|
-
var messages$
|
|
5297
|
+
var messages$t = {
|
|
5411
5298
|
resent: "성공적으로 재전송",
|
|
5412
5299
|
success: "성공적으로 로그인했습니다"
|
|
5413
5300
|
};
|
|
5414
5301
|
var verifyLinkToken_ko = {
|
|
5415
|
-
labels: labels$
|
|
5416
|
-
messages: messages$
|
|
5302
|
+
labels: labels$q,
|
|
5303
|
+
messages: messages$t
|
|
5417
5304
|
};
|
|
5418
5305
|
|
|
5419
5306
|
var title$g = "계정 만들기";
|
|
5420
5307
|
var subtitle$6 = "아래에 이메일과 비밀번호를 입력하세요.";
|
|
5421
|
-
var labels$
|
|
5308
|
+
var labels$p = {
|
|
5422
5309
|
signUpFacebook: "Facebook으로 가입하기",
|
|
5423
5310
|
signUpGoogle: "Google로 가입하기",
|
|
5424
5311
|
signUpEmail: "이메일로 가입하기",
|
|
@@ -5431,7 +5318,7 @@ var labels$r = {
|
|
|
5431
5318
|
lastName: "성",
|
|
5432
5319
|
phone: "핸드폰"
|
|
5433
5320
|
};
|
|
5434
|
-
var messages$
|
|
5321
|
+
var messages$s = {
|
|
5435
5322
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5436
5323
|
createAccount: "계정 만들기",
|
|
5437
5324
|
loginHere: "여기에서 로그인하세요.",
|
|
@@ -5477,8 +5364,7 @@ var gift$1 = {
|
|
|
5477
5364
|
enterEmail: "선물을 받을 분의 이메일을 입력해주세요.",
|
|
5478
5365
|
invalidDate: "선물 날짜는 오늘로부터 1년 이내여야 합니다.",
|
|
5479
5366
|
giftDateInfo: "받는 분이 선물을 사용하실 수 있도록, 선택된 날짜에 귀하의 선물 메시지가 담겨 있는 이메일 알림이 전송됩니다.",
|
|
5480
|
-
giftMessageInfo: "받는 분을 위한 선물 메시지와 서명을 남기는 것을 잊지 마시기 바랍니다."
|
|
5481
|
-
giftMessageAllowedCharacters: "특수문자 및 이모티콘 사용 불가."
|
|
5367
|
+
giftMessageInfo: "받는 분을 위한 선물 메시지와 서명을 남기는 것을 잊지 마시기 바랍니다."
|
|
5482
5368
|
}
|
|
5483
5369
|
};
|
|
5484
5370
|
var redeem$1 = {
|
|
@@ -5506,14 +5392,14 @@ var redeem$1 = {
|
|
|
5506
5392
|
var register_ko = {
|
|
5507
5393
|
title: title$g,
|
|
5508
5394
|
subtitle: subtitle$6,
|
|
5509
|
-
labels: labels$
|
|
5510
|
-
messages: messages$
|
|
5395
|
+
labels: labels$p,
|
|
5396
|
+
messages: messages$s,
|
|
5511
5397
|
errors: errors$6,
|
|
5512
5398
|
gift: gift$1,
|
|
5513
5399
|
redeem: redeem$1
|
|
5514
5400
|
};
|
|
5515
5401
|
|
|
5516
|
-
var labels$
|
|
5402
|
+
var labels$o = {
|
|
5517
5403
|
title: "프로파일을 업데이트하시겠습니까?",
|
|
5518
5404
|
subtitle: "프로필을 업데이트하려면 아래 정보를 입력하세요.",
|
|
5519
5405
|
email: "이메일",
|
|
@@ -5532,21 +5418,21 @@ var labels$q = {
|
|
|
5532
5418
|
zoom: "확대",
|
|
5533
5419
|
tin: "세금 식별 번호"
|
|
5534
5420
|
};
|
|
5535
|
-
var messages$
|
|
5421
|
+
var messages$r = {
|
|
5536
5422
|
userUpdated: "감사합니다! 프로필이 성공적으로 업데이트되었습니다.",
|
|
5537
5423
|
pictureRemoved: "귀하의 프로필 사진이 제거되었습니다.",
|
|
5538
5424
|
pictureUpdated: "귀하의 프로필 사진이 업데이트되었습니다."
|
|
5539
5425
|
};
|
|
5540
5426
|
var userEdit_ko = {
|
|
5541
|
-
labels: labels$
|
|
5542
|
-
messages: messages$
|
|
5427
|
+
labels: labels$o,
|
|
5428
|
+
messages: messages$r
|
|
5543
5429
|
};
|
|
5544
5430
|
|
|
5545
5431
|
var title$f = "배송 주소를 입력하십시오.";
|
|
5546
5432
|
var titleGifting$1 = "주소를 입력하세요";
|
|
5547
5433
|
var selectAddressTitle$1 = "주소를 선택하십시오.";
|
|
5548
5434
|
var selectAddressSubtitle$1 = "저장된 주소에서 선택하거나 새 주소를 추가하십시오.";
|
|
5549
|
-
var labels$
|
|
5435
|
+
var labels$n = {
|
|
5550
5436
|
address: "주소",
|
|
5551
5437
|
code: "우편번호",
|
|
5552
5438
|
city: "도시",
|
|
@@ -5557,12 +5443,12 @@ var labels$p = {
|
|
|
5557
5443
|
required: "필수 항목",
|
|
5558
5444
|
isDefault: "기본값으로 설정"
|
|
5559
5445
|
};
|
|
5560
|
-
var buttons$
|
|
5446
|
+
var buttons$8 = {
|
|
5561
5447
|
submit: "제출",
|
|
5562
5448
|
selectAddress: "주소 선택",
|
|
5563
5449
|
addAddress: "새 주소 추가"
|
|
5564
5450
|
};
|
|
5565
|
-
var messages$
|
|
5451
|
+
var messages$q = {
|
|
5566
5452
|
addressUpdated: "주소가 성공적으로 업데이트되었습니다!",
|
|
5567
5453
|
subRedeemed: "귀하의 유료 멤버십이 사용되었습니다."
|
|
5568
5454
|
};
|
|
@@ -5571,9 +5457,9 @@ var address_ko = {
|
|
|
5571
5457
|
titleGifting: titleGifting$1,
|
|
5572
5458
|
selectAddressTitle: selectAddressTitle$1,
|
|
5573
5459
|
selectAddressSubtitle: selectAddressSubtitle$1,
|
|
5574
|
-
labels: labels$
|
|
5575
|
-
buttons: buttons$
|
|
5576
|
-
messages: messages$
|
|
5460
|
+
labels: labels$n,
|
|
5461
|
+
buttons: buttons$8,
|
|
5462
|
+
messages: messages$q
|
|
5577
5463
|
};
|
|
5578
5464
|
|
|
5579
5465
|
var title$e = "비밀번호 재설정";
|
|
@@ -5601,7 +5487,7 @@ var password$2 = "비밀번호";
|
|
|
5601
5487
|
var submit$6 = "제출";
|
|
5602
5488
|
var required$6 = "필수 항목";
|
|
5603
5489
|
var passwordResetEmailSent$1 = "비밀번호 재설정 안내가 귀하의 이메일로 발송되었습니다.";
|
|
5604
|
-
var messages$
|
|
5490
|
+
var messages$p = {
|
|
5605
5491
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5606
5492
|
loginHere: "여기에서 로그인하세요."
|
|
5607
5493
|
};
|
|
@@ -5612,7 +5498,7 @@ var passwordForgot_ko = {
|
|
|
5612
5498
|
submit: submit$6,
|
|
5613
5499
|
required: required$6,
|
|
5614
5500
|
passwordResetEmailSent: passwordResetEmailSent$1,
|
|
5615
|
-
messages: messages$
|
|
5501
|
+
messages: messages$p
|
|
5616
5502
|
};
|
|
5617
5503
|
|
|
5618
5504
|
var title$c = "비밀번호를 변경합니다.";
|
|
@@ -5640,7 +5526,7 @@ var title$b = "비밀번호 없는 로그인";
|
|
|
5640
5526
|
var email$3 = "이메일 입력";
|
|
5641
5527
|
var submit$4 = "제출";
|
|
5642
5528
|
var required$4 = "필수 항목";
|
|
5643
|
-
var messages$
|
|
5529
|
+
var messages$o = {
|
|
5644
5530
|
PasswordlessLoginSuccess: "비밀번호 없는 로그인으로 성공적으로 인증되었습니다."
|
|
5645
5531
|
};
|
|
5646
5532
|
var passwordlessRequest_ko = {
|
|
@@ -5648,7 +5534,7 @@ var passwordlessRequest_ko = {
|
|
|
5648
5534
|
email: email$3,
|
|
5649
5535
|
submit: submit$4,
|
|
5650
5536
|
required: required$4,
|
|
5651
|
-
messages: messages$
|
|
5537
|
+
messages: messages$o
|
|
5652
5538
|
};
|
|
5653
5539
|
|
|
5654
5540
|
var title$a = "귀하의 장바구니";
|
|
@@ -5676,13 +5562,13 @@ var cart_ko = {
|
|
|
5676
5562
|
removeAll: removeAll$1
|
|
5677
5563
|
};
|
|
5678
5564
|
|
|
5679
|
-
var buttons$
|
|
5565
|
+
var buttons$7 = {
|
|
5680
5566
|
select: "선택",
|
|
5681
5567
|
added: "장바구니에 추가",
|
|
5682
5568
|
purchase: "구매",
|
|
5683
5569
|
"continue": "계속"
|
|
5684
5570
|
};
|
|
5685
|
-
var messages$
|
|
5571
|
+
var messages$n = {
|
|
5686
5572
|
orderConfirmed: {
|
|
5687
5573
|
title: "주문이 확인되었습니다!",
|
|
5688
5574
|
body: "귀하의 주문이 확인되었으며 며칠 안에 배송될 예정입니다. 이 주문의 확인 이메일이 귀하에게 전송됩니다."
|
|
@@ -5691,17 +5577,17 @@ var messages$p = {
|
|
|
5691
5577
|
multipleCurrencies: "장바구니에 다른 통화로만 결제가 가능한 아이템이 있습니다. 결제를 계속 진행하려면 모든 아이템의 결제 통화가 동일한지 확인하십시오.",
|
|
5692
5578
|
currencyMismatch: "선택하신 아이템(들)이 귀하가 설정한 기본 통화({{currency}})와 일치하지 않습니다. 기본 통화와 일치하는 아이템(들)만 선택하십시오."
|
|
5693
5579
|
};
|
|
5694
|
-
var labels$
|
|
5580
|
+
var labels$m = {
|
|
5695
5581
|
summary: "주문 요약",
|
|
5696
5582
|
total: "총계"
|
|
5697
5583
|
};
|
|
5698
5584
|
var shop_ko = {
|
|
5699
|
-
buttons: buttons$
|
|
5700
|
-
messages: messages$
|
|
5701
|
-
labels: labels$
|
|
5585
|
+
buttons: buttons$7,
|
|
5586
|
+
messages: messages$n,
|
|
5587
|
+
labels: labels$m
|
|
5702
5588
|
};
|
|
5703
5589
|
|
|
5704
|
-
var labels$
|
|
5590
|
+
var labels$l = {
|
|
5705
5591
|
cardNumber: "카드 번호",
|
|
5706
5592
|
securityCode: "보안 코드",
|
|
5707
5593
|
submit: "제출",
|
|
@@ -5723,7 +5609,7 @@ var labels$n = {
|
|
|
5723
5609
|
title: "결제 정보"
|
|
5724
5610
|
}
|
|
5725
5611
|
};
|
|
5726
|
-
var messages$
|
|
5612
|
+
var messages$m = {
|
|
5727
5613
|
youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
|
|
5728
5614
|
cancel: "유료 멤버십은 언제든 온라인으로 취소가 가능합니다.",
|
|
5729
5615
|
giftSent: "유료 멤버십 선물이 ",
|
|
@@ -5737,12 +5623,12 @@ var errors$5 = {
|
|
|
5737
5623
|
"": ""
|
|
5738
5624
|
};
|
|
5739
5625
|
var payment_ko = {
|
|
5740
|
-
labels: labels$
|
|
5741
|
-
messages: messages$
|
|
5626
|
+
labels: labels$l,
|
|
5627
|
+
messages: messages$m,
|
|
5742
5628
|
errors: errors$5
|
|
5743
5629
|
};
|
|
5744
5630
|
|
|
5745
|
-
var labels$
|
|
5631
|
+
var labels$k = {
|
|
5746
5632
|
menu: "Pelcro 메뉴",
|
|
5747
5633
|
name: "이름",
|
|
5748
5634
|
email: "이메일",
|
|
@@ -5890,10 +5776,7 @@ var savedItems = {
|
|
|
5890
5776
|
var subCancellation = {
|
|
5891
5777
|
goBack: "뒤로 가기"
|
|
5892
5778
|
};
|
|
5893
|
-
var
|
|
5894
|
-
goBack: "뒤로 가기"
|
|
5895
|
-
};
|
|
5896
|
-
var messages$n = {
|
|
5779
|
+
var messages$l = {
|
|
5897
5780
|
noCard: "등록된 카드가 없습니다.",
|
|
5898
5781
|
subCancellation: {
|
|
5899
5782
|
isSureToCancel: "정말로 유료 멤버십을 취소하시겠습니까?",
|
|
@@ -5910,26 +5793,10 @@ var messages$n = {
|
|
|
5910
5793
|
loading: "구독 일시 중단 해제",
|
|
5911
5794
|
success: "구독이 성공적으로 일시 중단 해제되었습니다",
|
|
5912
5795
|
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: "구독 일시 중단을 해제하는 동안 오류가 발생했습니다."
|
|
5929
5796
|
}
|
|
5930
5797
|
};
|
|
5931
5798
|
var dashboard_ko = {
|
|
5932
|
-
labels: labels$
|
|
5799
|
+
labels: labels$k,
|
|
5933
5800
|
shipments: shipments,
|
|
5934
5801
|
logout: logout,
|
|
5935
5802
|
dashboard: dashboard$1,
|
|
@@ -5978,16 +5845,15 @@ var dashboard_ko = {
|
|
|
5978
5845
|
orders: orders,
|
|
5979
5846
|
savedItems: savedItems,
|
|
5980
5847
|
subCancellation: subCancellation,
|
|
5981
|
-
|
|
5982
|
-
messages: messages$n
|
|
5848
|
+
messages: messages$l
|
|
5983
5849
|
};
|
|
5984
5850
|
|
|
5985
|
-
var messages$
|
|
5851
|
+
var messages$k = {
|
|
5986
5852
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5987
5853
|
loginHere: "여기에서 로그인하세요.",
|
|
5988
5854
|
checkbox: "이 유료 멤버십을 선물하려면 체크하세요."
|
|
5989
5855
|
};
|
|
5990
|
-
var labels$
|
|
5856
|
+
var labels$j = {
|
|
5991
5857
|
plan: {
|
|
5992
5858
|
title: "요금제 가입하기",
|
|
5993
5859
|
subtitle: "아래 요금제 중 하나를 선택하고 다음을 클릭하세요."
|
|
@@ -6004,48 +5870,15 @@ var labels$l = {
|
|
|
6004
5870
|
or: "아래에서 다른 상품을 선택해주시기 바랍니다."
|
|
6005
5871
|
}
|
|
6006
5872
|
};
|
|
6007
|
-
var buttons$
|
|
5873
|
+
var buttons$6 = {
|
|
6008
5874
|
next: "다음",
|
|
6009
5875
|
select: "선택",
|
|
6010
5876
|
back: "뒤로"
|
|
6011
5877
|
};
|
|
6012
5878
|
var select_ko = {
|
|
6013
|
-
messages: messages$
|
|
6014
|
-
labels: labels$
|
|
6015
|
-
buttons: buttons$
|
|
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
|
|
5879
|
+
messages: messages$k,
|
|
5880
|
+
labels: labels$j,
|
|
5881
|
+
buttons: buttons$6
|
|
6049
5882
|
};
|
|
6050
5883
|
|
|
6051
5884
|
var confirm$3 = {
|
|
@@ -6058,46 +5891,46 @@ var notification_ko = {
|
|
|
6058
5891
|
confirm: confirm$3
|
|
6059
5892
|
};
|
|
6060
5893
|
|
|
6061
|
-
var labels$
|
|
5894
|
+
var labels$i = {
|
|
6062
5895
|
title: "이메일 주소를 인증하세요.",
|
|
6063
5896
|
instructions: "거의 완료되었습니다!\n이메일 주소만 인증하면 됩니다.\n다음 이메일 주소로 전송된 인증 링크를 클릭해 주십시오:",
|
|
6064
5897
|
resend: "이메일 재전송"
|
|
6065
5898
|
};
|
|
6066
|
-
var messages$
|
|
5899
|
+
var messages$j = {
|
|
6067
5900
|
resent: "재전송 완료",
|
|
6068
5901
|
success: "이메일 주소가 인증되었습니다!"
|
|
6069
5902
|
};
|
|
6070
5903
|
var verifyEmail_ko = {
|
|
6071
|
-
labels: labels$
|
|
6072
|
-
messages: messages$
|
|
5904
|
+
labels: labels$i,
|
|
5905
|
+
messages: messages$j
|
|
6073
5906
|
};
|
|
6074
5907
|
|
|
6075
5908
|
var title$9 = "인보이스 세부 정보";
|
|
6076
|
-
var labels$
|
|
5909
|
+
var labels$h = {
|
|
6077
5910
|
summary: "요약",
|
|
6078
5911
|
total: "총계",
|
|
6079
5912
|
amountPaid: "지불된 금액",
|
|
6080
5913
|
amountDue: "지불액",
|
|
6081
5914
|
creationDate: "생성일:"
|
|
6082
5915
|
};
|
|
6083
|
-
var buttons$
|
|
5916
|
+
var buttons$5 = {
|
|
6084
5917
|
download: "다운로드",
|
|
6085
5918
|
pay: "지금 지불"
|
|
6086
5919
|
};
|
|
6087
5920
|
var invoiceDetails_ko = {
|
|
6088
5921
|
title: title$9,
|
|
6089
|
-
labels: labels$
|
|
6090
|
-
buttons: buttons$
|
|
5922
|
+
labels: labels$h,
|
|
5923
|
+
buttons: buttons$5
|
|
6091
5924
|
};
|
|
6092
5925
|
|
|
6093
|
-
var labels$
|
|
5926
|
+
var labels$g = {
|
|
6094
5927
|
title: "구독 중단",
|
|
6095
5928
|
suspensionDate: "중단 날짜",
|
|
6096
5929
|
subCancellation: {
|
|
6097
5930
|
goBack: "돌아가기"
|
|
6098
5931
|
}
|
|
6099
5932
|
};
|
|
6100
|
-
var messages$
|
|
5933
|
+
var messages$i = {
|
|
6101
5934
|
suspensionEnd: "일시 중지가 만료되도록 설정되었습니다.",
|
|
6102
5935
|
suspendNow: "지금 구독 일시 중단",
|
|
6103
5936
|
suspendLater: "기간 종료 시 일시 중단",
|
|
@@ -6110,8 +5943,8 @@ var messages$j = {
|
|
|
6110
5943
|
}
|
|
6111
5944
|
};
|
|
6112
5945
|
var subscriptionSuspend_ko = {
|
|
6113
|
-
labels: labels$
|
|
6114
|
-
messages: messages$
|
|
5946
|
+
labels: labels$g,
|
|
5947
|
+
messages: messages$i
|
|
6115
5948
|
};
|
|
6116
5949
|
|
|
6117
5950
|
var validation = {
|
|
@@ -6123,7 +5956,7 @@ var validation = {
|
|
|
6123
5956
|
enterLastName: "El apellido es obligatorio.",
|
|
6124
5957
|
enterPhone: "El número de teléfono es obligatorio."
|
|
6125
5958
|
};
|
|
6126
|
-
var buttons$
|
|
5959
|
+
var buttons$4 = {
|
|
6127
5960
|
account: "Mi cuenta",
|
|
6128
5961
|
login: "Iniciar Sesión"
|
|
6129
5962
|
};
|
|
@@ -6200,7 +6033,7 @@ var confirm$2 = {
|
|
|
6200
6033
|
};
|
|
6201
6034
|
var common_es = {
|
|
6202
6035
|
validation: validation,
|
|
6203
|
-
buttons: buttons$
|
|
6036
|
+
buttons: buttons$4,
|
|
6204
6037
|
dashboard: dashboard,
|
|
6205
6038
|
select: select$1,
|
|
6206
6039
|
confirm: confirm$2
|
|
@@ -6231,7 +6064,7 @@ var paymentMethod_es = {
|
|
|
6231
6064
|
var title$8 = "Ingresa tu correo para suscribirte a nuestro boletín";
|
|
6232
6065
|
var updateTitle = "Actualizar selecciones del boletín";
|
|
6233
6066
|
var subtitle$3 = "Podríamos usar tu dirección de correo para otras comunicaciones de marketing";
|
|
6234
|
-
var labels$
|
|
6067
|
+
var labels$f = {
|
|
6235
6068
|
submit: "Enviar",
|
|
6236
6069
|
firstName: "Nombre",
|
|
6237
6070
|
lastName: "Apellido",
|
|
@@ -6239,7 +6072,7 @@ var labels$g = {
|
|
|
6239
6072
|
postalCode: "Código postal",
|
|
6240
6073
|
required: "obligatorio"
|
|
6241
6074
|
};
|
|
6242
|
-
var messages$
|
|
6075
|
+
var messages$h = {
|
|
6243
6076
|
alreadyHaveAccount: "¿Ya tienes una cuenta?",
|
|
6244
6077
|
success: "El boletín se actualizó con éxito",
|
|
6245
6078
|
loginHere: "Inicia sesión aquí.",
|
|
@@ -6250,14 +6083,14 @@ var newsletter_es = {
|
|
|
6250
6083
|
title: title$8,
|
|
6251
6084
|
updateTitle: updateTitle,
|
|
6252
6085
|
subtitle: subtitle$3,
|
|
6253
|
-
labels: labels$
|
|
6254
|
-
messages: messages$
|
|
6086
|
+
labels: labels$f,
|
|
6087
|
+
messages: messages$h
|
|
6255
6088
|
};
|
|
6256
6089
|
|
|
6257
|
-
var labels$
|
|
6090
|
+
var labels$e = {
|
|
6258
6091
|
"continue": "Continuar al contenido"
|
|
6259
6092
|
};
|
|
6260
|
-
var messages$
|
|
6093
|
+
var messages$g = {
|
|
6261
6094
|
yourFreeTrial: "¡Suscripción exitosa!",
|
|
6262
6095
|
youHaveAccess: "Esperamos que disfrutes de tu suscripción. Por favor, contáctanos si tienes alguna pregunta o inquietud.",
|
|
6263
6096
|
clickToLearn: {
|
|
@@ -6283,12 +6116,12 @@ var errors$4 = {
|
|
|
6283
6116
|
"": ""
|
|
6284
6117
|
};
|
|
6285
6118
|
var success_es = {
|
|
6286
|
-
labels: labels$
|
|
6287
|
-
messages: messages$
|
|
6119
|
+
labels: labels$e,
|
|
6120
|
+
messages: messages$g,
|
|
6288
6121
|
errors: errors$4
|
|
6289
6122
|
};
|
|
6290
6123
|
|
|
6291
|
-
var messages$
|
|
6124
|
+
var messages$f = {
|
|
6292
6125
|
freeVisits: "Visitas gratuitas restantes:",
|
|
6293
6126
|
subscribeNow: "Suscribir",
|
|
6294
6127
|
alreadyHaveAccount: "¿Ya tienes una cuenta?",
|
|
@@ -6298,16 +6131,16 @@ var errors$3 = {
|
|
|
6298
6131
|
"": ""
|
|
6299
6132
|
};
|
|
6300
6133
|
var meter_es = {
|
|
6301
|
-
messages: messages$
|
|
6134
|
+
messages: messages$f,
|
|
6302
6135
|
errors: errors$3
|
|
6303
6136
|
};
|
|
6304
6137
|
|
|
6305
|
-
var messages$
|
|
6138
|
+
var messages$e = {
|
|
6306
6139
|
youAreSafe: "Estás seguro - PCI compliance 128 SSL por",
|
|
6307
6140
|
bankRedirection: "Por favor, espera, estamos redireccionando a tu banco.",
|
|
6308
6141
|
bankAuthenticationSuccess: "Por favor, espera un momento mientras procesamos tu solicitud."
|
|
6309
6142
|
};
|
|
6310
|
-
var labels$
|
|
6143
|
+
var labels$d = {
|
|
6311
6144
|
card: "Ingresar número de tarjeta",
|
|
6312
6145
|
date: "Vencimiento",
|
|
6313
6146
|
CVC: "CVC",
|
|
@@ -6327,13 +6160,11 @@ var labels$e = {
|
|
|
6327
6160
|
firstName: "Nombre",
|
|
6328
6161
|
lastName: "Apellido",
|
|
6329
6162
|
phone: "Teléfono",
|
|
6330
|
-
freeItems: "Artículos gratis"
|
|
6331
|
-
email: "Correo",
|
|
6332
|
-
password: "Contraseña"
|
|
6163
|
+
freeItems: "Artículos gratis"
|
|
6333
6164
|
};
|
|
6334
6165
|
var checkoutForm_es = {
|
|
6335
|
-
messages: messages$
|
|
6336
|
-
labels: labels$
|
|
6166
|
+
messages: messages$e,
|
|
6167
|
+
labels: labels$d
|
|
6337
6168
|
};
|
|
6338
6169
|
|
|
6339
6170
|
var youAreSafe = "Estás seguro - PCI compliance 128 SSL por";
|
|
@@ -6355,7 +6186,7 @@ var messages_es = {
|
|
|
6355
6186
|
zeroTotalInvoice: zeroTotalInvoice
|
|
6356
6187
|
};
|
|
6357
6188
|
|
|
6358
|
-
var labels$
|
|
6189
|
+
var labels$c = {
|
|
6359
6190
|
email: "Ingresar correo",
|
|
6360
6191
|
password: "Ingresar contraseña",
|
|
6361
6192
|
required: "obligatorio",
|
|
@@ -6363,7 +6194,7 @@ var labels$d = {
|
|
|
6363
6194
|
passwordPlaceholder: "Contraseña",
|
|
6364
6195
|
login: "Iniciar Sesión"
|
|
6365
6196
|
};
|
|
6366
|
-
var messages$
|
|
6197
|
+
var messages$d = {
|
|
6367
6198
|
loginTo: "Inicia sesión en tu cuenta",
|
|
6368
6199
|
welcome: "Bienvenido de vuelta, inicia sesión con tu cuenta existente.",
|
|
6369
6200
|
dontHaveAccount: "¿Aún no tienes una cuenta?",
|
|
@@ -6382,28 +6213,28 @@ var errors$2 = {
|
|
|
6382
6213
|
"": ""
|
|
6383
6214
|
};
|
|
6384
6215
|
var login_es = {
|
|
6385
|
-
labels: labels$
|
|
6386
|
-
messages: messages$
|
|
6216
|
+
labels: labels$c,
|
|
6217
|
+
messages: messages$d,
|
|
6387
6218
|
errors: errors$2
|
|
6388
6219
|
};
|
|
6389
6220
|
|
|
6390
|
-
var labels$
|
|
6221
|
+
var labels$b = {
|
|
6391
6222
|
title: "Verificando Enlace Sin Contraseña",
|
|
6392
6223
|
instructions: "¡Ya casi terminas!\nVamos a confirmar tu dirección de correo.\nPulsa el enlace de verificación que hemos enviado a tu correo:",
|
|
6393
6224
|
resend: "Reenviar correo"
|
|
6394
6225
|
};
|
|
6395
|
-
var messages$
|
|
6226
|
+
var messages$c = {
|
|
6396
6227
|
resent: "Reenvío exitoso",
|
|
6397
6228
|
success: "Inicio de sesión exitoso"
|
|
6398
6229
|
};
|
|
6399
6230
|
var verifyLinkToken_es = {
|
|
6400
|
-
labels: labels$
|
|
6401
|
-
messages: messages$
|
|
6231
|
+
labels: labels$b,
|
|
6232
|
+
messages: messages$c
|
|
6402
6233
|
};
|
|
6403
6234
|
|
|
6404
6235
|
var title$7 = "Crear una cuenta";
|
|
6405
6236
|
var subtitle$2 = "Ingresa tu correo y contraseña a continuación";
|
|
6406
|
-
var labels$
|
|
6237
|
+
var labels$a = {
|
|
6407
6238
|
signUpFacebook: "Regístrate con Facebook",
|
|
6408
6239
|
signUpGoogle: "Regístrate con Google",
|
|
6409
6240
|
signUpEmail: "Regístrate con Correo",
|
|
@@ -6416,7 +6247,7 @@ var labels$b = {
|
|
|
6416
6247
|
lastName: "Apellido",
|
|
6417
6248
|
phone: "Teléfono"
|
|
6418
6249
|
};
|
|
6419
|
-
var messages$
|
|
6250
|
+
var messages$b = {
|
|
6420
6251
|
alreadyHaveAccount: " ¿Ya tienes una cuenta?",
|
|
6421
6252
|
createAccount: "Crear cuenta",
|
|
6422
6253
|
loginHere: "inicia sesión aquí",
|
|
@@ -6462,8 +6293,7 @@ var gift = {
|
|
|
6462
6293
|
enterEmail: "Por favor, ingresa el correo del destinatario del regalo",
|
|
6463
6294
|
invalidDate: "La fecha del regalo debe ser entre hoy y un año a partir de ahora.",
|
|
6464
6295
|
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.",
|
|
6465
|
-
giftMessageInfo: "Deja un mensaje para el destinatario y no olvides firmar con tu nombre."
|
|
6466
|
-
giftMessageAllowedCharacters: "No se permiten caracteres especiales ni emojis."
|
|
6296
|
+
giftMessageInfo: "Deja un mensaje para el destinatario y no olvides firmar con tu nombre."
|
|
6467
6297
|
}
|
|
6468
6298
|
};
|
|
6469
6299
|
var redeem = {
|
|
@@ -6491,14 +6321,14 @@ var redeem = {
|
|
|
6491
6321
|
var register_es = {
|
|
6492
6322
|
title: title$7,
|
|
6493
6323
|
subtitle: subtitle$2,
|
|
6494
|
-
labels: labels$
|
|
6495
|
-
messages: messages$
|
|
6324
|
+
labels: labels$a,
|
|
6325
|
+
messages: messages$b,
|
|
6496
6326
|
errors: errors$1,
|
|
6497
6327
|
gift: gift,
|
|
6498
6328
|
redeem: redeem
|
|
6499
6329
|
};
|
|
6500
6330
|
|
|
6501
|
-
var labels$
|
|
6331
|
+
var labels$9 = {
|
|
6502
6332
|
title: "¿Quieres actualizar tu perfil?",
|
|
6503
6333
|
subtitle: "Ingresa tu información a continuación para actualizar tu perfil",
|
|
6504
6334
|
email: "Correo",
|
|
@@ -6517,21 +6347,21 @@ var labels$a = {
|
|
|
6517
6347
|
zoom: "Acercar",
|
|
6518
6348
|
tin: "Número de Identificación Fiscal"
|
|
6519
6349
|
};
|
|
6520
|
-
var messages$
|
|
6350
|
+
var messages$a = {
|
|
6521
6351
|
userUpdated: "¡Gracias! Tu perfil se actualizó con éxito.",
|
|
6522
6352
|
pictureRemoved: "Tu foto de perfil se eliminó con éxito.",
|
|
6523
6353
|
pictureUpdated: "Tu foto de perfil se actualizó con éxito."
|
|
6524
6354
|
};
|
|
6525
6355
|
var userEdit_es = {
|
|
6526
|
-
labels: labels$
|
|
6527
|
-
messages: messages$
|
|
6356
|
+
labels: labels$9,
|
|
6357
|
+
messages: messages$a
|
|
6528
6358
|
};
|
|
6529
6359
|
|
|
6530
6360
|
var title$6 = "Ingresa tu dirección de envío";
|
|
6531
6361
|
var titleGifting = "Introduce tu dirección";
|
|
6532
6362
|
var selectAddressTitle = "Por favor, selecciona una dirección";
|
|
6533
6363
|
var selectAddressSubtitle = "Selecciona una de tus direcciones guardadas o añade una nueva";
|
|
6534
|
-
var labels$
|
|
6364
|
+
var labels$8 = {
|
|
6535
6365
|
address: "Dirección",
|
|
6536
6366
|
code: "Código Postal/Área",
|
|
6537
6367
|
city: "Ciudad",
|
|
@@ -6542,12 +6372,12 @@ var labels$9 = {
|
|
|
6542
6372
|
required: "obligatorio",
|
|
6543
6373
|
isDefault: "Configurar como dirección Principal"
|
|
6544
6374
|
};
|
|
6545
|
-
var buttons$
|
|
6375
|
+
var buttons$3 = {
|
|
6546
6376
|
submit: "Enviar",
|
|
6547
6377
|
selectAddress: "Seleccionar dirección",
|
|
6548
6378
|
addAddress: "Añadir nueva dirección"
|
|
6549
6379
|
};
|
|
6550
|
-
var messages$
|
|
6380
|
+
var messages$9 = {
|
|
6551
6381
|
addressUpdated: "¡La dirección se actualizó con éxito!",
|
|
6552
6382
|
subRedeemed: "Tu suscripción ha sido redimida."
|
|
6553
6383
|
};
|
|
@@ -6556,9 +6386,9 @@ var address_es = {
|
|
|
6556
6386
|
titleGifting: titleGifting,
|
|
6557
6387
|
selectAddressTitle: selectAddressTitle,
|
|
6558
6388
|
selectAddressSubtitle: selectAddressSubtitle,
|
|
6559
|
-
labels: labels$
|
|
6560
|
-
buttons: buttons$
|
|
6561
|
-
messages: messages$
|
|
6389
|
+
labels: labels$8,
|
|
6390
|
+
buttons: buttons$3,
|
|
6391
|
+
messages: messages$9
|
|
6562
6392
|
};
|
|
6563
6393
|
|
|
6564
6394
|
var title$5 = "Restablecer tu contraseña";
|
|
@@ -6586,7 +6416,7 @@ var password = "Contraseña";
|
|
|
6586
6416
|
var submit$2 = "Enviar";
|
|
6587
6417
|
var required$2 = "Obligatorio";
|
|
6588
6418
|
var passwordResetEmailSent = "Las instrucciones de restablecimiento de la contraseña se han enviado a tu correo";
|
|
6589
|
-
var messages$
|
|
6419
|
+
var messages$8 = {
|
|
6590
6420
|
alreadyHaveAccount: "¿Ya tienes una cuenta?",
|
|
6591
6421
|
loginHere: "Inicia sesión aquí."
|
|
6592
6422
|
};
|
|
@@ -6597,7 +6427,7 @@ var passwordForgot_es = {
|
|
|
6597
6427
|
submit: submit$2,
|
|
6598
6428
|
required: required$2,
|
|
6599
6429
|
passwordResetEmailSent: passwordResetEmailSent,
|
|
6600
|
-
messages: messages$
|
|
6430
|
+
messages: messages$8
|
|
6601
6431
|
};
|
|
6602
6432
|
|
|
6603
6433
|
var title$3 = "Cambiar tu contraseña";
|
|
@@ -6625,7 +6455,7 @@ var title$2 = "Acceso sin contraseña";
|
|
|
6625
6455
|
var email = "Ingresar correo";
|
|
6626
6456
|
var submit = "Enviar";
|
|
6627
6457
|
var required = "obligatorio";
|
|
6628
|
-
var messages$
|
|
6458
|
+
var messages$7 = {
|
|
6629
6459
|
PasswordlessLoginSuccess: "Por favor, revisa tu correo y sigue las instrucciones que se indican"
|
|
6630
6460
|
};
|
|
6631
6461
|
var passwordlessRequest_es = {
|
|
@@ -6633,7 +6463,7 @@ var passwordlessRequest_es = {
|
|
|
6633
6463
|
email: email,
|
|
6634
6464
|
submit: submit,
|
|
6635
6465
|
required: required,
|
|
6636
|
-
messages: messages$
|
|
6466
|
+
messages: messages$7
|
|
6637
6467
|
};
|
|
6638
6468
|
|
|
6639
6469
|
var title$1 = "Tu carrito de compras";
|
|
@@ -6661,13 +6491,13 @@ var cart_es = {
|
|
|
6661
6491
|
removeAll: removeAll
|
|
6662
6492
|
};
|
|
6663
6493
|
|
|
6664
|
-
var buttons$
|
|
6494
|
+
var buttons$2 = {
|
|
6665
6495
|
select: "Seleccionar",
|
|
6666
6496
|
added: "Añadido al carrito",
|
|
6667
6497
|
purchase: "Compra",
|
|
6668
6498
|
"continue": "Continuar"
|
|
6669
6499
|
};
|
|
6670
|
-
var messages$
|
|
6500
|
+
var messages$6 = {
|
|
6671
6501
|
orderConfirmed: {
|
|
6672
6502
|
title: "¡Orden confirmada!",
|
|
6673
6503
|
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."
|
|
@@ -6676,17 +6506,17 @@ var messages$7 = {
|
|
|
6676
6506
|
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.",
|
|
6677
6507
|
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."
|
|
6678
6508
|
};
|
|
6679
|
-
var labels$
|
|
6509
|
+
var labels$7 = {
|
|
6680
6510
|
summary: "Resumen de la orden",
|
|
6681
6511
|
total: "total"
|
|
6682
6512
|
};
|
|
6683
6513
|
var shop_es = {
|
|
6684
|
-
buttons: buttons$
|
|
6685
|
-
messages: messages$
|
|
6686
|
-
labels: labels$
|
|
6514
|
+
buttons: buttons$2,
|
|
6515
|
+
messages: messages$6,
|
|
6516
|
+
labels: labels$7
|
|
6687
6517
|
};
|
|
6688
6518
|
|
|
6689
|
-
var labels$
|
|
6519
|
+
var labels$6 = {
|
|
6690
6520
|
cardNumber: "Número de Tarjeta",
|
|
6691
6521
|
securityCode: "Código de Seguridad",
|
|
6692
6522
|
submit: "Enviar",
|
|
@@ -6708,7 +6538,7 @@ var labels$7 = {
|
|
|
6708
6538
|
title: "Información de Pago"
|
|
6709
6539
|
}
|
|
6710
6540
|
};
|
|
6711
|
-
var messages$
|
|
6541
|
+
var messages$5 = {
|
|
6712
6542
|
youAreSafe: "Estás seguro - PCI compliance 128 SSL por",
|
|
6713
6543
|
cancel: "Cancela tu suscripción en línea en cualquier momento.",
|
|
6714
6544
|
giftSent: "La suscripción de regalo se ha enviado a",
|
|
@@ -6722,12 +6552,12 @@ var errors = {
|
|
|
6722
6552
|
"": ""
|
|
6723
6553
|
};
|
|
6724
6554
|
var payment_es = {
|
|
6725
|
-
labels: labels$
|
|
6726
|
-
messages: messages$
|
|
6555
|
+
labels: labels$6,
|
|
6556
|
+
messages: messages$5,
|
|
6727
6557
|
errors: errors
|
|
6728
6558
|
};
|
|
6729
6559
|
|
|
6730
|
-
var labels$
|
|
6560
|
+
var labels$5 = {
|
|
6731
6561
|
menu: "Menú de Pelcro",
|
|
6732
6562
|
name: "Nombre",
|
|
6733
6563
|
email: "Correo",
|
|
@@ -6812,12 +6642,9 @@ var labels$6 = {
|
|
|
6812
6642
|
},
|
|
6813
6643
|
subCancellation: {
|
|
6814
6644
|
goBack: "Volver"
|
|
6815
|
-
},
|
|
6816
|
-
donationCancellation: {
|
|
6817
|
-
goBack: "Go back"
|
|
6818
6645
|
}
|
|
6819
6646
|
};
|
|
6820
|
-
var messages$
|
|
6647
|
+
var messages$4 = {
|
|
6821
6648
|
noCard: "No tienes una tarjeta",
|
|
6822
6649
|
subCancellation: {
|
|
6823
6650
|
isSureToCancel: "¿Estás seguro de que quieres cancelar tu suscripción?",
|
|
@@ -6834,60 +6661,11 @@ var messages$5 = {
|
|
|
6834
6661
|
loading: "Reanudando tu suscripción",
|
|
6835
6662
|
success: "La suscripción se reanudó con éxito",
|
|
6836
6663
|
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"
|
|
6853
6664
|
}
|
|
6854
6665
|
};
|
|
6855
6666
|
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,
|
|
6889
6667
|
labels: labels$5,
|
|
6890
|
-
|
|
6668
|
+
messages: messages$4
|
|
6891
6669
|
};
|
|
6892
6670
|
|
|
6893
6671
|
var messages$3 = {
|
|
@@ -6917,7 +6695,7 @@ var buttons$1 = {
|
|
|
6917
6695
|
select: "Seleccionar",
|
|
6918
6696
|
back: "Volver"
|
|
6919
6697
|
};
|
|
6920
|
-
var
|
|
6698
|
+
var select_es = {
|
|
6921
6699
|
messages: messages$3,
|
|
6922
6700
|
labels: labels$4,
|
|
6923
6701
|
buttons: buttons$1
|
|
@@ -9298,9 +9076,6 @@ const initialState$n = {
|
|
|
9298
9076
|
giftCode: "",
|
|
9299
9077
|
subscriptionIdToRenew: null,
|
|
9300
9078
|
subscriptionToManageMembers: null,
|
|
9301
|
-
isDonation: false,
|
|
9302
|
-
selectedDonationAmount: null,
|
|
9303
|
-
customDonationAmount: null,
|
|
9304
9079
|
// E-commerce
|
|
9305
9080
|
cartItems: [],
|
|
9306
9081
|
order: null,
|
|
@@ -9490,7 +9265,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
|
|
|
9490
9265
|
* @return {boolean}
|
|
9491
9266
|
*/
|
|
9492
9267
|
const isValidViewFromURL = viewID => {
|
|
9493
|
-
if (["login", "register", "plan-select", "
|
|
9268
|
+
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()) {
|
|
9494
9269
|
return true;
|
|
9495
9270
|
}
|
|
9496
9271
|
return false;
|
|
@@ -9697,24 +9472,6 @@ function notifyBugsnag(callback, startOptions) {
|
|
|
9697
9472
|
callback();
|
|
9698
9473
|
}
|
|
9699
9474
|
|
|
9700
|
-
//create a safe and strong password string with special characters
|
|
9701
|
-
function generatePassword() {
|
|
9702
|
-
const length = 16;
|
|
9703
|
-
const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+{}|:<>?`~";
|
|
9704
|
-
let retVal = "";
|
|
9705
|
-
for (let i = 0, n = charset.length; i < length; ++i) {
|
|
9706
|
-
retVal += charset.charAt(Math.floor(Math.random() * n));
|
|
9707
|
-
}
|
|
9708
|
-
return retVal;
|
|
9709
|
-
}
|
|
9710
|
-
function isStringValid(str) {
|
|
9711
|
-
// Define the regular expression to match only letters, numbers and spaces
|
|
9712
|
-
var regex = /^(?:[\p{L}\p{N}\p{Pc}\p{Zs}\n]+$|^[\\\p{Script=Hangul}\p{Pc}\p{Zs}\n]+)$/mu;
|
|
9713
|
-
|
|
9714
|
-
// Test the string against the regular expression
|
|
9715
|
-
return regex.test(str);
|
|
9716
|
-
}
|
|
9717
|
-
|
|
9718
9475
|
const resources = {
|
|
9719
9476
|
en: {
|
|
9720
9477
|
common: common_en,
|
|
@@ -9739,7 +9496,6 @@ const resources = {
|
|
|
9739
9496
|
payment: payment_en,
|
|
9740
9497
|
dashboard: dashboard_en,
|
|
9741
9498
|
select: select_en,
|
|
9742
|
-
donation: donation_en,
|
|
9743
9499
|
notification: notification_en,
|
|
9744
9500
|
invoiceDetails: invoiceDetails_en,
|
|
9745
9501
|
subscriptionCancel: subscriptionCancel_en,
|
|
@@ -9769,7 +9525,6 @@ const resources = {
|
|
|
9769
9525
|
payment: payment_fr,
|
|
9770
9526
|
dashboard: dashboard_fr,
|
|
9771
9527
|
select: select_fr,
|
|
9772
|
-
donation: donation_fr,
|
|
9773
9528
|
notification: notification_fr,
|
|
9774
9529
|
invoiceDetails: invoiceDetails_fr,
|
|
9775
9530
|
subscriptionCancel: subscriptionCancel_fr,
|
|
@@ -9799,7 +9554,6 @@ const resources = {
|
|
|
9799
9554
|
payment: payment_ko,
|
|
9800
9555
|
dashboard: dashboard_ko,
|
|
9801
9556
|
select: select_ko,
|
|
9802
|
-
donation: donation_ko,
|
|
9803
9557
|
notification: notification_ko,
|
|
9804
9558
|
invoiceDetails: invoiceDetails_ko,
|
|
9805
9559
|
subscriptionCancel: subscriptionCancel_ko,
|
|
@@ -9829,7 +9583,6 @@ const resources = {
|
|
|
9829
9583
|
payment: payment_es,
|
|
9830
9584
|
dashboard: dashboard_es,
|
|
9831
9585
|
select: select_es,
|
|
9832
|
-
donation: donation_es,
|
|
9833
9586
|
notification: notification_es,
|
|
9834
9587
|
invoiceDetails: invoiceDetails_es,
|
|
9835
9588
|
subscriptionCancel: subscriptionCancel_es,
|
|
@@ -9865,175 +9618,6 @@ pageLanguageObserver.observe(document.documentElement, {
|
|
|
9865
9618
|
attributes: true
|
|
9866
9619
|
});
|
|
9867
9620
|
|
|
9868
|
-
var pure$1 = createCommonjsModule(function (module, exports) {
|
|
9869
|
-
|
|
9870
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9871
|
-
|
|
9872
|
-
function _typeof(obj) {
|
|
9873
|
-
"@babel/helpers - typeof";
|
|
9874
|
-
|
|
9875
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
9876
|
-
_typeof = function (obj) {
|
|
9877
|
-
return typeof obj;
|
|
9878
|
-
};
|
|
9879
|
-
} else {
|
|
9880
|
-
_typeof = function (obj) {
|
|
9881
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
9882
|
-
};
|
|
9883
|
-
}
|
|
9884
|
-
|
|
9885
|
-
return _typeof(obj);
|
|
9886
|
-
}
|
|
9887
|
-
|
|
9888
|
-
var V3_URL = 'https://js.stripe.com/v3';
|
|
9889
|
-
var V3_URL_REGEX = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;
|
|
9890
|
-
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';
|
|
9891
|
-
var findScript = function findScript() {
|
|
9892
|
-
var scripts = document.querySelectorAll("script[src^=\"".concat(V3_URL, "\"]"));
|
|
9893
|
-
|
|
9894
|
-
for (var i = 0; i < scripts.length; i++) {
|
|
9895
|
-
var script = scripts[i];
|
|
9896
|
-
|
|
9897
|
-
if (!V3_URL_REGEX.test(script.src)) {
|
|
9898
|
-
continue;
|
|
9899
|
-
}
|
|
9900
|
-
|
|
9901
|
-
return script;
|
|
9902
|
-
}
|
|
9903
|
-
|
|
9904
|
-
return null;
|
|
9905
|
-
};
|
|
9906
|
-
|
|
9907
|
-
var injectScript = function injectScript(params) {
|
|
9908
|
-
var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';
|
|
9909
|
-
var script = document.createElement('script');
|
|
9910
|
-
script.src = "".concat(V3_URL).concat(queryString);
|
|
9911
|
-
var headOrBody = document.head || document.body;
|
|
9912
|
-
|
|
9913
|
-
if (!headOrBody) {
|
|
9914
|
-
throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');
|
|
9915
|
-
}
|
|
9916
|
-
|
|
9917
|
-
headOrBody.appendChild(script);
|
|
9918
|
-
return script;
|
|
9919
|
-
};
|
|
9920
|
-
|
|
9921
|
-
var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
9922
|
-
if (!stripe || !stripe._registerWrapper) {
|
|
9923
|
-
return;
|
|
9924
|
-
}
|
|
9925
|
-
|
|
9926
|
-
stripe._registerWrapper({
|
|
9927
|
-
name: 'stripe-js',
|
|
9928
|
-
version: "1.21.1",
|
|
9929
|
-
startTime: startTime
|
|
9930
|
-
});
|
|
9931
|
-
};
|
|
9932
|
-
|
|
9933
|
-
var stripePromise = null;
|
|
9934
|
-
var loadScript = function loadScript(params) {
|
|
9935
|
-
// Ensure that we only attempt to load Stripe.js at most once
|
|
9936
|
-
if (stripePromise !== null) {
|
|
9937
|
-
return stripePromise;
|
|
9938
|
-
}
|
|
9939
|
-
|
|
9940
|
-
stripePromise = new Promise(function (resolve, reject) {
|
|
9941
|
-
if (typeof window === 'undefined') {
|
|
9942
|
-
// Resolve to null when imported server side. This makes the module
|
|
9943
|
-
// safe to import in an isomorphic code base.
|
|
9944
|
-
resolve(null);
|
|
9945
|
-
return;
|
|
9946
|
-
}
|
|
9947
|
-
|
|
9948
|
-
if (window.Stripe && params) {
|
|
9949
|
-
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
9950
|
-
}
|
|
9951
|
-
|
|
9952
|
-
if (window.Stripe) {
|
|
9953
|
-
resolve(window.Stripe);
|
|
9954
|
-
return;
|
|
9955
|
-
}
|
|
9956
|
-
|
|
9957
|
-
try {
|
|
9958
|
-
var script = findScript();
|
|
9959
|
-
|
|
9960
|
-
if (script && params) {
|
|
9961
|
-
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
9962
|
-
} else if (!script) {
|
|
9963
|
-
script = injectScript(params);
|
|
9964
|
-
}
|
|
9965
|
-
|
|
9966
|
-
script.addEventListener('load', function () {
|
|
9967
|
-
if (window.Stripe) {
|
|
9968
|
-
resolve(window.Stripe);
|
|
9969
|
-
} else {
|
|
9970
|
-
reject(new Error('Stripe.js not available'));
|
|
9971
|
-
}
|
|
9972
|
-
});
|
|
9973
|
-
script.addEventListener('error', function () {
|
|
9974
|
-
reject(new Error('Failed to load Stripe.js'));
|
|
9975
|
-
});
|
|
9976
|
-
} catch (error) {
|
|
9977
|
-
reject(error);
|
|
9978
|
-
return;
|
|
9979
|
-
}
|
|
9980
|
-
});
|
|
9981
|
-
return stripePromise;
|
|
9982
|
-
};
|
|
9983
|
-
var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
9984
|
-
if (maybeStripe === null) {
|
|
9985
|
-
return null;
|
|
9986
|
-
}
|
|
9987
|
-
|
|
9988
|
-
var stripe = maybeStripe.apply(undefined, args);
|
|
9989
|
-
registerWrapper(stripe, startTime);
|
|
9990
|
-
return stripe;
|
|
9991
|
-
};
|
|
9992
|
-
var validateLoadParams = function validateLoadParams(params) {
|
|
9993
|
-
var errorMessage = "invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(params), "\n");
|
|
9994
|
-
|
|
9995
|
-
if (params === null || _typeof(params) !== 'object') {
|
|
9996
|
-
throw new Error(errorMessage);
|
|
9997
|
-
}
|
|
9998
|
-
|
|
9999
|
-
if (Object.keys(params).length === 1 && typeof params.advancedFraudSignals === 'boolean') {
|
|
10000
|
-
return params;
|
|
10001
|
-
}
|
|
10002
|
-
|
|
10003
|
-
throw new Error(errorMessage);
|
|
10004
|
-
};
|
|
10005
|
-
|
|
10006
|
-
var loadParams;
|
|
10007
|
-
var loadStripeCalled = false;
|
|
10008
|
-
var loadStripe = function loadStripe() {
|
|
10009
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10010
|
-
args[_key] = arguments[_key];
|
|
10011
|
-
}
|
|
10012
|
-
|
|
10013
|
-
loadStripeCalled = true;
|
|
10014
|
-
var startTime = Date.now();
|
|
10015
|
-
return loadScript(loadParams).then(function (maybeStripe) {
|
|
10016
|
-
return initStripe(maybeStripe, args, startTime);
|
|
10017
|
-
});
|
|
10018
|
-
};
|
|
10019
|
-
|
|
10020
|
-
loadStripe.setLoadParameters = function (params) {
|
|
10021
|
-
if (loadStripeCalled) {
|
|
10022
|
-
throw new Error('You cannot change load parameters after calling loadStripe');
|
|
10023
|
-
}
|
|
10024
|
-
|
|
10025
|
-
loadParams = validateLoadParams(params);
|
|
10026
|
-
};
|
|
10027
|
-
|
|
10028
|
-
exports.loadStripe = loadStripe;
|
|
10029
|
-
});
|
|
10030
|
-
|
|
10031
|
-
unwrapExports(pure$1);
|
|
10032
|
-
pure$1.loadStripe;
|
|
10033
|
-
|
|
10034
|
-
var pure = pure$1;
|
|
10035
|
-
var pure_1 = pure.loadStripe;
|
|
10036
|
-
|
|
10037
9621
|
function _classPrivateFieldGet(receiver, privateMap) {
|
|
10038
9622
|
var descriptor = privateMap.get(receiver);
|
|
10039
9623
|
|
|
@@ -11211,7 +10795,7 @@ toast.confirm = function (onConfirm, _ref3) {
|
|
|
11211
10795
|
...options
|
|
11212
10796
|
});
|
|
11213
10797
|
setTimeout(() => {
|
|
11214
|
-
notify.dismiss(id);
|
|
10798
|
+
notify$1.dismiss(id);
|
|
11215
10799
|
}, 3000);
|
|
11216
10800
|
};
|
|
11217
10801
|
const onFailure = errorValue => {
|
|
@@ -11220,11 +10804,11 @@ toast.confirm = function (onConfirm, _ref3) {
|
|
|
11220
10804
|
...options
|
|
11221
10805
|
});
|
|
11222
10806
|
setTimeout(() => {
|
|
11223
|
-
notify.dismiss(id);
|
|
10807
|
+
notify$1.dismiss(id);
|
|
11224
10808
|
}, 3000);
|
|
11225
10809
|
};
|
|
11226
10810
|
};
|
|
11227
|
-
const notify = toast;
|
|
10811
|
+
const notify$1 = toast;
|
|
11228
10812
|
|
|
11229
10813
|
const translations = i18next.t("common:buttons", {
|
|
11230
10814
|
returnObjects: true
|
|
@@ -11285,7 +10869,7 @@ const init$1 = () => {
|
|
|
11285
10869
|
const errorMessage = i18next.t("messages:invalidSubscription", {
|
|
11286
10870
|
returnObjects: true
|
|
11287
10871
|
});
|
|
11288
|
-
return notify.error(errorMessage);
|
|
10872
|
+
return notify$1.error(errorMessage);
|
|
11289
10873
|
}
|
|
11290
10874
|
switchView("manage-members");
|
|
11291
10875
|
});
|
|
@@ -11293,7 +10877,7 @@ const init$1 = () => {
|
|
|
11293
10877
|
const errorMessage = i18next.t("messages:invalidSubscription", {
|
|
11294
10878
|
returnObjects: true
|
|
11295
10879
|
});
|
|
11296
|
-
return notify.error(errorMessage);
|
|
10880
|
+
return notify$1.error(errorMessage);
|
|
11297
10881
|
}
|
|
11298
10882
|
}
|
|
11299
10883
|
}
|
|
@@ -11351,57 +10935,6 @@ const init$1 = () => {
|
|
|
11351
10935
|
}
|
|
11352
10936
|
}
|
|
11353
10937
|
}
|
|
11354
|
-
const pelcroDonateButtonsByClass = document.getElementsByClassName("pelcro-donate-button");
|
|
11355
|
-
if (pelcroDonateButtonsByClass.length !== 0) {
|
|
11356
|
-
for (let j = 0; j < pelcroDonateButtonsByClass.length; j++) {
|
|
11357
|
-
if (pelcroDonateButtonsByClass[j].dataset && "productId" in pelcroDonateButtonsByClass[j].dataset) {
|
|
11358
|
-
pelcroDonateButtonsByClass[j].addEventListener("click", e => {
|
|
11359
|
-
var _selectedProduct$plan2;
|
|
11360
|
-
set({
|
|
11361
|
-
isDonation: true
|
|
11362
|
-
});
|
|
11363
|
-
const productsList = window.Pelcro.product.list();
|
|
11364
|
-
if (!(productsList !== null && productsList !== void 0 && productsList.length)) return;
|
|
11365
|
-
const [productId, planId, isGift] = [e.target.dataset.productId, e.target.dataset.planId, e.target.dataset.isGift];
|
|
11366
|
-
const selectedProduct = productsList.find(product => product.id === Number(productId));
|
|
11367
|
-
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));
|
|
11368
|
-
set({
|
|
11369
|
-
product: selectedProduct,
|
|
11370
|
-
plan: selectedPlan,
|
|
11371
|
-
isGift: Boolean(isGift)
|
|
11372
|
-
});
|
|
11373
|
-
if (!selectedProduct || !selectedPlan) {
|
|
11374
|
-
return switchView("plan-select");
|
|
11375
|
-
}
|
|
11376
|
-
|
|
11377
|
-
// if (!isAuthenticated()) {
|
|
11378
|
-
// return switchView("register");
|
|
11379
|
-
// }
|
|
11380
|
-
|
|
11381
|
-
if (isGift) {
|
|
11382
|
-
return switchView("gift-create");
|
|
11383
|
-
}
|
|
11384
|
-
|
|
11385
|
-
// const requiresAddress = Boolean(
|
|
11386
|
-
// selectedProduct.address_required
|
|
11387
|
-
// );
|
|
11388
|
-
|
|
11389
|
-
// if (requiresAddress) {
|
|
11390
|
-
// return switchToAddressView();
|
|
11391
|
-
// }
|
|
11392
|
-
|
|
11393
|
-
return switchToPaymentView();
|
|
11394
|
-
});
|
|
11395
|
-
} else {
|
|
11396
|
-
pelcroDonateButtonsByClass[j].addEventListener("click", () => {
|
|
11397
|
-
set({
|
|
11398
|
-
isDonation: true
|
|
11399
|
-
});
|
|
11400
|
-
switchView("donation-select");
|
|
11401
|
-
});
|
|
11402
|
-
}
|
|
11403
|
-
}
|
|
11404
|
-
}
|
|
11405
10938
|
const pelcroOfflineSubButtonsByClass = document.getElementsByClassName("pelcro-offline-subscribe-button");
|
|
11406
10939
|
if (pelcroOfflineSubButtonsByClass.length !== 0) {
|
|
11407
10940
|
for (let j = 0; j < pelcroOfflineSubButtonsByClass.length; j++) {
|
|
@@ -11481,7 +11014,7 @@ const init$1 = () => {
|
|
|
11481
11014
|
const errorMsg = i18next.t("shop:messages.currencyMismatch", {
|
|
11482
11015
|
currency: userCurrency
|
|
11483
11016
|
});
|
|
11484
|
-
notify.error(errorMsg);
|
|
11017
|
+
notify$1.error(errorMsg);
|
|
11485
11018
|
}
|
|
11486
11019
|
});
|
|
11487
11020
|
}
|
|
@@ -11574,7 +11107,7 @@ const init = () => {
|
|
|
11574
11107
|
unblurElemWhenUserLogsIn(elemDeepClone, entitlements);
|
|
11575
11108
|
unblurElemWhenUserLogsOut(elemDeepClone, entitlements);
|
|
11576
11109
|
const NOTIFICATION_ID = "entitlement";
|
|
11577
|
-
notify( /*#__PURE__*/React__default['default'].createElement("p", null, /*#__PURE__*/React__default['default'].createElement(Trans, {
|
|
11110
|
+
notify$1( /*#__PURE__*/React__default['default'].createElement("p", null, /*#__PURE__*/React__default['default'].createElement(Trans, {
|
|
11578
11111
|
i18nKey: "messages:entitlement"
|
|
11579
11112
|
}, "Some of the content on this page is available with one or more of our plans.", /*#__PURE__*/React__default['default'].createElement(Link, {
|
|
11580
11113
|
onClick: () => {
|
|
@@ -11589,7 +11122,7 @@ const init = () => {
|
|
|
11589
11122
|
plan: selectedPlan
|
|
11590
11123
|
});
|
|
11591
11124
|
}
|
|
11592
|
-
notify.dismiss(NOTIFICATION_ID);
|
|
11125
|
+
notify$1.dismiss(NOTIFICATION_ID);
|
|
11593
11126
|
switchView("_plan-select-entitlements");
|
|
11594
11127
|
}
|
|
11595
11128
|
}, "Subscribe"), "now to get full page access.")), {
|
|
@@ -11654,6 +11187,175 @@ function shouldBlurContent(entitlements) {
|
|
|
11654
11187
|
return entitlements.every(entitlement => !window.Pelcro.user.isEntitledTo(entitlement));
|
|
11655
11188
|
}
|
|
11656
11189
|
|
|
11190
|
+
var pure$1 = createCommonjsModule(function (module, exports) {
|
|
11191
|
+
|
|
11192
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11193
|
+
|
|
11194
|
+
function _typeof(obj) {
|
|
11195
|
+
"@babel/helpers - typeof";
|
|
11196
|
+
|
|
11197
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
11198
|
+
_typeof = function (obj) {
|
|
11199
|
+
return typeof obj;
|
|
11200
|
+
};
|
|
11201
|
+
} else {
|
|
11202
|
+
_typeof = function (obj) {
|
|
11203
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
11204
|
+
};
|
|
11205
|
+
}
|
|
11206
|
+
|
|
11207
|
+
return _typeof(obj);
|
|
11208
|
+
}
|
|
11209
|
+
|
|
11210
|
+
var V3_URL = 'https://js.stripe.com/v3';
|
|
11211
|
+
var V3_URL_REGEX = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;
|
|
11212
|
+
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';
|
|
11213
|
+
var findScript = function findScript() {
|
|
11214
|
+
var scripts = document.querySelectorAll("script[src^=\"".concat(V3_URL, "\"]"));
|
|
11215
|
+
|
|
11216
|
+
for (var i = 0; i < scripts.length; i++) {
|
|
11217
|
+
var script = scripts[i];
|
|
11218
|
+
|
|
11219
|
+
if (!V3_URL_REGEX.test(script.src)) {
|
|
11220
|
+
continue;
|
|
11221
|
+
}
|
|
11222
|
+
|
|
11223
|
+
return script;
|
|
11224
|
+
}
|
|
11225
|
+
|
|
11226
|
+
return null;
|
|
11227
|
+
};
|
|
11228
|
+
|
|
11229
|
+
var injectScript = function injectScript(params) {
|
|
11230
|
+
var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';
|
|
11231
|
+
var script = document.createElement('script');
|
|
11232
|
+
script.src = "".concat(V3_URL).concat(queryString);
|
|
11233
|
+
var headOrBody = document.head || document.body;
|
|
11234
|
+
|
|
11235
|
+
if (!headOrBody) {
|
|
11236
|
+
throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');
|
|
11237
|
+
}
|
|
11238
|
+
|
|
11239
|
+
headOrBody.appendChild(script);
|
|
11240
|
+
return script;
|
|
11241
|
+
};
|
|
11242
|
+
|
|
11243
|
+
var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
11244
|
+
if (!stripe || !stripe._registerWrapper) {
|
|
11245
|
+
return;
|
|
11246
|
+
}
|
|
11247
|
+
|
|
11248
|
+
stripe._registerWrapper({
|
|
11249
|
+
name: 'stripe-js',
|
|
11250
|
+
version: "1.21.1",
|
|
11251
|
+
startTime: startTime
|
|
11252
|
+
});
|
|
11253
|
+
};
|
|
11254
|
+
|
|
11255
|
+
var stripePromise = null;
|
|
11256
|
+
var loadScript = function loadScript(params) {
|
|
11257
|
+
// Ensure that we only attempt to load Stripe.js at most once
|
|
11258
|
+
if (stripePromise !== null) {
|
|
11259
|
+
return stripePromise;
|
|
11260
|
+
}
|
|
11261
|
+
|
|
11262
|
+
stripePromise = new Promise(function (resolve, reject) {
|
|
11263
|
+
if (typeof window === 'undefined') {
|
|
11264
|
+
// Resolve to null when imported server side. This makes the module
|
|
11265
|
+
// safe to import in an isomorphic code base.
|
|
11266
|
+
resolve(null);
|
|
11267
|
+
return;
|
|
11268
|
+
}
|
|
11269
|
+
|
|
11270
|
+
if (window.Stripe && params) {
|
|
11271
|
+
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
11272
|
+
}
|
|
11273
|
+
|
|
11274
|
+
if (window.Stripe) {
|
|
11275
|
+
resolve(window.Stripe);
|
|
11276
|
+
return;
|
|
11277
|
+
}
|
|
11278
|
+
|
|
11279
|
+
try {
|
|
11280
|
+
var script = findScript();
|
|
11281
|
+
|
|
11282
|
+
if (script && params) {
|
|
11283
|
+
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
11284
|
+
} else if (!script) {
|
|
11285
|
+
script = injectScript(params);
|
|
11286
|
+
}
|
|
11287
|
+
|
|
11288
|
+
script.addEventListener('load', function () {
|
|
11289
|
+
if (window.Stripe) {
|
|
11290
|
+
resolve(window.Stripe);
|
|
11291
|
+
} else {
|
|
11292
|
+
reject(new Error('Stripe.js not available'));
|
|
11293
|
+
}
|
|
11294
|
+
});
|
|
11295
|
+
script.addEventListener('error', function () {
|
|
11296
|
+
reject(new Error('Failed to load Stripe.js'));
|
|
11297
|
+
});
|
|
11298
|
+
} catch (error) {
|
|
11299
|
+
reject(error);
|
|
11300
|
+
return;
|
|
11301
|
+
}
|
|
11302
|
+
});
|
|
11303
|
+
return stripePromise;
|
|
11304
|
+
};
|
|
11305
|
+
var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
11306
|
+
if (maybeStripe === null) {
|
|
11307
|
+
return null;
|
|
11308
|
+
}
|
|
11309
|
+
|
|
11310
|
+
var stripe = maybeStripe.apply(undefined, args);
|
|
11311
|
+
registerWrapper(stripe, startTime);
|
|
11312
|
+
return stripe;
|
|
11313
|
+
};
|
|
11314
|
+
var validateLoadParams = function validateLoadParams(params) {
|
|
11315
|
+
var errorMessage = "invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(params), "\n");
|
|
11316
|
+
|
|
11317
|
+
if (params === null || _typeof(params) !== 'object') {
|
|
11318
|
+
throw new Error(errorMessage);
|
|
11319
|
+
}
|
|
11320
|
+
|
|
11321
|
+
if (Object.keys(params).length === 1 && typeof params.advancedFraudSignals === 'boolean') {
|
|
11322
|
+
return params;
|
|
11323
|
+
}
|
|
11324
|
+
|
|
11325
|
+
throw new Error(errorMessage);
|
|
11326
|
+
};
|
|
11327
|
+
|
|
11328
|
+
var loadParams;
|
|
11329
|
+
var loadStripeCalled = false;
|
|
11330
|
+
var loadStripe = function loadStripe() {
|
|
11331
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11332
|
+
args[_key] = arguments[_key];
|
|
11333
|
+
}
|
|
11334
|
+
|
|
11335
|
+
loadStripeCalled = true;
|
|
11336
|
+
var startTime = Date.now();
|
|
11337
|
+
return loadScript(loadParams).then(function (maybeStripe) {
|
|
11338
|
+
return initStripe(maybeStripe, args, startTime);
|
|
11339
|
+
});
|
|
11340
|
+
};
|
|
11341
|
+
|
|
11342
|
+
loadStripe.setLoadParameters = function (params) {
|
|
11343
|
+
if (loadStripeCalled) {
|
|
11344
|
+
throw new Error('You cannot change load parameters after calling loadStripe');
|
|
11345
|
+
}
|
|
11346
|
+
|
|
11347
|
+
loadParams = validateLoadParams(params);
|
|
11348
|
+
};
|
|
11349
|
+
|
|
11350
|
+
exports.loadStripe = loadStripe;
|
|
11351
|
+
});
|
|
11352
|
+
|
|
11353
|
+
unwrapExports(pure$1);
|
|
11354
|
+
pure$1.loadStripe;
|
|
11355
|
+
|
|
11356
|
+
var pure = pure$1;
|
|
11357
|
+
var pure_1 = pure.loadStripe;
|
|
11358
|
+
|
|
11657
11359
|
/**
|
|
11658
11360
|
* Extracts error message from the response error object
|
|
11659
11361
|
* @param {Object} error Error object
|
|
@@ -11807,12 +11509,16 @@ const initPaywalls = () => {
|
|
|
11807
11509
|
};
|
|
11808
11510
|
const loadPaymentSDKs = () => {
|
|
11809
11511
|
// Lazy load stripe's SDK
|
|
11810
|
-
|
|
11512
|
+
const {
|
|
11513
|
+
whenUserReady
|
|
11514
|
+
} = usePelcro.getStore();
|
|
11811
11515
|
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
11812
11516
|
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11517
|
+
whenUserReady(() => {
|
|
11518
|
+
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
11519
|
+
pure_1(window.Pelcro.environment.stripe);
|
|
11520
|
+
}
|
|
11521
|
+
});
|
|
11816
11522
|
|
|
11817
11523
|
// Load PayPal SDKs
|
|
11818
11524
|
const supportsPaypal = Boolean(window.Pelcro.site.read().braintree_tokenization);
|
|
@@ -11963,9 +11669,6 @@ const initViewFromURL = () => {
|
|
|
11963
11669
|
if (view === "plan-select") {
|
|
11964
11670
|
return initSubscriptionFromURL();
|
|
11965
11671
|
}
|
|
11966
|
-
if (view === "donation-select") {
|
|
11967
|
-
return initDonationFromURL();
|
|
11968
|
-
}
|
|
11969
11672
|
if (view === "register") {
|
|
11970
11673
|
const offlinePlanId = window.Pelcro.helpers.getURLParameter("plan_id");
|
|
11971
11674
|
if (offlinePlanId) {
|
|
@@ -12048,61 +11751,6 @@ const initSubscriptionFromURL = () => {
|
|
|
12048
11751
|
});
|
|
12049
11752
|
};
|
|
12050
11753
|
|
|
12051
|
-
/**
|
|
12052
|
-
* Initializes the donation flow if 'product_id' & 'plan_id' params exist
|
|
12053
|
-
* with valid IDs. Otherwise, switches to the donation selection flow
|
|
12054
|
-
*/
|
|
12055
|
-
const initDonationFromURL = () => {
|
|
12056
|
-
const {
|
|
12057
|
-
switchView,
|
|
12058
|
-
whenSiteReady,
|
|
12059
|
-
set
|
|
12060
|
-
} = usePelcro.getStore();
|
|
12061
|
-
whenSiteReady(() => {
|
|
12062
|
-
var _selectedProduct$plan2;
|
|
12063
|
-
const productsList = window.Pelcro.product.list();
|
|
12064
|
-
if (!(productsList !== null && productsList !== void 0 && productsList.length)) {
|
|
12065
|
-
return;
|
|
12066
|
-
}
|
|
12067
|
-
const [productId, planId, isGiftParam] = [window.Pelcro.helpers.getURLParameter("product_id"), window.Pelcro.helpers.getURLParameter("plan_id"), window.Pelcro.helpers.getURLParameter("is_gift")];
|
|
12068
|
-
const isGift = (isGiftParam === null || isGiftParam === void 0 ? void 0 : isGiftParam.toLowerCase()) === "true";
|
|
12069
|
-
const selectedProduct = productsList.find(product => product.id === Number(productId));
|
|
12070
|
-
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));
|
|
12071
|
-
set({
|
|
12072
|
-
product: selectedProduct,
|
|
12073
|
-
plan: selectedPlan,
|
|
12074
|
-
isGift
|
|
12075
|
-
});
|
|
12076
|
-
if (!selectedProduct || !selectedPlan) {
|
|
12077
|
-
set({
|
|
12078
|
-
isDonation: true
|
|
12079
|
-
});
|
|
12080
|
-
return switchView("donation-select");
|
|
12081
|
-
}
|
|
12082
|
-
const {
|
|
12083
|
-
isAuthenticated,
|
|
12084
|
-
switchToAddressView,
|
|
12085
|
-
switchToPaymentView
|
|
12086
|
-
} = usePelcro.getStore();
|
|
12087
|
-
|
|
12088
|
-
// if (!isAuthenticated()) {
|
|
12089
|
-
// return switchView("register");
|
|
12090
|
-
// }
|
|
12091
|
-
|
|
12092
|
-
// if (isGift) {
|
|
12093
|
-
// return switchView("gift-create");
|
|
12094
|
-
// }
|
|
12095
|
-
|
|
12096
|
-
// const requiresAddress = Boolean(selectedProduct.address_required);
|
|
12097
|
-
//
|
|
12098
|
-
// if (requiresAddress) {
|
|
12099
|
-
// return switchToAddressView();
|
|
12100
|
-
// }
|
|
12101
|
-
|
|
12102
|
-
return switchToPaymentView();
|
|
12103
|
-
});
|
|
12104
|
-
};
|
|
12105
|
-
|
|
12106
11754
|
/**
|
|
12107
11755
|
* Initializes offline subscription flow if 'plan_id' params exist
|
|
12108
11756
|
* with valid IDs, Otherwise, ignore the param
|
|
@@ -12202,9 +11850,9 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
12202
11850
|
token: emailToken
|
|
12203
11851
|
}, (err, res) => {
|
|
12204
11852
|
if (err) {
|
|
12205
|
-
return notify.error(getErrorMessages(err));
|
|
11853
|
+
return notify$1.error(getErrorMessages(err));
|
|
12206
11854
|
}
|
|
12207
|
-
return notify.success(translations.success);
|
|
11855
|
+
return notify$1.success(translations.success);
|
|
12208
11856
|
});
|
|
12209
11857
|
}, {
|
|
12210
11858
|
once: true
|
|
@@ -12228,7 +11876,7 @@ const verifyLinkTokenFromUrl = () => {
|
|
|
12228
11876
|
token: loginToken
|
|
12229
11877
|
}, (err, res) => {
|
|
12230
11878
|
if (err) {
|
|
12231
|
-
return notify.error(getErrorMessages(err));
|
|
11879
|
+
return notify$1.error(getErrorMessages(err));
|
|
12232
11880
|
}
|
|
12233
11881
|
const {
|
|
12234
11882
|
auth_token
|
|
@@ -12237,10 +11885,10 @@ const verifyLinkTokenFromUrl = () => {
|
|
|
12237
11885
|
auth_token
|
|
12238
11886
|
}, (err, res) => {
|
|
12239
11887
|
if (err) {
|
|
12240
|
-
return notify.error(getErrorMessages(err));
|
|
11888
|
+
return notify$1.error(getErrorMessages(err));
|
|
12241
11889
|
}
|
|
12242
11890
|
resetView();
|
|
12243
|
-
return notify.success(translations.success);
|
|
11891
|
+
return notify$1.success(translations.success);
|
|
12244
11892
|
});
|
|
12245
11893
|
});
|
|
12246
11894
|
}, {
|
|
@@ -12315,7 +11963,7 @@ const showInvoiceDetailsFromUrl = () => {
|
|
|
12315
11963
|
const errorMessage = i18next.t("messages:invalidInvoice", {
|
|
12316
11964
|
returnObjects: true
|
|
12317
11965
|
});
|
|
12318
|
-
return notify.error(errorMessage);
|
|
11966
|
+
return notify$1.error(errorMessage);
|
|
12319
11967
|
}
|
|
12320
11968
|
const {
|
|
12321
11969
|
invoice
|
|
@@ -12324,7 +11972,7 @@ const showInvoiceDetailsFromUrl = () => {
|
|
|
12324
11972
|
const errorMessage = i18next.t("messages:zeroTotalInvoice", {
|
|
12325
11973
|
returnObjects: true
|
|
12326
11974
|
});
|
|
12327
|
-
return notify.error(errorMessage);
|
|
11975
|
+
return notify$1.error(errorMessage);
|
|
12328
11976
|
}
|
|
12329
11977
|
return switchView("invoice-details");
|
|
12330
11978
|
});
|
|
@@ -12349,7 +11997,7 @@ const showSubscriptionManageMembersFromUrl = () => {
|
|
|
12349
11997
|
const errorMessage = i18next.t("messages:invalidSubscription", {
|
|
12350
11998
|
returnObjects: true
|
|
12351
11999
|
});
|
|
12352
|
-
return notify.error(errorMessage);
|
|
12000
|
+
return notify$1.error(errorMessage);
|
|
12353
12001
|
}
|
|
12354
12002
|
return switchView("manage-members");
|
|
12355
12003
|
});
|
|
@@ -12374,18 +12022,8 @@ const PelcroModalController = _ref => {
|
|
|
12374
12022
|
const {
|
|
12375
12023
|
view,
|
|
12376
12024
|
isAuthenticated,
|
|
12377
|
-
whenSiteReady
|
|
12378
|
-
isDonation
|
|
12025
|
+
whenSiteReady
|
|
12379
12026
|
} = usePelcro();
|
|
12380
|
-
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
12381
|
-
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
12382
|
-
React__default['default'].useEffect(() => {
|
|
12383
|
-
if (isDonation) {
|
|
12384
|
-
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
12385
|
-
pure_1(window.Pelcro.environment.stripe);
|
|
12386
|
-
}
|
|
12387
|
-
}
|
|
12388
|
-
}, [isDonation]);
|
|
12389
12027
|
React__default['default'].useEffect(() => {
|
|
12390
12028
|
init$1();
|
|
12391
12029
|
renderShopView(React__default['default'].Children.map(children, child => child).find(_ref2 => {
|
|
@@ -14918,7 +14556,7 @@ function SelectModalWithHook(props) {
|
|
|
14918
14556
|
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
14919
14557
|
});
|
|
14920
14558
|
}
|
|
14921
|
-
function productsWithMatchedTaggedFirst
|
|
14559
|
+
function productsWithMatchedTaggedFirst() {
|
|
14922
14560
|
var _window$Pelcro$produc;
|
|
14923
14561
|
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
14924
14562
|
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
@@ -14930,398 +14568,13 @@ function productMatchPageLanguage(product) {
|
|
|
14930
14568
|
return false;
|
|
14931
14569
|
}
|
|
14932
14570
|
if (product.language === null) {
|
|
14933
|
-
return true;
|
|
14934
|
-
}
|
|
14935
|
-
const siteLanguage = window.Pelcro.helpers.getHtmlLanguageAttribute();
|
|
14936
|
-
return product.language === siteLanguage;
|
|
14937
|
-
}
|
|
14938
|
-
SelectModalWithHook.viewId = "plan-select";
|
|
14939
|
-
class SelectModal extends React.Component {
|
|
14940
|
-
constructor(props) {
|
|
14941
|
-
super(props);
|
|
14942
|
-
_defineProperty$3(this, "componentDidMount", () => {
|
|
14943
|
-
if (this.props.product) {
|
|
14944
|
-
const {
|
|
14945
|
-
product
|
|
14946
|
-
} = this.props;
|
|
14947
|
-
const planList = product.plans;
|
|
14948
|
-
this.setState({
|
|
14949
|
-
product,
|
|
14950
|
-
planList,
|
|
14951
|
-
mode: "plan"
|
|
14952
|
-
});
|
|
14953
|
-
}
|
|
14954
|
-
if (this.props.plan) {
|
|
14955
|
-
const {
|
|
14956
|
-
plan
|
|
14957
|
-
} = this.props;
|
|
14958
|
-
this.setState({
|
|
14959
|
-
plan,
|
|
14960
|
-
disabled: false
|
|
14961
|
-
});
|
|
14962
|
-
}
|
|
14963
|
-
if (this.state.productList.length === 1) {
|
|
14964
|
-
this.setState({
|
|
14965
|
-
product: this.state.productList[0],
|
|
14966
|
-
planList: this.state.productList[0].plans,
|
|
14967
|
-
mode: "plan"
|
|
14968
|
-
});
|
|
14969
|
-
}
|
|
14970
|
-
if (this.state.productList.length === 0 && !window.Pelcro.user.isAuthenticated()) {
|
|
14971
|
-
this.props.setView("register");
|
|
14972
|
-
}
|
|
14973
|
-
document.addEventListener("keydown", this.handleSubmit);
|
|
14974
|
-
if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
|
|
14975
|
-
var _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$user, _window$Pelcro5, _window$Pelcro5$site;
|
|
14976
|
-
const userCurrency = (_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.read().currency;
|
|
14977
|
-
const userCountry = (_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.location.countryCode;
|
|
14978
|
-
const userLanguage = (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : (_window$Pelcro4$user = _window$Pelcro4.user) === null || _window$Pelcro4$user === void 0 ? void 0 : _window$Pelcro4$user.read().language;
|
|
14979
|
-
const productsMatchingUserCurrency = (_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().products.filter(product => {
|
|
14980
|
-
const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
|
|
14981
|
-
if (filteredPlans.length) return filteredPlans;
|
|
14982
|
-
});
|
|
14983
|
-
const productsMatchingUserCountry = productsMatchingUserCurrency.filter(product => {
|
|
14984
|
-
const filteredPlans = product.plans.filter(plan => {
|
|
14985
|
-
var _plan$countries;
|
|
14986
|
-
return plan.countries && ((_plan$countries = plan.countries) === null || _plan$countries === void 0 ? void 0 : _plan$countries.includes(userCountry)) || !plan.countries || !plan.countries.length;
|
|
14987
|
-
});
|
|
14988
|
-
if (filteredPlans.length) return filteredPlans;
|
|
14989
|
-
});
|
|
14990
|
-
notifyBugsnag(() => {
|
|
14991
|
-
Bugsnag.notify("SelectModal - No data viewed", event => {
|
|
14992
|
-
var _window$Pelcro6, _window$Pelcro6$site, _window$Pelcro7, _window$Pelcro7$user, _window$Pelcro8, _window$Pelcro8$uiSet, _window$Pelcro9, _this$props, _window$Pelcro10, _window$Pelcro10$help, _window$Pelcro11, _window$Pelcro11$site;
|
|
14993
|
-
event.addMetadata("MetaData", {
|
|
14994
|
-
site: (_window$Pelcro6 = window.Pelcro) === null || _window$Pelcro6 === void 0 ? void 0 : (_window$Pelcro6$site = _window$Pelcro6.site) === null || _window$Pelcro6$site === void 0 ? void 0 : _window$Pelcro6$site.read(),
|
|
14995
|
-
user: (_window$Pelcro7 = window.Pelcro) === null || _window$Pelcro7 === void 0 ? void 0 : (_window$Pelcro7$user = _window$Pelcro7.user) === null || _window$Pelcro7$user === void 0 ? void 0 : _window$Pelcro7$user.read(),
|
|
14996
|
-
uiVersion: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : (_window$Pelcro8$uiSet = _window$Pelcro8.uiSettings) === null || _window$Pelcro8$uiSet === void 0 ? void 0 : _window$Pelcro8$uiSet.uiVersion,
|
|
14997
|
-
environment: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : _window$Pelcro9.environment,
|
|
14998
|
-
matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
|
|
14999
|
-
productListState: this.state.productList,
|
|
15000
|
-
methods: {
|
|
15001
|
-
productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst$1(),
|
|
15002
|
-
pelcroSDKProductsListMethod: window.Pelcro.product.list(),
|
|
15003
|
-
pelcroSDKGetByEntitlements: this.props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(this.props.matchingEntitlements) : null
|
|
15004
|
-
},
|
|
15005
|
-
userCurrency: userCurrency,
|
|
15006
|
-
userCountry: userCountry,
|
|
15007
|
-
userLanguage: userLanguage,
|
|
15008
|
-
siteLanguage: (_window$Pelcro10 = window.Pelcro) === null || _window$Pelcro10 === void 0 ? void 0 : (_window$Pelcro10$help = _window$Pelcro10.helpers) === null || _window$Pelcro10$help === void 0 ? void 0 : _window$Pelcro10$help.getHtmlLanguageAttribute(),
|
|
15009
|
-
products: (_window$Pelcro11 = window.Pelcro) === null || _window$Pelcro11 === void 0 ? void 0 : (_window$Pelcro11$site = _window$Pelcro11.site) === null || _window$Pelcro11$site === void 0 ? void 0 : _window$Pelcro11$site.read().products.length,
|
|
15010
|
-
currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
|
|
15011
|
-
country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
|
|
15012
|
-
language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
|
|
15013
|
-
});
|
|
15014
|
-
});
|
|
15015
|
-
});
|
|
15016
|
-
}
|
|
15017
|
-
});
|
|
15018
|
-
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
15019
|
-
document.removeEventListener("keydown", this.handleSubmit);
|
|
15020
|
-
});
|
|
15021
|
-
_defineProperty$3(this, "handleSubmit", e => {
|
|
15022
|
-
if (e.key === "Enter" && !this.state.disabled) this.submitOption();
|
|
15023
|
-
});
|
|
15024
|
-
_defineProperty$3(this, "onProductChange", e => {
|
|
15025
|
-
const product = window.Pelcro.product.list()[e.target.selectedIndex];
|
|
15026
|
-
this.setState({
|
|
15027
|
-
product: product,
|
|
15028
|
-
plan: product.plans[0]
|
|
15029
|
-
});
|
|
15030
|
-
});
|
|
15031
|
-
_defineProperty$3(this, "onPlanChange", e => {
|
|
15032
|
-
this.setState({
|
|
15033
|
-
plan: this.state.product.plans[e.target.selectedIndex]
|
|
15034
|
-
});
|
|
15035
|
-
});
|
|
15036
|
-
_defineProperty$3(this, "onIsGiftChange", e => {
|
|
15037
|
-
this.setState({
|
|
15038
|
-
isGift: e.target.checked
|
|
15039
|
-
});
|
|
15040
|
-
});
|
|
15041
|
-
_defineProperty$3(this, "countStartPrice", arr => {
|
|
15042
|
-
let startingPlan = arr[0];
|
|
15043
|
-
for (const plan of arr) {
|
|
15044
|
-
if (plan.amount < startingPlan.amount) {
|
|
15045
|
-
startingPlan = plan;
|
|
15046
|
-
}
|
|
15047
|
-
}
|
|
15048
|
-
return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval}s` : `${startingPlan.interval}`}`;
|
|
15049
|
-
});
|
|
15050
|
-
_defineProperty$3(this, "renderOneProduct", (product, index, options) => {
|
|
15051
|
-
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
15052
|
-
const productButtonLabel = isPlanMode ? this.locale("buttons.back") : this.locale("buttons.select");
|
|
15053
|
-
const productButtonCallback = isPlanMode ? this.goBack : this.selectProduct;
|
|
15054
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15055
|
-
key: product.id,
|
|
15056
|
-
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"}`
|
|
15057
|
-
}, product.image && /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15058
|
-
alt: `image of ${product.name}`,
|
|
15059
|
-
src: product.image,
|
|
15060
|
-
className: "plc-object-contain plc-w-1/4 pelcro-select-product-image"
|
|
15061
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15062
|
-
className: `plc-flex plc-flex-wrap ${product.image ? "plc-w-3/4" : "plc-w-full"}`
|
|
15063
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15064
|
-
className: "plc-w-full pelcro-select-product-header"
|
|
15065
|
-
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15066
|
-
className: "plc-font-bold pelcro-select-product-title"
|
|
15067
|
-
}, product.name), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15068
|
-
className: "plc-text-xs pelcro-select-product-description"
|
|
15069
|
-
}, product.description)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15070
|
-
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
15071
|
-
}, product.plans && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15072
|
-
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
15073
|
-
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
15074
|
-
onClick: productButtonCallback,
|
|
15075
|
-
"data-key": product.id,
|
|
15076
|
-
id: "pelcro-select-product-back-button",
|
|
15077
|
-
className: `plc-ml-auto plc-text-xs ${options !== null && options !== void 0 && options.emphasize ? "plc-bg-primary-700" : ""}`
|
|
15078
|
-
}, index === 0 && {
|
|
15079
|
-
autoFocus: true
|
|
15080
|
-
}), productButtonLabel))));
|
|
15081
|
-
});
|
|
15082
|
-
_defineProperty$3(this, "renderProducts", () => {
|
|
15083
|
-
const userDidSelectProduct = Boolean(this.state.mode === "plan");
|
|
15084
|
-
const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
|
|
15085
|
-
return productsToShow.map((product, index) => {
|
|
15086
|
-
if (product.plans.filter(plan => plan.type === "regular").length > 0) {
|
|
15087
|
-
return this.renderOneProduct(product, index);
|
|
15088
|
-
}
|
|
15089
|
-
});
|
|
15090
|
-
});
|
|
15091
|
-
_defineProperty$3(this, "renderMatchingProductsFirst", () => {
|
|
15092
|
-
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
15093
|
-
if (isPlanMode) {
|
|
15094
|
-
return this.renderOneProduct(this.state.product);
|
|
15095
|
-
}
|
|
15096
|
-
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst$1();
|
|
15097
|
-
|
|
15098
|
-
// Render normal products if there are no available matching products
|
|
15099
|
-
if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
|
|
15100
|
-
return this.renderProducts();
|
|
15101
|
-
}
|
|
15102
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("h3", {
|
|
15103
|
-
className: "plc-text-sm plc-font-semibold"
|
|
15104
|
-
}, this.locale("labels.restrictiveArticles.subscribeTo")), productsThatMatchArticleTag.map((product, index) => this.renderOneProduct(product, index, {
|
|
15105
|
-
emphasize: true
|
|
15106
|
-
})), (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", {
|
|
15107
|
-
className: "plc-my-4"
|
|
15108
|
-
}), /*#__PURE__*/React__default['default'].createElement("h3", {
|
|
15109
|
-
className: "plc-text-sm plc-font-semibold"
|
|
15110
|
-
}, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
|
|
15111
|
-
});
|
|
15112
|
-
_defineProperty$3(this, "renderPlans", () => {
|
|
15113
|
-
return this.state.planList.map(plan => {
|
|
15114
|
-
const isChecked = this.state.plan.id === plan.id ? true : false;
|
|
15115
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15116
|
-
key: plan.id,
|
|
15117
|
-
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"
|
|
15118
|
-
}, /*#__PURE__*/React__default['default'].createElement(Radio, {
|
|
15119
|
-
className: "plc-self-start pelcro-select-plan-radio",
|
|
15120
|
-
labelClassName: "plc-cursor-pointer plc-w-full",
|
|
15121
|
-
id: `pelcro-select-plan-${plan.id}`,
|
|
15122
|
-
name: "plan",
|
|
15123
|
-
checked: isChecked,
|
|
15124
|
-
"data-key": plan.id,
|
|
15125
|
-
onChange: this.selectPlan
|
|
15126
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15127
|
-
className: "plc-font-bold pelcro-select-plan-title"
|
|
15128
|
-
}, plan.nickname), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15129
|
-
className: "plc-text-xs pelcro-select-plan-description"
|
|
15130
|
-
}, plan.description)), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15131
|
-
className: "plc-mt-3 plc-font-bold pelcro-select-plan-price"
|
|
15132
|
-
}, plan.amount_formatted)));
|
|
15133
|
-
});
|
|
15134
|
-
});
|
|
15135
|
-
_defineProperty$3(this, "selectProduct", e => {
|
|
15136
|
-
const id = e.target.dataset.key;
|
|
15137
|
-
for (const product of this.state.productList) {
|
|
15138
|
-
if (+product.id === +id) {
|
|
15139
|
-
var _this$state$plan;
|
|
15140
|
-
this.setState({
|
|
15141
|
-
product: product
|
|
15142
|
-
});
|
|
15143
|
-
this.setState({
|
|
15144
|
-
planList: product.plans.filter(plan => plan.type === "regular")
|
|
15145
|
-
});
|
|
15146
|
-
this.setState({
|
|
15147
|
-
mode: "plan"
|
|
15148
|
-
});
|
|
15149
|
-
const isSelectedPlanPartOfThisProduct = ((_this$state$plan = this.state.plan) === null || _this$state$plan === void 0 ? void 0 : _this$state$plan.product_id) === Number(product.id);
|
|
15150
|
-
if (isSelectedPlanPartOfThisProduct) {
|
|
15151
|
-
this.setState({
|
|
15152
|
-
disabled: false
|
|
15153
|
-
});
|
|
15154
|
-
}
|
|
15155
|
-
}
|
|
15156
|
-
}
|
|
15157
|
-
});
|
|
15158
|
-
_defineProperty$3(this, "selectPlan", e => {
|
|
15159
|
-
const id = e.target.dataset.key;
|
|
15160
|
-
for (const plan of this.state.planList) {
|
|
15161
|
-
if (+plan.id === +id) {
|
|
15162
|
-
plan.isCheked = true;
|
|
15163
|
-
this.setState({
|
|
15164
|
-
plan: plan
|
|
15165
|
-
});
|
|
15166
|
-
this.setState({
|
|
15167
|
-
disabled: false
|
|
15168
|
-
});
|
|
15169
|
-
} else {
|
|
15170
|
-
plan.isCheked = false;
|
|
15171
|
-
}
|
|
15172
|
-
}
|
|
15173
|
-
});
|
|
15174
|
-
_defineProperty$3(this, "goBack", () => {
|
|
15175
|
-
this.setState({
|
|
15176
|
-
disabled: true
|
|
15177
|
-
});
|
|
15178
|
-
this.setState({
|
|
15179
|
-
mode: "product"
|
|
15180
|
-
});
|
|
15181
|
-
});
|
|
15182
|
-
_defineProperty$3(this, "submitOption", () => {
|
|
15183
|
-
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
15184
|
-
const {
|
|
15185
|
-
product,
|
|
15186
|
-
isGift
|
|
15187
|
-
} = this.state;
|
|
15188
|
-
const {
|
|
15189
|
-
setView
|
|
15190
|
-
} = this.props;
|
|
15191
|
-
const isAuthenticated = window.Pelcro.user.isAuthenticated();
|
|
15192
|
-
const {
|
|
15193
|
-
switchToAddressView,
|
|
15194
|
-
switchToPaymentView
|
|
15195
|
-
} = usePelcro.getStore();
|
|
15196
|
-
if (!isAuthenticated) {
|
|
15197
|
-
return setView("register");
|
|
15198
|
-
}
|
|
15199
|
-
if (isGift) {
|
|
15200
|
-
return setView("gift-create");
|
|
15201
|
-
}
|
|
15202
|
-
if (product.address_required) {
|
|
15203
|
-
return switchToAddressView();
|
|
15204
|
-
}
|
|
15205
|
-
return switchToPaymentView();
|
|
15206
|
-
});
|
|
15207
|
-
_defineProperty$3(this, "displayLoginView", () => {
|
|
15208
|
-
this.props.setView("login");
|
|
15209
|
-
});
|
|
15210
|
-
this.state = {
|
|
15211
|
-
product: {},
|
|
15212
|
-
plan: {},
|
|
15213
|
-
isGift: props.isGift,
|
|
15214
|
-
disabled: true,
|
|
15215
|
-
mode: "product",
|
|
15216
|
-
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
15217
|
-
};
|
|
15218
|
-
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
15219
|
-
this.locale = this.props.t;
|
|
15220
|
-
this.closeButton = window.Pelcro.paywall.displayCloseButton();
|
|
15221
|
-
}
|
|
15222
|
-
render() {
|
|
15223
|
-
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
15224
|
-
const {
|
|
15225
|
-
disableGifting
|
|
15226
|
-
} = this.props;
|
|
15227
|
-
if (this.state.mode === "product") {
|
|
15228
|
-
var _ReactGA$event;
|
|
15229
|
-
ReactGA$7 === null || ReactGA$7 === void 0 ? void 0 : (_ReactGA$event = ReactGA$7.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$7, {
|
|
15230
|
-
category: "VIEWS",
|
|
15231
|
-
action: "Product Modal Viewed",
|
|
15232
|
-
nonInteraction: true
|
|
15233
|
-
});
|
|
15234
|
-
} else if (this.state.mode === "plan") {
|
|
15235
|
-
var _ReactGA$event2;
|
|
15236
|
-
ReactGA$7 === null || ReactGA$7 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$7.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$7, {
|
|
15237
|
-
category: "VIEWS",
|
|
15238
|
-
action: "Plan Modal Viewed",
|
|
15239
|
-
nonInteraction: true
|
|
15240
|
-
});
|
|
15241
|
-
}
|
|
15242
|
-
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
15243
|
-
hideCloseButton: !this.closeButton,
|
|
15244
|
-
onClose: this.props.onClose,
|
|
15245
|
-
id: "pelcro-selection-modal"
|
|
15246
|
-
}, /*#__PURE__*/React__default['default'].createElement(ModalBody, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15247
|
-
id: "pelcro-selection-view"
|
|
15248
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15249
|
-
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
15250
|
-
}, /*#__PURE__*/React__default['default'].createElement("h4", {
|
|
15251
|
-
className: "plc-text-2xl plc-font-semibold"
|
|
15252
|
-
}, 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", {
|
|
15253
|
-
className: "pelcro-select-products-wrapper"
|
|
15254
|
-
}, (_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", {
|
|
15255
|
-
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
15256
|
-
}, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15257
|
-
className: "plc-flex plc-justify-center plc-mt-2"
|
|
15258
|
-
}, /*#__PURE__*/React__default['default'].createElement(Checkbox, {
|
|
15259
|
-
onChange: this.onIsGiftChange,
|
|
15260
|
-
checked: this.state.isGift,
|
|
15261
|
-
id: "pelcro-input-is-gift"
|
|
15262
|
-
}, this.locale("messages.checkbox"))), /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
15263
|
-
disabled: this.state.disabled,
|
|
15264
|
-
onClick: this.submitOption,
|
|
15265
|
-
id: "pelcro-submit",
|
|
15266
|
-
className: "plc-w-full plc-mt-2"
|
|
15267
|
-
}, 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, {
|
|
15268
|
-
id: "pelcro-link-login",
|
|
15269
|
-
onClick: this.displayLoginView
|
|
15270
|
-
}, this.locale("messages.loginHere"))), /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
|
|
15271
|
-
}
|
|
15272
|
-
}
|
|
15273
|
-
const SelectModalWithTrans = withTranslation("select")(SelectModal);
|
|
15274
|
-
|
|
15275
|
-
/**
|
|
15276
|
-
*
|
|
15277
|
-
*/
|
|
15278
|
-
function DonationModalWithHook(props) {
|
|
15279
|
-
React__default['default'].useEffect(() => {
|
|
15280
|
-
var _props$onDisplay;
|
|
15281
|
-
(_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
|
|
15282
|
-
}, []);
|
|
15283
|
-
const {
|
|
15284
|
-
isGift,
|
|
15285
|
-
plan,
|
|
15286
|
-
product,
|
|
15287
|
-
isRenewingGift,
|
|
15288
|
-
switchView,
|
|
15289
|
-
resetView,
|
|
15290
|
-
view,
|
|
15291
|
-
set
|
|
15292
|
-
} = usePelcro();
|
|
15293
|
-
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
15294
|
-
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
15295
|
-
return /*#__PURE__*/React__default['default'].createElement(DonationModalWithTrans, {
|
|
15296
|
-
isGift: isGift,
|
|
15297
|
-
disableGifting: isRenewingGift,
|
|
15298
|
-
plan: plan,
|
|
15299
|
-
product: product,
|
|
15300
|
-
onClose: () => {
|
|
15301
|
-
var _props$onClose;
|
|
15302
|
-
(_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
|
|
15303
|
-
resetView();
|
|
15304
|
-
},
|
|
15305
|
-
setProductAndPlan: (product, plan, isGift, selectedDonationAmount, customDonationAmount) => set({
|
|
15306
|
-
product,
|
|
15307
|
-
plan,
|
|
15308
|
-
isGift,
|
|
15309
|
-
selectedDonationAmount,
|
|
15310
|
-
customDonationAmount
|
|
15311
|
-
}),
|
|
15312
|
-
setView: switchView,
|
|
15313
|
-
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
15314
|
-
});
|
|
15315
|
-
}
|
|
15316
|
-
function productsWithMatchedTaggedFirst() {
|
|
15317
|
-
var _window$Pelcro$produc;
|
|
15318
|
-
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
15319
|
-
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
15320
|
-
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
15321
|
-
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
14571
|
+
return true;
|
|
14572
|
+
}
|
|
14573
|
+
const siteLanguage = window.Pelcro.helpers.getHtmlLanguageAttribute();
|
|
14574
|
+
return product.language === siteLanguage;
|
|
15322
14575
|
}
|
|
15323
|
-
|
|
15324
|
-
class
|
|
14576
|
+
SelectModalWithHook.viewId = "plan-select";
|
|
14577
|
+
class SelectModal extends React.Component {
|
|
15325
14578
|
constructor(props) {
|
|
15326
14579
|
super(props);
|
|
15327
14580
|
_defineProperty$3(this, "componentDidMount", () => {
|
|
@@ -15352,39 +14605,53 @@ class DonationModal extends React.Component {
|
|
|
15352
14605
|
mode: "plan"
|
|
15353
14606
|
});
|
|
15354
14607
|
}
|
|
15355
|
-
|
|
15356
|
-
|
|
15357
|
-
|
|
15358
|
-
// !window.Pelcro.user.isAuthenticated()
|
|
15359
|
-
// ) {
|
|
15360
|
-
// this.props.setView("register");
|
|
15361
|
-
// }
|
|
15362
|
-
|
|
14608
|
+
if (this.state.productList.length === 0 && !window.Pelcro.user.isAuthenticated()) {
|
|
14609
|
+
this.props.setView("register");
|
|
14610
|
+
}
|
|
15363
14611
|
document.addEventListener("keydown", this.handleSubmit);
|
|
15364
14612
|
if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
|
|
15365
|
-
var _window$
|
|
15366
|
-
const userCurrency = (_window$
|
|
15367
|
-
const userCountry = (_window$
|
|
15368
|
-
(_window$
|
|
15369
|
-
const productsMatchingUserCurrency = (_window$
|
|
14613
|
+
var _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$user, _window$Pelcro5, _window$Pelcro5$site;
|
|
14614
|
+
const userCurrency = (_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.read().currency;
|
|
14615
|
+
const userCountry = (_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.location.countryCode;
|
|
14616
|
+
const userLanguage = (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : (_window$Pelcro4$user = _window$Pelcro4.user) === null || _window$Pelcro4$user === void 0 ? void 0 : _window$Pelcro4$user.read().language;
|
|
14617
|
+
const productsMatchingUserCurrency = (_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().products.filter(product => {
|
|
15370
14618
|
const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
|
|
15371
14619
|
if (filteredPlans.length) return filteredPlans;
|
|
15372
14620
|
});
|
|
15373
|
-
productsMatchingUserCurrency.filter(product => {
|
|
14621
|
+
const productsMatchingUserCountry = productsMatchingUserCurrency.filter(product => {
|
|
15374
14622
|
const filteredPlans = product.plans.filter(plan => {
|
|
15375
14623
|
var _plan$countries;
|
|
15376
14624
|
return plan.countries && ((_plan$countries = plan.countries) === null || _plan$countries === void 0 ? void 0 : _plan$countries.includes(userCountry)) || !plan.countries || !plan.countries.length;
|
|
15377
14625
|
});
|
|
15378
14626
|
if (filteredPlans.length) return filteredPlans;
|
|
15379
14627
|
});
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
14628
|
+
notifyBugsnag(() => {
|
|
14629
|
+
Bugsnag.notify("SelectModal - No data viewed", event => {
|
|
14630
|
+
var _window$Pelcro6, _window$Pelcro6$site, _window$Pelcro7, _window$Pelcro7$user, _window$Pelcro8, _window$Pelcro8$uiSet, _window$Pelcro9, _this$props, _window$Pelcro10, _window$Pelcro10$help, _window$Pelcro11, _window$Pelcro11$site;
|
|
14631
|
+
event.addMetadata("MetaData", {
|
|
14632
|
+
site: (_window$Pelcro6 = window.Pelcro) === null || _window$Pelcro6 === void 0 ? void 0 : (_window$Pelcro6$site = _window$Pelcro6.site) === null || _window$Pelcro6$site === void 0 ? void 0 : _window$Pelcro6$site.read(),
|
|
14633
|
+
user: (_window$Pelcro7 = window.Pelcro) === null || _window$Pelcro7 === void 0 ? void 0 : (_window$Pelcro7$user = _window$Pelcro7.user) === null || _window$Pelcro7$user === void 0 ? void 0 : _window$Pelcro7$user.read(),
|
|
14634
|
+
uiVersion: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : (_window$Pelcro8$uiSet = _window$Pelcro8.uiSettings) === null || _window$Pelcro8$uiSet === void 0 ? void 0 : _window$Pelcro8$uiSet.uiVersion,
|
|
14635
|
+
environment: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : _window$Pelcro9.environment,
|
|
14636
|
+
matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
|
|
14637
|
+
productListState: this.state.productList,
|
|
14638
|
+
methods: {
|
|
14639
|
+
productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst(),
|
|
14640
|
+
pelcroSDKProductsListMethod: window.Pelcro.product.list(),
|
|
14641
|
+
pelcroSDKGetByEntitlements: this.props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(this.props.matchingEntitlements) : null
|
|
14642
|
+
},
|
|
14643
|
+
userCurrency: userCurrency,
|
|
14644
|
+
userCountry: userCountry,
|
|
14645
|
+
userLanguage: userLanguage,
|
|
14646
|
+
siteLanguage: (_window$Pelcro10 = window.Pelcro) === null || _window$Pelcro10 === void 0 ? void 0 : (_window$Pelcro10$help = _window$Pelcro10.helpers) === null || _window$Pelcro10$help === void 0 ? void 0 : _window$Pelcro10$help.getHtmlLanguageAttribute(),
|
|
14647
|
+
products: (_window$Pelcro11 = window.Pelcro) === null || _window$Pelcro11 === void 0 ? void 0 : (_window$Pelcro11$site = _window$Pelcro11.site) === null || _window$Pelcro11$site === void 0 ? void 0 : _window$Pelcro11$site.read().products.length,
|
|
14648
|
+
currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
|
|
14649
|
+
country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
|
|
14650
|
+
language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
|
|
14651
|
+
});
|
|
14652
|
+
});
|
|
15387
14653
|
});
|
|
14654
|
+
console.log("bugsnag Triggered");
|
|
15388
14655
|
}
|
|
15389
14656
|
});
|
|
15390
14657
|
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
@@ -15440,7 +14707,9 @@ class DonationModal extends React.Component {
|
|
|
15440
14707
|
className: "plc-text-xs pelcro-select-product-description"
|
|
15441
14708
|
}, product.description)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15442
14709
|
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
15443
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
14710
|
+
}, product.plans && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14711
|
+
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
14712
|
+
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
15444
14713
|
onClick: productButtonCallback,
|
|
15445
14714
|
"data-key": product.id,
|
|
15446
14715
|
id: "pelcro-select-product-back-button",
|
|
@@ -15480,90 +14749,24 @@ class DonationModal extends React.Component {
|
|
|
15480
14749
|
_defineProperty$3(this, "renderPlans", () => {
|
|
15481
14750
|
return this.state.planList.map(plan => {
|
|
15482
14751
|
const isChecked = this.state.plan.id === plan.id ? true : false;
|
|
15483
|
-
let planDetails = /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15484
|
-
className: "plc-bg-gray-100 plc-rounded-md plc-p-3 plc-mt-3 plc-text-sm plc-flex plc-items-center"
|
|
15485
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15486
|
-
className: "plc-flex plc-items-center plc-flex-1"
|
|
15487
|
-
}, "Auto renew:", " ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15488
|
-
className: "plc-inline-flex plc-w-6 plc-ml-1"
|
|
15489
|
-
}, plan.auto_renew ? /*#__PURE__*/React__default['default'].createElement(SvgCheck, {
|
|
15490
|
-
className: "plc-text-green-500"
|
|
15491
|
-
}) : /*#__PURE__*/React__default['default'].createElement(SvgXIcon, {
|
|
15492
|
-
className: "plc-text-red-500"
|
|
15493
|
-
})), " "), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15494
|
-
className: "plc-flex plc-items-center plc-flex-1"
|
|
15495
|
-
}, "Renewed every:", " ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15496
|
-
className: "plc-inline-flex plc-w-6 plc-ml-1 plc-font-bold plc-capitalize"
|
|
15497
|
-
}, plan.interval || "-"))), plan.preset_donation_values && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15498
|
-
className: "plc-mt-3 plc-pt-3 plc-border-t plc-border-gray-200"
|
|
15499
|
-
}, /*#__PURE__*/React__default['default'].createElement("h5", {
|
|
15500
|
-
className: "plc-mb-4 plc-font-medium plc-text-center"
|
|
15501
|
-
}, "Select amount"), /*#__PURE__*/React__default['default'].createElement("ul", {
|
|
15502
|
-
className: "plc-grid plc-grid-cols-2 plc-gap-3"
|
|
15503
|
-
}, plan.preset_donation_values.map(value => /*#__PURE__*/React__default['default'].createElement("li", {
|
|
15504
|
-
key: value
|
|
15505
|
-
}, /*#__PURE__*/React__default['default'].createElement("button", {
|
|
15506
|
-
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"}`,
|
|
15507
|
-
onClick: () => {
|
|
15508
|
-
this.setState({
|
|
15509
|
-
selectedDonationAmount: +value,
|
|
15510
|
-
customDonationAmount: "",
|
|
15511
|
-
disabled: false
|
|
15512
|
-
});
|
|
15513
|
-
}
|
|
15514
|
-
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15515
|
-
className: "plc-font-bold plc-mr-1"
|
|
15516
|
-
}, value), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15517
|
-
className: "plc-uppercase"
|
|
15518
|
-
}, plan === null || plan === void 0 ? void 0 : plan.currency))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15519
|
-
className: "plc-relative plc-py-3 plc-mt-3"
|
|
15520
|
-
}, /*#__PURE__*/React__default['default'].createElement("hr", null), " ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15521
|
-
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"
|
|
15522
|
-
}, "or"))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15523
|
-
className: "plc-relative plc-mt-3"
|
|
15524
|
-
}, /*#__PURE__*/React__default['default'].createElement(Input, {
|
|
15525
|
-
type: "number",
|
|
15526
|
-
value: this.state.customDonationAmount,
|
|
15527
|
-
onChange: e => {
|
|
15528
|
-
if (+e.target.value > 0) {
|
|
15529
|
-
this.setState({
|
|
15530
|
-
customDonationAmount: +e.target.value,
|
|
15531
|
-
selectedDonationAmount: null,
|
|
15532
|
-
disabled: false
|
|
15533
|
-
});
|
|
15534
|
-
} else {
|
|
15535
|
-
this.setState({
|
|
15536
|
-
customDonationAmount: ""
|
|
15537
|
-
});
|
|
15538
|
-
this.setState({
|
|
15539
|
-
disabled: true
|
|
15540
|
-
});
|
|
15541
|
-
}
|
|
15542
|
-
},
|
|
15543
|
-
placeholder: "Donate a custom amount ...",
|
|
15544
|
-
className: "plc-pr-14",
|
|
15545
|
-
wrapperClassName: "plc-mb-0"
|
|
15546
|
-
}), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15547
|
-
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"
|
|
15548
|
-
}, plan.currency)));
|
|
15549
14752
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15550
14753
|
key: plan.id,
|
|
15551
|
-
className:
|
|
14754
|
+
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"
|
|
15552
14755
|
}, /*#__PURE__*/React__default['default'].createElement(Radio, {
|
|
15553
|
-
className: "plc-self-start pelcro-select-plan-radio
|
|
15554
|
-
labelClassName: "plc-cursor-pointer plc-w-full
|
|
14756
|
+
className: "plc-self-start pelcro-select-plan-radio",
|
|
14757
|
+
labelClassName: "plc-cursor-pointer plc-w-full",
|
|
15555
14758
|
id: `pelcro-select-plan-${plan.id}`,
|
|
15556
14759
|
name: "plan",
|
|
15557
14760
|
checked: isChecked,
|
|
15558
14761
|
"data-key": plan.id,
|
|
15559
14762
|
onChange: this.selectPlan
|
|
15560
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15561
|
-
className: "plc-text-center"
|
|
15562
|
-
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14763
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15563
14764
|
className: "plc-font-bold pelcro-select-plan-title"
|
|
15564
14765
|
}, plan.nickname), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15565
14766
|
className: "plc-text-xs pelcro-select-plan-description"
|
|
15566
|
-
}, plan.description))
|
|
14767
|
+
}, plan.description)), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14768
|
+
className: "plc-mt-3 plc-font-bold pelcro-select-plan-price"
|
|
14769
|
+
}, plan.amount_formatted)));
|
|
15567
14770
|
});
|
|
15568
14771
|
});
|
|
15569
14772
|
_defineProperty$3(this, "selectProduct", e => {
|
|
@@ -15571,15 +14774,13 @@ class DonationModal extends React.Component {
|
|
|
15571
14774
|
for (const product of this.state.productList) {
|
|
15572
14775
|
if (+product.id === +id) {
|
|
15573
14776
|
var _this$state$plan;
|
|
15574
|
-
const planList = product.plans.filter(plan => plan.type === "donation");
|
|
15575
|
-
if (planList.length === 1) {
|
|
15576
|
-
this.setState({
|
|
15577
|
-
plan: planList[0]
|
|
15578
|
-
});
|
|
15579
|
-
}
|
|
15580
14777
|
this.setState({
|
|
15581
|
-
product: product
|
|
15582
|
-
|
|
14778
|
+
product: product
|
|
14779
|
+
});
|
|
14780
|
+
this.setState({
|
|
14781
|
+
planList: product.plans
|
|
14782
|
+
});
|
|
14783
|
+
this.setState({
|
|
15583
14784
|
mode: "plan"
|
|
15584
14785
|
});
|
|
15585
14786
|
const isSelectedPlanPartOfThisProduct = ((_this$state$plan = this.state.plan) === null || _this$state$plan === void 0 ? void 0 : _this$state$plan.product_id) === Number(product.id);
|
|
@@ -15592,12 +14793,6 @@ class DonationModal extends React.Component {
|
|
|
15592
14793
|
}
|
|
15593
14794
|
});
|
|
15594
14795
|
_defineProperty$3(this, "selectPlan", e => {
|
|
15595
|
-
this.setState({
|
|
15596
|
-
selectedDonationAmount: null
|
|
15597
|
-
});
|
|
15598
|
-
this.setState({
|
|
15599
|
-
disabled: true
|
|
15600
|
-
});
|
|
15601
14796
|
const id = e.target.dataset.key;
|
|
15602
14797
|
for (const plan of this.state.planList) {
|
|
15603
14798
|
if (+plan.id === +id) {
|
|
@@ -15605,6 +14800,9 @@ class DonationModal extends React.Component {
|
|
|
15605
14800
|
this.setState({
|
|
15606
14801
|
plan: plan
|
|
15607
14802
|
});
|
|
14803
|
+
this.setState({
|
|
14804
|
+
disabled: false
|
|
14805
|
+
});
|
|
15608
14806
|
} else {
|
|
15609
14807
|
plan.isCheked = false;
|
|
15610
14808
|
}
|
|
@@ -15619,7 +14817,7 @@ class DonationModal extends React.Component {
|
|
|
15619
14817
|
});
|
|
15620
14818
|
});
|
|
15621
14819
|
_defineProperty$3(this, "submitOption", () => {
|
|
15622
|
-
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift
|
|
14820
|
+
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
15623
14821
|
const {
|
|
15624
14822
|
product,
|
|
15625
14823
|
isGift
|
|
@@ -15632,14 +14830,12 @@ class DonationModal extends React.Component {
|
|
|
15632
14830
|
switchToAddressView,
|
|
15633
14831
|
switchToPaymentView
|
|
15634
14832
|
} = usePelcro.getStore();
|
|
15635
|
-
if (!isAuthenticated
|
|
14833
|
+
if (!isAuthenticated) {
|
|
15636
14834
|
return setView("register");
|
|
15637
14835
|
}
|
|
15638
|
-
|
|
15639
|
-
|
|
15640
|
-
|
|
15641
|
-
// }
|
|
15642
|
-
|
|
14836
|
+
if (isGift) {
|
|
14837
|
+
return setView("gift-create");
|
|
14838
|
+
}
|
|
15643
14839
|
if (product.address_required) {
|
|
15644
14840
|
return switchToAddressView();
|
|
15645
14841
|
}
|
|
@@ -15648,16 +14844,13 @@ class DonationModal extends React.Component {
|
|
|
15648
14844
|
_defineProperty$3(this, "displayLoginView", () => {
|
|
15649
14845
|
this.props.setView("login");
|
|
15650
14846
|
});
|
|
15651
|
-
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);
|
|
15652
14847
|
this.state = {
|
|
15653
14848
|
product: {},
|
|
15654
14849
|
plan: {},
|
|
15655
14850
|
isGift: props.isGift,
|
|
15656
14851
|
disabled: true,
|
|
15657
14852
|
mode: "product",
|
|
15658
|
-
productList:
|
|
15659
|
-
selectedDonationAmount: null,
|
|
15660
|
-
customDonationAmount: ""
|
|
14853
|
+
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
15661
14854
|
};
|
|
15662
14855
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
15663
14856
|
this.locale = this.props.t;
|
|
@@ -15665,17 +14858,19 @@ class DonationModal extends React.Component {
|
|
|
15665
14858
|
}
|
|
15666
14859
|
render() {
|
|
15667
14860
|
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
15668
|
-
|
|
14861
|
+
const {
|
|
14862
|
+
disableGifting
|
|
14863
|
+
} = this.props;
|
|
15669
14864
|
if (this.state.mode === "product") {
|
|
15670
14865
|
var _ReactGA$event;
|
|
15671
|
-
|
|
14866
|
+
ReactGA$7 === null || ReactGA$7 === void 0 ? void 0 : (_ReactGA$event = ReactGA$7.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$7, {
|
|
15672
14867
|
category: "VIEWS",
|
|
15673
14868
|
action: "Product Modal Viewed",
|
|
15674
14869
|
nonInteraction: true
|
|
15675
14870
|
});
|
|
15676
14871
|
} else if (this.state.mode === "plan") {
|
|
15677
14872
|
var _ReactGA$event2;
|
|
15678
|
-
|
|
14873
|
+
ReactGA$7 === null || ReactGA$7 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$7.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$7, {
|
|
15679
14874
|
category: "VIEWS",
|
|
15680
14875
|
action: "Plan Modal Viewed",
|
|
15681
14876
|
nonInteraction: true
|
|
@@ -15694,16 +14889,25 @@ class DonationModal extends React.Component {
|
|
|
15694
14889
|
}, 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", {
|
|
15695
14890
|
className: "pelcro-select-products-wrapper"
|
|
15696
14891
|
}, (_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", {
|
|
15697
|
-
className: "plc-overflow-y-scroll pelcro-select-plans-wrapper"
|
|
15698
|
-
}, this.renderPlans()), /*#__PURE__*/React__default['default'].createElement(
|
|
14892
|
+
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
14893
|
+
}, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14894
|
+
className: "plc-flex plc-justify-center plc-mt-2"
|
|
14895
|
+
}, /*#__PURE__*/React__default['default'].createElement(Checkbox, {
|
|
14896
|
+
onChange: this.onIsGiftChange,
|
|
14897
|
+
checked: this.state.isGift,
|
|
14898
|
+
id: "pelcro-input-is-gift"
|
|
14899
|
+
}, this.locale("messages.checkbox"))), /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
15699
14900
|
disabled: this.state.disabled,
|
|
15700
|
-
onClick:
|
|
14901
|
+
onClick: this.submitOption,
|
|
15701
14902
|
id: "pelcro-submit",
|
|
15702
14903
|
className: "plc-w-full plc-mt-2"
|
|
15703
|
-
}, this.locale("buttons.
|
|
14904
|
+
}, 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, {
|
|
14905
|
+
id: "pelcro-link-login",
|
|
14906
|
+
onClick: this.displayLoginView
|
|
14907
|
+
}, this.locale("messages.loginHere"))), /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
|
|
15704
14908
|
}
|
|
15705
14909
|
}
|
|
15706
|
-
const
|
|
14910
|
+
const SelectModalWithTrans = withTranslation("select")(SelectModal);
|
|
15707
14911
|
|
|
15708
14912
|
var Provider_1 = createCommonjsModule(function (module, exports) {
|
|
15709
14913
|
|
|
@@ -17917,15 +17121,11 @@ const initialState$k = {
|
|
|
17917
17121
|
firstName: "",
|
|
17918
17122
|
lastName: "",
|
|
17919
17123
|
phone: "",
|
|
17920
|
-
email: "",
|
|
17921
|
-
password: "",
|
|
17922
17124
|
firstNameError: null,
|
|
17923
17125
|
lastNameError: null,
|
|
17924
17126
|
phoneError: null,
|
|
17925
|
-
emailError: null,
|
|
17926
17127
|
month: "",
|
|
17927
17128
|
year: "",
|
|
17928
|
-
passwordError: null,
|
|
17929
17129
|
cyberSourceSessionId: null,
|
|
17930
17130
|
alert: {
|
|
17931
17131
|
type: "error",
|
|
@@ -17959,11 +17159,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17959
17159
|
set,
|
|
17960
17160
|
order,
|
|
17961
17161
|
selectedPaymentMethodId,
|
|
17962
|
-
couponCode
|
|
17963
|
-
selectedDonationAmount,
|
|
17964
|
-
customDonationAmount,
|
|
17965
|
-
isAuthenticated,
|
|
17966
|
-
switchView
|
|
17162
|
+
couponCode
|
|
17967
17163
|
} = usePelcro();
|
|
17968
17164
|
const {
|
|
17969
17165
|
whenUserReady
|
|
@@ -17995,22 +17191,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17995
17191
|
});
|
|
17996
17192
|
updateTotalAmountWithTax();
|
|
17997
17193
|
}, []);
|
|
17998
|
-
const fireBugSnag = _ref2 => {
|
|
17999
|
-
let {
|
|
18000
|
-
error,
|
|
18001
|
-
title
|
|
18002
|
-
} = _ref2;
|
|
18003
|
-
notifyBugsnag(() => {
|
|
18004
|
-
Bugsnag.notify(title !== null && title !== void 0 ? title : "ERROR", event => {
|
|
18005
|
-
var _document$getElementB, _document$querySelect;
|
|
18006
|
-
event.addMetadata("MetaData", {
|
|
18007
|
-
error: error !== null && error !== void 0 ? error : "ERROR",
|
|
18008
|
-
paymentModalViewed: (_document$getElementB = !!document.getElementById("pelcro-subscription-create-modal")) !== null && _document$getElementB !== void 0 ? _document$getElementB : false,
|
|
18009
|
-
errorAppeared: (_document$querySelect = !!document.querySelector(".pelcro-alert-error")) !== null && _document$querySelect !== void 0 ? _document$querySelect : false
|
|
18010
|
-
});
|
|
18011
|
-
});
|
|
18012
|
-
});
|
|
18013
|
-
};
|
|
18014
17194
|
|
|
18015
17195
|
/*====== Start Cybersource integration ========*/
|
|
18016
17196
|
const cybersourceErrorHandle = err => {
|
|
@@ -18020,10 +17200,10 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18020
17200
|
const errorMessages = [];
|
|
18021
17201
|
|
|
18022
17202
|
// enumerable error (ex: validation errors)
|
|
18023
|
-
Object.values(err === null || err === void 0 ? void 0 : (_err$details2 = err.details) === null || _err$details2 === void 0 ? void 0 : (_err$details2$respons = _err$details2.responseStatus) === null || _err$details2$respons === void 0 ? void 0 : _err$details2$respons.details).forEach(
|
|
17203
|
+
Object.values(err === null || err === void 0 ? void 0 : (_err$details2 = err.details) === null || _err$details2 === void 0 ? void 0 : (_err$details2$respons = _err$details2.responseStatus) === null || _err$details2$respons === void 0 ? void 0 : _err$details2$respons.details).forEach(_ref2 => {
|
|
18024
17204
|
let {
|
|
18025
17205
|
message
|
|
18026
|
-
} =
|
|
17206
|
+
} = _ref2;
|
|
18027
17207
|
errorMessages.push(message);
|
|
18028
17208
|
});
|
|
18029
17209
|
|
|
@@ -18285,7 +17465,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18285
17465
|
|
|
18286
17466
|
/*====== Start Tap integration ========*/
|
|
18287
17467
|
const submitUsingTap = state => {
|
|
18288
|
-
var _ref4, _ref5,
|
|
17468
|
+
var _ref3, _ref4, _ref5, _state$updatedPrice;
|
|
18289
17469
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
18290
17470
|
if (isUsingExistingPaymentMethod) {
|
|
18291
17471
|
// no need to create a new source using tap
|
|
@@ -18309,15 +17489,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18309
17489
|
return total + item.price * item.quantity;
|
|
18310
17490
|
}, 0);
|
|
18311
17491
|
};
|
|
18312
|
-
|
|
18313
|
-
if (state.updatedPrice) return state.updatedPrice;
|
|
18314
|
-
if (plan.type === "donation" && (selectedDonationAmount || customDonationAmount)) {
|
|
18315
|
-
return selectedDonationAmount ? selectedDonationAmount * plan.amount : customDonationAmount * plan.amount;
|
|
18316
|
-
} else {
|
|
18317
|
-
return plan.amount;
|
|
18318
|
-
}
|
|
18319
|
-
}
|
|
18320
|
-
const totalAmount = (_ref4 = (_ref5 = (_getPlanAmount = getPlanAmount()) !== null && _getPlanAmount !== void 0 ? _getPlanAmount : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref5 !== void 0 ? _ref5 : getOrderItemsTotal()) !== null && _ref4 !== void 0 ? _ref4 : 10;
|
|
17492
|
+
const totalAmount = (_ref3 = (_ref4 = (_ref5 = (_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 && _ref5 !== void 0 ? _ref5 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref4 !== void 0 ? _ref4 : getOrderItemsTotal()) !== null && _ref3 !== void 0 ? _ref3 : 10;
|
|
18321
17493
|
tapInstanceRef.current.createToken(tapInstanceCard.current).then(function (result) {
|
|
18322
17494
|
if (result.error) {
|
|
18323
17495
|
// Inform the user if there was an error
|
|
@@ -18799,21 +17971,13 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18799
17971
|
}, [selectedPaymentMethodId]);
|
|
18800
17972
|
const initPaymentRequest = (state, dispatch) => {
|
|
18801
17973
|
if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
|
|
18802
|
-
function getPlanAmount() {
|
|
18803
|
-
if (state.updatedPrice) return state.updatedPrice;
|
|
18804
|
-
if (plan.type === "donation" && (selectedDonationAmount || customDonationAmount)) {
|
|
18805
|
-
return selectedDonationAmount ? selectedDonationAmount * plan.amount : customDonationAmount * plan.amount;
|
|
18806
|
-
} else {
|
|
18807
|
-
return plan.amount;
|
|
18808
|
-
}
|
|
18809
|
-
}
|
|
18810
17974
|
try {
|
|
18811
17975
|
const paymentRequest = stripe.paymentRequest({
|
|
18812
17976
|
country: window.Pelcro.user.location.countryCode || "US",
|
|
18813
17977
|
currency: plan.currency,
|
|
18814
17978
|
total: {
|
|
18815
17979
|
label: plan.nickname || plan.description,
|
|
18816
|
-
amount:
|
|
17980
|
+
amount: state.updatedPrice || plan.amount
|
|
18817
17981
|
}
|
|
18818
17982
|
});
|
|
18819
17983
|
|
|
@@ -18845,12 +18009,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18845
18009
|
error
|
|
18846
18010
|
} = _ref7;
|
|
18847
18011
|
if (error) {
|
|
18848
|
-
handlePaymentError(error);
|
|
18849
|
-
fireBugSnag({
|
|
18850
|
-
error,
|
|
18851
|
-
title: "generate3DSecureSource - ERROR"
|
|
18852
|
-
});
|
|
18853
|
-
return;
|
|
18012
|
+
return handlePaymentError(error);
|
|
18854
18013
|
}
|
|
18855
18014
|
toggleAuthenticationPendingView(true, source);
|
|
18856
18015
|
});
|
|
@@ -19134,18 +18293,13 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19134
18293
|
});
|
|
19135
18294
|
if (res.error) {
|
|
19136
18295
|
onFailure(res.error);
|
|
19137
|
-
dispatch({
|
|
18296
|
+
return dispatch({
|
|
19138
18297
|
type: SHOW_ALERT,
|
|
19139
18298
|
payload: {
|
|
19140
18299
|
type: "error",
|
|
19141
18300
|
content: isSubCreate ? t("messages.tryAgainFromInvoice") : getErrorMessages(res.error)
|
|
19142
18301
|
}
|
|
19143
18302
|
});
|
|
19144
|
-
fireBugSnag({
|
|
19145
|
-
error: getErrorMessages(res.error),
|
|
19146
|
-
title: "StripeConfirmCardPayment - ERROR"
|
|
19147
|
-
});
|
|
19148
|
-
return;
|
|
19149
18303
|
}
|
|
19150
18304
|
onSuccess(res);
|
|
19151
18305
|
});
|
|
@@ -19161,18 +18315,13 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19161
18315
|
payload: false
|
|
19162
18316
|
});
|
|
19163
18317
|
onFailure(error);
|
|
19164
|
-
dispatch({
|
|
18318
|
+
return dispatch({
|
|
19165
18319
|
type: SHOW_ALERT,
|
|
19166
18320
|
payload: {
|
|
19167
18321
|
type: "error",
|
|
19168
18322
|
content: isSubCreate ? t("messages.tryAgainFromInvoice") : t("messages.cardAuthFailed")
|
|
19169
18323
|
}
|
|
19170
18324
|
});
|
|
19171
|
-
fireBugSnag({
|
|
19172
|
-
error: getErrorMessages(error),
|
|
19173
|
-
title: "StripeConfirmCardPayment - ERROR"
|
|
19174
|
-
});
|
|
19175
|
-
return;
|
|
19176
18325
|
} else {
|
|
19177
18326
|
onSuccess(response);
|
|
19178
18327
|
}
|
|
@@ -19187,18 +18336,13 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19187
18336
|
});
|
|
19188
18337
|
if (error) {
|
|
19189
18338
|
onFailure(error);
|
|
19190
|
-
dispatch({
|
|
18339
|
+
return dispatch({
|
|
19191
18340
|
type: SHOW_ALERT,
|
|
19192
18341
|
payload: {
|
|
19193
18342
|
type: "error",
|
|
19194
18343
|
content: getErrorMessages(error)
|
|
19195
18344
|
}
|
|
19196
18345
|
});
|
|
19197
|
-
fireBugSnag({
|
|
19198
|
-
error: getErrorMessages(error),
|
|
19199
|
-
title: "StripeConfirmCardPayment - ERROR"
|
|
19200
|
-
});
|
|
19201
|
-
return;
|
|
19202
18346
|
}
|
|
19203
18347
|
onSuccess(response);
|
|
19204
18348
|
}
|
|
@@ -19524,50 +18668,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19524
18668
|
}
|
|
19525
18669
|
});
|
|
19526
18670
|
};
|
|
19527
|
-
const sendRegisterRequest = (state, callback) => {
|
|
19528
|
-
window.Pelcro.user.register({
|
|
19529
|
-
email: state.email,
|
|
19530
|
-
password: generatePassword()
|
|
19531
|
-
}, (err, res) => {
|
|
19532
|
-
if (err) {
|
|
19533
|
-
var _err$response, _err$response$data;
|
|
19534
|
-
let {
|
|
19535
|
-
registered_on_other_sites,
|
|
19536
|
-
...errors
|
|
19537
|
-
} = 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;
|
|
19538
|
-
err.response.data.errors = {
|
|
19539
|
-
...errors
|
|
19540
|
-
};
|
|
19541
|
-
let errorContent;
|
|
19542
|
-
if (getErrorMessages(err) === "This email is already in use.") {
|
|
19543
|
-
errorContent = /*#__PURE__*/React__default['default'].createElement("p", null, "This email is already in use.", " ", /*#__PURE__*/React__default['default'].createElement("button", {
|
|
19544
|
-
className: "plc-font-bold plc-underline hover:plc-no-underline",
|
|
19545
|
-
onClick: () => switchView("login")
|
|
19546
|
-
}, "Login to continue"));
|
|
19547
|
-
} else {
|
|
19548
|
-
errorContent = getErrorMessages(err);
|
|
19549
|
-
}
|
|
19550
|
-
dispatch({
|
|
19551
|
-
type: SHOW_ALERT,
|
|
19552
|
-
payload: {
|
|
19553
|
-
type: "error",
|
|
19554
|
-
content: errorContent
|
|
19555
|
-
}
|
|
19556
|
-
});
|
|
19557
|
-
dispatch({
|
|
19558
|
-
type: DISABLE_SUBMIT,
|
|
19559
|
-
payload: false
|
|
19560
|
-
});
|
|
19561
|
-
dispatch({
|
|
19562
|
-
type: LOADING,
|
|
19563
|
-
payload: false
|
|
19564
|
-
});
|
|
19565
|
-
onFailure(err);
|
|
19566
|
-
} else {
|
|
19567
|
-
callback();
|
|
19568
|
-
}
|
|
19569
|
-
});
|
|
19570
|
-
};
|
|
19571
18671
|
const submitPayment = (state, dispatch) => {
|
|
19572
18672
|
if (skipPayment && props !== null && props !== void 0 && props.freeOrders) {
|
|
19573
18673
|
const isQuickPurchase = !Array.isArray(order);
|
|
@@ -19595,7 +18695,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19595
18695
|
stripe.createSource({
|
|
19596
18696
|
type: "card"
|
|
19597
18697
|
}).then(_ref9 => {
|
|
19598
|
-
var _ref10, _ref11, _state$
|
|
18698
|
+
var _ref10, _ref11, _state$updatedPrice2;
|
|
19599
18699
|
let {
|
|
19600
18700
|
source,
|
|
19601
18701
|
error
|
|
@@ -19618,7 +18718,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19618
18718
|
return total + item.price * item.quantity;
|
|
19619
18719
|
}, 0);
|
|
19620
18720
|
};
|
|
19621
|
-
(_ref10 = (_ref11 = (_state$
|
|
18721
|
+
(_ref10 = (_ref11 = (_state$updatedPrice2 = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice2 !== void 0 ? _state$updatedPrice2 : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref11 !== void 0 ? _ref11 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref10 !== void 0 ? _ref10 : getOrderItemsTotal();
|
|
19622
18722
|
return handlePayment(source);
|
|
19623
18723
|
}).catch(error => {
|
|
19624
18724
|
return handlePaymentError(error);
|
|
@@ -19829,47 +18929,25 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19829
18929
|
return submitPayment(state);
|
|
19830
18930
|
}
|
|
19831
18931
|
if (getSiteCardProcessor() === "vantiv") {
|
|
19832
|
-
|
|
19833
|
-
return sendRegisterRequest(state, () => submitUsingVantiv(state));
|
|
19834
|
-
} else {
|
|
19835
|
-
return submitUsingVantiv(state);
|
|
19836
|
-
}
|
|
18932
|
+
return submitUsingVantiv(state);
|
|
19837
18933
|
}
|
|
19838
18934
|
if (getSiteCardProcessor() === "tap") {
|
|
19839
|
-
|
|
19840
|
-
return sendRegisterRequest(state, () => submitUsingTap(state));
|
|
19841
|
-
} else {
|
|
19842
|
-
return submitUsingTap(state);
|
|
19843
|
-
}
|
|
19844
|
-
}
|
|
19845
|
-
if (getSiteCardProcessor() === "cybersource") {
|
|
19846
|
-
return submitUsingCybersource(state, dispatch);
|
|
18935
|
+
return submitUsingTap(state);
|
|
19847
18936
|
}
|
|
19848
18937
|
if (getSiteCardProcessor() === "cybersource") {
|
|
19849
18938
|
return submitUsingCybersource(state, dispatch);
|
|
19850
18939
|
}
|
|
19851
18940
|
if (selectedPaymentMethodId) {
|
|
19852
|
-
|
|
19853
|
-
|
|
19854
|
-
|
|
19855
|
-
|
|
19856
|
-
|
|
19857
|
-
} else {
|
|
19858
|
-
// pay with selected method (source) if exists already
|
|
19859
|
-
return handlePayment({
|
|
19860
|
-
id: selectedPaymentMethodId,
|
|
19861
|
-
isExistingSource: true
|
|
19862
|
-
});
|
|
19863
|
-
}
|
|
18941
|
+
// pay with selected method (source) if exists already
|
|
18942
|
+
return handlePayment({
|
|
18943
|
+
id: selectedPaymentMethodId,
|
|
18944
|
+
isExistingSource: true
|
|
18945
|
+
});
|
|
19864
18946
|
}
|
|
19865
18947
|
if (type === "updatePaymentSource") {
|
|
19866
18948
|
return updatePaymentSource(state, dispatch);
|
|
19867
18949
|
}
|
|
19868
|
-
|
|
19869
|
-
return sendRegisterRequest(state, () => submitPayment(state));
|
|
19870
|
-
} else {
|
|
19871
|
-
return submitPayment(state);
|
|
19872
|
-
}
|
|
18950
|
+
submitPayment(state);
|
|
19873
18951
|
});
|
|
19874
18952
|
case HANDLE_PAYPAL_SUBSCRIPTION:
|
|
19875
18953
|
return lib_5(state, (state, dispatch) => {
|
|
@@ -19954,18 +19032,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19954
19032
|
phone: action.payload,
|
|
19955
19033
|
phoneError: null
|
|
19956
19034
|
});
|
|
19957
|
-
case SET_EMAIL:
|
|
19958
|
-
return lib_7({
|
|
19959
|
-
...state,
|
|
19960
|
-
email: action.payload,
|
|
19961
|
-
emailError: null
|
|
19962
|
-
});
|
|
19963
|
-
case SET_PASSWORD:
|
|
19964
|
-
return lib_7({
|
|
19965
|
-
...state,
|
|
19966
|
-
password: action.payload,
|
|
19967
|
-
passwordError: null
|
|
19968
|
-
});
|
|
19969
19035
|
case SET_FIRST_NAME_ERROR:
|
|
19970
19036
|
return lib_7({
|
|
19971
19037
|
...state,
|
|
@@ -19984,18 +19050,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19984
19050
|
phoneError: action.payload,
|
|
19985
19051
|
phone: null
|
|
19986
19052
|
});
|
|
19987
|
-
case SET_EMAIL_ERROR:
|
|
19988
|
-
return lib_7({
|
|
19989
|
-
...state,
|
|
19990
|
-
emailError: action.payload,
|
|
19991
|
-
email: ""
|
|
19992
|
-
});
|
|
19993
|
-
case SET_PASSWORD_ERROR:
|
|
19994
|
-
return lib_7({
|
|
19995
|
-
...state,
|
|
19996
|
-
passwordError: action.payload,
|
|
19997
|
-
password: ""
|
|
19998
|
-
});
|
|
19999
19053
|
case SHOW_ALERT:
|
|
20000
19054
|
return lib_7({
|
|
20001
19055
|
...state,
|
|
@@ -20034,14 +19088,18 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20034
19088
|
const UnwrappedForm = es_12(PaymentMethodContainerWithoutStripe);
|
|
20035
19089
|
const PaymentMethodContainer = props => {
|
|
20036
19090
|
const [isStripeLoaded, setIsStripeLoaded] = React.useState(Boolean(window.Stripe));
|
|
20037
|
-
|
|
19091
|
+
const {
|
|
19092
|
+
whenUserReady
|
|
19093
|
+
} = usePelcro.getStore();
|
|
20038
19094
|
const cardProcessor = getSiteCardProcessor();
|
|
20039
19095
|
React.useEffect(() => {
|
|
20040
|
-
|
|
20041
|
-
|
|
20042
|
-
|
|
20043
|
-
|
|
20044
|
-
|
|
19096
|
+
whenUserReady(() => {
|
|
19097
|
+
if (!window.Stripe && cardProcessor === "stripe") {
|
|
19098
|
+
document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
|
|
19099
|
+
setIsStripeLoaded(true);
|
|
19100
|
+
});
|
|
19101
|
+
}
|
|
19102
|
+
});
|
|
20045
19103
|
}, []);
|
|
20046
19104
|
if (isStripeLoaded) {
|
|
20047
19105
|
return /*#__PURE__*/React__default['default'].createElement(es_13, {
|
|
@@ -20334,15 +19392,13 @@ const DiscountedPrice = props => {
|
|
|
20334
19392
|
};
|
|
20335
19393
|
|
|
20336
19394
|
const SubmitPaymentMethod = _ref => {
|
|
20337
|
-
var _plan$quantity,
|
|
19395
|
+
var _plan$quantity, _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
20338
19396
|
let {
|
|
20339
19397
|
onClick,
|
|
20340
19398
|
...otherProps
|
|
20341
19399
|
} = _ref;
|
|
20342
19400
|
const {
|
|
20343
19401
|
plan,
|
|
20344
|
-
selectedDonationAmount,
|
|
20345
|
-
customDonationAmount,
|
|
20346
19402
|
selectedPaymentMethodId
|
|
20347
19403
|
} = usePelcro();
|
|
20348
19404
|
const {
|
|
@@ -20354,8 +19410,6 @@ const SubmitPaymentMethod = _ref => {
|
|
|
20354
19410
|
firstNameError,
|
|
20355
19411
|
lastNameError,
|
|
20356
19412
|
phoneError,
|
|
20357
|
-
emailError,
|
|
20358
|
-
passwordError,
|
|
20359
19413
|
firstName,
|
|
20360
19414
|
lastName,
|
|
20361
19415
|
phone,
|
|
@@ -20368,7 +19422,7 @@ const SubmitPaymentMethod = _ref => {
|
|
|
20368
19422
|
} = React.useContext(store$k);
|
|
20369
19423
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
20370
19424
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
20371
|
-
const priceFormatted =
|
|
19425
|
+
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
20372
19426
|
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);
|
|
20373
19427
|
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);
|
|
20374
19428
|
const isUserFirstName = Boolean(window.Pelcro.user.read().first_name);
|
|
@@ -20379,9 +19433,9 @@ const SubmitPaymentMethod = _ref => {
|
|
|
20379
19433
|
if (supportsTap && isUserFirstName && isUserLastName && isUserPhone) {
|
|
20380
19434
|
setDisabled(disableSubmit);
|
|
20381
19435
|
} else {
|
|
20382
|
-
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) ||
|
|
19436
|
+
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) || supportsCybersource && !selectedPaymentMethodId && !(month !== null && month !== void 0 && month.length) || supportsCybersource && !selectedPaymentMethodId && !(year !== null && year !== void 0 && year.length));
|
|
20383
19437
|
}
|
|
20384
|
-
}, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone,
|
|
19438
|
+
}, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone, month, year]);
|
|
20385
19439
|
return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
20386
19440
|
role: "submit",
|
|
20387
19441
|
className: "plc-w-full plc-py-3",
|
|
@@ -21016,10 +20070,6 @@ const OrderCreateFreeButton = _ref => {
|
|
|
21016
20070
|
}, otherProps), t("labels.submit"));
|
|
21017
20071
|
};
|
|
21018
20072
|
|
|
21019
|
-
const DonationEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
21020
|
-
store: store$k
|
|
21021
|
-
}, props));
|
|
21022
|
-
|
|
21023
20073
|
/**
|
|
21024
20074
|
*
|
|
21025
20075
|
*/
|
|
@@ -21039,10 +20089,6 @@ function PaymentMethodView(_ref) {
|
|
|
21039
20089
|
const {
|
|
21040
20090
|
t
|
|
21041
20091
|
} = useTranslation("checkoutForm");
|
|
21042
|
-
const {
|
|
21043
|
-
plan,
|
|
21044
|
-
isAuthenticated
|
|
21045
|
-
} = usePelcro();
|
|
21046
20092
|
const cardProcessor = getSiteCardProcessor();
|
|
21047
20093
|
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);
|
|
21048
20094
|
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);
|
|
@@ -21100,12 +20146,6 @@ function PaymentMethodView(_ref) {
|
|
|
21100
20146
|
errorId: "pelcro-input-phone-error",
|
|
21101
20147
|
label: t("labels.phone"),
|
|
21102
20148
|
required: true
|
|
21103
|
-
})), !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, {
|
|
21104
|
-
id: "pelcro-input-email",
|
|
21105
|
-
errorId: "pelcro-input-email-error",
|
|
21106
|
-
label: t("labels.email"),
|
|
21107
|
-
required: true,
|
|
21108
|
-
autoFocus: true
|
|
21109
20149
|
})), /*#__PURE__*/React__default['default'].createElement(CheckoutForm, null), showCoupon && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21110
20150
|
className: "plc-mb-2"
|
|
21111
20151
|
}, /*#__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", {
|
|
@@ -21425,7 +20465,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
21425
20465
|
switchView(null);
|
|
21426
20466
|
|
|
21427
20467
|
//Show confirmation alert after closing the modal
|
|
21428
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
20468
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
21429
20469
|
cancelSubscription(payload, onSuccess, onFailure);
|
|
21430
20470
|
}, {
|
|
21431
20471
|
confirmMessage: t("messages.subCancellation.isSureToCancelNow"),
|
|
@@ -21497,7 +20537,7 @@ const SubscriptionCancelLaterButton = _ref => {
|
|
|
21497
20537
|
switchView(null);
|
|
21498
20538
|
|
|
21499
20539
|
//Show confirmation alert after closing the modal
|
|
21500
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
20540
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
21501
20541
|
cancelSubscription(payload, onSuccess, onFailure);
|
|
21502
20542
|
}, {
|
|
21503
20543
|
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
@@ -21734,7 +20774,7 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
21734
20774
|
switchView(null);
|
|
21735
20775
|
|
|
21736
20776
|
//Show confirmation alert after closing the modal
|
|
21737
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
20777
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
21738
20778
|
suspendSubscription(payload, onSuccess, onFailure);
|
|
21739
20779
|
}, {
|
|
21740
20780
|
confirmMessage: t("messages.subCancellation.isSureToSuspendNow"),
|
|
@@ -22454,14 +21494,12 @@ const SubscriptionCreateView = _ref => {
|
|
|
22454
21494
|
} = useTranslation("checkoutForm");
|
|
22455
21495
|
const {
|
|
22456
21496
|
product,
|
|
22457
|
-
plan
|
|
22458
|
-
selectedDonationAmount,
|
|
22459
|
-
customDonationAmount
|
|
21497
|
+
plan
|
|
22460
21498
|
} = usePelcro();
|
|
22461
21499
|
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;
|
|
22462
21500
|
const showSubscriptionButton = skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0;
|
|
22463
21501
|
const getPricingText = plan => {
|
|
22464
|
-
var _plan$quantity
|
|
21502
|
+
var _plan$quantity;
|
|
22465
21503
|
const autoRenewed = plan.auto_renew;
|
|
22466
21504
|
const {
|
|
22467
21505
|
interval,
|
|
@@ -22471,7 +21509,7 @@ const SubscriptionCreateView = _ref => {
|
|
|
22471
21509
|
interval,
|
|
22472
21510
|
count: interval_count
|
|
22473
21511
|
});
|
|
22474
|
-
const priceFormatted =
|
|
21512
|
+
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());
|
|
22475
21513
|
return /*#__PURE__*/React__default['default'].createElement("p", {
|
|
22476
21514
|
className: "plc-text-gray-600"
|
|
22477
21515
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
@@ -23794,7 +22832,7 @@ const AddressCreateContainer = _ref => {
|
|
|
23794
22832
|
});
|
|
23795
22833
|
return onFailure(err);
|
|
23796
22834
|
}
|
|
23797
|
-
notify.success(t("messages.addressUpdated"));
|
|
22835
|
+
notify$1.success(t("messages.addressUpdated"));
|
|
23798
22836
|
return onMembershipAdressUpdateSuccess(res);
|
|
23799
22837
|
});
|
|
23800
22838
|
}
|
|
@@ -26677,16 +25715,6 @@ const GiftCreateContainer = _ref => {
|
|
|
26677
25715
|
return onFailure();
|
|
26678
25716
|
}
|
|
26679
25717
|
}
|
|
26680
|
-
if (giftRecipient.giftMessage && !isStringValid(giftRecipient.giftMessage)) {
|
|
26681
|
-
dispatch({
|
|
26682
|
-
type: SHOW_ALERT,
|
|
26683
|
-
payload: {
|
|
26684
|
-
type: "error",
|
|
26685
|
-
content: t("gift.messages.giftMessageAllowedCharacters")
|
|
26686
|
-
}
|
|
26687
|
-
});
|
|
26688
|
-
return onFailure();
|
|
26689
|
-
}
|
|
26690
25718
|
set({
|
|
26691
25719
|
giftRecipient
|
|
26692
25720
|
});
|
|
@@ -27295,7 +26323,7 @@ const AddressSelectContainer = _ref => {
|
|
|
27295
26323
|
});
|
|
27296
26324
|
return onFailure(err);
|
|
27297
26325
|
}
|
|
27298
|
-
notify.success(t("messages.addressUpdated"));
|
|
26326
|
+
notify$1.success(t("messages.addressUpdated"));
|
|
27299
26327
|
return onMembershipAdressUpdateSuccess(res);
|
|
27300
26328
|
});
|
|
27301
26329
|
}
|
|
@@ -29256,7 +28284,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29256
28284
|
return switchView("email-verify");
|
|
29257
28285
|
}
|
|
29258
28286
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
29259
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
28287
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
29260
28288
|
cancelSubscription(sub.id, onSuccess, onFailure);
|
|
29261
28289
|
}, {
|
|
29262
28290
|
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
@@ -29273,7 +28301,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29273
28301
|
if (userMustVerifyEmail()) {
|
|
29274
28302
|
return switchView("email-verify");
|
|
29275
28303
|
}
|
|
29276
|
-
reactivateSubscription(sub.id
|
|
28304
|
+
reactivateSubscription(sub.id);
|
|
29277
28305
|
};
|
|
29278
28306
|
|
|
29279
28307
|
// Renew click
|
|
@@ -29311,7 +28339,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29311
28339
|
return switchView("email-verify");
|
|
29312
28340
|
}
|
|
29313
28341
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
29314
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
28342
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
29315
28343
|
unSuspendSubscription(sub.id, onSuccess, onFailure);
|
|
29316
28344
|
}, {
|
|
29317
28345
|
confirmMessage: t("messages.subUnSuspend.isSureToUnSuspend"),
|
|
@@ -29393,7 +28421,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29393
28421
|
onClick: onCancelClick,
|
|
29394
28422
|
disabled: disableSubmit,
|
|
29395
28423
|
"data-key": sub.id
|
|
29396
|
-
}, t("labels.unsubscribe")) : "", (sub === null || sub === void 0 ? void 0 : (_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) ===
|
|
28424
|
+
}, 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, {
|
|
29397
28425
|
variant: "ghost",
|
|
29398
28426
|
className: "plc-text-blue-400 pelcro-dashboard-sub-manage-members-button",
|
|
29399
28427
|
icon: /*#__PURE__*/React__default['default'].createElement(SvgRefresh, null),
|
|
@@ -29440,10 +28468,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29440
28468
|
};
|
|
29441
28469
|
function getNonDonationSubs() {
|
|
29442
28470
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3;
|
|
29443
|
-
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 =>
|
|
29444
|
-
var _sub$plan2;
|
|
29445
|
-
return ((_sub$plan2 = sub.plan) === null || _sub$plan2 === void 0 ? void 0 : _sub$plan2.type) !== "donation";
|
|
29446
|
-
})) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
28471
|
+
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 => !sub.plan.is_donation)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
29447
28472
|
}
|
|
29448
28473
|
function isDateAfterToday(date) {
|
|
29449
28474
|
const today = new Date().setHours(0, 0, 0, 0);
|
|
@@ -29731,7 +28756,6 @@ function SvgQrcode(props) {
|
|
|
29731
28756
|
|
|
29732
28757
|
const DonationsMenu = _ref => {
|
|
29733
28758
|
let {
|
|
29734
|
-
onClose,
|
|
29735
28759
|
reactivateSubscription,
|
|
29736
28760
|
disableSubmit,
|
|
29737
28761
|
cancelSubscription
|
|
@@ -29743,10 +28767,10 @@ const DonationsMenu = _ref => {
|
|
|
29743
28767
|
switchView,
|
|
29744
28768
|
setSubscriptionToCancel
|
|
29745
28769
|
} = usePelcro();
|
|
29746
|
-
const
|
|
29747
|
-
console.log("Sub", sub);
|
|
28770
|
+
const subscriptions = getDonationSubs().sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
|
|
29748
28771
|
// Cancel button click handlers
|
|
29749
28772
|
const onCancelClick = () => {
|
|
28773
|
+
var _onClose;
|
|
29750
28774
|
const isImmediateCancelationEnabled = window.Pelcro.site.read().cancel_settings.status;
|
|
29751
28775
|
if (isImmediateCancelationEnabled) {
|
|
29752
28776
|
setSubscriptionToCancel(sub.id);
|
|
@@ -29755,16 +28779,16 @@ const DonationsMenu = _ref => {
|
|
|
29755
28779
|
if (userMustVerifyEmail()) {
|
|
29756
28780
|
return switchView("email-verify");
|
|
29757
28781
|
}
|
|
29758
|
-
onClose === null ||
|
|
28782
|
+
(_onClose = onClose) === null || _onClose === void 0 ? void 0 : _onClose();
|
|
29759
28783
|
notify.confirm((onSuccess, onFailure) => {
|
|
29760
28784
|
cancelSubscription(sub.id, onSuccess, onFailure);
|
|
29761
28785
|
}, {
|
|
29762
|
-
confirmMessage: t("messages.
|
|
29763
|
-
loadingMessage: t("messages.
|
|
29764
|
-
successMessage: t("messages.
|
|
29765
|
-
errorMessage: t("messages.
|
|
28786
|
+
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
28787
|
+
loadingMessage: t("messages.subCancellation.loading"),
|
|
28788
|
+
successMessage: t("messages.subCancellation.success"),
|
|
28789
|
+
errorMessage: t("messages.subCancellation.error")
|
|
29766
28790
|
}, {
|
|
29767
|
-
closeButtonLabel: t("labels.
|
|
28791
|
+
closeButtonLabel: t("labels.subCancellation.goBack")
|
|
29768
28792
|
});
|
|
29769
28793
|
};
|
|
29770
28794
|
|
|
@@ -29773,7 +28797,7 @@ const DonationsMenu = _ref => {
|
|
|
29773
28797
|
if (userMustVerifyEmail()) {
|
|
29774
28798
|
return switchView("email-verify");
|
|
29775
28799
|
}
|
|
29776
|
-
reactivateSubscription(sub.id
|
|
28800
|
+
reactivateSubscription(sub.id);
|
|
29777
28801
|
};
|
|
29778
28802
|
return /*#__PURE__*/React__default['default'].createElement("tr", {
|
|
29779
28803
|
key: sub.id,
|
|
@@ -29814,18 +28838,12 @@ const DonationsMenu = _ref => {
|
|
|
29814
28838
|
className: "plc-w-3/12 "
|
|
29815
28839
|
}, t("labels.actions")))), /*#__PURE__*/React__default['default'].createElement("tbody", null, /*#__PURE__*/React__default['default'].createElement("tr", {
|
|
29816
28840
|
className: "plc-h-4"
|
|
29817
|
-
}),
|
|
28841
|
+
}), subscriptions));
|
|
29818
28842
|
};
|
|
29819
28843
|
function getDonationSubs() {
|
|
29820
28844
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r, _window$Pelcro$user$r2;
|
|
29821
|
-
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 =>
|
|
29822
|
-
|
|
29823
|
-
return ((_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) === "donation";
|
|
29824
|
-
})) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
29825
|
-
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 => {
|
|
29826
|
-
var _sub$plan2;
|
|
29827
|
-
return ((_sub$plan2 = sub.plan) === null || _sub$plan2 === void 0 ? void 0 : _sub$plan2.type) === "donation";
|
|
29828
|
-
})) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
|
|
28845
|
+
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 => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
28846
|
+
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 => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
|
|
29829
28847
|
return [...donations, ...canceledDonations];
|
|
29830
28848
|
}
|
|
29831
28849
|
function formatStartDate(date) {
|
|
@@ -30216,7 +29234,7 @@ class Dashboard extends React.Component {
|
|
|
30216
29234
|
const formattedRenewDate = new Intl.DateTimeFormat("en-CA").format(renewDate);
|
|
30217
29235
|
return `${this.locale("labels.renewsOn")} ${formattedRenewDate}`;
|
|
30218
29236
|
});
|
|
30219
|
-
_defineProperty$3(this, "reactivateSubscription",
|
|
29237
|
+
_defineProperty$3(this, "reactivateSubscription", subscription_id => {
|
|
30220
29238
|
// disable the Login button to prevent repeated clicks
|
|
30221
29239
|
this.setState({
|
|
30222
29240
|
disableSubmit: true
|
|
@@ -30230,17 +29248,9 @@ class Dashboard extends React.Component {
|
|
|
30230
29248
|
});
|
|
30231
29249
|
this.props.onClose();
|
|
30232
29250
|
if (err) {
|
|
30233
|
-
|
|
30234
|
-
return notify.error(this.locale("messages.donationReactivation.error"));
|
|
30235
|
-
} else {
|
|
30236
|
-
return notify.error(this.locale("messages.subReactivation.error"));
|
|
30237
|
-
}
|
|
30238
|
-
}
|
|
30239
|
-
if (isDonation) {
|
|
30240
|
-
return notify.success(this.locale("messages.donationReactivation.success"));
|
|
30241
|
-
} else {
|
|
30242
|
-
return notify.success(this.locale("messages.subReactivation.success"));
|
|
29251
|
+
return notify$1.error(this.locale("messages.subReactivation.error"));
|
|
30243
29252
|
}
|
|
29253
|
+
return notify$1.success(this.locale("messages.subReactivation.success"));
|
|
30244
29254
|
});
|
|
30245
29255
|
});
|
|
30246
29256
|
_defineProperty$3(this, "getSubscriptionStatus", sub => {
|
|
@@ -30602,7 +29612,6 @@ class Dashboard extends React.Component {
|
|
|
30602
29612
|
}),
|
|
30603
29613
|
title: this.locale("labels.donations"),
|
|
30604
29614
|
content: /*#__PURE__*/React__default['default'].createElement(DonationsMenu, {
|
|
30605
|
-
onClose: this.props.onClose,
|
|
30606
29615
|
reactivateSubscription: this.reactivateSubscription,
|
|
30607
29616
|
disableSubmit: this.state.disableSubmit,
|
|
30608
29617
|
cancelSubscription: this.cancelSubscription
|
|
@@ -30644,14 +29653,8 @@ function hasInvoices() {
|
|
|
30644
29653
|
}
|
|
30645
29654
|
function hasDonationSubs() {
|
|
30646
29655
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
|
|
30647
|
-
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 =>
|
|
30648
|
-
|
|
30649
|
-
return ((_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) === "donation";
|
|
30650
|
-
})) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
30651
|
-
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 => {
|
|
30652
|
-
var _sub$plan2;
|
|
30653
|
-
return ((_sub$plan2 = sub.plan) === null || _sub$plan2 === void 0 ? void 0 : _sub$plan2.type) === "donation";
|
|
30654
|
-
})) !== null && _window$Pelcro$user$r4 !== void 0 ? _window$Pelcro$user$r4 : [];
|
|
29656
|
+
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 => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
29657
|
+
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 => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$user$r4 !== void 0 ? _window$Pelcro$user$r4 : [];
|
|
30655
29658
|
return donations.length > 0 || canceledDonations.length > 0;
|
|
30656
29659
|
}
|
|
30657
29660
|
function hasActiveMemberships() {
|
|
@@ -32816,7 +31819,7 @@ function VerifyLinkTokenModal(_ref) {
|
|
|
32816
31819
|
var _props$onSuccess;
|
|
32817
31820
|
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
32818
31821
|
resetView();
|
|
32819
|
-
notify.success(t("messages.success"));
|
|
31822
|
+
notify$1.success(t("messages.success"));
|
|
32820
31823
|
};
|
|
32821
31824
|
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
32822
31825
|
id: "pelcro-login-modal",
|
|
@@ -34530,7 +33533,6 @@ exports.Dashboard = DashboardWithHook;
|
|
|
34530
33533
|
exports.DashboardOpenButton = DashboardOpenButton;
|
|
34531
33534
|
exports.DatePicker = DatePicker;
|
|
34532
33535
|
exports.DiscountedPrice = DiscountedPrice;
|
|
34533
|
-
exports.DonationModal = DonationModalWithHook;
|
|
34534
33536
|
exports.Email = Email;
|
|
34535
33537
|
exports.EmailVerifyContainer = EmailVerifyContainer;
|
|
34536
33538
|
exports.EmailVerifyModal = EmailVerifyModal;
|
|
@@ -34708,6 +33710,6 @@ exports.i18n = i18next;
|
|
|
34708
33710
|
exports.initButtons = init$1;
|
|
34709
33711
|
exports.initContentEntitlement = init;
|
|
34710
33712
|
exports.invoicePaymentSubmitButton = invoicePaymentSubmitButton;
|
|
34711
|
-
exports.notify = notify;
|
|
33713
|
+
exports.notify = notify$1;
|
|
34712
33714
|
exports.unauthenticatedButtons = unauthenticatedButtons;
|
|
34713
33715
|
exports.usePelcro = usePelcro;
|