@pelcro/react-pelcro-js 3.23.0-beta.9 → 3.24.0
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 +667 -1629
- package/dist/index.esm.js +667 -1628
- 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,
|
|
@@ -9487,7 +9262,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
|
|
|
9487
9262
|
* @return {boolean}
|
|
9488
9263
|
*/
|
|
9489
9264
|
const isValidViewFromURL = viewID => {
|
|
9490
|
-
if (["login", "register", "plan-select", "
|
|
9265
|
+
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()) {
|
|
9491
9266
|
return true;
|
|
9492
9267
|
}
|
|
9493
9268
|
return false;
|
|
@@ -9694,24 +9469,6 @@ function notifyBugsnag(callback, startOptions) {
|
|
|
9694
9469
|
callback();
|
|
9695
9470
|
}
|
|
9696
9471
|
|
|
9697
|
-
//create a safe and strong password string with special characters
|
|
9698
|
-
function generatePassword() {
|
|
9699
|
-
const length = 16;
|
|
9700
|
-
const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+{}|:<>?`~";
|
|
9701
|
-
let retVal = "";
|
|
9702
|
-
for (let i = 0, n = charset.length; i < length; ++i) {
|
|
9703
|
-
retVal += charset.charAt(Math.floor(Math.random() * n));
|
|
9704
|
-
}
|
|
9705
|
-
return retVal;
|
|
9706
|
-
}
|
|
9707
|
-
function isStringValid(str) {
|
|
9708
|
-
// Define the regular expression to match only letters, numbers and spaces
|
|
9709
|
-
var regex = /^[a-zA-Z0-9\s]+$/;
|
|
9710
|
-
|
|
9711
|
-
// Test the string against the regular expression
|
|
9712
|
-
return regex.test(str);
|
|
9713
|
-
}
|
|
9714
|
-
|
|
9715
9472
|
const resources = {
|
|
9716
9473
|
en: {
|
|
9717
9474
|
common: common_en,
|
|
@@ -9736,7 +9493,6 @@ const resources = {
|
|
|
9736
9493
|
payment: payment_en,
|
|
9737
9494
|
dashboard: dashboard_en,
|
|
9738
9495
|
select: select_en,
|
|
9739
|
-
donation: donation_en,
|
|
9740
9496
|
notification: notification_en,
|
|
9741
9497
|
invoiceDetails: invoiceDetails_en,
|
|
9742
9498
|
subscriptionCancel: subscriptionCancel_en,
|
|
@@ -9766,7 +9522,6 @@ const resources = {
|
|
|
9766
9522
|
payment: payment_fr,
|
|
9767
9523
|
dashboard: dashboard_fr,
|
|
9768
9524
|
select: select_fr,
|
|
9769
|
-
donation: donation_fr,
|
|
9770
9525
|
notification: notification_fr,
|
|
9771
9526
|
invoiceDetails: invoiceDetails_fr,
|
|
9772
9527
|
subscriptionCancel: subscriptionCancel_fr,
|
|
@@ -9796,7 +9551,6 @@ const resources = {
|
|
|
9796
9551
|
payment: payment_ko,
|
|
9797
9552
|
dashboard: dashboard_ko,
|
|
9798
9553
|
select: select_ko,
|
|
9799
|
-
donation: donation_ko,
|
|
9800
9554
|
notification: notification_ko,
|
|
9801
9555
|
invoiceDetails: invoiceDetails_ko,
|
|
9802
9556
|
subscriptionCancel: subscriptionCancel_ko,
|
|
@@ -9826,7 +9580,6 @@ const resources = {
|
|
|
9826
9580
|
payment: payment_es,
|
|
9827
9581
|
dashboard: dashboard_es,
|
|
9828
9582
|
select: select_es,
|
|
9829
|
-
donation: donation_es,
|
|
9830
9583
|
notification: notification_es,
|
|
9831
9584
|
invoiceDetails: invoiceDetails_es,
|
|
9832
9585
|
subscriptionCancel: subscriptionCancel_es,
|
|
@@ -9862,175 +9615,6 @@ pageLanguageObserver.observe(document.documentElement, {
|
|
|
9862
9615
|
attributes: true
|
|
9863
9616
|
});
|
|
9864
9617
|
|
|
9865
|
-
var pure$1 = createCommonjsModule(function (module, exports) {
|
|
9866
|
-
|
|
9867
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9868
|
-
|
|
9869
|
-
function _typeof(obj) {
|
|
9870
|
-
"@babel/helpers - typeof";
|
|
9871
|
-
|
|
9872
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
9873
|
-
_typeof = function (obj) {
|
|
9874
|
-
return typeof obj;
|
|
9875
|
-
};
|
|
9876
|
-
} else {
|
|
9877
|
-
_typeof = function (obj) {
|
|
9878
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
9879
|
-
};
|
|
9880
|
-
}
|
|
9881
|
-
|
|
9882
|
-
return _typeof(obj);
|
|
9883
|
-
}
|
|
9884
|
-
|
|
9885
|
-
var V3_URL = 'https://js.stripe.com/v3';
|
|
9886
|
-
var V3_URL_REGEX = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;
|
|
9887
|
-
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';
|
|
9888
|
-
var findScript = function findScript() {
|
|
9889
|
-
var scripts = document.querySelectorAll("script[src^=\"".concat(V3_URL, "\"]"));
|
|
9890
|
-
|
|
9891
|
-
for (var i = 0; i < scripts.length; i++) {
|
|
9892
|
-
var script = scripts[i];
|
|
9893
|
-
|
|
9894
|
-
if (!V3_URL_REGEX.test(script.src)) {
|
|
9895
|
-
continue;
|
|
9896
|
-
}
|
|
9897
|
-
|
|
9898
|
-
return script;
|
|
9899
|
-
}
|
|
9900
|
-
|
|
9901
|
-
return null;
|
|
9902
|
-
};
|
|
9903
|
-
|
|
9904
|
-
var injectScript = function injectScript(params) {
|
|
9905
|
-
var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';
|
|
9906
|
-
var script = document.createElement('script');
|
|
9907
|
-
script.src = "".concat(V3_URL).concat(queryString);
|
|
9908
|
-
var headOrBody = document.head || document.body;
|
|
9909
|
-
|
|
9910
|
-
if (!headOrBody) {
|
|
9911
|
-
throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');
|
|
9912
|
-
}
|
|
9913
|
-
|
|
9914
|
-
headOrBody.appendChild(script);
|
|
9915
|
-
return script;
|
|
9916
|
-
};
|
|
9917
|
-
|
|
9918
|
-
var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
9919
|
-
if (!stripe || !stripe._registerWrapper) {
|
|
9920
|
-
return;
|
|
9921
|
-
}
|
|
9922
|
-
|
|
9923
|
-
stripe._registerWrapper({
|
|
9924
|
-
name: 'stripe-js',
|
|
9925
|
-
version: "1.21.1",
|
|
9926
|
-
startTime: startTime
|
|
9927
|
-
});
|
|
9928
|
-
};
|
|
9929
|
-
|
|
9930
|
-
var stripePromise = null;
|
|
9931
|
-
var loadScript = function loadScript(params) {
|
|
9932
|
-
// Ensure that we only attempt to load Stripe.js at most once
|
|
9933
|
-
if (stripePromise !== null) {
|
|
9934
|
-
return stripePromise;
|
|
9935
|
-
}
|
|
9936
|
-
|
|
9937
|
-
stripePromise = new Promise(function (resolve, reject) {
|
|
9938
|
-
if (typeof window === 'undefined') {
|
|
9939
|
-
// Resolve to null when imported server side. This makes the module
|
|
9940
|
-
// safe to import in an isomorphic code base.
|
|
9941
|
-
resolve(null);
|
|
9942
|
-
return;
|
|
9943
|
-
}
|
|
9944
|
-
|
|
9945
|
-
if (window.Stripe && params) {
|
|
9946
|
-
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
9947
|
-
}
|
|
9948
|
-
|
|
9949
|
-
if (window.Stripe) {
|
|
9950
|
-
resolve(window.Stripe);
|
|
9951
|
-
return;
|
|
9952
|
-
}
|
|
9953
|
-
|
|
9954
|
-
try {
|
|
9955
|
-
var script = findScript();
|
|
9956
|
-
|
|
9957
|
-
if (script && params) {
|
|
9958
|
-
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
9959
|
-
} else if (!script) {
|
|
9960
|
-
script = injectScript(params);
|
|
9961
|
-
}
|
|
9962
|
-
|
|
9963
|
-
script.addEventListener('load', function () {
|
|
9964
|
-
if (window.Stripe) {
|
|
9965
|
-
resolve(window.Stripe);
|
|
9966
|
-
} else {
|
|
9967
|
-
reject(new Error('Stripe.js not available'));
|
|
9968
|
-
}
|
|
9969
|
-
});
|
|
9970
|
-
script.addEventListener('error', function () {
|
|
9971
|
-
reject(new Error('Failed to load Stripe.js'));
|
|
9972
|
-
});
|
|
9973
|
-
} catch (error) {
|
|
9974
|
-
reject(error);
|
|
9975
|
-
return;
|
|
9976
|
-
}
|
|
9977
|
-
});
|
|
9978
|
-
return stripePromise;
|
|
9979
|
-
};
|
|
9980
|
-
var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
9981
|
-
if (maybeStripe === null) {
|
|
9982
|
-
return null;
|
|
9983
|
-
}
|
|
9984
|
-
|
|
9985
|
-
var stripe = maybeStripe.apply(undefined, args);
|
|
9986
|
-
registerWrapper(stripe, startTime);
|
|
9987
|
-
return stripe;
|
|
9988
|
-
};
|
|
9989
|
-
var validateLoadParams = function validateLoadParams(params) {
|
|
9990
|
-
var errorMessage = "invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(params), "\n");
|
|
9991
|
-
|
|
9992
|
-
if (params === null || _typeof(params) !== 'object') {
|
|
9993
|
-
throw new Error(errorMessage);
|
|
9994
|
-
}
|
|
9995
|
-
|
|
9996
|
-
if (Object.keys(params).length === 1 && typeof params.advancedFraudSignals === 'boolean') {
|
|
9997
|
-
return params;
|
|
9998
|
-
}
|
|
9999
|
-
|
|
10000
|
-
throw new Error(errorMessage);
|
|
10001
|
-
};
|
|
10002
|
-
|
|
10003
|
-
var loadParams;
|
|
10004
|
-
var loadStripeCalled = false;
|
|
10005
|
-
var loadStripe = function loadStripe() {
|
|
10006
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10007
|
-
args[_key] = arguments[_key];
|
|
10008
|
-
}
|
|
10009
|
-
|
|
10010
|
-
loadStripeCalled = true;
|
|
10011
|
-
var startTime = Date.now();
|
|
10012
|
-
return loadScript(loadParams).then(function (maybeStripe) {
|
|
10013
|
-
return initStripe(maybeStripe, args, startTime);
|
|
10014
|
-
});
|
|
10015
|
-
};
|
|
10016
|
-
|
|
10017
|
-
loadStripe.setLoadParameters = function (params) {
|
|
10018
|
-
if (loadStripeCalled) {
|
|
10019
|
-
throw new Error('You cannot change load parameters after calling loadStripe');
|
|
10020
|
-
}
|
|
10021
|
-
|
|
10022
|
-
loadParams = validateLoadParams(params);
|
|
10023
|
-
};
|
|
10024
|
-
|
|
10025
|
-
exports.loadStripe = loadStripe;
|
|
10026
|
-
});
|
|
10027
|
-
|
|
10028
|
-
unwrapExports(pure$1);
|
|
10029
|
-
pure$1.loadStripe;
|
|
10030
|
-
|
|
10031
|
-
var pure = pure$1;
|
|
10032
|
-
var pure_1 = pure.loadStripe;
|
|
10033
|
-
|
|
10034
9618
|
function _classPrivateFieldGet(receiver, privateMap) {
|
|
10035
9619
|
var descriptor = privateMap.get(receiver);
|
|
10036
9620
|
|
|
@@ -11208,7 +10792,7 @@ toast.confirm = function (onConfirm, _ref3) {
|
|
|
11208
10792
|
...options
|
|
11209
10793
|
});
|
|
11210
10794
|
setTimeout(() => {
|
|
11211
|
-
notify.dismiss(id);
|
|
10795
|
+
notify$1.dismiss(id);
|
|
11212
10796
|
}, 3000);
|
|
11213
10797
|
};
|
|
11214
10798
|
const onFailure = errorValue => {
|
|
@@ -11217,11 +10801,11 @@ toast.confirm = function (onConfirm, _ref3) {
|
|
|
11217
10801
|
...options
|
|
11218
10802
|
});
|
|
11219
10803
|
setTimeout(() => {
|
|
11220
|
-
notify.dismiss(id);
|
|
10804
|
+
notify$1.dismiss(id);
|
|
11221
10805
|
}, 3000);
|
|
11222
10806
|
};
|
|
11223
10807
|
};
|
|
11224
|
-
const notify = toast;
|
|
10808
|
+
const notify$1 = toast;
|
|
11225
10809
|
|
|
11226
10810
|
const translations = i18next.t("common:buttons", {
|
|
11227
10811
|
returnObjects: true
|
|
@@ -11282,7 +10866,7 @@ const init$1 = () => {
|
|
|
11282
10866
|
const errorMessage = i18next.t("messages:invalidSubscription", {
|
|
11283
10867
|
returnObjects: true
|
|
11284
10868
|
});
|
|
11285
|
-
return notify.error(errorMessage);
|
|
10869
|
+
return notify$1.error(errorMessage);
|
|
11286
10870
|
}
|
|
11287
10871
|
switchView("manage-members");
|
|
11288
10872
|
});
|
|
@@ -11290,7 +10874,7 @@ const init$1 = () => {
|
|
|
11290
10874
|
const errorMessage = i18next.t("messages:invalidSubscription", {
|
|
11291
10875
|
returnObjects: true
|
|
11292
10876
|
});
|
|
11293
|
-
return notify.error(errorMessage);
|
|
10877
|
+
return notify$1.error(errorMessage);
|
|
11294
10878
|
}
|
|
11295
10879
|
}
|
|
11296
10880
|
}
|
|
@@ -11348,57 +10932,6 @@ const init$1 = () => {
|
|
|
11348
10932
|
}
|
|
11349
10933
|
}
|
|
11350
10934
|
}
|
|
11351
|
-
const pelcroDonateButtonsByClass = document.getElementsByClassName("pelcro-donate-button");
|
|
11352
|
-
if (pelcroDonateButtonsByClass.length !== 0) {
|
|
11353
|
-
for (let j = 0; j < pelcroDonateButtonsByClass.length; j++) {
|
|
11354
|
-
if (pelcroDonateButtonsByClass[j].dataset && "productId" in pelcroDonateButtonsByClass[j].dataset) {
|
|
11355
|
-
pelcroDonateButtonsByClass[j].addEventListener("click", e => {
|
|
11356
|
-
var _selectedProduct$plan2;
|
|
11357
|
-
set({
|
|
11358
|
-
isDonation: true
|
|
11359
|
-
});
|
|
11360
|
-
const productsList = window.Pelcro.product.list();
|
|
11361
|
-
if (!(productsList !== null && productsList !== void 0 && productsList.length)) return;
|
|
11362
|
-
const [productId, planId, isGift] = [e.target.dataset.productId, e.target.dataset.planId, e.target.dataset.isGift];
|
|
11363
|
-
const selectedProduct = productsList.find(product => product.id === Number(productId));
|
|
11364
|
-
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));
|
|
11365
|
-
set({
|
|
11366
|
-
product: selectedProduct,
|
|
11367
|
-
plan: selectedPlan,
|
|
11368
|
-
isGift: Boolean(isGift)
|
|
11369
|
-
});
|
|
11370
|
-
if (!selectedProduct || !selectedPlan) {
|
|
11371
|
-
return switchView("plan-select");
|
|
11372
|
-
}
|
|
11373
|
-
|
|
11374
|
-
// if (!isAuthenticated()) {
|
|
11375
|
-
// return switchView("register");
|
|
11376
|
-
// }
|
|
11377
|
-
|
|
11378
|
-
if (isGift) {
|
|
11379
|
-
return switchView("gift-create");
|
|
11380
|
-
}
|
|
11381
|
-
|
|
11382
|
-
// const requiresAddress = Boolean(
|
|
11383
|
-
// selectedProduct.address_required
|
|
11384
|
-
// );
|
|
11385
|
-
|
|
11386
|
-
// if (requiresAddress) {
|
|
11387
|
-
// return switchToAddressView();
|
|
11388
|
-
// }
|
|
11389
|
-
|
|
11390
|
-
return switchToPaymentView();
|
|
11391
|
-
});
|
|
11392
|
-
} else {
|
|
11393
|
-
pelcroDonateButtonsByClass[j].addEventListener("click", () => {
|
|
11394
|
-
set({
|
|
11395
|
-
isDonation: true
|
|
11396
|
-
});
|
|
11397
|
-
switchView("donation-select");
|
|
11398
|
-
});
|
|
11399
|
-
}
|
|
11400
|
-
}
|
|
11401
|
-
}
|
|
11402
10935
|
const pelcroOfflineSubButtonsByClass = document.getElementsByClassName("pelcro-offline-subscribe-button");
|
|
11403
10936
|
if (pelcroOfflineSubButtonsByClass.length !== 0) {
|
|
11404
10937
|
for (let j = 0; j < pelcroOfflineSubButtonsByClass.length; j++) {
|
|
@@ -11478,7 +11011,7 @@ const init$1 = () => {
|
|
|
11478
11011
|
const errorMsg = i18next.t("shop:messages.currencyMismatch", {
|
|
11479
11012
|
currency: userCurrency
|
|
11480
11013
|
});
|
|
11481
|
-
notify.error(errorMsg);
|
|
11014
|
+
notify$1.error(errorMsg);
|
|
11482
11015
|
}
|
|
11483
11016
|
});
|
|
11484
11017
|
}
|
|
@@ -11571,7 +11104,7 @@ const init = () => {
|
|
|
11571
11104
|
unblurElemWhenUserLogsIn(elemDeepClone, entitlements);
|
|
11572
11105
|
unblurElemWhenUserLogsOut(elemDeepClone, entitlements);
|
|
11573
11106
|
const NOTIFICATION_ID = "entitlement";
|
|
11574
|
-
notify( /*#__PURE__*/React__default['default'].createElement("p", null, /*#__PURE__*/React__default['default'].createElement(Trans, {
|
|
11107
|
+
notify$1( /*#__PURE__*/React__default['default'].createElement("p", null, /*#__PURE__*/React__default['default'].createElement(Trans, {
|
|
11575
11108
|
i18nKey: "messages:entitlement"
|
|
11576
11109
|
}, "Some of the content on this page is available with one or more of our plans.", /*#__PURE__*/React__default['default'].createElement(Link, {
|
|
11577
11110
|
onClick: () => {
|
|
@@ -11586,7 +11119,7 @@ const init = () => {
|
|
|
11586
11119
|
plan: selectedPlan
|
|
11587
11120
|
});
|
|
11588
11121
|
}
|
|
11589
|
-
notify.dismiss(NOTIFICATION_ID);
|
|
11122
|
+
notify$1.dismiss(NOTIFICATION_ID);
|
|
11590
11123
|
switchView("_plan-select-entitlements");
|
|
11591
11124
|
}
|
|
11592
11125
|
}, "Subscribe"), "now to get full page access.")), {
|
|
@@ -11651,6 +11184,175 @@ function shouldBlurContent(entitlements) {
|
|
|
11651
11184
|
return entitlements.every(entitlement => !window.Pelcro.user.isEntitledTo(entitlement));
|
|
11652
11185
|
}
|
|
11653
11186
|
|
|
11187
|
+
var pure$1 = createCommonjsModule(function (module, exports) {
|
|
11188
|
+
|
|
11189
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11190
|
+
|
|
11191
|
+
function _typeof(obj) {
|
|
11192
|
+
"@babel/helpers - typeof";
|
|
11193
|
+
|
|
11194
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
11195
|
+
_typeof = function (obj) {
|
|
11196
|
+
return typeof obj;
|
|
11197
|
+
};
|
|
11198
|
+
} else {
|
|
11199
|
+
_typeof = function (obj) {
|
|
11200
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
11201
|
+
};
|
|
11202
|
+
}
|
|
11203
|
+
|
|
11204
|
+
return _typeof(obj);
|
|
11205
|
+
}
|
|
11206
|
+
|
|
11207
|
+
var V3_URL = 'https://js.stripe.com/v3';
|
|
11208
|
+
var V3_URL_REGEX = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;
|
|
11209
|
+
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';
|
|
11210
|
+
var findScript = function findScript() {
|
|
11211
|
+
var scripts = document.querySelectorAll("script[src^=\"".concat(V3_URL, "\"]"));
|
|
11212
|
+
|
|
11213
|
+
for (var i = 0; i < scripts.length; i++) {
|
|
11214
|
+
var script = scripts[i];
|
|
11215
|
+
|
|
11216
|
+
if (!V3_URL_REGEX.test(script.src)) {
|
|
11217
|
+
continue;
|
|
11218
|
+
}
|
|
11219
|
+
|
|
11220
|
+
return script;
|
|
11221
|
+
}
|
|
11222
|
+
|
|
11223
|
+
return null;
|
|
11224
|
+
};
|
|
11225
|
+
|
|
11226
|
+
var injectScript = function injectScript(params) {
|
|
11227
|
+
var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';
|
|
11228
|
+
var script = document.createElement('script');
|
|
11229
|
+
script.src = "".concat(V3_URL).concat(queryString);
|
|
11230
|
+
var headOrBody = document.head || document.body;
|
|
11231
|
+
|
|
11232
|
+
if (!headOrBody) {
|
|
11233
|
+
throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');
|
|
11234
|
+
}
|
|
11235
|
+
|
|
11236
|
+
headOrBody.appendChild(script);
|
|
11237
|
+
return script;
|
|
11238
|
+
};
|
|
11239
|
+
|
|
11240
|
+
var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
11241
|
+
if (!stripe || !stripe._registerWrapper) {
|
|
11242
|
+
return;
|
|
11243
|
+
}
|
|
11244
|
+
|
|
11245
|
+
stripe._registerWrapper({
|
|
11246
|
+
name: 'stripe-js',
|
|
11247
|
+
version: "1.21.1",
|
|
11248
|
+
startTime: startTime
|
|
11249
|
+
});
|
|
11250
|
+
};
|
|
11251
|
+
|
|
11252
|
+
var stripePromise = null;
|
|
11253
|
+
var loadScript = function loadScript(params) {
|
|
11254
|
+
// Ensure that we only attempt to load Stripe.js at most once
|
|
11255
|
+
if (stripePromise !== null) {
|
|
11256
|
+
return stripePromise;
|
|
11257
|
+
}
|
|
11258
|
+
|
|
11259
|
+
stripePromise = new Promise(function (resolve, reject) {
|
|
11260
|
+
if (typeof window === 'undefined') {
|
|
11261
|
+
// Resolve to null when imported server side. This makes the module
|
|
11262
|
+
// safe to import in an isomorphic code base.
|
|
11263
|
+
resolve(null);
|
|
11264
|
+
return;
|
|
11265
|
+
}
|
|
11266
|
+
|
|
11267
|
+
if (window.Stripe && params) {
|
|
11268
|
+
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
11269
|
+
}
|
|
11270
|
+
|
|
11271
|
+
if (window.Stripe) {
|
|
11272
|
+
resolve(window.Stripe);
|
|
11273
|
+
return;
|
|
11274
|
+
}
|
|
11275
|
+
|
|
11276
|
+
try {
|
|
11277
|
+
var script = findScript();
|
|
11278
|
+
|
|
11279
|
+
if (script && params) {
|
|
11280
|
+
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
11281
|
+
} else if (!script) {
|
|
11282
|
+
script = injectScript(params);
|
|
11283
|
+
}
|
|
11284
|
+
|
|
11285
|
+
script.addEventListener('load', function () {
|
|
11286
|
+
if (window.Stripe) {
|
|
11287
|
+
resolve(window.Stripe);
|
|
11288
|
+
} else {
|
|
11289
|
+
reject(new Error('Stripe.js not available'));
|
|
11290
|
+
}
|
|
11291
|
+
});
|
|
11292
|
+
script.addEventListener('error', function () {
|
|
11293
|
+
reject(new Error('Failed to load Stripe.js'));
|
|
11294
|
+
});
|
|
11295
|
+
} catch (error) {
|
|
11296
|
+
reject(error);
|
|
11297
|
+
return;
|
|
11298
|
+
}
|
|
11299
|
+
});
|
|
11300
|
+
return stripePromise;
|
|
11301
|
+
};
|
|
11302
|
+
var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
11303
|
+
if (maybeStripe === null) {
|
|
11304
|
+
return null;
|
|
11305
|
+
}
|
|
11306
|
+
|
|
11307
|
+
var stripe = maybeStripe.apply(undefined, args);
|
|
11308
|
+
registerWrapper(stripe, startTime);
|
|
11309
|
+
return stripe;
|
|
11310
|
+
};
|
|
11311
|
+
var validateLoadParams = function validateLoadParams(params) {
|
|
11312
|
+
var errorMessage = "invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(params), "\n");
|
|
11313
|
+
|
|
11314
|
+
if (params === null || _typeof(params) !== 'object') {
|
|
11315
|
+
throw new Error(errorMessage);
|
|
11316
|
+
}
|
|
11317
|
+
|
|
11318
|
+
if (Object.keys(params).length === 1 && typeof params.advancedFraudSignals === 'boolean') {
|
|
11319
|
+
return params;
|
|
11320
|
+
}
|
|
11321
|
+
|
|
11322
|
+
throw new Error(errorMessage);
|
|
11323
|
+
};
|
|
11324
|
+
|
|
11325
|
+
var loadParams;
|
|
11326
|
+
var loadStripeCalled = false;
|
|
11327
|
+
var loadStripe = function loadStripe() {
|
|
11328
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11329
|
+
args[_key] = arguments[_key];
|
|
11330
|
+
}
|
|
11331
|
+
|
|
11332
|
+
loadStripeCalled = true;
|
|
11333
|
+
var startTime = Date.now();
|
|
11334
|
+
return loadScript(loadParams).then(function (maybeStripe) {
|
|
11335
|
+
return initStripe(maybeStripe, args, startTime);
|
|
11336
|
+
});
|
|
11337
|
+
};
|
|
11338
|
+
|
|
11339
|
+
loadStripe.setLoadParameters = function (params) {
|
|
11340
|
+
if (loadStripeCalled) {
|
|
11341
|
+
throw new Error('You cannot change load parameters after calling loadStripe');
|
|
11342
|
+
}
|
|
11343
|
+
|
|
11344
|
+
loadParams = validateLoadParams(params);
|
|
11345
|
+
};
|
|
11346
|
+
|
|
11347
|
+
exports.loadStripe = loadStripe;
|
|
11348
|
+
});
|
|
11349
|
+
|
|
11350
|
+
unwrapExports(pure$1);
|
|
11351
|
+
pure$1.loadStripe;
|
|
11352
|
+
|
|
11353
|
+
var pure = pure$1;
|
|
11354
|
+
var pure_1 = pure.loadStripe;
|
|
11355
|
+
|
|
11654
11356
|
/**
|
|
11655
11357
|
* Extracts error message from the response error object
|
|
11656
11358
|
* @param {Object} error Error object
|
|
@@ -11804,12 +11506,16 @@ const initPaywalls = () => {
|
|
|
11804
11506
|
};
|
|
11805
11507
|
const loadPaymentSDKs = () => {
|
|
11806
11508
|
// Lazy load stripe's SDK
|
|
11807
|
-
|
|
11509
|
+
const {
|
|
11510
|
+
whenUserReady
|
|
11511
|
+
} = usePelcro.getStore();
|
|
11808
11512
|
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
11809
11513
|
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11514
|
+
whenUserReady(() => {
|
|
11515
|
+
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
11516
|
+
pure_1(window.Pelcro.environment.stripe);
|
|
11517
|
+
}
|
|
11518
|
+
});
|
|
11813
11519
|
|
|
11814
11520
|
// Load PayPal SDKs
|
|
11815
11521
|
const supportsPaypal = Boolean(window.Pelcro.site.read().braintree_tokenization);
|
|
@@ -11960,9 +11666,6 @@ const initViewFromURL = () => {
|
|
|
11960
11666
|
if (view === "plan-select") {
|
|
11961
11667
|
return initSubscriptionFromURL();
|
|
11962
11668
|
}
|
|
11963
|
-
if (view === "donation-select") {
|
|
11964
|
-
return initDonationFromURL();
|
|
11965
|
-
}
|
|
11966
11669
|
if (view === "register") {
|
|
11967
11670
|
const offlinePlanId = window.Pelcro.helpers.getURLParameter("plan_id");
|
|
11968
11671
|
if (offlinePlanId) {
|
|
@@ -12045,61 +11748,6 @@ const initSubscriptionFromURL = () => {
|
|
|
12045
11748
|
});
|
|
12046
11749
|
};
|
|
12047
11750
|
|
|
12048
|
-
/**
|
|
12049
|
-
* Initializes the donation flow if 'product_id' & 'plan_id' params exist
|
|
12050
|
-
* with valid IDs. Otherwise, switches to the donation selection flow
|
|
12051
|
-
*/
|
|
12052
|
-
const initDonationFromURL = () => {
|
|
12053
|
-
const {
|
|
12054
|
-
switchView,
|
|
12055
|
-
whenSiteReady,
|
|
12056
|
-
set
|
|
12057
|
-
} = usePelcro.getStore();
|
|
12058
|
-
whenSiteReady(() => {
|
|
12059
|
-
var _selectedProduct$plan2;
|
|
12060
|
-
const productsList = window.Pelcro.product.list();
|
|
12061
|
-
if (!(productsList !== null && productsList !== void 0 && productsList.length)) {
|
|
12062
|
-
return;
|
|
12063
|
-
}
|
|
12064
|
-
const [productId, planId, isGiftParam] = [window.Pelcro.helpers.getURLParameter("product_id"), window.Pelcro.helpers.getURLParameter("plan_id"), window.Pelcro.helpers.getURLParameter("is_gift")];
|
|
12065
|
-
const isGift = (isGiftParam === null || isGiftParam === void 0 ? void 0 : isGiftParam.toLowerCase()) === "true";
|
|
12066
|
-
const selectedProduct = productsList.find(product => product.id === Number(productId));
|
|
12067
|
-
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));
|
|
12068
|
-
set({
|
|
12069
|
-
product: selectedProduct,
|
|
12070
|
-
plan: selectedPlan,
|
|
12071
|
-
isGift
|
|
12072
|
-
});
|
|
12073
|
-
if (!selectedProduct || !selectedPlan) {
|
|
12074
|
-
set({
|
|
12075
|
-
isDonation: true
|
|
12076
|
-
});
|
|
12077
|
-
return switchView("donation-select");
|
|
12078
|
-
}
|
|
12079
|
-
const {
|
|
12080
|
-
isAuthenticated,
|
|
12081
|
-
switchToAddressView,
|
|
12082
|
-
switchToPaymentView
|
|
12083
|
-
} = usePelcro.getStore();
|
|
12084
|
-
|
|
12085
|
-
// if (!isAuthenticated()) {
|
|
12086
|
-
// return switchView("register");
|
|
12087
|
-
// }
|
|
12088
|
-
|
|
12089
|
-
// if (isGift) {
|
|
12090
|
-
// return switchView("gift-create");
|
|
12091
|
-
// }
|
|
12092
|
-
|
|
12093
|
-
// const requiresAddress = Boolean(selectedProduct.address_required);
|
|
12094
|
-
//
|
|
12095
|
-
// if (requiresAddress) {
|
|
12096
|
-
// return switchToAddressView();
|
|
12097
|
-
// }
|
|
12098
|
-
|
|
12099
|
-
return switchToPaymentView();
|
|
12100
|
-
});
|
|
12101
|
-
};
|
|
12102
|
-
|
|
12103
11751
|
/**
|
|
12104
11752
|
* Initializes offline subscription flow if 'plan_id' params exist
|
|
12105
11753
|
* with valid IDs, Otherwise, ignore the param
|
|
@@ -12199,9 +11847,9 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
12199
11847
|
token: emailToken
|
|
12200
11848
|
}, (err, res) => {
|
|
12201
11849
|
if (err) {
|
|
12202
|
-
return notify.error(getErrorMessages(err));
|
|
11850
|
+
return notify$1.error(getErrorMessages(err));
|
|
12203
11851
|
}
|
|
12204
|
-
return notify.success(translations.success);
|
|
11852
|
+
return notify$1.success(translations.success);
|
|
12205
11853
|
});
|
|
12206
11854
|
}, {
|
|
12207
11855
|
once: true
|
|
@@ -12225,7 +11873,7 @@ const verifyLinkTokenFromUrl = () => {
|
|
|
12225
11873
|
token: loginToken
|
|
12226
11874
|
}, (err, res) => {
|
|
12227
11875
|
if (err) {
|
|
12228
|
-
return notify.error(getErrorMessages(err));
|
|
11876
|
+
return notify$1.error(getErrorMessages(err));
|
|
12229
11877
|
}
|
|
12230
11878
|
const {
|
|
12231
11879
|
auth_token
|
|
@@ -12234,10 +11882,10 @@ const verifyLinkTokenFromUrl = () => {
|
|
|
12234
11882
|
auth_token
|
|
12235
11883
|
}, (err, res) => {
|
|
12236
11884
|
if (err) {
|
|
12237
|
-
return notify.error(getErrorMessages(err));
|
|
11885
|
+
return notify$1.error(getErrorMessages(err));
|
|
12238
11886
|
}
|
|
12239
11887
|
resetView();
|
|
12240
|
-
return notify.success(translations.success);
|
|
11888
|
+
return notify$1.success(translations.success);
|
|
12241
11889
|
});
|
|
12242
11890
|
});
|
|
12243
11891
|
}, {
|
|
@@ -12312,7 +11960,7 @@ const showInvoiceDetailsFromUrl = () => {
|
|
|
12312
11960
|
const errorMessage = i18next.t("messages:invalidInvoice", {
|
|
12313
11961
|
returnObjects: true
|
|
12314
11962
|
});
|
|
12315
|
-
return notify.error(errorMessage);
|
|
11963
|
+
return notify$1.error(errorMessage);
|
|
12316
11964
|
}
|
|
12317
11965
|
const {
|
|
12318
11966
|
invoice
|
|
@@ -12321,7 +11969,7 @@ const showInvoiceDetailsFromUrl = () => {
|
|
|
12321
11969
|
const errorMessage = i18next.t("messages:zeroTotalInvoice", {
|
|
12322
11970
|
returnObjects: true
|
|
12323
11971
|
});
|
|
12324
|
-
return notify.error(errorMessage);
|
|
11972
|
+
return notify$1.error(errorMessage);
|
|
12325
11973
|
}
|
|
12326
11974
|
return switchView("invoice-details");
|
|
12327
11975
|
});
|
|
@@ -12346,7 +11994,7 @@ const showSubscriptionManageMembersFromUrl = () => {
|
|
|
12346
11994
|
const errorMessage = i18next.t("messages:invalidSubscription", {
|
|
12347
11995
|
returnObjects: true
|
|
12348
11996
|
});
|
|
12349
|
-
return notify.error(errorMessage);
|
|
11997
|
+
return notify$1.error(errorMessage);
|
|
12350
11998
|
}
|
|
12351
11999
|
return switchView("manage-members");
|
|
12352
12000
|
});
|
|
@@ -12371,18 +12019,8 @@ const PelcroModalController = _ref => {
|
|
|
12371
12019
|
const {
|
|
12372
12020
|
view,
|
|
12373
12021
|
isAuthenticated,
|
|
12374
|
-
whenSiteReady
|
|
12375
|
-
isDonation
|
|
12022
|
+
whenSiteReady
|
|
12376
12023
|
} = usePelcro();
|
|
12377
|
-
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
12378
|
-
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
12379
|
-
React__default['default'].useEffect(() => {
|
|
12380
|
-
if (isDonation) {
|
|
12381
|
-
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
12382
|
-
pure_1(window.Pelcro.environment.stripe);
|
|
12383
|
-
}
|
|
12384
|
-
}
|
|
12385
|
-
}, [isDonation]);
|
|
12386
12024
|
React__default['default'].useEffect(() => {
|
|
12387
12025
|
init$1();
|
|
12388
12026
|
renderShopView(React__default['default'].Children.map(children, child => child).find(_ref2 => {
|
|
@@ -14868,410 +14506,17 @@ function Radio(_ref) {
|
|
|
14868
14506
|
className: `pelcro-radio ${className}`
|
|
14869
14507
|
}, otherProps)), /*#__PURE__*/React__default['default'].createElement("label", {
|
|
14870
14508
|
htmlFor: id,
|
|
14871
|
-
className: `pelcro-radio-label ${labelClassName}`
|
|
14872
|
-
}, children));
|
|
14873
|
-
}
|
|
14874
|
-
|
|
14875
|
-
var _window$7, _window$Pelcro$7, _window$Pelcro$uiSett$7;
|
|
14876
|
-
const ReactGA$7 = (_window$7 = window) !== null && _window$7 !== void 0 && (_window$Pelcro$7 = _window$7.Pelcro) !== null && _window$Pelcro$7 !== void 0 && (_window$Pelcro$uiSett$7 = _window$Pelcro$7.uiSettings) !== null && _window$Pelcro$uiSett$7 !== void 0 && _window$Pelcro$uiSett$7.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
14877
|
-
|
|
14878
|
-
/**
|
|
14879
|
-
*
|
|
14880
|
-
*/
|
|
14881
|
-
function SelectModalWithHook(props) {
|
|
14882
|
-
React__default['default'].useEffect(() => {
|
|
14883
|
-
var _props$onDisplay;
|
|
14884
|
-
(_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
|
|
14885
|
-
}, []);
|
|
14886
|
-
const {
|
|
14887
|
-
isGift,
|
|
14888
|
-
plan,
|
|
14889
|
-
product,
|
|
14890
|
-
isRenewingGift,
|
|
14891
|
-
switchView,
|
|
14892
|
-
resetView,
|
|
14893
|
-
view,
|
|
14894
|
-
set
|
|
14895
|
-
} = usePelcro();
|
|
14896
|
-
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
14897
|
-
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
14898
|
-
return /*#__PURE__*/React__default['default'].createElement(SelectModalWithTrans, {
|
|
14899
|
-
isGift: isGift,
|
|
14900
|
-
disableGifting: isRenewingGift,
|
|
14901
|
-
plan: plan,
|
|
14902
|
-
product: product,
|
|
14903
|
-
onClose: () => {
|
|
14904
|
-
var _props$onClose;
|
|
14905
|
-
(_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
|
|
14906
|
-
resetView();
|
|
14907
|
-
},
|
|
14908
|
-
setProductAndPlan: (product, plan, isGift) => set({
|
|
14909
|
-
product,
|
|
14910
|
-
plan,
|
|
14911
|
-
isGift
|
|
14912
|
-
}),
|
|
14913
|
-
setView: switchView,
|
|
14914
|
-
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
14915
|
-
});
|
|
14916
|
-
}
|
|
14917
|
-
function productsWithMatchedTaggedFirst$1() {
|
|
14918
|
-
var _window$Pelcro$produc;
|
|
14919
|
-
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
14920
|
-
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
14921
|
-
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
14922
|
-
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
14923
|
-
}
|
|
14924
|
-
function productMatchPageLanguage(product) {
|
|
14925
|
-
if (!product) {
|
|
14926
|
-
return false;
|
|
14927
|
-
}
|
|
14928
|
-
if (product.language === null) {
|
|
14929
|
-
return true;
|
|
14930
|
-
}
|
|
14931
|
-
const siteLanguage = window.Pelcro.helpers.getHtmlLanguageAttribute();
|
|
14932
|
-
return product.language === siteLanguage;
|
|
14933
|
-
}
|
|
14934
|
-
SelectModalWithHook.viewId = "plan-select";
|
|
14935
|
-
class SelectModal extends React.Component {
|
|
14936
|
-
constructor(props) {
|
|
14937
|
-
super(props);
|
|
14938
|
-
_defineProperty$3(this, "componentDidMount", () => {
|
|
14939
|
-
if (this.props.product) {
|
|
14940
|
-
const {
|
|
14941
|
-
product
|
|
14942
|
-
} = this.props;
|
|
14943
|
-
const planList = product.plans;
|
|
14944
|
-
this.setState({
|
|
14945
|
-
product,
|
|
14946
|
-
planList,
|
|
14947
|
-
mode: "plan"
|
|
14948
|
-
});
|
|
14949
|
-
}
|
|
14950
|
-
if (this.props.plan) {
|
|
14951
|
-
const {
|
|
14952
|
-
plan
|
|
14953
|
-
} = this.props;
|
|
14954
|
-
this.setState({
|
|
14955
|
-
plan,
|
|
14956
|
-
disabled: false
|
|
14957
|
-
});
|
|
14958
|
-
}
|
|
14959
|
-
if (this.state.productList.length === 1) {
|
|
14960
|
-
this.setState({
|
|
14961
|
-
product: this.state.productList[0],
|
|
14962
|
-
planList: this.state.productList[0].plans,
|
|
14963
|
-
mode: "plan"
|
|
14964
|
-
});
|
|
14965
|
-
}
|
|
14966
|
-
if (this.state.productList.length === 0 && !window.Pelcro.user.isAuthenticated()) {
|
|
14967
|
-
this.props.setView("register");
|
|
14968
|
-
}
|
|
14969
|
-
document.addEventListener("keydown", this.handleSubmit);
|
|
14970
|
-
if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
|
|
14971
|
-
var _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$user, _window$Pelcro5, _window$Pelcro5$site;
|
|
14972
|
-
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;
|
|
14973
|
-
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;
|
|
14974
|
-
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;
|
|
14975
|
-
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 => {
|
|
14976
|
-
const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
|
|
14977
|
-
if (filteredPlans.length) return filteredPlans;
|
|
14978
|
-
});
|
|
14979
|
-
const productsMatchingUserCountry = productsMatchingUserCurrency.filter(product => {
|
|
14980
|
-
const filteredPlans = product.plans.filter(plan => {
|
|
14981
|
-
var _plan$countries;
|
|
14982
|
-
return plan.countries && ((_plan$countries = plan.countries) === null || _plan$countries === void 0 ? void 0 : _plan$countries.includes(userCountry)) || !plan.countries || !plan.countries.length;
|
|
14983
|
-
});
|
|
14984
|
-
if (filteredPlans.length) return filteredPlans;
|
|
14985
|
-
});
|
|
14986
|
-
notifyBugsnag(() => {
|
|
14987
|
-
Bugsnag.notify("SelectModal - No data viewed", event => {
|
|
14988
|
-
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;
|
|
14989
|
-
event.addMetadata("MetaData", {
|
|
14990
|
-
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(),
|
|
14991
|
-
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(),
|
|
14992
|
-
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,
|
|
14993
|
-
environment: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : _window$Pelcro9.environment,
|
|
14994
|
-
matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
|
|
14995
|
-
productListState: this.state.productList,
|
|
14996
|
-
methods: {
|
|
14997
|
-
productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst$1(),
|
|
14998
|
-
pelcroSDKProductsListMethod: window.Pelcro.product.list(),
|
|
14999
|
-
pelcroSDKGetByEntitlements: this.props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(this.props.matchingEntitlements) : null
|
|
15000
|
-
},
|
|
15001
|
-
userCurrency: userCurrency,
|
|
15002
|
-
userCountry: userCountry,
|
|
15003
|
-
userLanguage: userLanguage,
|
|
15004
|
-
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(),
|
|
15005
|
-
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,
|
|
15006
|
-
currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
|
|
15007
|
-
country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
|
|
15008
|
-
language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
|
|
15009
|
-
});
|
|
15010
|
-
});
|
|
15011
|
-
});
|
|
15012
|
-
}
|
|
15013
|
-
});
|
|
15014
|
-
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
15015
|
-
document.removeEventListener("keydown", this.handleSubmit);
|
|
15016
|
-
});
|
|
15017
|
-
_defineProperty$3(this, "handleSubmit", e => {
|
|
15018
|
-
if (e.key === "Enter" && !this.state.disabled) this.submitOption();
|
|
15019
|
-
});
|
|
15020
|
-
_defineProperty$3(this, "onProductChange", e => {
|
|
15021
|
-
const product = window.Pelcro.product.list()[e.target.selectedIndex];
|
|
15022
|
-
this.setState({
|
|
15023
|
-
product: product,
|
|
15024
|
-
plan: product.plans[0]
|
|
15025
|
-
});
|
|
15026
|
-
});
|
|
15027
|
-
_defineProperty$3(this, "onPlanChange", e => {
|
|
15028
|
-
this.setState({
|
|
15029
|
-
plan: this.state.product.plans[e.target.selectedIndex]
|
|
15030
|
-
});
|
|
15031
|
-
});
|
|
15032
|
-
_defineProperty$3(this, "onIsGiftChange", e => {
|
|
15033
|
-
this.setState({
|
|
15034
|
-
isGift: e.target.checked
|
|
15035
|
-
});
|
|
15036
|
-
});
|
|
15037
|
-
_defineProperty$3(this, "countStartPrice", arr => {
|
|
15038
|
-
let startingPlan = arr[0];
|
|
15039
|
-
for (const plan of arr) {
|
|
15040
|
-
if (plan.amount < startingPlan.amount) {
|
|
15041
|
-
startingPlan = plan;
|
|
15042
|
-
}
|
|
15043
|
-
}
|
|
15044
|
-
return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval}s` : `${startingPlan.interval}`}`;
|
|
15045
|
-
});
|
|
15046
|
-
_defineProperty$3(this, "renderOneProduct", (product, index, options) => {
|
|
15047
|
-
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
15048
|
-
const productButtonLabel = isPlanMode ? this.locale("buttons.back") : this.locale("buttons.select");
|
|
15049
|
-
const productButtonCallback = isPlanMode ? this.goBack : this.selectProduct;
|
|
15050
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15051
|
-
key: product.id,
|
|
15052
|
-
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"}`
|
|
15053
|
-
}, product.image && /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15054
|
-
alt: `image of ${product.name}`,
|
|
15055
|
-
src: product.image,
|
|
15056
|
-
className: "plc-object-contain plc-w-1/4 pelcro-select-product-image"
|
|
15057
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15058
|
-
className: `plc-flex plc-flex-wrap ${product.image ? "plc-w-3/4" : "plc-w-full"}`
|
|
15059
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15060
|
-
className: "plc-w-full pelcro-select-product-header"
|
|
15061
|
-
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15062
|
-
className: "plc-font-bold pelcro-select-product-title"
|
|
15063
|
-
}, product.name), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15064
|
-
className: "plc-text-xs pelcro-select-product-description"
|
|
15065
|
-
}, product.description)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15066
|
-
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
15067
|
-
}, product.plans && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15068
|
-
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
15069
|
-
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
15070
|
-
onClick: productButtonCallback,
|
|
15071
|
-
"data-key": product.id,
|
|
15072
|
-
id: "pelcro-select-product-back-button",
|
|
15073
|
-
className: `plc-ml-auto plc-text-xs ${options !== null && options !== void 0 && options.emphasize ? "plc-bg-primary-700" : ""}`
|
|
15074
|
-
}, index === 0 && {
|
|
15075
|
-
autoFocus: true
|
|
15076
|
-
}), productButtonLabel))));
|
|
15077
|
-
});
|
|
15078
|
-
_defineProperty$3(this, "renderProducts", () => {
|
|
15079
|
-
const userDidSelectProduct = Boolean(this.state.mode === "plan");
|
|
15080
|
-
const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
|
|
15081
|
-
return productsToShow.map((product, index) => {
|
|
15082
|
-
if (product.plans.filter(plan => plan.type === "regular").length > 0) {
|
|
15083
|
-
return this.renderOneProduct(product, index);
|
|
15084
|
-
}
|
|
15085
|
-
});
|
|
15086
|
-
});
|
|
15087
|
-
_defineProperty$3(this, "renderMatchingProductsFirst", () => {
|
|
15088
|
-
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
15089
|
-
if (isPlanMode) {
|
|
15090
|
-
return this.renderOneProduct(this.state.product);
|
|
15091
|
-
}
|
|
15092
|
-
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst$1();
|
|
15093
|
-
|
|
15094
|
-
// Render normal products if there are no available matching products
|
|
15095
|
-
if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
|
|
15096
|
-
return this.renderProducts();
|
|
15097
|
-
}
|
|
15098
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("h3", {
|
|
15099
|
-
className: "plc-text-sm plc-font-semibold"
|
|
15100
|
-
}, this.locale("labels.restrictiveArticles.subscribeTo")), productsThatMatchArticleTag.map((product, index) => this.renderOneProduct(product, index, {
|
|
15101
|
-
emphasize: true
|
|
15102
|
-
})), (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", {
|
|
15103
|
-
className: "plc-my-4"
|
|
15104
|
-
}), /*#__PURE__*/React__default['default'].createElement("h3", {
|
|
15105
|
-
className: "plc-text-sm plc-font-semibold"
|
|
15106
|
-
}, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
|
|
15107
|
-
});
|
|
15108
|
-
_defineProperty$3(this, "renderPlans", () => {
|
|
15109
|
-
return this.state.planList.map(plan => {
|
|
15110
|
-
const isChecked = this.state.plan.id === plan.id ? true : false;
|
|
15111
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15112
|
-
key: plan.id,
|
|
15113
|
-
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"
|
|
15114
|
-
}, /*#__PURE__*/React__default['default'].createElement(Radio, {
|
|
15115
|
-
className: "plc-self-start pelcro-select-plan-radio",
|
|
15116
|
-
labelClassName: "plc-cursor-pointer plc-w-full",
|
|
15117
|
-
id: `pelcro-select-plan-${plan.id}`,
|
|
15118
|
-
name: "plan",
|
|
15119
|
-
checked: isChecked,
|
|
15120
|
-
"data-key": plan.id,
|
|
15121
|
-
onChange: this.selectPlan
|
|
15122
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15123
|
-
className: "plc-font-bold pelcro-select-plan-title"
|
|
15124
|
-
}, plan.nickname), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15125
|
-
className: "plc-text-xs pelcro-select-plan-description"
|
|
15126
|
-
}, plan.description)), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15127
|
-
className: "plc-mt-3 plc-font-bold pelcro-select-plan-price"
|
|
15128
|
-
}, plan.amount_formatted)));
|
|
15129
|
-
});
|
|
15130
|
-
});
|
|
15131
|
-
_defineProperty$3(this, "selectProduct", e => {
|
|
15132
|
-
const id = e.target.dataset.key;
|
|
15133
|
-
for (const product of this.state.productList) {
|
|
15134
|
-
if (+product.id === +id) {
|
|
15135
|
-
var _this$state$plan;
|
|
15136
|
-
this.setState({
|
|
15137
|
-
product: product
|
|
15138
|
-
});
|
|
15139
|
-
this.setState({
|
|
15140
|
-
planList: product.plans.filter(plan => plan.type === "regular")
|
|
15141
|
-
});
|
|
15142
|
-
this.setState({
|
|
15143
|
-
mode: "plan"
|
|
15144
|
-
});
|
|
15145
|
-
const isSelectedPlanPartOfThisProduct = ((_this$state$plan = this.state.plan) === null || _this$state$plan === void 0 ? void 0 : _this$state$plan.product_id) === Number(product.id);
|
|
15146
|
-
if (isSelectedPlanPartOfThisProduct) {
|
|
15147
|
-
this.setState({
|
|
15148
|
-
disabled: false
|
|
15149
|
-
});
|
|
15150
|
-
}
|
|
15151
|
-
}
|
|
15152
|
-
}
|
|
15153
|
-
});
|
|
15154
|
-
_defineProperty$3(this, "selectPlan", e => {
|
|
15155
|
-
const id = e.target.dataset.key;
|
|
15156
|
-
for (const plan of this.state.planList) {
|
|
15157
|
-
if (+plan.id === +id) {
|
|
15158
|
-
plan.isCheked = true;
|
|
15159
|
-
this.setState({
|
|
15160
|
-
plan: plan
|
|
15161
|
-
});
|
|
15162
|
-
this.setState({
|
|
15163
|
-
disabled: false
|
|
15164
|
-
});
|
|
15165
|
-
} else {
|
|
15166
|
-
plan.isCheked = false;
|
|
15167
|
-
}
|
|
15168
|
-
}
|
|
15169
|
-
});
|
|
15170
|
-
_defineProperty$3(this, "goBack", () => {
|
|
15171
|
-
this.setState({
|
|
15172
|
-
disabled: true
|
|
15173
|
-
});
|
|
15174
|
-
this.setState({
|
|
15175
|
-
mode: "product"
|
|
15176
|
-
});
|
|
15177
|
-
});
|
|
15178
|
-
_defineProperty$3(this, "submitOption", () => {
|
|
15179
|
-
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
15180
|
-
const {
|
|
15181
|
-
product,
|
|
15182
|
-
isGift
|
|
15183
|
-
} = this.state;
|
|
15184
|
-
const {
|
|
15185
|
-
setView
|
|
15186
|
-
} = this.props;
|
|
15187
|
-
const isAuthenticated = window.Pelcro.user.isAuthenticated();
|
|
15188
|
-
const {
|
|
15189
|
-
switchToAddressView,
|
|
15190
|
-
switchToPaymentView
|
|
15191
|
-
} = usePelcro.getStore();
|
|
15192
|
-
if (!isAuthenticated) {
|
|
15193
|
-
return setView("register");
|
|
15194
|
-
}
|
|
15195
|
-
if (isGift) {
|
|
15196
|
-
return setView("gift-create");
|
|
15197
|
-
}
|
|
15198
|
-
if (product.address_required) {
|
|
15199
|
-
return switchToAddressView();
|
|
15200
|
-
}
|
|
15201
|
-
return switchToPaymentView();
|
|
15202
|
-
});
|
|
15203
|
-
_defineProperty$3(this, "displayLoginView", () => {
|
|
15204
|
-
this.props.setView("login");
|
|
15205
|
-
});
|
|
15206
|
-
this.state = {
|
|
15207
|
-
product: {},
|
|
15208
|
-
plan: {},
|
|
15209
|
-
isGift: props.isGift,
|
|
15210
|
-
disabled: true,
|
|
15211
|
-
mode: "product",
|
|
15212
|
-
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
15213
|
-
};
|
|
15214
|
-
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
15215
|
-
this.locale = this.props.t;
|
|
15216
|
-
this.closeButton = window.Pelcro.paywall.displayCloseButton();
|
|
15217
|
-
}
|
|
15218
|
-
render() {
|
|
15219
|
-
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
15220
|
-
const {
|
|
15221
|
-
disableGifting
|
|
15222
|
-
} = this.props;
|
|
15223
|
-
if (this.state.mode === "product") {
|
|
15224
|
-
var _ReactGA$event;
|
|
15225
|
-
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, {
|
|
15226
|
-
category: "VIEWS",
|
|
15227
|
-
action: "Product Modal Viewed",
|
|
15228
|
-
nonInteraction: true
|
|
15229
|
-
});
|
|
15230
|
-
} else if (this.state.mode === "plan") {
|
|
15231
|
-
var _ReactGA$event2;
|
|
15232
|
-
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, {
|
|
15233
|
-
category: "VIEWS",
|
|
15234
|
-
action: "Plan Modal Viewed",
|
|
15235
|
-
nonInteraction: true
|
|
15236
|
-
});
|
|
15237
|
-
}
|
|
15238
|
-
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
15239
|
-
hideCloseButton: !this.closeButton,
|
|
15240
|
-
onClose: this.props.onClose,
|
|
15241
|
-
id: "pelcro-selection-modal"
|
|
15242
|
-
}, /*#__PURE__*/React__default['default'].createElement(ModalBody, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15243
|
-
id: "pelcro-selection-view"
|
|
15244
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15245
|
-
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
15246
|
-
}, /*#__PURE__*/React__default['default'].createElement("h4", {
|
|
15247
|
-
className: "plc-text-2xl plc-font-semibold"
|
|
15248
|
-
}, 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", {
|
|
15249
|
-
className: "pelcro-select-products-wrapper"
|
|
15250
|
-
}, (_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", {
|
|
15251
|
-
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
15252
|
-
}, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15253
|
-
className: "plc-flex plc-justify-center plc-mt-2"
|
|
15254
|
-
}, /*#__PURE__*/React__default['default'].createElement(Checkbox, {
|
|
15255
|
-
onChange: this.onIsGiftChange,
|
|
15256
|
-
checked: this.state.isGift,
|
|
15257
|
-
id: "pelcro-input-is-gift"
|
|
15258
|
-
}, this.locale("messages.checkbox"))), /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
15259
|
-
disabled: this.state.disabled,
|
|
15260
|
-
onClick: this.submitOption,
|
|
15261
|
-
id: "pelcro-submit",
|
|
15262
|
-
className: "plc-w-full plc-mt-2"
|
|
15263
|
-
}, 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, {
|
|
15264
|
-
id: "pelcro-link-login",
|
|
15265
|
-
onClick: this.displayLoginView
|
|
15266
|
-
}, this.locale("messages.loginHere"))), /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
|
|
15267
|
-
}
|
|
14509
|
+
className: `pelcro-radio-label ${labelClassName}`
|
|
14510
|
+
}, children));
|
|
15268
14511
|
}
|
|
15269
|
-
|
|
14512
|
+
|
|
14513
|
+
var _window$7, _window$Pelcro$7, _window$Pelcro$uiSett$7;
|
|
14514
|
+
const ReactGA$7 = (_window$7 = window) !== null && _window$7 !== void 0 && (_window$Pelcro$7 = _window$7.Pelcro) !== null && _window$Pelcro$7 !== void 0 && (_window$Pelcro$uiSett$7 = _window$Pelcro$7.uiSettings) !== null && _window$Pelcro$uiSett$7 !== void 0 && _window$Pelcro$uiSett$7.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
15270
14515
|
|
|
15271
14516
|
/**
|
|
15272
14517
|
*
|
|
15273
14518
|
*/
|
|
15274
|
-
function
|
|
14519
|
+
function SelectModalWithHook(props) {
|
|
15275
14520
|
React__default['default'].useEffect(() => {
|
|
15276
14521
|
var _props$onDisplay;
|
|
15277
14522
|
(_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
|
|
@@ -15288,7 +14533,7 @@ function DonationModalWithHook(props) {
|
|
|
15288
14533
|
} = usePelcro();
|
|
15289
14534
|
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
15290
14535
|
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
15291
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
14536
|
+
return /*#__PURE__*/React__default['default'].createElement(SelectModalWithTrans, {
|
|
15292
14537
|
isGift: isGift,
|
|
15293
14538
|
disableGifting: isRenewingGift,
|
|
15294
14539
|
plan: plan,
|
|
@@ -15298,12 +14543,10 @@ function DonationModalWithHook(props) {
|
|
|
15298
14543
|
(_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
|
|
15299
14544
|
resetView();
|
|
15300
14545
|
},
|
|
15301
|
-
setProductAndPlan: (product, plan, isGift
|
|
14546
|
+
setProductAndPlan: (product, plan, isGift) => set({
|
|
15302
14547
|
product,
|
|
15303
14548
|
plan,
|
|
15304
|
-
isGift
|
|
15305
|
-
selectedDonationAmount,
|
|
15306
|
-
customDonationAmount
|
|
14549
|
+
isGift
|
|
15307
14550
|
}),
|
|
15308
14551
|
setView: switchView,
|
|
15309
14552
|
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
@@ -15316,8 +14559,18 @@ function productsWithMatchedTaggedFirst() {
|
|
|
15316
14559
|
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
15317
14560
|
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
15318
14561
|
}
|
|
15319
|
-
|
|
15320
|
-
|
|
14562
|
+
function productMatchPageLanguage(product) {
|
|
14563
|
+
if (!product) {
|
|
14564
|
+
return false;
|
|
14565
|
+
}
|
|
14566
|
+
if (product.language === null) {
|
|
14567
|
+
return true;
|
|
14568
|
+
}
|
|
14569
|
+
const siteLanguage = window.Pelcro.helpers.getHtmlLanguageAttribute();
|
|
14570
|
+
return product.language === siteLanguage;
|
|
14571
|
+
}
|
|
14572
|
+
SelectModalWithHook.viewId = "plan-select";
|
|
14573
|
+
class SelectModal extends React.Component {
|
|
15321
14574
|
constructor(props) {
|
|
15322
14575
|
super(props);
|
|
15323
14576
|
_defineProperty$3(this, "componentDidMount", () => {
|
|
@@ -15348,39 +14601,53 @@ class DonationModal extends React.Component {
|
|
|
15348
14601
|
mode: "plan"
|
|
15349
14602
|
});
|
|
15350
14603
|
}
|
|
15351
|
-
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
// !window.Pelcro.user.isAuthenticated()
|
|
15355
|
-
// ) {
|
|
15356
|
-
// this.props.setView("register");
|
|
15357
|
-
// }
|
|
15358
|
-
|
|
14604
|
+
if (this.state.productList.length === 0 && !window.Pelcro.user.isAuthenticated()) {
|
|
14605
|
+
this.props.setView("register");
|
|
14606
|
+
}
|
|
15359
14607
|
document.addEventListener("keydown", this.handleSubmit);
|
|
15360
14608
|
if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
|
|
15361
|
-
var _window$
|
|
15362
|
-
const userCurrency = (_window$
|
|
15363
|
-
const userCountry = (_window$
|
|
15364
|
-
(_window$
|
|
15365
|
-
const productsMatchingUserCurrency = (_window$
|
|
14609
|
+
var _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$user, _window$Pelcro5, _window$Pelcro5$site;
|
|
14610
|
+
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;
|
|
14611
|
+
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;
|
|
14612
|
+
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;
|
|
14613
|
+
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 => {
|
|
15366
14614
|
const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
|
|
15367
14615
|
if (filteredPlans.length) return filteredPlans;
|
|
15368
14616
|
});
|
|
15369
|
-
productsMatchingUserCurrency.filter(product => {
|
|
14617
|
+
const productsMatchingUserCountry = productsMatchingUserCurrency.filter(product => {
|
|
15370
14618
|
const filteredPlans = product.plans.filter(plan => {
|
|
15371
14619
|
var _plan$countries;
|
|
15372
14620
|
return plan.countries && ((_plan$countries = plan.countries) === null || _plan$countries === void 0 ? void 0 : _plan$countries.includes(userCountry)) || !plan.countries || !plan.countries.length;
|
|
15373
14621
|
});
|
|
15374
14622
|
if (filteredPlans.length) return filteredPlans;
|
|
15375
14623
|
});
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15379
|
-
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
14624
|
+
notifyBugsnag(() => {
|
|
14625
|
+
Bugsnag.notify("SelectModal - No data viewed", event => {
|
|
14626
|
+
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;
|
|
14627
|
+
event.addMetadata("MetaData", {
|
|
14628
|
+
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(),
|
|
14629
|
+
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(),
|
|
14630
|
+
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,
|
|
14631
|
+
environment: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : _window$Pelcro9.environment,
|
|
14632
|
+
matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
|
|
14633
|
+
productListState: this.state.productList,
|
|
14634
|
+
methods: {
|
|
14635
|
+
productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst(),
|
|
14636
|
+
pelcroSDKProductsListMethod: window.Pelcro.product.list(),
|
|
14637
|
+
pelcroSDKGetByEntitlements: this.props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(this.props.matchingEntitlements) : null
|
|
14638
|
+
},
|
|
14639
|
+
userCurrency: userCurrency,
|
|
14640
|
+
userCountry: userCountry,
|
|
14641
|
+
userLanguage: userLanguage,
|
|
14642
|
+
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(),
|
|
14643
|
+
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,
|
|
14644
|
+
currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
|
|
14645
|
+
country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
|
|
14646
|
+
language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
|
|
14647
|
+
});
|
|
14648
|
+
});
|
|
15383
14649
|
});
|
|
14650
|
+
console.log("bugsnag Triggered");
|
|
15384
14651
|
}
|
|
15385
14652
|
});
|
|
15386
14653
|
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
@@ -15436,7 +14703,9 @@ class DonationModal extends React.Component {
|
|
|
15436
14703
|
className: "plc-text-xs pelcro-select-product-description"
|
|
15437
14704
|
}, product.description)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15438
14705
|
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
15439
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
14706
|
+
}, product.plans && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14707
|
+
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
14708
|
+
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
15440
14709
|
onClick: productButtonCallback,
|
|
15441
14710
|
"data-key": product.id,
|
|
15442
14711
|
id: "pelcro-select-product-back-button",
|
|
@@ -15476,90 +14745,24 @@ class DonationModal extends React.Component {
|
|
|
15476
14745
|
_defineProperty$3(this, "renderPlans", () => {
|
|
15477
14746
|
return this.state.planList.map(plan => {
|
|
15478
14747
|
const isChecked = this.state.plan.id === plan.id ? true : false;
|
|
15479
|
-
let planDetails = /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15480
|
-
className: "plc-bg-gray-100 plc-rounded-md plc-p-3 plc-mt-3 plc-text-sm plc-flex plc-items-center"
|
|
15481
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15482
|
-
className: "plc-flex plc-items-center plc-flex-1"
|
|
15483
|
-
}, "Auto renew:", " ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15484
|
-
className: "plc-inline-flex plc-w-6 plc-ml-1"
|
|
15485
|
-
}, plan.auto_renew ? /*#__PURE__*/React__default['default'].createElement(SvgCheck, {
|
|
15486
|
-
className: "plc-text-green-500"
|
|
15487
|
-
}) : /*#__PURE__*/React__default['default'].createElement(SvgXIcon, {
|
|
15488
|
-
className: "plc-text-red-500"
|
|
15489
|
-
})), " "), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15490
|
-
className: "plc-flex plc-items-center plc-flex-1"
|
|
15491
|
-
}, "Renewed every:", " ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15492
|
-
className: "plc-inline-flex plc-w-6 plc-ml-1 plc-font-bold plc-capitalize"
|
|
15493
|
-
}, plan.interval || "-"))), plan.preset_donation_values && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15494
|
-
className: "plc-mt-3 plc-pt-3 plc-border-t plc-border-gray-200"
|
|
15495
|
-
}, /*#__PURE__*/React__default['default'].createElement("h5", {
|
|
15496
|
-
className: "plc-mb-4 plc-font-medium plc-text-center"
|
|
15497
|
-
}, "Select amount"), /*#__PURE__*/React__default['default'].createElement("ul", {
|
|
15498
|
-
className: "plc-grid plc-grid-cols-2 plc-gap-3"
|
|
15499
|
-
}, plan.preset_donation_values.map(value => /*#__PURE__*/React__default['default'].createElement("li", {
|
|
15500
|
-
key: value
|
|
15501
|
-
}, /*#__PURE__*/React__default['default'].createElement("button", {
|
|
15502
|
-
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"}`,
|
|
15503
|
-
onClick: () => {
|
|
15504
|
-
this.setState({
|
|
15505
|
-
selectedDonationAmount: +value,
|
|
15506
|
-
customDonationAmount: "",
|
|
15507
|
-
disabled: false
|
|
15508
|
-
});
|
|
15509
|
-
}
|
|
15510
|
-
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15511
|
-
className: "plc-font-bold plc-mr-1"
|
|
15512
|
-
}, value), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15513
|
-
className: "plc-uppercase"
|
|
15514
|
-
}, plan === null || plan === void 0 ? void 0 : plan.currency))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15515
|
-
className: "plc-relative plc-py-3 plc-mt-3"
|
|
15516
|
-
}, /*#__PURE__*/React__default['default'].createElement("hr", null), " ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15517
|
-
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"
|
|
15518
|
-
}, "or"))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15519
|
-
className: "plc-relative plc-mt-3"
|
|
15520
|
-
}, /*#__PURE__*/React__default['default'].createElement(Input, {
|
|
15521
|
-
type: "number",
|
|
15522
|
-
value: this.state.customDonationAmount,
|
|
15523
|
-
onChange: e => {
|
|
15524
|
-
if (+e.target.value > 0) {
|
|
15525
|
-
this.setState({
|
|
15526
|
-
customDonationAmount: +e.target.value,
|
|
15527
|
-
selectedDonationAmount: null,
|
|
15528
|
-
disabled: false
|
|
15529
|
-
});
|
|
15530
|
-
} else {
|
|
15531
|
-
this.setState({
|
|
15532
|
-
customDonationAmount: ""
|
|
15533
|
-
});
|
|
15534
|
-
this.setState({
|
|
15535
|
-
disabled: true
|
|
15536
|
-
});
|
|
15537
|
-
}
|
|
15538
|
-
},
|
|
15539
|
-
placeholder: "Donate a custom amount ...",
|
|
15540
|
-
className: "plc-pr-14",
|
|
15541
|
-
wrapperClassName: "plc-mb-0"
|
|
15542
|
-
}), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15543
|
-
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"
|
|
15544
|
-
}, plan.currency)));
|
|
15545
14748
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15546
14749
|
key: plan.id,
|
|
15547
|
-
className:
|
|
14750
|
+
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"
|
|
15548
14751
|
}, /*#__PURE__*/React__default['default'].createElement(Radio, {
|
|
15549
|
-
className: "plc-self-start pelcro-select-plan-radio
|
|
15550
|
-
labelClassName: "plc-cursor-pointer plc-w-full
|
|
14752
|
+
className: "plc-self-start pelcro-select-plan-radio",
|
|
14753
|
+
labelClassName: "plc-cursor-pointer plc-w-full",
|
|
15551
14754
|
id: `pelcro-select-plan-${plan.id}`,
|
|
15552
14755
|
name: "plan",
|
|
15553
14756
|
checked: isChecked,
|
|
15554
14757
|
"data-key": plan.id,
|
|
15555
14758
|
onChange: this.selectPlan
|
|
15556
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15557
|
-
className: "plc-text-center"
|
|
15558
|
-
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14759
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15559
14760
|
className: "plc-font-bold pelcro-select-plan-title"
|
|
15560
14761
|
}, plan.nickname), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
15561
14762
|
className: "plc-text-xs pelcro-select-plan-description"
|
|
15562
|
-
}, plan.description))
|
|
14763
|
+
}, plan.description)), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
14764
|
+
className: "plc-mt-3 plc-font-bold pelcro-select-plan-price"
|
|
14765
|
+
}, plan.amount_formatted)));
|
|
15563
14766
|
});
|
|
15564
14767
|
});
|
|
15565
14768
|
_defineProperty$3(this, "selectProduct", e => {
|
|
@@ -15567,15 +14770,13 @@ class DonationModal extends React.Component {
|
|
|
15567
14770
|
for (const product of this.state.productList) {
|
|
15568
14771
|
if (+product.id === +id) {
|
|
15569
14772
|
var _this$state$plan;
|
|
15570
|
-
const planList = product.plans.filter(plan => plan.type === "donation");
|
|
15571
|
-
if (planList.length === 1) {
|
|
15572
|
-
this.setState({
|
|
15573
|
-
plan: planList[0]
|
|
15574
|
-
});
|
|
15575
|
-
}
|
|
15576
14773
|
this.setState({
|
|
15577
|
-
product: product
|
|
15578
|
-
|
|
14774
|
+
product: product
|
|
14775
|
+
});
|
|
14776
|
+
this.setState({
|
|
14777
|
+
planList: product.plans
|
|
14778
|
+
});
|
|
14779
|
+
this.setState({
|
|
15579
14780
|
mode: "plan"
|
|
15580
14781
|
});
|
|
15581
14782
|
const isSelectedPlanPartOfThisProduct = ((_this$state$plan = this.state.plan) === null || _this$state$plan === void 0 ? void 0 : _this$state$plan.product_id) === Number(product.id);
|
|
@@ -15588,12 +14789,6 @@ class DonationModal extends React.Component {
|
|
|
15588
14789
|
}
|
|
15589
14790
|
});
|
|
15590
14791
|
_defineProperty$3(this, "selectPlan", e => {
|
|
15591
|
-
this.setState({
|
|
15592
|
-
selectedDonationAmount: null
|
|
15593
|
-
});
|
|
15594
|
-
this.setState({
|
|
15595
|
-
disabled: true
|
|
15596
|
-
});
|
|
15597
14792
|
const id = e.target.dataset.key;
|
|
15598
14793
|
for (const plan of this.state.planList) {
|
|
15599
14794
|
if (+plan.id === +id) {
|
|
@@ -15601,6 +14796,9 @@ class DonationModal extends React.Component {
|
|
|
15601
14796
|
this.setState({
|
|
15602
14797
|
plan: plan
|
|
15603
14798
|
});
|
|
14799
|
+
this.setState({
|
|
14800
|
+
disabled: false
|
|
14801
|
+
});
|
|
15604
14802
|
} else {
|
|
15605
14803
|
plan.isCheked = false;
|
|
15606
14804
|
}
|
|
@@ -15615,7 +14813,7 @@ class DonationModal extends React.Component {
|
|
|
15615
14813
|
});
|
|
15616
14814
|
});
|
|
15617
14815
|
_defineProperty$3(this, "submitOption", () => {
|
|
15618
|
-
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift
|
|
14816
|
+
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
15619
14817
|
const {
|
|
15620
14818
|
product,
|
|
15621
14819
|
isGift
|
|
@@ -15628,14 +14826,12 @@ class DonationModal extends React.Component {
|
|
|
15628
14826
|
switchToAddressView,
|
|
15629
14827
|
switchToPaymentView
|
|
15630
14828
|
} = usePelcro.getStore();
|
|
15631
|
-
if (!isAuthenticated
|
|
14829
|
+
if (!isAuthenticated) {
|
|
15632
14830
|
return setView("register");
|
|
15633
14831
|
}
|
|
15634
|
-
|
|
15635
|
-
|
|
15636
|
-
|
|
15637
|
-
// }
|
|
15638
|
-
|
|
14832
|
+
if (isGift) {
|
|
14833
|
+
return setView("gift-create");
|
|
14834
|
+
}
|
|
15639
14835
|
if (product.address_required) {
|
|
15640
14836
|
return switchToAddressView();
|
|
15641
14837
|
}
|
|
@@ -15644,16 +14840,13 @@ class DonationModal extends React.Component {
|
|
|
15644
14840
|
_defineProperty$3(this, "displayLoginView", () => {
|
|
15645
14841
|
this.props.setView("login");
|
|
15646
14842
|
});
|
|
15647
|
-
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);
|
|
15648
14843
|
this.state = {
|
|
15649
14844
|
product: {},
|
|
15650
14845
|
plan: {},
|
|
15651
14846
|
isGift: props.isGift,
|
|
15652
14847
|
disabled: true,
|
|
15653
14848
|
mode: "product",
|
|
15654
|
-
productList:
|
|
15655
|
-
selectedDonationAmount: null,
|
|
15656
|
-
customDonationAmount: ""
|
|
14849
|
+
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
15657
14850
|
};
|
|
15658
14851
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
15659
14852
|
this.locale = this.props.t;
|
|
@@ -15661,17 +14854,19 @@ class DonationModal extends React.Component {
|
|
|
15661
14854
|
}
|
|
15662
14855
|
render() {
|
|
15663
14856
|
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
15664
|
-
|
|
14857
|
+
const {
|
|
14858
|
+
disableGifting
|
|
14859
|
+
} = this.props;
|
|
15665
14860
|
if (this.state.mode === "product") {
|
|
15666
14861
|
var _ReactGA$event;
|
|
15667
|
-
|
|
14862
|
+
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, {
|
|
15668
14863
|
category: "VIEWS",
|
|
15669
14864
|
action: "Product Modal Viewed",
|
|
15670
14865
|
nonInteraction: true
|
|
15671
14866
|
});
|
|
15672
14867
|
} else if (this.state.mode === "plan") {
|
|
15673
14868
|
var _ReactGA$event2;
|
|
15674
|
-
|
|
14869
|
+
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, {
|
|
15675
14870
|
category: "VIEWS",
|
|
15676
14871
|
action: "Plan Modal Viewed",
|
|
15677
14872
|
nonInteraction: true
|
|
@@ -15690,16 +14885,25 @@ class DonationModal extends React.Component {
|
|
|
15690
14885
|
}, 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", {
|
|
15691
14886
|
className: "pelcro-select-products-wrapper"
|
|
15692
14887
|
}, (_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", {
|
|
15693
|
-
className: "plc-overflow-y-scroll pelcro-select-plans-wrapper"
|
|
15694
|
-
}, this.renderPlans()), /*#__PURE__*/React__default['default'].createElement(
|
|
14888
|
+
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
14889
|
+
}, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14890
|
+
className: "plc-flex plc-justify-center plc-mt-2"
|
|
14891
|
+
}, /*#__PURE__*/React__default['default'].createElement(Checkbox, {
|
|
14892
|
+
onChange: this.onIsGiftChange,
|
|
14893
|
+
checked: this.state.isGift,
|
|
14894
|
+
id: "pelcro-input-is-gift"
|
|
14895
|
+
}, this.locale("messages.checkbox"))), /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
15695
14896
|
disabled: this.state.disabled,
|
|
15696
|
-
onClick:
|
|
14897
|
+
onClick: this.submitOption,
|
|
15697
14898
|
id: "pelcro-submit",
|
|
15698
14899
|
className: "plc-w-full plc-mt-2"
|
|
15699
|
-
}, this.locale("buttons.
|
|
14900
|
+
}, 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, {
|
|
14901
|
+
id: "pelcro-link-login",
|
|
14902
|
+
onClick: this.displayLoginView
|
|
14903
|
+
}, this.locale("messages.loginHere"))), /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
|
|
15700
14904
|
}
|
|
15701
14905
|
}
|
|
15702
|
-
const
|
|
14906
|
+
const SelectModalWithTrans = withTranslation("select")(SelectModal);
|
|
15703
14907
|
|
|
15704
14908
|
var Provider_1 = createCommonjsModule(function (module, exports) {
|
|
15705
14909
|
|
|
@@ -17911,15 +17115,11 @@ const initialState$k = {
|
|
|
17911
17115
|
firstName: "",
|
|
17912
17116
|
lastName: "",
|
|
17913
17117
|
phone: "",
|
|
17914
|
-
email: "",
|
|
17915
|
-
password: "",
|
|
17916
17118
|
firstNameError: null,
|
|
17917
17119
|
lastNameError: null,
|
|
17918
17120
|
phoneError: null,
|
|
17919
|
-
emailError: null,
|
|
17920
17121
|
month: "",
|
|
17921
17122
|
year: "",
|
|
17922
|
-
passwordError: null,
|
|
17923
17123
|
alert: {
|
|
17924
17124
|
type: "error",
|
|
17925
17125
|
content: ""
|
|
@@ -17952,11 +17152,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17952
17152
|
set,
|
|
17953
17153
|
order,
|
|
17954
17154
|
selectedPaymentMethodId,
|
|
17955
|
-
couponCode
|
|
17956
|
-
selectedDonationAmount,
|
|
17957
|
-
customDonationAmount,
|
|
17958
|
-
isAuthenticated,
|
|
17959
|
-
switchView
|
|
17155
|
+
couponCode
|
|
17960
17156
|
} = usePelcro();
|
|
17961
17157
|
const {
|
|
17962
17158
|
whenUserReady
|
|
@@ -18238,7 +17434,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18238
17434
|
|
|
18239
17435
|
/*====== Start Tap integration ========*/
|
|
18240
17436
|
const submitUsingTap = state => {
|
|
18241
|
-
var _ref3, _ref4,
|
|
17437
|
+
var _ref3, _ref4, _ref5, _state$updatedPrice;
|
|
18242
17438
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
18243
17439
|
if (isUsingExistingPaymentMethod) {
|
|
18244
17440
|
// no need to create a new source using tap
|
|
@@ -18262,15 +17458,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18262
17458
|
return total + item.price * item.quantity;
|
|
18263
17459
|
}, 0);
|
|
18264
17460
|
};
|
|
18265
|
-
|
|
18266
|
-
if (state.updatedPrice) return state.updatedPrice;
|
|
18267
|
-
if (plan.type === "donation" && (selectedDonationAmount || customDonationAmount)) {
|
|
18268
|
-
return selectedDonationAmount ? selectedDonationAmount * plan.amount : customDonationAmount * plan.amount;
|
|
18269
|
-
} else {
|
|
18270
|
-
return plan.amount;
|
|
18271
|
-
}
|
|
18272
|
-
}
|
|
18273
|
-
const totalAmount = (_ref3 = (_ref4 = (_getPlanAmount = getPlanAmount()) !== null && _getPlanAmount !== void 0 ? _getPlanAmount : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref4 !== void 0 ? _ref4 : getOrderItemsTotal()) !== null && _ref3 !== void 0 ? _ref3 : 10;
|
|
17461
|
+
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;
|
|
18274
17462
|
tapInstanceRef.current.createToken(tapInstanceCard.current).then(function (result) {
|
|
18275
17463
|
if (result.error) {
|
|
18276
17464
|
// Inform the user if there was an error
|
|
@@ -18749,32 +17937,24 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18749
17937
|
}, [selectedPaymentMethodId]);
|
|
18750
17938
|
const initPaymentRequest = (state, dispatch) => {
|
|
18751
17939
|
if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
|
|
18752
|
-
function getPlanAmount() {
|
|
18753
|
-
if (state.updatedPrice) return state.updatedPrice;
|
|
18754
|
-
if (plan.type === "donation" && (selectedDonationAmount || customDonationAmount)) {
|
|
18755
|
-
return selectedDonationAmount ? selectedDonationAmount * plan.amount : customDonationAmount * plan.amount;
|
|
18756
|
-
} else {
|
|
18757
|
-
return plan.amount;
|
|
18758
|
-
}
|
|
18759
|
-
}
|
|
18760
17940
|
try {
|
|
18761
17941
|
const paymentRequest = stripe.paymentRequest({
|
|
18762
17942
|
country: window.Pelcro.user.location.countryCode || "US",
|
|
18763
17943
|
currency: plan.currency,
|
|
18764
17944
|
total: {
|
|
18765
17945
|
label: plan.nickname || plan.description,
|
|
18766
|
-
amount:
|
|
17946
|
+
amount: state.updatedPrice || plan.amount
|
|
18767
17947
|
}
|
|
18768
17948
|
});
|
|
18769
17949
|
|
|
18770
17950
|
// When Google pay / Apple pay source created
|
|
18771
|
-
paymentRequest.on("source",
|
|
17951
|
+
paymentRequest.on("source", _ref6 => {
|
|
18772
17952
|
var _source$card;
|
|
18773
17953
|
let {
|
|
18774
17954
|
complete,
|
|
18775
17955
|
source,
|
|
18776
17956
|
...data
|
|
18777
|
-
} =
|
|
17957
|
+
} = _ref6;
|
|
18778
17958
|
dispatch({
|
|
18779
17959
|
type: DISABLE_COUPON_BUTTON,
|
|
18780
17960
|
payload: true
|
|
@@ -18789,11 +17969,11 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18789
17969
|
});
|
|
18790
17970
|
complete("success");
|
|
18791
17971
|
if ((source === null || source === void 0 ? void 0 : (_source$card = source.card) === null || _source$card === void 0 ? void 0 : _source$card.three_d_secure) === "required") {
|
|
18792
|
-
return generate3DSecureSource(source).then(
|
|
17972
|
+
return generate3DSecureSource(source).then(_ref7 => {
|
|
18793
17973
|
let {
|
|
18794
17974
|
source,
|
|
18795
17975
|
error
|
|
18796
|
-
} =
|
|
17976
|
+
} = _ref7;
|
|
18797
17977
|
if (error) {
|
|
18798
17978
|
return handlePaymentError(error);
|
|
18799
17979
|
}
|
|
@@ -19394,12 +18574,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19394
18574
|
const updatePaymentSource = (state, dispatch) => {
|
|
19395
18575
|
return stripe.createSource({
|
|
19396
18576
|
type: "card"
|
|
19397
|
-
}).then(
|
|
18577
|
+
}).then(_ref8 => {
|
|
19398
18578
|
var _source$card2;
|
|
19399
18579
|
let {
|
|
19400
18580
|
source,
|
|
19401
18581
|
error
|
|
19402
|
-
} =
|
|
18582
|
+
} = _ref8;
|
|
19403
18583
|
if (error) {
|
|
19404
18584
|
return handlePaymentError(error);
|
|
19405
18585
|
}
|
|
@@ -19454,50 +18634,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19454
18634
|
}
|
|
19455
18635
|
});
|
|
19456
18636
|
};
|
|
19457
|
-
const sendRegisterRequest = (state, callback) => {
|
|
19458
|
-
window.Pelcro.user.register({
|
|
19459
|
-
email: state.email,
|
|
19460
|
-
password: generatePassword()
|
|
19461
|
-
}, (err, res) => {
|
|
19462
|
-
if (err) {
|
|
19463
|
-
var _err$response, _err$response$data;
|
|
19464
|
-
let {
|
|
19465
|
-
registered_on_other_sites,
|
|
19466
|
-
...errors
|
|
19467
|
-
} = 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;
|
|
19468
|
-
err.response.data.errors = {
|
|
19469
|
-
...errors
|
|
19470
|
-
};
|
|
19471
|
-
let errorContent;
|
|
19472
|
-
if (getErrorMessages(err) === "This email is already in use.") {
|
|
19473
|
-
errorContent = /*#__PURE__*/React__default['default'].createElement("p", null, "This email is already in use.", " ", /*#__PURE__*/React__default['default'].createElement("button", {
|
|
19474
|
-
className: "plc-font-bold plc-underline hover:plc-no-underline",
|
|
19475
|
-
onClick: () => switchView("login")
|
|
19476
|
-
}, "Login to continue"));
|
|
19477
|
-
} else {
|
|
19478
|
-
errorContent = getErrorMessages(err);
|
|
19479
|
-
}
|
|
19480
|
-
dispatch({
|
|
19481
|
-
type: SHOW_ALERT,
|
|
19482
|
-
payload: {
|
|
19483
|
-
type: "error",
|
|
19484
|
-
content: errorContent
|
|
19485
|
-
}
|
|
19486
|
-
});
|
|
19487
|
-
dispatch({
|
|
19488
|
-
type: DISABLE_SUBMIT,
|
|
19489
|
-
payload: false
|
|
19490
|
-
});
|
|
19491
|
-
dispatch({
|
|
19492
|
-
type: LOADING,
|
|
19493
|
-
payload: false
|
|
19494
|
-
});
|
|
19495
|
-
onFailure(err);
|
|
19496
|
-
} else {
|
|
19497
|
-
callback();
|
|
19498
|
-
}
|
|
19499
|
-
});
|
|
19500
|
-
};
|
|
19501
18637
|
const submitPayment = (state, dispatch) => {
|
|
19502
18638
|
if (skipPayment && props !== null && props !== void 0 && props.freeOrders) {
|
|
19503
18639
|
const isQuickPurchase = !Array.isArray(order);
|
|
@@ -19524,12 +18660,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19524
18660
|
}
|
|
19525
18661
|
stripe.createSource({
|
|
19526
18662
|
type: "card"
|
|
19527
|
-
}).then(
|
|
19528
|
-
var
|
|
18663
|
+
}).then(_ref9 => {
|
|
18664
|
+
var _ref10, _ref11, _state$updatedPrice2;
|
|
19529
18665
|
let {
|
|
19530
18666
|
source,
|
|
19531
18667
|
error
|
|
19532
|
-
} =
|
|
18668
|
+
} = _ref9;
|
|
19533
18669
|
if (error) {
|
|
19534
18670
|
return handlePaymentError(error);
|
|
19535
18671
|
}
|
|
@@ -19548,7 +18684,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19548
18684
|
return total + item.price * item.quantity;
|
|
19549
18685
|
}, 0);
|
|
19550
18686
|
};
|
|
19551
|
-
(
|
|
18687
|
+
(_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();
|
|
19552
18688
|
return handlePayment(source);
|
|
19553
18689
|
}).catch(error => {
|
|
19554
18690
|
return handlePaymentError(error);
|
|
@@ -19759,47 +18895,25 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19759
18895
|
return submitPayment(state);
|
|
19760
18896
|
}
|
|
19761
18897
|
if (getSiteCardProcessor() === "vantiv") {
|
|
19762
|
-
|
|
19763
|
-
return sendRegisterRequest(state, () => submitUsingVantiv(state));
|
|
19764
|
-
} else {
|
|
19765
|
-
return submitUsingVantiv(state);
|
|
19766
|
-
}
|
|
18898
|
+
return submitUsingVantiv(state);
|
|
19767
18899
|
}
|
|
19768
18900
|
if (getSiteCardProcessor() === "tap") {
|
|
19769
|
-
|
|
19770
|
-
return sendRegisterRequest(state, () => submitUsingTap(state));
|
|
19771
|
-
} else {
|
|
19772
|
-
return submitUsingTap(state);
|
|
19773
|
-
}
|
|
19774
|
-
}
|
|
19775
|
-
if (getSiteCardProcessor() === "cybersource") {
|
|
19776
|
-
return submitUsingCybersource(state, dispatch);
|
|
18901
|
+
return submitUsingTap(state);
|
|
19777
18902
|
}
|
|
19778
18903
|
if (getSiteCardProcessor() === "cybersource") {
|
|
19779
18904
|
return submitUsingCybersource(state, dispatch);
|
|
19780
18905
|
}
|
|
19781
18906
|
if (selectedPaymentMethodId) {
|
|
19782
|
-
|
|
19783
|
-
|
|
19784
|
-
|
|
19785
|
-
|
|
19786
|
-
|
|
19787
|
-
} else {
|
|
19788
|
-
// pay with selected method (source) if exists already
|
|
19789
|
-
return handlePayment({
|
|
19790
|
-
id: selectedPaymentMethodId,
|
|
19791
|
-
isExistingSource: true
|
|
19792
|
-
});
|
|
19793
|
-
}
|
|
18907
|
+
// pay with selected method (source) if exists already
|
|
18908
|
+
return handlePayment({
|
|
18909
|
+
id: selectedPaymentMethodId,
|
|
18910
|
+
isExistingSource: true
|
|
18911
|
+
});
|
|
19794
18912
|
}
|
|
19795
18913
|
if (type === "updatePaymentSource") {
|
|
19796
18914
|
return updatePaymentSource(state, dispatch);
|
|
19797
18915
|
}
|
|
19798
|
-
|
|
19799
|
-
return sendRegisterRequest(state, () => submitPayment(state));
|
|
19800
|
-
} else {
|
|
19801
|
-
return submitPayment(state);
|
|
19802
|
-
}
|
|
18916
|
+
submitPayment(state);
|
|
19803
18917
|
});
|
|
19804
18918
|
case HANDLE_PAYPAL_SUBSCRIPTION:
|
|
19805
18919
|
return lib_5(state, (state, dispatch) => {
|
|
@@ -19884,18 +18998,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19884
18998
|
phone: action.payload,
|
|
19885
18999
|
phoneError: null
|
|
19886
19000
|
});
|
|
19887
|
-
case SET_EMAIL:
|
|
19888
|
-
return lib_7({
|
|
19889
|
-
...state,
|
|
19890
|
-
email: action.payload,
|
|
19891
|
-
emailError: null
|
|
19892
|
-
});
|
|
19893
|
-
case SET_PASSWORD:
|
|
19894
|
-
return lib_7({
|
|
19895
|
-
...state,
|
|
19896
|
-
password: action.payload,
|
|
19897
|
-
passwordError: null
|
|
19898
|
-
});
|
|
19899
19001
|
case SET_FIRST_NAME_ERROR:
|
|
19900
19002
|
return lib_7({
|
|
19901
19003
|
...state,
|
|
@@ -19914,18 +19016,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19914
19016
|
phoneError: action.payload,
|
|
19915
19017
|
phone: null
|
|
19916
19018
|
});
|
|
19917
|
-
case SET_EMAIL_ERROR:
|
|
19918
|
-
return lib_7({
|
|
19919
|
-
...state,
|
|
19920
|
-
emailError: action.payload,
|
|
19921
|
-
email: ""
|
|
19922
|
-
});
|
|
19923
|
-
case SET_PASSWORD_ERROR:
|
|
19924
|
-
return lib_7({
|
|
19925
|
-
...state,
|
|
19926
|
-
passwordError: action.payload,
|
|
19927
|
-
password: ""
|
|
19928
|
-
});
|
|
19929
19019
|
case SHOW_ALERT:
|
|
19930
19020
|
return lib_7({
|
|
19931
19021
|
...state,
|
|
@@ -19959,14 +19049,18 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19959
19049
|
const UnwrappedForm = es_12(PaymentMethodContainerWithoutStripe);
|
|
19960
19050
|
const PaymentMethodContainer = props => {
|
|
19961
19051
|
const [isStripeLoaded, setIsStripeLoaded] = React.useState(Boolean(window.Stripe));
|
|
19962
|
-
|
|
19052
|
+
const {
|
|
19053
|
+
whenUserReady
|
|
19054
|
+
} = usePelcro.getStore();
|
|
19963
19055
|
const cardProcessor = getSiteCardProcessor();
|
|
19964
19056
|
React.useEffect(() => {
|
|
19965
|
-
|
|
19966
|
-
|
|
19967
|
-
|
|
19968
|
-
|
|
19969
|
-
|
|
19057
|
+
whenUserReady(() => {
|
|
19058
|
+
if (!window.Stripe && cardProcessor === "stripe") {
|
|
19059
|
+
document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
|
|
19060
|
+
setIsStripeLoaded(true);
|
|
19061
|
+
});
|
|
19062
|
+
}
|
|
19063
|
+
});
|
|
19970
19064
|
}, []);
|
|
19971
19065
|
if (isStripeLoaded) {
|
|
19972
19066
|
return /*#__PURE__*/React__default['default'].createElement(es_13, {
|
|
@@ -20259,15 +19353,13 @@ const DiscountedPrice = props => {
|
|
|
20259
19353
|
};
|
|
20260
19354
|
|
|
20261
19355
|
const SubmitPaymentMethod = _ref => {
|
|
20262
|
-
var _plan$quantity,
|
|
19356
|
+
var _plan$quantity, _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
20263
19357
|
let {
|
|
20264
19358
|
onClick,
|
|
20265
19359
|
...otherProps
|
|
20266
19360
|
} = _ref;
|
|
20267
19361
|
const {
|
|
20268
19362
|
plan,
|
|
20269
|
-
selectedDonationAmount,
|
|
20270
|
-
customDonationAmount,
|
|
20271
19363
|
selectedPaymentMethodId
|
|
20272
19364
|
} = usePelcro();
|
|
20273
19365
|
const {
|
|
@@ -20279,8 +19371,6 @@ const SubmitPaymentMethod = _ref => {
|
|
|
20279
19371
|
firstNameError,
|
|
20280
19372
|
lastNameError,
|
|
20281
19373
|
phoneError,
|
|
20282
|
-
emailError,
|
|
20283
|
-
passwordError,
|
|
20284
19374
|
firstName,
|
|
20285
19375
|
lastName,
|
|
20286
19376
|
phone,
|
|
@@ -20293,7 +19383,7 @@ const SubmitPaymentMethod = _ref => {
|
|
|
20293
19383
|
} = React.useContext(store$k);
|
|
20294
19384
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
20295
19385
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
20296
|
-
const priceFormatted =
|
|
19386
|
+
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
20297
19387
|
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);
|
|
20298
19388
|
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);
|
|
20299
19389
|
const isUserFirstName = Boolean(window.Pelcro.user.read().first_name);
|
|
@@ -20304,9 +19394,9 @@ const SubmitPaymentMethod = _ref => {
|
|
|
20304
19394
|
if (supportsTap && isUserFirstName && isUserLastName && isUserPhone) {
|
|
20305
19395
|
setDisabled(disableSubmit);
|
|
20306
19396
|
} else {
|
|
20307
|
-
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) ||
|
|
19397
|
+
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));
|
|
20308
19398
|
}
|
|
20309
|
-
}, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone,
|
|
19399
|
+
}, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone, month, year]);
|
|
20310
19400
|
return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
20311
19401
|
role: "submit",
|
|
20312
19402
|
className: "plc-w-full plc-py-3",
|
|
@@ -20941,10 +20031,6 @@ const OrderCreateFreeButton = _ref => {
|
|
|
20941
20031
|
}, otherProps), t("labels.submit"));
|
|
20942
20032
|
};
|
|
20943
20033
|
|
|
20944
|
-
const DonationEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
20945
|
-
store: store$k
|
|
20946
|
-
}, props));
|
|
20947
|
-
|
|
20948
20034
|
/**
|
|
20949
20035
|
*
|
|
20950
20036
|
*/
|
|
@@ -20964,10 +20050,6 @@ function PaymentMethodView(_ref) {
|
|
|
20964
20050
|
const {
|
|
20965
20051
|
t
|
|
20966
20052
|
} = useTranslation("checkoutForm");
|
|
20967
|
-
const {
|
|
20968
|
-
plan,
|
|
20969
|
-
isAuthenticated
|
|
20970
|
-
} = usePelcro();
|
|
20971
20053
|
const cardProcessor = getSiteCardProcessor();
|
|
20972
20054
|
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);
|
|
20973
20055
|
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);
|
|
@@ -21025,12 +20107,6 @@ function PaymentMethodView(_ref) {
|
|
|
21025
20107
|
errorId: "pelcro-input-phone-error",
|
|
21026
20108
|
label: t("labels.phone"),
|
|
21027
20109
|
required: true
|
|
21028
|
-
})), !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, {
|
|
21029
|
-
id: "pelcro-input-email",
|
|
21030
|
-
errorId: "pelcro-input-email-error",
|
|
21031
|
-
label: t("labels.email"),
|
|
21032
|
-
required: true,
|
|
21033
|
-
autoFocus: true
|
|
21034
20110
|
})), /*#__PURE__*/React__default['default'].createElement(CheckoutForm, null), showCoupon && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21035
20111
|
className: "plc-mb-2"
|
|
21036
20112
|
}, /*#__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", {
|
|
@@ -21350,7 +20426,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
21350
20426
|
switchView(null);
|
|
21351
20427
|
|
|
21352
20428
|
//Show confirmation alert after closing the modal
|
|
21353
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
20429
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
21354
20430
|
cancelSubscription(payload, onSuccess, onFailure);
|
|
21355
20431
|
}, {
|
|
21356
20432
|
confirmMessage: t("messages.subCancellation.isSureToCancelNow"),
|
|
@@ -21422,7 +20498,7 @@ const SubscriptionCancelLaterButton = _ref => {
|
|
|
21422
20498
|
switchView(null);
|
|
21423
20499
|
|
|
21424
20500
|
//Show confirmation alert after closing the modal
|
|
21425
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
20501
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
21426
20502
|
cancelSubscription(payload, onSuccess, onFailure);
|
|
21427
20503
|
}, {
|
|
21428
20504
|
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
@@ -21659,7 +20735,7 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
21659
20735
|
switchView(null);
|
|
21660
20736
|
|
|
21661
20737
|
//Show confirmation alert after closing the modal
|
|
21662
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
20738
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
21663
20739
|
suspendSubscription(payload, onSuccess, onFailure);
|
|
21664
20740
|
}, {
|
|
21665
20741
|
confirmMessage: t("messages.subCancellation.isSureToSuspendNow"),
|
|
@@ -22379,14 +21455,12 @@ const SubscriptionCreateView = _ref => {
|
|
|
22379
21455
|
} = useTranslation("checkoutForm");
|
|
22380
21456
|
const {
|
|
22381
21457
|
product,
|
|
22382
|
-
plan
|
|
22383
|
-
selectedDonationAmount,
|
|
22384
|
-
customDonationAmount
|
|
21458
|
+
plan
|
|
22385
21459
|
} = usePelcro();
|
|
22386
21460
|
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;
|
|
22387
21461
|
const showSubscriptionButton = skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0;
|
|
22388
21462
|
const getPricingText = plan => {
|
|
22389
|
-
var _plan$quantity
|
|
21463
|
+
var _plan$quantity;
|
|
22390
21464
|
const autoRenewed = plan.auto_renew;
|
|
22391
21465
|
const {
|
|
22392
21466
|
interval,
|
|
@@ -22396,7 +21470,7 @@ const SubscriptionCreateView = _ref => {
|
|
|
22396
21470
|
interval,
|
|
22397
21471
|
count: interval_count
|
|
22398
21472
|
});
|
|
22399
|
-
const priceFormatted =
|
|
21473
|
+
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());
|
|
22400
21474
|
return /*#__PURE__*/React__default['default'].createElement("p", {
|
|
22401
21475
|
className: "plc-text-gray-600"
|
|
22402
21476
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
@@ -23719,7 +22793,7 @@ const AddressCreateContainer = _ref => {
|
|
|
23719
22793
|
});
|
|
23720
22794
|
return onFailure(err);
|
|
23721
22795
|
}
|
|
23722
|
-
notify.success(t("messages.addressUpdated"));
|
|
22796
|
+
notify$1.success(t("messages.addressUpdated"));
|
|
23723
22797
|
return onMembershipAdressUpdateSuccess(res);
|
|
23724
22798
|
});
|
|
23725
22799
|
}
|
|
@@ -26600,16 +25674,6 @@ const GiftCreateContainer = _ref => {
|
|
|
26600
25674
|
return onFailure();
|
|
26601
25675
|
}
|
|
26602
25676
|
}
|
|
26603
|
-
if (giftRecipient.giftMessage && !isStringValid(giftRecipient.giftMessage)) {
|
|
26604
|
-
dispatch({
|
|
26605
|
-
type: SHOW_ALERT,
|
|
26606
|
-
payload: {
|
|
26607
|
-
type: "error",
|
|
26608
|
-
content: t("gift.messages.giftMessageAllowedCharacters")
|
|
26609
|
-
}
|
|
26610
|
-
});
|
|
26611
|
-
return onFailure();
|
|
26612
|
-
}
|
|
26613
25677
|
set({
|
|
26614
25678
|
giftRecipient
|
|
26615
25679
|
});
|
|
@@ -27217,7 +26281,7 @@ const AddressSelectContainer = _ref => {
|
|
|
27217
26281
|
});
|
|
27218
26282
|
return onFailure(err);
|
|
27219
26283
|
}
|
|
27220
|
-
notify.success(t("messages.addressUpdated"));
|
|
26284
|
+
notify$1.success(t("messages.addressUpdated"));
|
|
27221
26285
|
return onMembershipAdressUpdateSuccess(res);
|
|
27222
26286
|
});
|
|
27223
26287
|
}
|
|
@@ -29178,7 +28242,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29178
28242
|
return switchView("email-verify");
|
|
29179
28243
|
}
|
|
29180
28244
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
29181
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
28245
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
29182
28246
|
cancelSubscription(sub.id, onSuccess, onFailure);
|
|
29183
28247
|
}, {
|
|
29184
28248
|
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
@@ -29195,7 +28259,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29195
28259
|
if (userMustVerifyEmail()) {
|
|
29196
28260
|
return switchView("email-verify");
|
|
29197
28261
|
}
|
|
29198
|
-
reactivateSubscription(sub.id
|
|
28262
|
+
reactivateSubscription(sub.id);
|
|
29199
28263
|
};
|
|
29200
28264
|
|
|
29201
28265
|
// Renew click
|
|
@@ -29233,7 +28297,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29233
28297
|
return switchView("email-verify");
|
|
29234
28298
|
}
|
|
29235
28299
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
29236
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
28300
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
29237
28301
|
unSuspendSubscription(sub.id, onSuccess, onFailure);
|
|
29238
28302
|
}, {
|
|
29239
28303
|
confirmMessage: t("messages.subUnSuspend.isSureToUnSuspend"),
|
|
@@ -29315,7 +28379,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29315
28379
|
onClick: onCancelClick,
|
|
29316
28380
|
disabled: disableSubmit,
|
|
29317
28381
|
"data-key": sub.id
|
|
29318
|
-
}, t("labels.unsubscribe")) : "", (sub === null || sub === void 0 ? void 0 : (_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) ===
|
|
28382
|
+
}, 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, {
|
|
29319
28383
|
variant: "ghost",
|
|
29320
28384
|
className: "plc-text-blue-400 pelcro-dashboard-sub-manage-members-button",
|
|
29321
28385
|
icon: /*#__PURE__*/React__default['default'].createElement(SvgRefresh, null),
|
|
@@ -29362,10 +28426,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29362
28426
|
};
|
|
29363
28427
|
function getNonDonationSubs() {
|
|
29364
28428
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3;
|
|
29365
|
-
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 =>
|
|
29366
|
-
var _sub$plan2;
|
|
29367
|
-
return ((_sub$plan2 = sub.plan) === null || _sub$plan2 === void 0 ? void 0 : _sub$plan2.type) !== "donation";
|
|
29368
|
-
})) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
28429
|
+
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 : [];
|
|
29369
28430
|
}
|
|
29370
28431
|
function isDateAfterToday(date) {
|
|
29371
28432
|
const today = new Date().setHours(0, 0, 0, 0);
|
|
@@ -29653,7 +28714,6 @@ function SvgQrcode(props) {
|
|
|
29653
28714
|
|
|
29654
28715
|
const DonationsMenu = _ref => {
|
|
29655
28716
|
let {
|
|
29656
|
-
onClose,
|
|
29657
28717
|
reactivateSubscription,
|
|
29658
28718
|
disableSubmit,
|
|
29659
28719
|
cancelSubscription
|
|
@@ -29665,10 +28725,10 @@ const DonationsMenu = _ref => {
|
|
|
29665
28725
|
switchView,
|
|
29666
28726
|
setSubscriptionToCancel
|
|
29667
28727
|
} = usePelcro();
|
|
29668
|
-
const
|
|
29669
|
-
console.log("Sub", sub);
|
|
28728
|
+
const subscriptions = getDonationSubs().sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
|
|
29670
28729
|
// Cancel button click handlers
|
|
29671
28730
|
const onCancelClick = () => {
|
|
28731
|
+
var _onClose;
|
|
29672
28732
|
const isImmediateCancelationEnabled = window.Pelcro.site.read().cancel_settings.status;
|
|
29673
28733
|
if (isImmediateCancelationEnabled) {
|
|
29674
28734
|
setSubscriptionToCancel(sub.id);
|
|
@@ -29677,16 +28737,16 @@ const DonationsMenu = _ref => {
|
|
|
29677
28737
|
if (userMustVerifyEmail()) {
|
|
29678
28738
|
return switchView("email-verify");
|
|
29679
28739
|
}
|
|
29680
|
-
onClose === null ||
|
|
28740
|
+
(_onClose = onClose) === null || _onClose === void 0 ? void 0 : _onClose();
|
|
29681
28741
|
notify.confirm((onSuccess, onFailure) => {
|
|
29682
28742
|
cancelSubscription(sub.id, onSuccess, onFailure);
|
|
29683
28743
|
}, {
|
|
29684
|
-
confirmMessage: t("messages.
|
|
29685
|
-
loadingMessage: t("messages.
|
|
29686
|
-
successMessage: t("messages.
|
|
29687
|
-
errorMessage: t("messages.
|
|
28744
|
+
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
28745
|
+
loadingMessage: t("messages.subCancellation.loading"),
|
|
28746
|
+
successMessage: t("messages.subCancellation.success"),
|
|
28747
|
+
errorMessage: t("messages.subCancellation.error")
|
|
29688
28748
|
}, {
|
|
29689
|
-
closeButtonLabel: t("labels.
|
|
28749
|
+
closeButtonLabel: t("labels.subCancellation.goBack")
|
|
29690
28750
|
});
|
|
29691
28751
|
};
|
|
29692
28752
|
|
|
@@ -29695,7 +28755,7 @@ const DonationsMenu = _ref => {
|
|
|
29695
28755
|
if (userMustVerifyEmail()) {
|
|
29696
28756
|
return switchView("email-verify");
|
|
29697
28757
|
}
|
|
29698
|
-
reactivateSubscription(sub.id
|
|
28758
|
+
reactivateSubscription(sub.id);
|
|
29699
28759
|
};
|
|
29700
28760
|
return /*#__PURE__*/React__default['default'].createElement("tr", {
|
|
29701
28761
|
key: sub.id,
|
|
@@ -29736,18 +28796,12 @@ const DonationsMenu = _ref => {
|
|
|
29736
28796
|
className: "plc-w-3/12 "
|
|
29737
28797
|
}, t("labels.actions")))), /*#__PURE__*/React__default['default'].createElement("tbody", null, /*#__PURE__*/React__default['default'].createElement("tr", {
|
|
29738
28798
|
className: "plc-h-4"
|
|
29739
|
-
}),
|
|
28799
|
+
}), subscriptions));
|
|
29740
28800
|
};
|
|
29741
28801
|
function getDonationSubs() {
|
|
29742
28802
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r, _window$Pelcro$user$r2;
|
|
29743
|
-
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 =>
|
|
29744
|
-
|
|
29745
|
-
return ((_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) === "donation";
|
|
29746
|
-
})) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
29747
|
-
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 => {
|
|
29748
|
-
var _sub$plan2;
|
|
29749
|
-
return ((_sub$plan2 = sub.plan) === null || _sub$plan2 === void 0 ? void 0 : _sub$plan2.type) === "donation";
|
|
29750
|
-
})) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
|
|
28803
|
+
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 : [];
|
|
28804
|
+
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 : [];
|
|
29751
28805
|
return [...donations, ...canceledDonations];
|
|
29752
28806
|
}
|
|
29753
28807
|
function formatStartDate(date) {
|
|
@@ -30138,7 +29192,7 @@ class Dashboard extends React.Component {
|
|
|
30138
29192
|
const formattedRenewDate = new Intl.DateTimeFormat("en-CA").format(renewDate);
|
|
30139
29193
|
return `${this.locale("labels.renewsOn")} ${formattedRenewDate}`;
|
|
30140
29194
|
});
|
|
30141
|
-
_defineProperty$3(this, "reactivateSubscription",
|
|
29195
|
+
_defineProperty$3(this, "reactivateSubscription", subscription_id => {
|
|
30142
29196
|
// disable the Login button to prevent repeated clicks
|
|
30143
29197
|
this.setState({
|
|
30144
29198
|
disableSubmit: true
|
|
@@ -30152,17 +29206,9 @@ class Dashboard extends React.Component {
|
|
|
30152
29206
|
});
|
|
30153
29207
|
this.props.onClose();
|
|
30154
29208
|
if (err) {
|
|
30155
|
-
|
|
30156
|
-
return notify.error(this.locale("messages.donationReactivation.error"));
|
|
30157
|
-
} else {
|
|
30158
|
-
return notify.error(this.locale("messages.subReactivation.error"));
|
|
30159
|
-
}
|
|
30160
|
-
}
|
|
30161
|
-
if (isDonation) {
|
|
30162
|
-
return notify.success(this.locale("messages.donationReactivation.success"));
|
|
30163
|
-
} else {
|
|
30164
|
-
return notify.success(this.locale("messages.subReactivation.success"));
|
|
29209
|
+
return notify$1.error(this.locale("messages.subReactivation.error"));
|
|
30165
29210
|
}
|
|
29211
|
+
return notify$1.success(this.locale("messages.subReactivation.success"));
|
|
30166
29212
|
});
|
|
30167
29213
|
});
|
|
30168
29214
|
_defineProperty$3(this, "getSubscriptionStatus", sub => {
|
|
@@ -30524,7 +29570,6 @@ class Dashboard extends React.Component {
|
|
|
30524
29570
|
}),
|
|
30525
29571
|
title: this.locale("labels.donations"),
|
|
30526
29572
|
content: /*#__PURE__*/React__default['default'].createElement(DonationsMenu, {
|
|
30527
|
-
onClose: this.props.onClose,
|
|
30528
29573
|
reactivateSubscription: this.reactivateSubscription,
|
|
30529
29574
|
disableSubmit: this.state.disableSubmit,
|
|
30530
29575
|
cancelSubscription: this.cancelSubscription
|
|
@@ -30566,14 +29611,8 @@ function hasInvoices() {
|
|
|
30566
29611
|
}
|
|
30567
29612
|
function hasDonationSubs() {
|
|
30568
29613
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
|
|
30569
|
-
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 =>
|
|
30570
|
-
|
|
30571
|
-
return ((_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) === "donation";
|
|
30572
|
-
})) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
30573
|
-
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 => {
|
|
30574
|
-
var _sub$plan2;
|
|
30575
|
-
return ((_sub$plan2 = sub.plan) === null || _sub$plan2 === void 0 ? void 0 : _sub$plan2.type) === "donation";
|
|
30576
|
-
})) !== null && _window$Pelcro$user$r4 !== void 0 ? _window$Pelcro$user$r4 : [];
|
|
29614
|
+
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 : [];
|
|
29615
|
+
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 : [];
|
|
30577
29616
|
return donations.length > 0 || canceledDonations.length > 0;
|
|
30578
29617
|
}
|
|
30579
29618
|
function hasActiveMemberships() {
|
|
@@ -32738,7 +31777,7 @@ function VerifyLinkTokenModal(_ref) {
|
|
|
32738
31777
|
var _props$onSuccess;
|
|
32739
31778
|
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
32740
31779
|
resetView();
|
|
32741
|
-
notify.success(t("messages.success"));
|
|
31780
|
+
notify$1.success(t("messages.success"));
|
|
32742
31781
|
};
|
|
32743
31782
|
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
32744
31783
|
id: "pelcro-login-modal",
|
|
@@ -34452,7 +33491,6 @@ exports.Dashboard = DashboardWithHook;
|
|
|
34452
33491
|
exports.DashboardOpenButton = DashboardOpenButton;
|
|
34453
33492
|
exports.DatePicker = DatePicker;
|
|
34454
33493
|
exports.DiscountedPrice = DiscountedPrice;
|
|
34455
|
-
exports.DonationModal = DonationModalWithHook;
|
|
34456
33494
|
exports.Email = Email;
|
|
34457
33495
|
exports.EmailVerifyContainer = EmailVerifyContainer;
|
|
34458
33496
|
exports.EmailVerifyModal = EmailVerifyModal;
|
|
@@ -34630,6 +33668,6 @@ exports.i18n = i18next;
|
|
|
34630
33668
|
exports.initButtons = init$1;
|
|
34631
33669
|
exports.initContentEntitlement = init;
|
|
34632
33670
|
exports.invoicePaymentSubmitButton = invoicePaymentSubmitButton;
|
|
34633
|
-
exports.notify = notify;
|
|
33671
|
+
exports.notify = notify$1;
|
|
34634
33672
|
exports.unauthenticatedButtons = unauthenticatedButtons;
|
|
34635
33673
|
exports.usePelcro = usePelcro;
|