@pelcro/react-pelcro-js 3.25.0-beta.3 → 3.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +651 -1649
- package/dist/index.esm.js +651 -1648
- package/dist/pelcro.css +0 -82
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3223,7 +3223,7 @@ var validation$3 = {
|
|
|
3223
3223
|
enterLastName: "Last name is required.",
|
|
3224
3224
|
enterPhone: "Phone number is required."
|
|
3225
3225
|
};
|
|
3226
|
-
var buttons$
|
|
3226
|
+
var buttons$j = {
|
|
3227
3227
|
account: "My account",
|
|
3228
3228
|
login: "Login",
|
|
3229
3229
|
subscribe: "Subscribe"
|
|
@@ -3301,7 +3301,7 @@ var confirm$b = {
|
|
|
3301
3301
|
};
|
|
3302
3302
|
var common_en = {
|
|
3303
3303
|
validation: validation$3,
|
|
3304
|
-
buttons: buttons$
|
|
3304
|
+
buttons: buttons$j,
|
|
3305
3305
|
dashboard: dashboard$4,
|
|
3306
3306
|
select: select$7,
|
|
3307
3307
|
confirm: confirm$b
|
|
@@ -3332,7 +3332,7 @@ var paymentMethod_en = {
|
|
|
3332
3332
|
var title$z = "Enter your email to subscribe to our newsletter";
|
|
3333
3333
|
var updateTitle$3 = "Update newsletter selections";
|
|
3334
3334
|
var subtitle$f = "We may use your email for other marketing communication";
|
|
3335
|
-
var labels$
|
|
3335
|
+
var labels$12 = {
|
|
3336
3336
|
submit: "Submit",
|
|
3337
3337
|
firstName: "First name",
|
|
3338
3338
|
lastName: "Last name",
|
|
@@ -3340,7 +3340,7 @@ var labels$16 = {
|
|
|
3340
3340
|
postalCode: "Postal code",
|
|
3341
3341
|
required: "required"
|
|
3342
3342
|
};
|
|
3343
|
-
var messages$
|
|
3343
|
+
var messages$17 = {
|
|
3344
3344
|
alreadyHaveAccount: "Already have an account?",
|
|
3345
3345
|
success: "Newsletters were successfully updated",
|
|
3346
3346
|
loginHere: "Login here.",
|
|
@@ -3351,14 +3351,14 @@ var newsletter_en = {
|
|
|
3351
3351
|
title: title$z,
|
|
3352
3352
|
updateTitle: updateTitle$3,
|
|
3353
3353
|
subtitle: subtitle$f,
|
|
3354
|
-
labels: labels$
|
|
3355
|
-
messages: messages$
|
|
3354
|
+
labels: labels$12,
|
|
3355
|
+
messages: messages$17
|
|
3356
3356
|
};
|
|
3357
3357
|
|
|
3358
|
-
var labels$
|
|
3358
|
+
var labels$11 = {
|
|
3359
3359
|
"continue": "Continue to content"
|
|
3360
3360
|
};
|
|
3361
|
-
var messages$
|
|
3361
|
+
var messages$16 = {
|
|
3362
3362
|
yourFreeTrial: "Subscription successful!",
|
|
3363
3363
|
youHaveAccess: "Hope you enjoy the subscription. Please contact us if you have any questions or concerns.",
|
|
3364
3364
|
clickToLearn: {
|
|
@@ -3384,12 +3384,12 @@ var errors$j = {
|
|
|
3384
3384
|
"": ""
|
|
3385
3385
|
};
|
|
3386
3386
|
var success_en = {
|
|
3387
|
-
labels: labels$
|
|
3388
|
-
messages: messages$
|
|
3387
|
+
labels: labels$11,
|
|
3388
|
+
messages: messages$16,
|
|
3389
3389
|
errors: errors$j
|
|
3390
3390
|
};
|
|
3391
3391
|
|
|
3392
|
-
var messages$
|
|
3392
|
+
var messages$15 = {
|
|
3393
3393
|
freeVisits: "Free visits left:",
|
|
3394
3394
|
subscribeNow: "Subscribe",
|
|
3395
3395
|
alreadyHaveAccount: "Already have an account?",
|
|
@@ -3399,16 +3399,16 @@ var errors$i = {
|
|
|
3399
3399
|
"": ""
|
|
3400
3400
|
};
|
|
3401
3401
|
var meter_en = {
|
|
3402
|
-
messages: messages$
|
|
3402
|
+
messages: messages$15,
|
|
3403
3403
|
errors: errors$i
|
|
3404
3404
|
};
|
|
3405
3405
|
|
|
3406
|
-
var messages$
|
|
3406
|
+
var messages$14 = {
|
|
3407
3407
|
youAreSafe: "You're safe - PCI compliant 128 SSL by",
|
|
3408
3408
|
bankRedirection: "Please hold, redirecting you to your bank.",
|
|
3409
3409
|
bankAuthenticationSuccess: "Please wait while we process your request."
|
|
3410
3410
|
};
|
|
3411
|
-
var labels$
|
|
3411
|
+
var labels$10 = {
|
|
3412
3412
|
card: "Enter card number",
|
|
3413
3413
|
date: "Expiration date",
|
|
3414
3414
|
CVC: "CVC",
|
|
@@ -3428,13 +3428,11 @@ var labels$14 = {
|
|
|
3428
3428
|
firstName: "First name",
|
|
3429
3429
|
lastName: "Last name",
|
|
3430
3430
|
phone: "Phone",
|
|
3431
|
-
freeItems: "Free Items"
|
|
3432
|
-
email: "Email",
|
|
3433
|
-
password: "Password"
|
|
3431
|
+
freeItems: "Free Items"
|
|
3434
3432
|
};
|
|
3435
3433
|
var checkoutForm_en = {
|
|
3436
|
-
messages: messages$
|
|
3437
|
-
labels: labels$
|
|
3434
|
+
messages: messages$14,
|
|
3435
|
+
labels: labels$10
|
|
3438
3436
|
};
|
|
3439
3437
|
|
|
3440
3438
|
var youAreSafe$3 = "You're safe - PCI compliant 128 SSL by";
|
|
@@ -3458,7 +3456,7 @@ var messages_en = {
|
|
|
3458
3456
|
zeroTotalInvoice: zeroTotalInvoice$3
|
|
3459
3457
|
};
|
|
3460
3458
|
|
|
3461
|
-
var labels
|
|
3459
|
+
var labels$$ = {
|
|
3462
3460
|
email: "Enter email",
|
|
3463
3461
|
username: "Enter username",
|
|
3464
3462
|
password: "Enter password",
|
|
@@ -3467,7 +3465,7 @@ var labels$13 = {
|
|
|
3467
3465
|
passwordPlaceholder: "Password",
|
|
3468
3466
|
login: "Login"
|
|
3469
3467
|
};
|
|
3470
|
-
var messages$
|
|
3468
|
+
var messages$13 = {
|
|
3471
3469
|
loginTo: "Login to your account",
|
|
3472
3470
|
welcome: "Welcome back, sign in with your existing account.",
|
|
3473
3471
|
dontHaveAccount: "Don't have an account yet?",
|
|
@@ -3486,28 +3484,28 @@ var errors$h = {
|
|
|
3486
3484
|
"": ""
|
|
3487
3485
|
};
|
|
3488
3486
|
var login_en = {
|
|
3489
|
-
labels: labels
|
|
3490
|
-
messages: messages$
|
|
3487
|
+
labels: labels$$,
|
|
3488
|
+
messages: messages$13,
|
|
3491
3489
|
errors: errors$h
|
|
3492
3490
|
};
|
|
3493
3491
|
|
|
3494
|
-
var labels$
|
|
3492
|
+
var labels$_ = {
|
|
3495
3493
|
title: "Verifying Passwordless Link",
|
|
3496
3494
|
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
3497
3495
|
resend: "Resend email"
|
|
3498
3496
|
};
|
|
3499
|
-
var messages$
|
|
3497
|
+
var messages$12 = {
|
|
3500
3498
|
resent: "Resent successfully",
|
|
3501
3499
|
success: "You have logged in successfully"
|
|
3502
3500
|
};
|
|
3503
3501
|
var verifyLinkToken_en = {
|
|
3504
|
-
labels: labels$
|
|
3505
|
-
messages: messages$
|
|
3502
|
+
labels: labels$_,
|
|
3503
|
+
messages: messages$12
|
|
3506
3504
|
};
|
|
3507
3505
|
|
|
3508
3506
|
var title$y = "Create an account";
|
|
3509
3507
|
var subtitle$e = "Enter your email and password below";
|
|
3510
|
-
var labels$
|
|
3508
|
+
var labels$Z = {
|
|
3511
3509
|
signUpFacebook: "Sign up with Facebook",
|
|
3512
3510
|
signUpGoogle: "Sign up with Google",
|
|
3513
3511
|
signUpEmail: "Sign up with Email",
|
|
@@ -3520,7 +3518,7 @@ var labels$11 = {
|
|
|
3520
3518
|
lastName: "Last name",
|
|
3521
3519
|
phone: "Phone"
|
|
3522
3520
|
};
|
|
3523
|
-
var messages$
|
|
3521
|
+
var messages$11 = {
|
|
3524
3522
|
alreadyHaveAccount: "Already have an account?",
|
|
3525
3523
|
createAccount: "Create account",
|
|
3526
3524
|
loginHere: "login here. ",
|
|
@@ -3566,8 +3564,7 @@ var gift$3 = {
|
|
|
3566
3564
|
enterEmail: "Please enter the gift recipient's email.",
|
|
3567
3565
|
invalidDate: "The gift date needs to be between today and a year from now.",
|
|
3568
3566
|
giftDateInfo: "The recipient will receive a gift email notification with your message on the date you select in order to redeem the gift.",
|
|
3569
|
-
giftMessageInfo: "Leave a message to the recipient and don't forget to sign your name."
|
|
3570
|
-
giftMessageAllowedCharacters: "Special characters and emojis are not allowed."
|
|
3567
|
+
giftMessageInfo: "Leave a message to the recipient and don't forget to sign your name."
|
|
3571
3568
|
}
|
|
3572
3569
|
};
|
|
3573
3570
|
var redeem$3 = {
|
|
@@ -3595,14 +3592,14 @@ var redeem$3 = {
|
|
|
3595
3592
|
var register_en = {
|
|
3596
3593
|
title: title$y,
|
|
3597
3594
|
subtitle: subtitle$e,
|
|
3598
|
-
labels: labels$
|
|
3599
|
-
messages: messages$
|
|
3595
|
+
labels: labels$Z,
|
|
3596
|
+
messages: messages$11,
|
|
3600
3597
|
errors: errors$g,
|
|
3601
3598
|
gift: gift$3,
|
|
3602
3599
|
redeem: redeem$3
|
|
3603
3600
|
};
|
|
3604
3601
|
|
|
3605
|
-
var labels$
|
|
3602
|
+
var labels$Y = {
|
|
3606
3603
|
title: "Want to update your profile?",
|
|
3607
3604
|
subtitle: "Enter your information below to update your profile",
|
|
3608
3605
|
email: "Email",
|
|
@@ -3621,21 +3618,21 @@ var labels$10 = {
|
|
|
3621
3618
|
zoom: "Zoom",
|
|
3622
3619
|
tin: "Tax Identification Number"
|
|
3623
3620
|
};
|
|
3624
|
-
var messages$
|
|
3621
|
+
var messages$10 = {
|
|
3625
3622
|
userUpdated: "Thanks! Your profile was updated successfully.",
|
|
3626
3623
|
pictureRemoved: "Your profile picture was removed successfully.",
|
|
3627
3624
|
pictureUpdated: "Your profile picture was updated successfully."
|
|
3628
3625
|
};
|
|
3629
3626
|
var userEdit_en = {
|
|
3630
|
-
labels: labels$
|
|
3631
|
-
messages: messages$
|
|
3627
|
+
labels: labels$Y,
|
|
3628
|
+
messages: messages$10
|
|
3632
3629
|
};
|
|
3633
3630
|
|
|
3634
3631
|
var title$x = "Enter your shipping address";
|
|
3635
3632
|
var titleGifting$3 = "Enter your address";
|
|
3636
3633
|
var selectAddressTitle$3 = "Please select an address";
|
|
3637
3634
|
var selectAddressSubtitle$3 = "Select one of your saved addresses, or add a new one";
|
|
3638
|
-
var labels
|
|
3635
|
+
var labels$X = {
|
|
3639
3636
|
address: "Address",
|
|
3640
3637
|
code: "Postal Code/Zip",
|
|
3641
3638
|
city: "City",
|
|
@@ -3646,12 +3643,12 @@ var labels$$ = {
|
|
|
3646
3643
|
required: "required",
|
|
3647
3644
|
isDefault: "Set as default"
|
|
3648
3645
|
};
|
|
3649
|
-
var buttons$
|
|
3646
|
+
var buttons$i = {
|
|
3650
3647
|
submit: "Submit",
|
|
3651
3648
|
selectAddress: "Select address",
|
|
3652
3649
|
addAddress: "Add new address"
|
|
3653
3650
|
};
|
|
3654
|
-
var messages
|
|
3651
|
+
var messages$$ = {
|
|
3655
3652
|
addressUpdated: "The address was successfully updated!",
|
|
3656
3653
|
subRedeemed: "Your subscription has been redeemed."
|
|
3657
3654
|
};
|
|
@@ -3660,9 +3657,9 @@ var address_en = {
|
|
|
3660
3657
|
titleGifting: titleGifting$3,
|
|
3661
3658
|
selectAddressTitle: selectAddressTitle$3,
|
|
3662
3659
|
selectAddressSubtitle: selectAddressSubtitle$3,
|
|
3663
|
-
labels: labels
|
|
3664
|
-
buttons: buttons$
|
|
3665
|
-
messages: messages
|
|
3660
|
+
labels: labels$X,
|
|
3661
|
+
buttons: buttons$i,
|
|
3662
|
+
messages: messages$$
|
|
3666
3663
|
};
|
|
3667
3664
|
|
|
3668
3665
|
var title$w = "Reset your password";
|
|
@@ -3690,7 +3687,7 @@ var password$6 = "Password";
|
|
|
3690
3687
|
var submit$e = "Submit";
|
|
3691
3688
|
var required$e = "Required";
|
|
3692
3689
|
var passwordResetEmailSent$3 = "Password reset instructions have been sent to your email";
|
|
3693
|
-
var messages$
|
|
3690
|
+
var messages$_ = {
|
|
3694
3691
|
alreadyHaveAccount: "Already have an account?",
|
|
3695
3692
|
loginHere: "login here."
|
|
3696
3693
|
};
|
|
@@ -3701,7 +3698,7 @@ var passwordForgot_en = {
|
|
|
3701
3698
|
submit: submit$e,
|
|
3702
3699
|
required: required$e,
|
|
3703
3700
|
passwordResetEmailSent: passwordResetEmailSent$3,
|
|
3704
|
-
messages: messages$
|
|
3701
|
+
messages: messages$_
|
|
3705
3702
|
};
|
|
3706
3703
|
|
|
3707
3704
|
var title$u = "Change your password";
|
|
@@ -3729,7 +3726,7 @@ var title$t = "Passwordless Login";
|
|
|
3729
3726
|
var email$9 = "Enter email";
|
|
3730
3727
|
var submit$c = "Submit";
|
|
3731
3728
|
var required$c = "Required";
|
|
3732
|
-
var messages$
|
|
3729
|
+
var messages$Z = {
|
|
3733
3730
|
PasswordlessLoginSuccess: "Please check your email and follow the instructions there"
|
|
3734
3731
|
};
|
|
3735
3732
|
var passwordlessRequest_en = {
|
|
@@ -3737,7 +3734,7 @@ var passwordlessRequest_en = {
|
|
|
3737
3734
|
email: email$9,
|
|
3738
3735
|
submit: submit$c,
|
|
3739
3736
|
required: required$c,
|
|
3740
|
-
messages: messages$
|
|
3737
|
+
messages: messages$Z
|
|
3741
3738
|
};
|
|
3742
3739
|
|
|
3743
3740
|
var title$s = "Your shopping cart";
|
|
@@ -3765,13 +3762,13 @@ var cart_en = {
|
|
|
3765
3762
|
removeAll: removeAll$3
|
|
3766
3763
|
};
|
|
3767
3764
|
|
|
3768
|
-
var buttons$
|
|
3765
|
+
var buttons$h = {
|
|
3769
3766
|
select: "Select",
|
|
3770
3767
|
added: "Added to cart",
|
|
3771
3768
|
purchase: "Purchase",
|
|
3772
3769
|
"continue": "Continue"
|
|
3773
3770
|
};
|
|
3774
|
-
var messages$
|
|
3771
|
+
var messages$Y = {
|
|
3775
3772
|
orderConfirmed: {
|
|
3776
3773
|
title: "Order confirmed!",
|
|
3777
3774
|
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."
|
|
@@ -3780,17 +3777,17 @@ var messages$10 = {
|
|
|
3780
3777
|
multipleCurrencies: "Your cart currently contains items which are available in different currencies. In order to proceed with the checkout, please make sure that all items have the same currency.",
|
|
3781
3778
|
currencyMismatch: "The selected item(s) do not match your current default currency ({{currency}}). Please choose item(s) only matching this currency."
|
|
3782
3779
|
};
|
|
3783
|
-
var labels$
|
|
3780
|
+
var labels$W = {
|
|
3784
3781
|
summary: "Order summary",
|
|
3785
3782
|
total: "total"
|
|
3786
3783
|
};
|
|
3787
3784
|
var shop_en = {
|
|
3788
|
-
buttons: buttons$
|
|
3789
|
-
messages: messages$
|
|
3790
|
-
labels: labels$
|
|
3785
|
+
buttons: buttons$h,
|
|
3786
|
+
messages: messages$Y,
|
|
3787
|
+
labels: labels$W
|
|
3791
3788
|
};
|
|
3792
3789
|
|
|
3793
|
-
var labels$
|
|
3790
|
+
var labels$V = {
|
|
3794
3791
|
cardNumber: "Card number",
|
|
3795
3792
|
securityCode: "Security Code",
|
|
3796
3793
|
submit: "Submit",
|
|
@@ -3812,7 +3809,7 @@ var labels$Z = {
|
|
|
3812
3809
|
title: "Payment Information"
|
|
3813
3810
|
}
|
|
3814
3811
|
};
|
|
3815
|
-
var messages
|
|
3812
|
+
var messages$X = {
|
|
3816
3813
|
youAreSafe: "You're safe - PCI compliant 128 SSL by",
|
|
3817
3814
|
cancel: "Cancel your subscription online at anytime.",
|
|
3818
3815
|
giftSent: "Subscription gift has been sent to",
|
|
@@ -3826,12 +3823,12 @@ var errors$f = {
|
|
|
3826
3823
|
"": ""
|
|
3827
3824
|
};
|
|
3828
3825
|
var payment_en = {
|
|
3829
|
-
labels: labels$
|
|
3830
|
-
messages: messages
|
|
3826
|
+
labels: labels$V,
|
|
3827
|
+
messages: messages$X,
|
|
3831
3828
|
errors: errors$f
|
|
3832
3829
|
};
|
|
3833
3830
|
|
|
3834
|
-
var labels$
|
|
3831
|
+
var labels$U = {
|
|
3835
3832
|
menu: "Pelcro Menu",
|
|
3836
3833
|
name: "Name",
|
|
3837
3834
|
email: "Email",
|
|
@@ -3917,12 +3914,9 @@ var labels$Y = {
|
|
|
3917
3914
|
},
|
|
3918
3915
|
subCancellation: {
|
|
3919
3916
|
goBack: "Go back"
|
|
3920
|
-
},
|
|
3921
|
-
donationCancellation: {
|
|
3922
|
-
goBack: "Go back"
|
|
3923
3917
|
}
|
|
3924
3918
|
};
|
|
3925
|
-
var messages$
|
|
3919
|
+
var messages$W = {
|
|
3926
3920
|
noCard: "You don't have a card",
|
|
3927
3921
|
subCancellation: {
|
|
3928
3922
|
isSureToCancel: "Are you sure you want to cancel your subscription?",
|
|
@@ -3939,35 +3933,19 @@ var messages$_ = {
|
|
|
3939
3933
|
loading: "Unsuspending your subscription",
|
|
3940
3934
|
success: "Subscription is successfully unsuspended",
|
|
3941
3935
|
error: "Error while unsuspending your subscription"
|
|
3942
|
-
},
|
|
3943
|
-
donationCancellation: {
|
|
3944
|
-
isSureToCancel: "Are you sure you want to cancel your donation?",
|
|
3945
|
-
loading: "Cancelling your donation",
|
|
3946
|
-
success: "Donation is successfully cancelled",
|
|
3947
|
-
error: "Error while cancelling your donation"
|
|
3948
|
-
},
|
|
3949
|
-
donationReactivation: {
|
|
3950
|
-
success: "Donation is successfully reactivated",
|
|
3951
|
-
error: "Error while reactivating your donation"
|
|
3952
|
-
},
|
|
3953
|
-
donationUnSuspend: {
|
|
3954
|
-
isSureToUnSuspend: "Are you sure you want to unsuspend your donation?",
|
|
3955
|
-
loading: "Unsuspending your donation",
|
|
3956
|
-
success: "Donation is successfully unsuspended",
|
|
3957
|
-
error: "Error while unsuspending your donation"
|
|
3958
3936
|
}
|
|
3959
3937
|
};
|
|
3960
3938
|
var dashboard_en = {
|
|
3961
|
-
labels: labels$
|
|
3962
|
-
messages: messages$
|
|
3939
|
+
labels: labels$U,
|
|
3940
|
+
messages: messages$W
|
|
3963
3941
|
};
|
|
3964
3942
|
|
|
3965
|
-
var messages$
|
|
3943
|
+
var messages$V = {
|
|
3966
3944
|
alreadyHaveAccount: "Already have an account?",
|
|
3967
3945
|
loginHere: "Login here",
|
|
3968
3946
|
checkbox: "Check this box to gift this subscription"
|
|
3969
3947
|
};
|
|
3970
|
-
var labels$
|
|
3948
|
+
var labels$T = {
|
|
3971
3949
|
plan: {
|
|
3972
3950
|
title: "Subscribe to a plan",
|
|
3973
3951
|
subtitle: "Select one of the plans below and click on next."
|
|
@@ -3984,49 +3962,15 @@ var labels$X = {
|
|
|
3984
3962
|
or: "Or take a look at some of our other options below"
|
|
3985
3963
|
}
|
|
3986
3964
|
};
|
|
3987
|
-
var buttons$
|
|
3965
|
+
var buttons$g = {
|
|
3988
3966
|
next: "Next",
|
|
3989
3967
|
select: "Select",
|
|
3990
3968
|
back: "Back"
|
|
3991
3969
|
};
|
|
3992
3970
|
var select_en = {
|
|
3993
|
-
messages: messages$
|
|
3994
|
-
labels: labels$
|
|
3995
|
-
buttons: buttons$
|
|
3996
|
-
};
|
|
3997
|
-
|
|
3998
|
-
var messages$Y = {
|
|
3999
|
-
alreadyHaveAccount: "Already have an account?",
|
|
4000
|
-
loginHere: "Login here",
|
|
4001
|
-
checkbox: "Check this box to gift this subscription"
|
|
4002
|
-
};
|
|
4003
|
-
var labels$W = {
|
|
4004
|
-
plan: {
|
|
4005
|
-
title: "Subscribe to a plan",
|
|
4006
|
-
subtitle: "Select one of the plans below and click on next."
|
|
4007
|
-
},
|
|
4008
|
-
product: {
|
|
4009
|
-
title: "Subscribe to a product",
|
|
4010
|
-
subtitle: "Select one of the products below and click on next."
|
|
4011
|
-
},
|
|
4012
|
-
selectProduct: "Select a product",
|
|
4013
|
-
selectPlan: "Select a plan",
|
|
4014
|
-
startingAt: "Starting at",
|
|
4015
|
-
restrictiveArticles: {
|
|
4016
|
-
subscribeTo: "Subscribe to one of the following options to get access to this page",
|
|
4017
|
-
or: "Or take a look at some of our other options below"
|
|
4018
|
-
}
|
|
4019
|
-
};
|
|
4020
|
-
var buttons$j = {
|
|
4021
|
-
signupAndDonate: "Sign up & donate",
|
|
4022
|
-
donate: "Donate",
|
|
4023
|
-
select: "Select",
|
|
4024
|
-
back: "Back"
|
|
4025
|
-
};
|
|
4026
|
-
var donation_en = {
|
|
4027
|
-
messages: messages$Y,
|
|
4028
|
-
labels: labels$W,
|
|
4029
|
-
buttons: buttons$j
|
|
3971
|
+
messages: messages$V,
|
|
3972
|
+
labels: labels$T,
|
|
3973
|
+
buttons: buttons$g
|
|
4030
3974
|
};
|
|
4031
3975
|
|
|
4032
3976
|
var confirm$9 = {
|
|
@@ -4039,46 +3983,46 @@ var notification_en = {
|
|
|
4039
3983
|
confirm: confirm$9
|
|
4040
3984
|
};
|
|
4041
3985
|
|
|
4042
|
-
var labels$
|
|
3986
|
+
var labels$S = {
|
|
4043
3987
|
title: "Verify your email",
|
|
4044
3988
|
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
4045
3989
|
resend: "Resend email"
|
|
4046
3990
|
};
|
|
4047
|
-
var messages$
|
|
3991
|
+
var messages$U = {
|
|
4048
3992
|
resent: "Resent successfully",
|
|
4049
3993
|
success: "Email verified successfully!"
|
|
4050
3994
|
};
|
|
4051
3995
|
var verifyEmail_en = {
|
|
4052
|
-
labels: labels$
|
|
4053
|
-
messages: messages$
|
|
3996
|
+
labels: labels$S,
|
|
3997
|
+
messages: messages$U
|
|
4054
3998
|
};
|
|
4055
3999
|
|
|
4056
4000
|
var title$r = "Invoice details";
|
|
4057
|
-
var labels$
|
|
4001
|
+
var labels$R = {
|
|
4058
4002
|
summary: "Summary",
|
|
4059
4003
|
total: "Total",
|
|
4060
4004
|
amountPaid: "Amount paid",
|
|
4061
4005
|
amountDue: "Amount due",
|
|
4062
4006
|
creationDate: "Created on:"
|
|
4063
4007
|
};
|
|
4064
|
-
var buttons$
|
|
4008
|
+
var buttons$f = {
|
|
4065
4009
|
download: "Download",
|
|
4066
4010
|
pay: "Pay now"
|
|
4067
4011
|
};
|
|
4068
4012
|
var invoiceDetails_en = {
|
|
4069
4013
|
title: title$r,
|
|
4070
|
-
labels: labels$
|
|
4071
|
-
buttons: buttons$
|
|
4014
|
+
labels: labels$R,
|
|
4015
|
+
buttons: buttons$f
|
|
4072
4016
|
};
|
|
4073
4017
|
|
|
4074
|
-
var labels$
|
|
4018
|
+
var labels$Q = {
|
|
4075
4019
|
title: "Cancel subscription",
|
|
4076
4020
|
cancelReason: "Cancellation reason",
|
|
4077
4021
|
subCancellation: {
|
|
4078
4022
|
goBack: "Go back"
|
|
4079
4023
|
}
|
|
4080
4024
|
};
|
|
4081
|
-
var messages$
|
|
4025
|
+
var messages$T = {
|
|
4082
4026
|
subscriptionEnd: "This subscription is set to expire on",
|
|
4083
4027
|
cancelNow: "Cancel Subscription Now",
|
|
4084
4028
|
cancelLater: "Cancel at Period End",
|
|
@@ -4091,18 +4035,18 @@ var messages$W = {
|
|
|
4091
4035
|
}
|
|
4092
4036
|
};
|
|
4093
4037
|
var subscriptionCancel_en = {
|
|
4094
|
-
labels: labels$
|
|
4095
|
-
messages: messages$
|
|
4038
|
+
labels: labels$Q,
|
|
4039
|
+
messages: messages$T
|
|
4096
4040
|
};
|
|
4097
4041
|
|
|
4098
|
-
var labels$
|
|
4042
|
+
var labels$P = {
|
|
4099
4043
|
title: "Annuler l'abonnement",
|
|
4100
4044
|
cancelReason: "Motif d'annulation",
|
|
4101
4045
|
subCancellation: {
|
|
4102
4046
|
goBack: "Retourner"
|
|
4103
4047
|
}
|
|
4104
4048
|
};
|
|
4105
|
-
var messages$
|
|
4049
|
+
var messages$S = {
|
|
4106
4050
|
subscriptionEnd: "Cet abonnement doit expirer le",
|
|
4107
4051
|
cancelNow: "Cancel Subscription Now",
|
|
4108
4052
|
cancelLater: "Annuler l'abonnement maintenant",
|
|
@@ -4115,18 +4059,18 @@ var messages$V = {
|
|
|
4115
4059
|
}
|
|
4116
4060
|
};
|
|
4117
4061
|
var subscriptionCancel_fr = {
|
|
4118
|
-
labels: labels$
|
|
4119
|
-
messages: messages$
|
|
4062
|
+
labels: labels$P,
|
|
4063
|
+
messages: messages$S
|
|
4120
4064
|
};
|
|
4121
4065
|
|
|
4122
|
-
var labels$
|
|
4066
|
+
var labels$O = {
|
|
4123
4067
|
title: "구독 취소",
|
|
4124
4068
|
cancelReason: "취소 사유",
|
|
4125
4069
|
subCancellation: {
|
|
4126
4070
|
goBack: "돌아가기"
|
|
4127
4071
|
}
|
|
4128
4072
|
};
|
|
4129
|
-
var messages$
|
|
4073
|
+
var messages$R = {
|
|
4130
4074
|
subscriptionEnd: "이 구독은 다음 날짜에 만료되도록 설정되었습니다.",
|
|
4131
4075
|
cancelNow: "지금 구독 취소",
|
|
4132
4076
|
cancelLater: "기간 종료 시 취소",
|
|
@@ -4139,11 +4083,11 @@ var messages$U = {
|
|
|
4139
4083
|
}
|
|
4140
4084
|
};
|
|
4141
4085
|
var subscriptionCancel_ko = {
|
|
4142
|
-
labels: labels$
|
|
4143
|
-
messages: messages$
|
|
4086
|
+
labels: labels$O,
|
|
4087
|
+
messages: messages$R
|
|
4144
4088
|
};
|
|
4145
4089
|
|
|
4146
|
-
var labels$
|
|
4090
|
+
var labels$N = {
|
|
4147
4091
|
inviteMembers: "Invite Members",
|
|
4148
4092
|
listOfMembers: "List of members",
|
|
4149
4093
|
invite: "Invite",
|
|
@@ -4154,10 +4098,10 @@ var labels$Q = {
|
|
|
4154
4098
|
email: "Email"
|
|
4155
4099
|
};
|
|
4156
4100
|
var subscriptionManageMembers_en = {
|
|
4157
|
-
labels: labels$
|
|
4101
|
+
labels: labels$N
|
|
4158
4102
|
};
|
|
4159
4103
|
|
|
4160
|
-
var labels$
|
|
4104
|
+
var labels$M = {
|
|
4161
4105
|
inviteMembers: "Inviter des membres",
|
|
4162
4106
|
listOfMembers: "Liste des membres",
|
|
4163
4107
|
invite: "Inviter",
|
|
@@ -4168,10 +4112,10 @@ var labels$P = {
|
|
|
4168
4112
|
email: "E-mail"
|
|
4169
4113
|
};
|
|
4170
4114
|
var subscriptionManageMembers_fr = {
|
|
4171
|
-
labels: labels$
|
|
4115
|
+
labels: labels$M
|
|
4172
4116
|
};
|
|
4173
4117
|
|
|
4174
|
-
var labels$
|
|
4118
|
+
var labels$L = {
|
|
4175
4119
|
inviteMembers: "회원 초대",
|
|
4176
4120
|
listOfMembers: "구성원 목록",
|
|
4177
4121
|
invite: "초대",
|
|
@@ -4182,17 +4126,17 @@ var labels$O = {
|
|
|
4182
4126
|
email: "이메일"
|
|
4183
4127
|
};
|
|
4184
4128
|
var subscriptionManageMembers_ko = {
|
|
4185
|
-
labels: labels$
|
|
4129
|
+
labels: labels$L
|
|
4186
4130
|
};
|
|
4187
4131
|
|
|
4188
|
-
var labels$
|
|
4132
|
+
var labels$K = {
|
|
4189
4133
|
title: "Suspend subscription",
|
|
4190
4134
|
suspensionDate: "Suspension date",
|
|
4191
4135
|
subCancellation: {
|
|
4192
4136
|
goBack: "Go back"
|
|
4193
4137
|
}
|
|
4194
4138
|
};
|
|
4195
|
-
var messages$
|
|
4139
|
+
var messages$Q = {
|
|
4196
4140
|
suspensionEnd: "The suspension is set to expire on",
|
|
4197
4141
|
suspendNow: "Suspend Subscription Now",
|
|
4198
4142
|
suspendLater: "Suspend at Period End",
|
|
@@ -4205,8 +4149,8 @@ var messages$T = {
|
|
|
4205
4149
|
}
|
|
4206
4150
|
};
|
|
4207
4151
|
var subscriptionSuspend_en = {
|
|
4208
|
-
labels: labels$
|
|
4209
|
-
messages: messages$
|
|
4152
|
+
labels: labels$K,
|
|
4153
|
+
messages: messages$Q
|
|
4210
4154
|
};
|
|
4211
4155
|
|
|
4212
4156
|
var validation$2 = {
|
|
@@ -4221,7 +4165,7 @@ var validation$2 = {
|
|
|
4221
4165
|
enterLastName: "Le nom de famille est requis.",
|
|
4222
4166
|
enterPhone: "Le numéro de téléphone est requis."
|
|
4223
4167
|
};
|
|
4224
|
-
var buttons$
|
|
4168
|
+
var buttons$e = {
|
|
4225
4169
|
account: "Accès abonné(e)s",
|
|
4226
4170
|
login: "Se connecter",
|
|
4227
4171
|
subscribe: "S'abonner"
|
|
@@ -4299,7 +4243,7 @@ var confirm$8 = {
|
|
|
4299
4243
|
};
|
|
4300
4244
|
var common_fr = {
|
|
4301
4245
|
validation: validation$2,
|
|
4302
|
-
buttons: buttons$
|
|
4246
|
+
buttons: buttons$e,
|
|
4303
4247
|
dashboard: dashboard$3,
|
|
4304
4248
|
select: select$5,
|
|
4305
4249
|
confirm: confirm$8
|
|
@@ -4330,7 +4274,7 @@ var paymentMethod_fr = {
|
|
|
4330
4274
|
var title$q = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
4331
4275
|
var updateTitle$2 = "Mettre à jour son choix d'infolettres";
|
|
4332
4276
|
var subtitle$b = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
|
|
4333
|
-
var labels$
|
|
4277
|
+
var labels$J = {
|
|
4334
4278
|
submit: "Lire l’article !",
|
|
4335
4279
|
firstName: "Prénom",
|
|
4336
4280
|
lastName: "Nom de famille",
|
|
@@ -4338,7 +4282,7 @@ var labels$M = {
|
|
|
4338
4282
|
postalCode: "Code postal",
|
|
4339
4283
|
required: "Champs obligatoires"
|
|
4340
4284
|
};
|
|
4341
|
-
var messages$
|
|
4285
|
+
var messages$P = {
|
|
4342
4286
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4343
4287
|
success: "Votre choix d'infolettres à été mis à jour",
|
|
4344
4288
|
loginHere: "Connectez-vous ici",
|
|
@@ -4349,14 +4293,14 @@ var newsletter_fr = {
|
|
|
4349
4293
|
title: title$q,
|
|
4350
4294
|
updateTitle: updateTitle$2,
|
|
4351
4295
|
subtitle: subtitle$b,
|
|
4352
|
-
labels: labels$
|
|
4353
|
-
messages: messages$
|
|
4296
|
+
labels: labels$J,
|
|
4297
|
+
messages: messages$P
|
|
4354
4298
|
};
|
|
4355
4299
|
|
|
4356
|
-
var labels$
|
|
4300
|
+
var labels$I = {
|
|
4357
4301
|
"continue": "Abonnement réussi !"
|
|
4358
4302
|
};
|
|
4359
|
-
var messages$
|
|
4303
|
+
var messages$O = {
|
|
4360
4304
|
yourFreeTrial: "Votre essai gratuit vient de débuter",
|
|
4361
4305
|
youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
|
|
4362
4306
|
clickToLearn: {
|
|
@@ -4382,12 +4326,12 @@ var errors$e = {
|
|
|
4382
4326
|
"": ""
|
|
4383
4327
|
};
|
|
4384
4328
|
var success_fr = {
|
|
4385
|
-
labels: labels$
|
|
4386
|
-
messages: messages$
|
|
4329
|
+
labels: labels$I,
|
|
4330
|
+
messages: messages$O,
|
|
4387
4331
|
errors: errors$e
|
|
4388
4332
|
};
|
|
4389
4333
|
|
|
4390
|
-
var messages$
|
|
4334
|
+
var messages$N = {
|
|
4391
4335
|
freeVisits: "Visites gratuites restantes:",
|
|
4392
4336
|
subscribeNow: "Abonnez-vous maintenant !",
|
|
4393
4337
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
@@ -4397,16 +4341,16 @@ var errors$d = {
|
|
|
4397
4341
|
"": ""
|
|
4398
4342
|
};
|
|
4399
4343
|
var meter_fr = {
|
|
4400
|
-
messages: messages$
|
|
4344
|
+
messages: messages$N,
|
|
4401
4345
|
errors: errors$d
|
|
4402
4346
|
};
|
|
4403
4347
|
|
|
4404
|
-
var messages$
|
|
4348
|
+
var messages$M = {
|
|
4405
4349
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
4406
4350
|
bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque.",
|
|
4407
4351
|
bankAuthenticationSuccess: "Veuillez patienter pendant que nous accédons à votre requête."
|
|
4408
4352
|
};
|
|
4409
|
-
var labels$
|
|
4353
|
+
var labels$H = {
|
|
4410
4354
|
card: "Entrez le numéro de carte",
|
|
4411
4355
|
date: "Date d’expiration",
|
|
4412
4356
|
CVC: "CVC",
|
|
@@ -4426,13 +4370,11 @@ var labels$K = {
|
|
|
4426
4370
|
firstName: "Prénom",
|
|
4427
4371
|
lastName: "Nom de famille",
|
|
4428
4372
|
phone: "Téléphoner",
|
|
4429
|
-
freeItems: "Articles gratuits"
|
|
4430
|
-
email: "Courriel",
|
|
4431
|
-
password: "Créer un mot de passe"
|
|
4373
|
+
freeItems: "Articles gratuits"
|
|
4432
4374
|
};
|
|
4433
4375
|
var checkoutForm_fr = {
|
|
4434
|
-
messages: messages$
|
|
4435
|
-
labels: labels$
|
|
4376
|
+
messages: messages$M,
|
|
4377
|
+
labels: labels$H
|
|
4436
4378
|
};
|
|
4437
4379
|
|
|
4438
4380
|
var youAreSafe$2 = "Vous êtes en sécurité - PCI conforme 128 SSL par";
|
|
@@ -4456,7 +4398,7 @@ var messages_fr = {
|
|
|
4456
4398
|
zeroTotalInvoice: zeroTotalInvoice$2
|
|
4457
4399
|
};
|
|
4458
4400
|
|
|
4459
|
-
var labels$
|
|
4401
|
+
var labels$G = {
|
|
4460
4402
|
email: "Entrez votre adresse courriel",
|
|
4461
4403
|
username: "Saisissez votre nom d'utilisateur",
|
|
4462
4404
|
password: "Entrez votre mot de passe",
|
|
@@ -4465,7 +4407,7 @@ var labels$J = {
|
|
|
4465
4407
|
passwordPlaceholder: "Mot de passe",
|
|
4466
4408
|
login: "Connexion"
|
|
4467
4409
|
};
|
|
4468
|
-
var messages$
|
|
4410
|
+
var messages$L = {
|
|
4469
4411
|
loginTo: "Connectez-vous à votre compte",
|
|
4470
4412
|
welcome: "Bienvenue, connectez-vous avec votre compte existant.",
|
|
4471
4413
|
dontHaveAccount: "Vous n’avez pas encore de compte ?",
|
|
@@ -4484,28 +4426,28 @@ var errors$c = {
|
|
|
4484
4426
|
"": ""
|
|
4485
4427
|
};
|
|
4486
4428
|
var login_fr = {
|
|
4487
|
-
labels: labels$
|
|
4488
|
-
messages: messages$
|
|
4429
|
+
labels: labels$G,
|
|
4430
|
+
messages: messages$L,
|
|
4489
4431
|
errors: errors$c
|
|
4490
4432
|
};
|
|
4491
4433
|
|
|
4492
|
-
var labels$
|
|
4434
|
+
var labels$F = {
|
|
4493
4435
|
title: "Confirmez votre courriel",
|
|
4494
4436
|
instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
|
|
4495
4437
|
resend: "Renvoyer le courriel"
|
|
4496
4438
|
};
|
|
4497
|
-
var messages$
|
|
4439
|
+
var messages$K = {
|
|
4498
4440
|
resent: "Renvoyé avec succès",
|
|
4499
4441
|
success: "Vous vous êtes connecté avec succès"
|
|
4500
4442
|
};
|
|
4501
4443
|
var verifyLinkToken_fr = {
|
|
4502
|
-
labels: labels$
|
|
4503
|
-
messages: messages$
|
|
4444
|
+
labels: labels$F,
|
|
4445
|
+
messages: messages$K
|
|
4504
4446
|
};
|
|
4505
4447
|
|
|
4506
4448
|
var title$p = "Créer un compte";
|
|
4507
4449
|
var subtitle$a = "Entrez votre courriel et votre mot de passe ci-dessous";
|
|
4508
|
-
var labels$
|
|
4450
|
+
var labels$E = {
|
|
4509
4451
|
signUpFacebook: "Inscrivez-vous avec Facebook",
|
|
4510
4452
|
signUpGoogle: "Inscrivez-vous avec Google",
|
|
4511
4453
|
signUpEmail: "Inscrivez-vous avec votre courriel",
|
|
@@ -4518,7 +4460,7 @@ var labels$H = {
|
|
|
4518
4460
|
lastName: "Nom de famille",
|
|
4519
4461
|
phone: "Téléphoner"
|
|
4520
4462
|
};
|
|
4521
|
-
var messages$
|
|
4463
|
+
var messages$J = {
|
|
4522
4464
|
alreadyHaveAccount: "Vous avez déjà un compte?",
|
|
4523
4465
|
createAccount: "Créer un compte",
|
|
4524
4466
|
loginHere: "Connectez-vous ici",
|
|
@@ -4565,8 +4507,7 @@ var gift$2 = {
|
|
|
4565
4507
|
enterEmail: "Veuillez entrer l’adresse courriel du destinataire du cadeau.",
|
|
4566
4508
|
invalidDate: "La date du cadeau doit être comprise entre aujourd'hui et un an.",
|
|
4567
4509
|
giftDateInfo: "Le destinataire recevra un courriel à la date déterminée afin d'activer leur abonnement cadeau.",
|
|
4568
|
-
giftMessageInfo: "Laissez un message au destinataire sans oublier de signer votre nom."
|
|
4569
|
-
giftMessageAllowedCharacters: "Les caractères spéciaux et les emojis ne sont pas autorisés."
|
|
4510
|
+
giftMessageInfo: "Laissez un message au destinataire sans oublier de signer votre nom."
|
|
4570
4511
|
}
|
|
4571
4512
|
};
|
|
4572
4513
|
var redeem$2 = {
|
|
@@ -4594,14 +4535,14 @@ var redeem$2 = {
|
|
|
4594
4535
|
var register_fr = {
|
|
4595
4536
|
title: title$p,
|
|
4596
4537
|
subtitle: subtitle$a,
|
|
4597
|
-
labels: labels$
|
|
4598
|
-
messages: messages$
|
|
4538
|
+
labels: labels$E,
|
|
4539
|
+
messages: messages$J,
|
|
4599
4540
|
errors: errors$b,
|
|
4600
4541
|
gift: gift$2,
|
|
4601
4542
|
redeem: redeem$2
|
|
4602
4543
|
};
|
|
4603
4544
|
|
|
4604
|
-
var labels$
|
|
4545
|
+
var labels$D = {
|
|
4605
4546
|
title: "Voulez-vous mettre à jour votre profil ?",
|
|
4606
4547
|
subtitle: "Entrez vos informations ci-dessous pour mettre à jour votre profil",
|
|
4607
4548
|
email: "Address courriel",
|
|
@@ -4620,21 +4561,21 @@ var labels$G = {
|
|
|
4620
4561
|
zoom: "Zoom",
|
|
4621
4562
|
tin: "Numéro d'identification fiscale"
|
|
4622
4563
|
};
|
|
4623
|
-
var messages$
|
|
4564
|
+
var messages$I = {
|
|
4624
4565
|
userUpdated: "Votre profil a été mis à jour avec succès.",
|
|
4625
4566
|
pictureRemoved: "Votre photo de profil a été supprimée avec succès.",
|
|
4626
4567
|
pictureUpdated: "Votre photo de profil a été mise à jour avec succès."
|
|
4627
4568
|
};
|
|
4628
4569
|
var userEdit_fr = {
|
|
4629
|
-
labels: labels$
|
|
4630
|
-
messages: messages$
|
|
4570
|
+
labels: labels$D,
|
|
4571
|
+
messages: messages$I
|
|
4631
4572
|
};
|
|
4632
4573
|
|
|
4633
4574
|
var title$o = "Entrez votre adresse de livraison";
|
|
4634
4575
|
var titleGifting$2 = "Entrez votre adresse";
|
|
4635
4576
|
var selectAddressTitle$2 = "Veuillez sélectionner une adresse";
|
|
4636
4577
|
var selectAddressSubtitle$2 = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
|
|
4637
|
-
var labels$
|
|
4578
|
+
var labels$C = {
|
|
4638
4579
|
address: "Adresse",
|
|
4639
4580
|
code: "Code postal / Zip",
|
|
4640
4581
|
city: "Ville",
|
|
@@ -4645,12 +4586,12 @@ var labels$F = {
|
|
|
4645
4586
|
required: "Champs obligatoires",
|
|
4646
4587
|
isDefault: "Définir par défaut"
|
|
4647
4588
|
};
|
|
4648
|
-
var buttons$
|
|
4589
|
+
var buttons$d = {
|
|
4649
4590
|
submit: "Valider",
|
|
4650
4591
|
selectAddress: "Choisir cette adresse",
|
|
4651
4592
|
addAddress: "Ajouter une nouvelle adresse"
|
|
4652
4593
|
};
|
|
4653
|
-
var messages$
|
|
4594
|
+
var messages$H = {
|
|
4654
4595
|
addressUpdated: "Votre adresse a été mise à jour avec succès",
|
|
4655
4596
|
subRedeemed: "Votre abonnement a bien été activé."
|
|
4656
4597
|
};
|
|
@@ -4659,9 +4600,9 @@ var address_fr = {
|
|
|
4659
4600
|
titleGifting: titleGifting$2,
|
|
4660
4601
|
selectAddressTitle: selectAddressTitle$2,
|
|
4661
4602
|
selectAddressSubtitle: selectAddressSubtitle$2,
|
|
4662
|
-
labels: labels$
|
|
4663
|
-
buttons: buttons$
|
|
4664
|
-
messages: messages$
|
|
4603
|
+
labels: labels$C,
|
|
4604
|
+
buttons: buttons$d,
|
|
4605
|
+
messages: messages$H
|
|
4665
4606
|
};
|
|
4666
4607
|
|
|
4667
4608
|
var title$n = "Réinitialiser votre mot de passe";
|
|
@@ -4689,7 +4630,7 @@ var password$4 = "Mot de passe";
|
|
|
4689
4630
|
var submit$a = "Soumettre";
|
|
4690
4631
|
var required$a = "Champs obligatoires";
|
|
4691
4632
|
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.";
|
|
4692
|
-
var messages$
|
|
4633
|
+
var messages$G = {
|
|
4693
4634
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4694
4635
|
loginHere: "Connectez-vous ici"
|
|
4695
4636
|
};
|
|
@@ -4700,7 +4641,7 @@ var passwordForgot_fr = {
|
|
|
4700
4641
|
submit: submit$a,
|
|
4701
4642
|
required: required$a,
|
|
4702
4643
|
passwordResetEmailSent: passwordResetEmailSent$2,
|
|
4703
|
-
messages: messages$
|
|
4644
|
+
messages: messages$G
|
|
4704
4645
|
};
|
|
4705
4646
|
|
|
4706
4647
|
var title$l = "Changez votre mot de passe";
|
|
@@ -4728,7 +4669,7 @@ var title$k = "Connexion sans mot de passe";
|
|
|
4728
4669
|
var email$6 = "Entrez votre adresse courriel";
|
|
4729
4670
|
var submit$8 = "Soumettre";
|
|
4730
4671
|
var required$8 = "Champs obligatoires";
|
|
4731
|
-
var messages$
|
|
4672
|
+
var messages$F = {
|
|
4732
4673
|
PasswordlessLoginSuccess: "Vous avez été authentifié avec succès avec la connexion sans mot de passe"
|
|
4733
4674
|
};
|
|
4734
4675
|
var passwordlessRequest_fr = {
|
|
@@ -4736,7 +4677,7 @@ var passwordlessRequest_fr = {
|
|
|
4736
4677
|
email: email$6,
|
|
4737
4678
|
submit: submit$8,
|
|
4738
4679
|
required: required$8,
|
|
4739
|
-
messages: messages$
|
|
4680
|
+
messages: messages$F
|
|
4740
4681
|
};
|
|
4741
4682
|
|
|
4742
4683
|
var title$j = "Votre panier";
|
|
@@ -4764,13 +4705,13 @@ var cart_fr = {
|
|
|
4764
4705
|
removeAll: removeAll$2
|
|
4765
4706
|
};
|
|
4766
4707
|
|
|
4767
|
-
var buttons$
|
|
4708
|
+
var buttons$c = {
|
|
4768
4709
|
select: "Choisir",
|
|
4769
4710
|
added: "Ajouté au panier",
|
|
4770
4711
|
purchase: "Acheter",
|
|
4771
4712
|
"continue": "Continuer au contenu"
|
|
4772
4713
|
};
|
|
4773
|
-
var messages$
|
|
4714
|
+
var messages$E = {
|
|
4774
4715
|
orderConfirmed: {
|
|
4775
4716
|
title: "Votre commande est confirmée !",
|
|
4776
4717
|
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."
|
|
@@ -4779,17 +4720,17 @@ var messages$H = {
|
|
|
4779
4720
|
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.",
|
|
4780
4721
|
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."
|
|
4781
4722
|
};
|
|
4782
|
-
var labels$
|
|
4723
|
+
var labels$B = {
|
|
4783
4724
|
summary: "récapitulatif de commande",
|
|
4784
4725
|
total: "total"
|
|
4785
4726
|
};
|
|
4786
4727
|
var shop_fr = {
|
|
4787
|
-
buttons: buttons$
|
|
4788
|
-
messages: messages$
|
|
4789
|
-
labels: labels$
|
|
4728
|
+
buttons: buttons$c,
|
|
4729
|
+
messages: messages$E,
|
|
4730
|
+
labels: labels$B
|
|
4790
4731
|
};
|
|
4791
4732
|
|
|
4792
|
-
var labels$
|
|
4733
|
+
var labels$A = {
|
|
4793
4734
|
cardNumber: "Numéro de carte",
|
|
4794
4735
|
securityCode: "Code de sécurité",
|
|
4795
4736
|
submit: "Soumettre",
|
|
@@ -4811,7 +4752,7 @@ var labels$D = {
|
|
|
4811
4752
|
title: "Informations de paiement"
|
|
4812
4753
|
}
|
|
4813
4754
|
};
|
|
4814
|
-
var messages$
|
|
4755
|
+
var messages$D = {
|
|
4815
4756
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
4816
4757
|
cancel: "Annuler votre abonnement en ligne à tout moment.",
|
|
4817
4758
|
giftSent: "Le cadeau d’abonnement a été envoyé à",
|
|
@@ -4825,12 +4766,12 @@ var errors$a = {
|
|
|
4825
4766
|
"": ""
|
|
4826
4767
|
};
|
|
4827
4768
|
var payment_fr = {
|
|
4828
|
-
labels: labels$
|
|
4829
|
-
messages: messages$
|
|
4769
|
+
labels: labels$A,
|
|
4770
|
+
messages: messages$D,
|
|
4830
4771
|
errors: errors$a
|
|
4831
4772
|
};
|
|
4832
4773
|
|
|
4833
|
-
var labels$
|
|
4774
|
+
var labels$z = {
|
|
4834
4775
|
menu: "Menu Pelcro",
|
|
4835
4776
|
name: "Nom",
|
|
4836
4777
|
email: "Courriel",
|
|
@@ -4916,12 +4857,9 @@ var labels$C = {
|
|
|
4916
4857
|
},
|
|
4917
4858
|
subCancellation: {
|
|
4918
4859
|
goBack: "Retourner"
|
|
4919
|
-
},
|
|
4920
|
-
donationCancellation: {
|
|
4921
|
-
goBack: "Go back"
|
|
4922
4860
|
}
|
|
4923
4861
|
};
|
|
4924
|
-
var messages$
|
|
4862
|
+
var messages$C = {
|
|
4925
4863
|
noCard: "Vous n’avez pas une carte",
|
|
4926
4864
|
subCancellation: {
|
|
4927
4865
|
isSureToCancel: "Êtes-vous certain de vouloir annuler votre abonnement?",
|
|
@@ -4938,35 +4876,19 @@ var messages$F = {
|
|
|
4938
4876
|
loading: "Annulation de la suspension de votre abonnement",
|
|
4939
4877
|
success: "L'abonnement a été suspendu avec succès",
|
|
4940
4878
|
error: "Erreur lors de l'annulation de la suspension de votre abonnement"
|
|
4941
|
-
},
|
|
4942
|
-
donationCancellation: {
|
|
4943
|
-
isSureToCancel: "Êtes-vous certain de vouloir annuler votre don?",
|
|
4944
|
-
loading: "Annulation de l'don",
|
|
4945
|
-
success: "L'don a été annulé avec succès",
|
|
4946
|
-
error: "Une erreur s'est produite lors de l'annulation de l'don"
|
|
4947
|
-
},
|
|
4948
|
-
donationReactivation: {
|
|
4949
|
-
success: "L'don a été réactivé avec succès",
|
|
4950
|
-
error: "Erreur lors de la réactivation de votre don"
|
|
4951
|
-
},
|
|
4952
|
-
donationUnSuspend: {
|
|
4953
|
-
isSureToUnSuspend: "Êtes-vous sûr de vouloir annuler la suspension de votre don ?",
|
|
4954
|
-
loading: "Annulation de la suspension de votre don",
|
|
4955
|
-
success: "L'don a été suspendu avec succès",
|
|
4956
|
-
error: "Erreur lors de l'annulation de la suspension de votre don"
|
|
4957
4879
|
}
|
|
4958
4880
|
};
|
|
4959
4881
|
var dashboard_fr = {
|
|
4960
|
-
labels: labels$
|
|
4961
|
-
messages: messages$
|
|
4882
|
+
labels: labels$z,
|
|
4883
|
+
messages: messages$C
|
|
4962
4884
|
};
|
|
4963
4885
|
|
|
4964
|
-
var messages$
|
|
4886
|
+
var messages$B = {
|
|
4965
4887
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4966
4888
|
loginHere: "Connectez-vous ici",
|
|
4967
4889
|
checkbox: "Cochez cette case pour offrir cet abonnement"
|
|
4968
4890
|
};
|
|
4969
|
-
var labels$
|
|
4891
|
+
var labels$y = {
|
|
4970
4892
|
plan: {
|
|
4971
4893
|
title: "Abonnez-vous à un plan",
|
|
4972
4894
|
subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
|
|
@@ -4983,48 +4905,15 @@ var labels$B = {
|
|
|
4983
4905
|
or: "Sinon, jetez un coup d'oeil à d'autres offres ci-dessous"
|
|
4984
4906
|
}
|
|
4985
4907
|
};
|
|
4986
|
-
var buttons$
|
|
4908
|
+
var buttons$b = {
|
|
4987
4909
|
next: "Prochain",
|
|
4988
4910
|
select: "Choisir",
|
|
4989
4911
|
back: "Retour"
|
|
4990
4912
|
};
|
|
4991
4913
|
var select_fr = {
|
|
4992
|
-
messages: messages$
|
|
4993
|
-
labels: labels$
|
|
4994
|
-
buttons: buttons$
|
|
4995
|
-
};
|
|
4996
|
-
|
|
4997
|
-
var messages$D = {
|
|
4998
|
-
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4999
|
-
loginHere: "Connectez-vous ici",
|
|
5000
|
-
checkbox: "Cochez cette case pour offrir cet abonnement"
|
|
5001
|
-
};
|
|
5002
|
-
var labels$A = {
|
|
5003
|
-
plan: {
|
|
5004
|
-
title: "Abonnez-vous à un plan",
|
|
5005
|
-
subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
|
|
5006
|
-
},
|
|
5007
|
-
product: {
|
|
5008
|
-
title: "Abonnez-vous à un produit",
|
|
5009
|
-
subtitle: "Sélectionnez l’un des produits ci-dessous et cliquez sur suivant."
|
|
5010
|
-
},
|
|
5011
|
-
selectProduct: "Sélectionnez un produit",
|
|
5012
|
-
selectPlan: "Sélectionnez un plan",
|
|
5013
|
-
starningAt: "À partir de",
|
|
5014
|
-
restrictiveArticles: {
|
|
5015
|
-
subscribeTo: "Abonnez-vous à une des options suivantes pour accéder au contenu de cette page",
|
|
5016
|
-
or: "Sinon, jetez un coup d'oeil à d'autres offres ci-dessous"
|
|
5017
|
-
}
|
|
5018
|
-
};
|
|
5019
|
-
var buttons$d = {
|
|
5020
|
-
next: "Prochain",
|
|
5021
|
-
select: "Choisir",
|
|
5022
|
-
back: "Retour"
|
|
5023
|
-
};
|
|
5024
|
-
var donation_fr = {
|
|
5025
|
-
messages: messages$D,
|
|
5026
|
-
labels: labels$A,
|
|
5027
|
-
buttons: buttons$d
|
|
4914
|
+
messages: messages$B,
|
|
4915
|
+
labels: labels$y,
|
|
4916
|
+
buttons: buttons$b
|
|
5028
4917
|
};
|
|
5029
4918
|
|
|
5030
4919
|
var confirm$6 = {
|
|
@@ -5037,46 +4926,46 @@ var notification_fr = {
|
|
|
5037
4926
|
confirm: confirm$6
|
|
5038
4927
|
};
|
|
5039
4928
|
|
|
5040
|
-
var labels$
|
|
4929
|
+
var labels$x = {
|
|
5041
4930
|
title: "Confirmez votre courriel",
|
|
5042
4931
|
instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
|
|
5043
4932
|
resend: "Renvoyer le courriel"
|
|
5044
4933
|
};
|
|
5045
|
-
var messages$
|
|
4934
|
+
var messages$A = {
|
|
5046
4935
|
resent: "Renvoyé avec succès",
|
|
5047
4936
|
success: "Adresse courriel vérifiée avec succès"
|
|
5048
4937
|
};
|
|
5049
4938
|
var verifyEmail_fr = {
|
|
5050
|
-
labels: labels$
|
|
5051
|
-
messages: messages$
|
|
4939
|
+
labels: labels$x,
|
|
4940
|
+
messages: messages$A
|
|
5052
4941
|
};
|
|
5053
4942
|
|
|
5054
4943
|
var title$i = "Détails de la facture";
|
|
5055
|
-
var labels$
|
|
4944
|
+
var labels$w = {
|
|
5056
4945
|
summary: "Résumé",
|
|
5057
4946
|
total: "Total",
|
|
5058
4947
|
amountPaid: "Montant payé",
|
|
5059
4948
|
amountDue: "Montant dû",
|
|
5060
4949
|
creationDate: "Créé le:"
|
|
5061
4950
|
};
|
|
5062
|
-
var buttons$
|
|
4951
|
+
var buttons$a = {
|
|
5063
4952
|
download: "Télécharger",
|
|
5064
4953
|
pay: "Payer"
|
|
5065
4954
|
};
|
|
5066
4955
|
var invoiceDetails_fr = {
|
|
5067
4956
|
title: title$i,
|
|
5068
|
-
labels: labels$
|
|
5069
|
-
buttons: buttons$
|
|
4957
|
+
labels: labels$w,
|
|
4958
|
+
buttons: buttons$a
|
|
5070
4959
|
};
|
|
5071
4960
|
|
|
5072
|
-
var labels$
|
|
4961
|
+
var labels$v = {
|
|
5073
4962
|
title: "Suspendre l'abonnement",
|
|
5074
4963
|
suspensionDate: "Date de suspension",
|
|
5075
4964
|
subCancellation: {
|
|
5076
4965
|
goBack: "Revenir en arrière"
|
|
5077
4966
|
}
|
|
5078
4967
|
};
|
|
5079
|
-
var messages$
|
|
4968
|
+
var messages$z = {
|
|
5080
4969
|
suspensionEnd: "La suspension doit expirer le",
|
|
5081
4970
|
suspendNow: "Suspendre l'abonnement maintenant",
|
|
5082
4971
|
suspendLater: "Suspendre à la fin de la période",
|
|
@@ -5089,8 +4978,8 @@ var messages$B = {
|
|
|
5089
4978
|
}
|
|
5090
4979
|
};
|
|
5091
4980
|
var subscriptionSuspend_fr = {
|
|
5092
|
-
labels: labels$
|
|
5093
|
-
messages: messages$
|
|
4981
|
+
labels: labels$v,
|
|
4982
|
+
messages: messages$z
|
|
5094
4983
|
};
|
|
5095
4984
|
|
|
5096
4985
|
var validation$1 = {
|
|
@@ -5104,7 +4993,7 @@ var validation$1 = {
|
|
|
5104
4993
|
enterLastName: "성은 필수 항목입니다.",
|
|
5105
4994
|
enterPhone: "전화번호는 필수 항목입니다."
|
|
5106
4995
|
};
|
|
5107
|
-
var buttons$
|
|
4996
|
+
var buttons$9 = {
|
|
5108
4997
|
account: "내 계정",
|
|
5109
4998
|
login: "로그인",
|
|
5110
4999
|
subscribe: "구독하다"
|
|
@@ -5182,7 +5071,7 @@ var confirm$5 = {
|
|
|
5182
5071
|
};
|
|
5183
5072
|
var common_ko = {
|
|
5184
5073
|
validation: validation$1,
|
|
5185
|
-
buttons: buttons$
|
|
5074
|
+
buttons: buttons$9,
|
|
5186
5075
|
dashboard: dashboard$2,
|
|
5187
5076
|
select: select$3,
|
|
5188
5077
|
confirm: confirm$5
|
|
@@ -5213,7 +5102,7 @@ var paymentMethod_ko = {
|
|
|
5213
5102
|
var title$h = "Frieze 뉴스레터를 구독하려면 이메일을 입력하세요.";
|
|
5214
5103
|
var updateTitle$1 = "뉴스레터 선택 업데이트";
|
|
5215
5104
|
var subtitle$7 = "귀하의 이메일은 다른 마케팅 용도로도 사용됩니다.";
|
|
5216
|
-
var labels$
|
|
5105
|
+
var labels$u = {
|
|
5217
5106
|
submit: "제출",
|
|
5218
5107
|
firstName: "이름",
|
|
5219
5108
|
lastName: "성",
|
|
@@ -5221,7 +5110,7 @@ var labels$w = {
|
|
|
5221
5110
|
postalCode: "우편번호",
|
|
5222
5111
|
required: "필수 항목"
|
|
5223
5112
|
};
|
|
5224
|
-
var messages$
|
|
5113
|
+
var messages$y = {
|
|
5225
5114
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5226
5115
|
success: "뉴스레터가 성공적으로 업데이트되었습니다.",
|
|
5227
5116
|
loginHere: "여기에서 로그인하세요.",
|
|
@@ -5232,14 +5121,14 @@ var newsletter_ko = {
|
|
|
5232
5121
|
title: title$h,
|
|
5233
5122
|
updateTitle: updateTitle$1,
|
|
5234
5123
|
subtitle: subtitle$7,
|
|
5235
|
-
labels: labels$
|
|
5236
|
-
messages: messages$
|
|
5124
|
+
labels: labels$u,
|
|
5125
|
+
messages: messages$y
|
|
5237
5126
|
};
|
|
5238
5127
|
|
|
5239
|
-
var labels$
|
|
5128
|
+
var labels$t = {
|
|
5240
5129
|
"continue": "콘텐츠로 돌아가기"
|
|
5241
5130
|
};
|
|
5242
|
-
var messages$
|
|
5131
|
+
var messages$x = {
|
|
5243
5132
|
yourFreeTrial: "유료 멤버십에 가입하셨습니다!",
|
|
5244
5133
|
youHaveAccess: "멤버십 혜택을 즐기시기를 바라며, 질문이나 문의 사항이 있으면 저희에게 연락주십시오.",
|
|
5245
5134
|
clickToLearn: {
|
|
@@ -5265,12 +5154,12 @@ var errors$9 = {
|
|
|
5265
5154
|
"": ""
|
|
5266
5155
|
};
|
|
5267
5156
|
var success_ko = {
|
|
5268
|
-
labels: labels$
|
|
5269
|
-
messages: messages$
|
|
5157
|
+
labels: labels$t,
|
|
5158
|
+
messages: messages$x,
|
|
5270
5159
|
errors: errors$9
|
|
5271
5160
|
};
|
|
5272
5161
|
|
|
5273
|
-
var messages$
|
|
5162
|
+
var messages$w = {
|
|
5274
5163
|
freeVisits: "남은 무료 방문 기간:",
|
|
5275
5164
|
subscribeNow: "멤버십 가입",
|
|
5276
5165
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
@@ -5280,16 +5169,16 @@ var errors$8 = {
|
|
|
5280
5169
|
"": ""
|
|
5281
5170
|
};
|
|
5282
5171
|
var meter_ko = {
|
|
5283
|
-
messages: messages$
|
|
5172
|
+
messages: messages$w,
|
|
5284
5173
|
errors: errors$8
|
|
5285
5174
|
};
|
|
5286
5175
|
|
|
5287
|
-
var messages$
|
|
5176
|
+
var messages$v = {
|
|
5288
5177
|
youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
|
|
5289
5178
|
bankRedirection: "잠시만 기다려 주십시오. 결제 은행으로 연결 중입니다.",
|
|
5290
5179
|
bankAuthenticationSuccess: "요청을 처리하는 동안 기다려 주십시오."
|
|
5291
5180
|
};
|
|
5292
|
-
var labels$
|
|
5181
|
+
var labels$s = {
|
|
5293
5182
|
card: "카드 번호 입력",
|
|
5294
5183
|
date: "만료일",
|
|
5295
5184
|
CVC: "CVC",
|
|
@@ -5309,13 +5198,11 @@ var labels$u = {
|
|
|
5309
5198
|
firstName: "이름",
|
|
5310
5199
|
lastName: "성",
|
|
5311
5200
|
phone: "핸드폰",
|
|
5312
|
-
freeItems: "무료 아이템"
|
|
5313
|
-
email: "이메일",
|
|
5314
|
-
password: "비밀번호"
|
|
5201
|
+
freeItems: "무료 아이템"
|
|
5315
5202
|
};
|
|
5316
5203
|
var checkoutForm_ko = {
|
|
5317
|
-
messages: messages$
|
|
5318
|
-
labels: labels$
|
|
5204
|
+
messages: messages$v,
|
|
5205
|
+
labels: labels$s
|
|
5319
5206
|
};
|
|
5320
5207
|
|
|
5321
5208
|
var youAreSafe$1 = "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ";
|
|
@@ -5339,7 +5226,7 @@ var messages_ko = {
|
|
|
5339
5226
|
zeroTotalInvoice: zeroTotalInvoice$1
|
|
5340
5227
|
};
|
|
5341
5228
|
|
|
5342
|
-
var labels$
|
|
5229
|
+
var labels$r = {
|
|
5343
5230
|
email: "이메일 입력",
|
|
5344
5231
|
username: "사용자 이름 입력",
|
|
5345
5232
|
password: "비밀번호 입력",
|
|
@@ -5348,7 +5235,7 @@ var labels$t = {
|
|
|
5348
5235
|
passwordPlaceholder: "비밀번호",
|
|
5349
5236
|
login: "로그인"
|
|
5350
5237
|
};
|
|
5351
|
-
var messages$
|
|
5238
|
+
var messages$u = {
|
|
5352
5239
|
loginTo: "귀하의 계정에 로그인",
|
|
5353
5240
|
welcome: "반갑습니다. 귀하의 기존 계정으로 로그인하세요.",
|
|
5354
5241
|
dontHaveAccount: "아직 계정이 없으신가요?",
|
|
@@ -5367,28 +5254,28 @@ var errors$7 = {
|
|
|
5367
5254
|
"": ""
|
|
5368
5255
|
};
|
|
5369
5256
|
var login_ko = {
|
|
5370
|
-
labels: labels$
|
|
5371
|
-
messages: messages$
|
|
5257
|
+
labels: labels$r,
|
|
5258
|
+
messages: messages$u,
|
|
5372
5259
|
errors: errors$7
|
|
5373
5260
|
};
|
|
5374
5261
|
|
|
5375
|
-
var labels$
|
|
5262
|
+
var labels$q = {
|
|
5376
5263
|
title: "비밀번호 없는 링크 확인",
|
|
5377
5264
|
instructions: "가는 중입니다!\n이메일 주소를 확인하겠습니다.\n이메일로 전송된 확인 링크를 클릭하세요.",
|
|
5378
5265
|
resend: "이메일 재전송"
|
|
5379
5266
|
};
|
|
5380
|
-
var messages$
|
|
5267
|
+
var messages$t = {
|
|
5381
5268
|
resent: "성공적으로 재전송",
|
|
5382
5269
|
success: "성공적으로 로그인했습니다"
|
|
5383
5270
|
};
|
|
5384
5271
|
var verifyLinkToken_ko = {
|
|
5385
|
-
labels: labels$
|
|
5386
|
-
messages: messages$
|
|
5272
|
+
labels: labels$q,
|
|
5273
|
+
messages: messages$t
|
|
5387
5274
|
};
|
|
5388
5275
|
|
|
5389
5276
|
var title$g = "계정 만들기";
|
|
5390
5277
|
var subtitle$6 = "아래에 이메일과 비밀번호를 입력하세요.";
|
|
5391
|
-
var labels$
|
|
5278
|
+
var labels$p = {
|
|
5392
5279
|
signUpFacebook: "Facebook으로 가입하기",
|
|
5393
5280
|
signUpGoogle: "Google로 가입하기",
|
|
5394
5281
|
signUpEmail: "이메일로 가입하기",
|
|
@@ -5401,7 +5288,7 @@ var labels$r = {
|
|
|
5401
5288
|
lastName: "성",
|
|
5402
5289
|
phone: "핸드폰"
|
|
5403
5290
|
};
|
|
5404
|
-
var messages$
|
|
5291
|
+
var messages$s = {
|
|
5405
5292
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5406
5293
|
createAccount: "계정 만들기",
|
|
5407
5294
|
loginHere: "여기에서 로그인하세요.",
|
|
@@ -5447,8 +5334,7 @@ var gift$1 = {
|
|
|
5447
5334
|
enterEmail: "선물을 받을 분의 이메일을 입력해주세요.",
|
|
5448
5335
|
invalidDate: "선물 날짜는 오늘로부터 1년 이내여야 합니다.",
|
|
5449
5336
|
giftDateInfo: "받는 분이 선물을 사용하실 수 있도록, 선택된 날짜에 귀하의 선물 메시지가 담겨 있는 이메일 알림이 전송됩니다.",
|
|
5450
|
-
giftMessageInfo: "받는 분을 위한 선물 메시지와 서명을 남기는 것을 잊지 마시기 바랍니다."
|
|
5451
|
-
giftMessageAllowedCharacters: "특수문자 및 이모티콘 사용 불가."
|
|
5337
|
+
giftMessageInfo: "받는 분을 위한 선물 메시지와 서명을 남기는 것을 잊지 마시기 바랍니다."
|
|
5452
5338
|
}
|
|
5453
5339
|
};
|
|
5454
5340
|
var redeem$1 = {
|
|
@@ -5476,14 +5362,14 @@ var redeem$1 = {
|
|
|
5476
5362
|
var register_ko = {
|
|
5477
5363
|
title: title$g,
|
|
5478
5364
|
subtitle: subtitle$6,
|
|
5479
|
-
labels: labels$
|
|
5480
|
-
messages: messages$
|
|
5365
|
+
labels: labels$p,
|
|
5366
|
+
messages: messages$s,
|
|
5481
5367
|
errors: errors$6,
|
|
5482
5368
|
gift: gift$1,
|
|
5483
5369
|
redeem: redeem$1
|
|
5484
5370
|
};
|
|
5485
5371
|
|
|
5486
|
-
var labels$
|
|
5372
|
+
var labels$o = {
|
|
5487
5373
|
title: "프로파일을 업데이트하시겠습니까?",
|
|
5488
5374
|
subtitle: "프로필을 업데이트하려면 아래 정보를 입력하세요.",
|
|
5489
5375
|
email: "이메일",
|
|
@@ -5502,21 +5388,21 @@ var labels$q = {
|
|
|
5502
5388
|
zoom: "확대",
|
|
5503
5389
|
tin: "세금 식별 번호"
|
|
5504
5390
|
};
|
|
5505
|
-
var messages$
|
|
5391
|
+
var messages$r = {
|
|
5506
5392
|
userUpdated: "감사합니다! 프로필이 성공적으로 업데이트되었습니다.",
|
|
5507
5393
|
pictureRemoved: "귀하의 프로필 사진이 제거되었습니다.",
|
|
5508
5394
|
pictureUpdated: "귀하의 프로필 사진이 업데이트되었습니다."
|
|
5509
5395
|
};
|
|
5510
5396
|
var userEdit_ko = {
|
|
5511
|
-
labels: labels$
|
|
5512
|
-
messages: messages$
|
|
5397
|
+
labels: labels$o,
|
|
5398
|
+
messages: messages$r
|
|
5513
5399
|
};
|
|
5514
5400
|
|
|
5515
5401
|
var title$f = "배송 주소를 입력하십시오.";
|
|
5516
5402
|
var titleGifting$1 = "주소를 입력하세요";
|
|
5517
5403
|
var selectAddressTitle$1 = "주소를 선택하십시오.";
|
|
5518
5404
|
var selectAddressSubtitle$1 = "저장된 주소에서 선택하거나 새 주소를 추가하십시오.";
|
|
5519
|
-
var labels$
|
|
5405
|
+
var labels$n = {
|
|
5520
5406
|
address: "주소",
|
|
5521
5407
|
code: "우편번호",
|
|
5522
5408
|
city: "도시",
|
|
@@ -5527,12 +5413,12 @@ var labels$p = {
|
|
|
5527
5413
|
required: "필수 항목",
|
|
5528
5414
|
isDefault: "기본값으로 설정"
|
|
5529
5415
|
};
|
|
5530
|
-
var buttons$
|
|
5416
|
+
var buttons$8 = {
|
|
5531
5417
|
submit: "제출",
|
|
5532
5418
|
selectAddress: "주소 선택",
|
|
5533
5419
|
addAddress: "새 주소 추가"
|
|
5534
5420
|
};
|
|
5535
|
-
var messages$
|
|
5421
|
+
var messages$q = {
|
|
5536
5422
|
addressUpdated: "주소가 성공적으로 업데이트되었습니다!",
|
|
5537
5423
|
subRedeemed: "귀하의 유료 멤버십이 사용되었습니다."
|
|
5538
5424
|
};
|
|
@@ -5541,9 +5427,9 @@ var address_ko = {
|
|
|
5541
5427
|
titleGifting: titleGifting$1,
|
|
5542
5428
|
selectAddressTitle: selectAddressTitle$1,
|
|
5543
5429
|
selectAddressSubtitle: selectAddressSubtitle$1,
|
|
5544
|
-
labels: labels$
|
|
5545
|
-
buttons: buttons$
|
|
5546
|
-
messages: messages$
|
|
5430
|
+
labels: labels$n,
|
|
5431
|
+
buttons: buttons$8,
|
|
5432
|
+
messages: messages$q
|
|
5547
5433
|
};
|
|
5548
5434
|
|
|
5549
5435
|
var title$e = "비밀번호 재설정";
|
|
@@ -5571,7 +5457,7 @@ var password$2 = "비밀번호";
|
|
|
5571
5457
|
var submit$6 = "제출";
|
|
5572
5458
|
var required$6 = "필수 항목";
|
|
5573
5459
|
var passwordResetEmailSent$1 = "비밀번호 재설정 안내가 귀하의 이메일로 발송되었습니다.";
|
|
5574
|
-
var messages$
|
|
5460
|
+
var messages$p = {
|
|
5575
5461
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5576
5462
|
loginHere: "여기에서 로그인하세요."
|
|
5577
5463
|
};
|
|
@@ -5582,7 +5468,7 @@ var passwordForgot_ko = {
|
|
|
5582
5468
|
submit: submit$6,
|
|
5583
5469
|
required: required$6,
|
|
5584
5470
|
passwordResetEmailSent: passwordResetEmailSent$1,
|
|
5585
|
-
messages: messages$
|
|
5471
|
+
messages: messages$p
|
|
5586
5472
|
};
|
|
5587
5473
|
|
|
5588
5474
|
var title$c = "비밀번호를 변경합니다.";
|
|
@@ -5610,7 +5496,7 @@ var title$b = "비밀번호 없는 로그인";
|
|
|
5610
5496
|
var email$3 = "이메일 입력";
|
|
5611
5497
|
var submit$4 = "제출";
|
|
5612
5498
|
var required$4 = "필수 항목";
|
|
5613
|
-
var messages$
|
|
5499
|
+
var messages$o = {
|
|
5614
5500
|
PasswordlessLoginSuccess: "비밀번호 없는 로그인으로 성공적으로 인증되었습니다."
|
|
5615
5501
|
};
|
|
5616
5502
|
var passwordlessRequest_ko = {
|
|
@@ -5618,7 +5504,7 @@ var passwordlessRequest_ko = {
|
|
|
5618
5504
|
email: email$3,
|
|
5619
5505
|
submit: submit$4,
|
|
5620
5506
|
required: required$4,
|
|
5621
|
-
messages: messages$
|
|
5507
|
+
messages: messages$o
|
|
5622
5508
|
};
|
|
5623
5509
|
|
|
5624
5510
|
var title$a = "귀하의 장바구니";
|
|
@@ -5646,13 +5532,13 @@ var cart_ko = {
|
|
|
5646
5532
|
removeAll: removeAll$1
|
|
5647
5533
|
};
|
|
5648
5534
|
|
|
5649
|
-
var buttons$
|
|
5535
|
+
var buttons$7 = {
|
|
5650
5536
|
select: "선택",
|
|
5651
5537
|
added: "장바구니에 추가",
|
|
5652
5538
|
purchase: "구매",
|
|
5653
5539
|
"continue": "계속"
|
|
5654
5540
|
};
|
|
5655
|
-
var messages$
|
|
5541
|
+
var messages$n = {
|
|
5656
5542
|
orderConfirmed: {
|
|
5657
5543
|
title: "주문이 확인되었습니다!",
|
|
5658
5544
|
body: "귀하의 주문이 확인되었으며 며칠 안에 배송될 예정입니다. 이 주문의 확인 이메일이 귀하에게 전송됩니다."
|
|
@@ -5661,17 +5547,17 @@ var messages$p = {
|
|
|
5661
5547
|
multipleCurrencies: "장바구니에 다른 통화로만 결제가 가능한 아이템이 있습니다. 결제를 계속 진행하려면 모든 아이템의 결제 통화가 동일한지 확인하십시오.",
|
|
5662
5548
|
currencyMismatch: "선택하신 아이템(들)이 귀하가 설정한 기본 통화({{currency}})와 일치하지 않습니다. 기본 통화와 일치하는 아이템(들)만 선택하십시오."
|
|
5663
5549
|
};
|
|
5664
|
-
var labels$
|
|
5550
|
+
var labels$m = {
|
|
5665
5551
|
summary: "주문 요약",
|
|
5666
5552
|
total: "총계"
|
|
5667
5553
|
};
|
|
5668
5554
|
var shop_ko = {
|
|
5669
|
-
buttons: buttons$
|
|
5670
|
-
messages: messages$
|
|
5671
|
-
labels: labels$
|
|
5555
|
+
buttons: buttons$7,
|
|
5556
|
+
messages: messages$n,
|
|
5557
|
+
labels: labels$m
|
|
5672
5558
|
};
|
|
5673
5559
|
|
|
5674
|
-
var labels$
|
|
5560
|
+
var labels$l = {
|
|
5675
5561
|
cardNumber: "카드 번호",
|
|
5676
5562
|
securityCode: "보안 코드",
|
|
5677
5563
|
submit: "제출",
|
|
@@ -5693,7 +5579,7 @@ var labels$n = {
|
|
|
5693
5579
|
title: "결제 정보"
|
|
5694
5580
|
}
|
|
5695
5581
|
};
|
|
5696
|
-
var messages$
|
|
5582
|
+
var messages$m = {
|
|
5697
5583
|
youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
|
|
5698
5584
|
cancel: "유료 멤버십은 언제든 온라인으로 취소가 가능합니다.",
|
|
5699
5585
|
giftSent: "유료 멤버십 선물이 ",
|
|
@@ -5707,12 +5593,12 @@ var errors$5 = {
|
|
|
5707
5593
|
"": ""
|
|
5708
5594
|
};
|
|
5709
5595
|
var payment_ko = {
|
|
5710
|
-
labels: labels$
|
|
5711
|
-
messages: messages$
|
|
5596
|
+
labels: labels$l,
|
|
5597
|
+
messages: messages$m,
|
|
5712
5598
|
errors: errors$5
|
|
5713
5599
|
};
|
|
5714
5600
|
|
|
5715
|
-
var labels$
|
|
5601
|
+
var labels$k = {
|
|
5716
5602
|
menu: "Pelcro 메뉴",
|
|
5717
5603
|
name: "이름",
|
|
5718
5604
|
email: "이메일",
|
|
@@ -5860,10 +5746,7 @@ var savedItems = {
|
|
|
5860
5746
|
var subCancellation = {
|
|
5861
5747
|
goBack: "뒤로 가기"
|
|
5862
5748
|
};
|
|
5863
|
-
var
|
|
5864
|
-
goBack: "뒤로 가기"
|
|
5865
|
-
};
|
|
5866
|
-
var messages$n = {
|
|
5749
|
+
var messages$l = {
|
|
5867
5750
|
noCard: "등록된 카드가 없습니다.",
|
|
5868
5751
|
subCancellation: {
|
|
5869
5752
|
isSureToCancel: "정말로 유료 멤버십을 취소하시겠습니까?",
|
|
@@ -5880,26 +5763,10 @@ var messages$n = {
|
|
|
5880
5763
|
loading: "구독 일시 중단 해제",
|
|
5881
5764
|
success: "구독이 성공적으로 일시 중단 해제되었습니다",
|
|
5882
5765
|
error: "구독 일시 중단을 해제하는 동안 오류가 발생했습니다."
|
|
5883
|
-
},
|
|
5884
|
-
donationCancellation: {
|
|
5885
|
-
isSureToCancel: "정말로 유료 멤버십을 취소하시겠습니까?",
|
|
5886
|
-
loading: "귀하의 유료 멤버십을 취소합니다.",
|
|
5887
|
-
success: "유료 멤버십이 성공적으로 취소되었습니다.",
|
|
5888
|
-
error: "유료 멤버십 취소 과정에서 오류가 발생했습니다."
|
|
5889
|
-
},
|
|
5890
|
-
donationReactivation: {
|
|
5891
|
-
success: "구독이 성공적으로 재활성화되었습니다.",
|
|
5892
|
-
error: "구독을 재활성화하는 동안 오류가 발생했습니다."
|
|
5893
|
-
},
|
|
5894
|
-
donationUnSuspend: {
|
|
5895
|
-
isSureToUnSuspend: "구독 일시 중단을 해제하시겠습니까?",
|
|
5896
|
-
loading: "구독 일시 중단 해제",
|
|
5897
|
-
success: "구독이 성공적으로 일시 중단 해제되었습니다",
|
|
5898
|
-
error: "구독 일시 중단을 해제하는 동안 오류가 발생했습니다."
|
|
5899
5766
|
}
|
|
5900
5767
|
};
|
|
5901
5768
|
var dashboard_ko = {
|
|
5902
|
-
labels: labels$
|
|
5769
|
+
labels: labels$k,
|
|
5903
5770
|
shipments: shipments,
|
|
5904
5771
|
logout: logout,
|
|
5905
5772
|
dashboard: dashboard$1,
|
|
@@ -5948,16 +5815,15 @@ var dashboard_ko = {
|
|
|
5948
5815
|
orders: orders,
|
|
5949
5816
|
savedItems: savedItems,
|
|
5950
5817
|
subCancellation: subCancellation,
|
|
5951
|
-
|
|
5952
|
-
messages: messages$n
|
|
5818
|
+
messages: messages$l
|
|
5953
5819
|
};
|
|
5954
5820
|
|
|
5955
|
-
var messages$
|
|
5821
|
+
var messages$k = {
|
|
5956
5822
|
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5957
5823
|
loginHere: "여기에서 로그인하세요.",
|
|
5958
5824
|
checkbox: "이 유료 멤버십을 선물하려면 체크하세요."
|
|
5959
5825
|
};
|
|
5960
|
-
var labels$
|
|
5826
|
+
var labels$j = {
|
|
5961
5827
|
plan: {
|
|
5962
5828
|
title: "요금제 가입하기",
|
|
5963
5829
|
subtitle: "아래 요금제 중 하나를 선택하고 다음을 클릭하세요."
|
|
@@ -5974,48 +5840,15 @@ var labels$l = {
|
|
|
5974
5840
|
or: "아래에서 다른 상품을 선택해주시기 바랍니다."
|
|
5975
5841
|
}
|
|
5976
5842
|
};
|
|
5977
|
-
var buttons$
|
|
5843
|
+
var buttons$6 = {
|
|
5978
5844
|
next: "다음",
|
|
5979
5845
|
select: "선택",
|
|
5980
5846
|
back: "뒤로"
|
|
5981
5847
|
};
|
|
5982
5848
|
var select_ko = {
|
|
5983
|
-
messages: messages$
|
|
5984
|
-
labels: labels$
|
|
5985
|
-
buttons: buttons$
|
|
5986
|
-
};
|
|
5987
|
-
|
|
5988
|
-
var messages$l = {
|
|
5989
|
-
alreadyHaveAccount: "이미 계정이 있습니까?",
|
|
5990
|
-
loginHere: "여기에서 로그인하세요.",
|
|
5991
|
-
checkbox: "이 유료 멤버십을 선물하려면 체크하세요."
|
|
5992
|
-
};
|
|
5993
|
-
var labels$k = {
|
|
5994
|
-
plan: {
|
|
5995
|
-
title: "요금제 가입하기",
|
|
5996
|
-
subtitle: "아래 요금제 중 하나를 선택하고 다음을 클릭하세요."
|
|
5997
|
-
},
|
|
5998
|
-
product: {
|
|
5999
|
-
title: "상품 가입하기",
|
|
6000
|
-
subtitle: "아래 상품 중 하나를 선택하고 다음을 클릭하세요."
|
|
6001
|
-
},
|
|
6002
|
-
selectProduct: "상품 선택",
|
|
6003
|
-
selectPlan: "요금제 선택",
|
|
6004
|
-
startingAt: "시작일:",
|
|
6005
|
-
restrictiveArticles: {
|
|
6006
|
-
subscribeTo: "이 페이지에 액세스하려면 다음 요금제 중 하나에 가입하거나",
|
|
6007
|
-
or: "아래에서 다른 상품을 선택해주시기 바랍니다."
|
|
6008
|
-
}
|
|
6009
|
-
};
|
|
6010
|
-
var buttons$7 = {
|
|
6011
|
-
next: "다음",
|
|
6012
|
-
select: "선택",
|
|
6013
|
-
back: "뒤로"
|
|
6014
|
-
};
|
|
6015
|
-
var donation_ko = {
|
|
6016
|
-
messages: messages$l,
|
|
6017
|
-
labels: labels$k,
|
|
6018
|
-
buttons: buttons$7
|
|
5849
|
+
messages: messages$k,
|
|
5850
|
+
labels: labels$j,
|
|
5851
|
+
buttons: buttons$6
|
|
6019
5852
|
};
|
|
6020
5853
|
|
|
6021
5854
|
var confirm$3 = {
|
|
@@ -6028,46 +5861,46 @@ var notification_ko = {
|
|
|
6028
5861
|
confirm: confirm$3
|
|
6029
5862
|
};
|
|
6030
5863
|
|
|
6031
|
-
var labels$
|
|
5864
|
+
var labels$i = {
|
|
6032
5865
|
title: "이메일 주소를 인증하세요.",
|
|
6033
5866
|
instructions: "거의 완료되었습니다!\n이메일 주소만 인증하면 됩니다.\n다음 이메일 주소로 전송된 인증 링크를 클릭해 주십시오:",
|
|
6034
5867
|
resend: "이메일 재전송"
|
|
6035
5868
|
};
|
|
6036
|
-
var messages$
|
|
5869
|
+
var messages$j = {
|
|
6037
5870
|
resent: "재전송 완료",
|
|
6038
5871
|
success: "이메일 주소가 인증되었습니다!"
|
|
6039
5872
|
};
|
|
6040
5873
|
var verifyEmail_ko = {
|
|
6041
|
-
labels: labels$
|
|
6042
|
-
messages: messages$
|
|
5874
|
+
labels: labels$i,
|
|
5875
|
+
messages: messages$j
|
|
6043
5876
|
};
|
|
6044
5877
|
|
|
6045
5878
|
var title$9 = "인보이스 세부 정보";
|
|
6046
|
-
var labels$
|
|
5879
|
+
var labels$h = {
|
|
6047
5880
|
summary: "요약",
|
|
6048
5881
|
total: "총계",
|
|
6049
5882
|
amountPaid: "지불된 금액",
|
|
6050
5883
|
amountDue: "지불액",
|
|
6051
5884
|
creationDate: "생성일:"
|
|
6052
5885
|
};
|
|
6053
|
-
var buttons$
|
|
5886
|
+
var buttons$5 = {
|
|
6054
5887
|
download: "다운로드",
|
|
6055
5888
|
pay: "지금 지불"
|
|
6056
5889
|
};
|
|
6057
5890
|
var invoiceDetails_ko = {
|
|
6058
5891
|
title: title$9,
|
|
6059
|
-
labels: labels$
|
|
6060
|
-
buttons: buttons$
|
|
5892
|
+
labels: labels$h,
|
|
5893
|
+
buttons: buttons$5
|
|
6061
5894
|
};
|
|
6062
5895
|
|
|
6063
|
-
var labels$
|
|
5896
|
+
var labels$g = {
|
|
6064
5897
|
title: "구독 중단",
|
|
6065
5898
|
suspensionDate: "중단 날짜",
|
|
6066
5899
|
subCancellation: {
|
|
6067
5900
|
goBack: "돌아가기"
|
|
6068
5901
|
}
|
|
6069
5902
|
};
|
|
6070
|
-
var messages$
|
|
5903
|
+
var messages$i = {
|
|
6071
5904
|
suspensionEnd: "일시 중지가 만료되도록 설정되었습니다.",
|
|
6072
5905
|
suspendNow: "지금 구독 일시 중단",
|
|
6073
5906
|
suspendLater: "기간 종료 시 일시 중단",
|
|
@@ -6080,8 +5913,8 @@ var messages$j = {
|
|
|
6080
5913
|
}
|
|
6081
5914
|
};
|
|
6082
5915
|
var subscriptionSuspend_ko = {
|
|
6083
|
-
labels: labels$
|
|
6084
|
-
messages: messages$
|
|
5916
|
+
labels: labels$g,
|
|
5917
|
+
messages: messages$i
|
|
6085
5918
|
};
|
|
6086
5919
|
|
|
6087
5920
|
var validation = {
|
|
@@ -6093,7 +5926,7 @@ var validation = {
|
|
|
6093
5926
|
enterLastName: "El apellido es obligatorio.",
|
|
6094
5927
|
enterPhone: "El número de teléfono es obligatorio."
|
|
6095
5928
|
};
|
|
6096
|
-
var buttons$
|
|
5929
|
+
var buttons$4 = {
|
|
6097
5930
|
account: "Mi cuenta",
|
|
6098
5931
|
login: "Iniciar Sesión"
|
|
6099
5932
|
};
|
|
@@ -6170,7 +6003,7 @@ var confirm$2 = {
|
|
|
6170
6003
|
};
|
|
6171
6004
|
var common_es = {
|
|
6172
6005
|
validation: validation,
|
|
6173
|
-
buttons: buttons$
|
|
6006
|
+
buttons: buttons$4,
|
|
6174
6007
|
dashboard: dashboard,
|
|
6175
6008
|
select: select$1,
|
|
6176
6009
|
confirm: confirm$2
|
|
@@ -6201,7 +6034,7 @@ var paymentMethod_es = {
|
|
|
6201
6034
|
var title$8 = "Ingresa tu correo para suscribirte a nuestro boletín";
|
|
6202
6035
|
var updateTitle = "Actualizar selecciones del boletín";
|
|
6203
6036
|
var subtitle$3 = "Podríamos usar tu dirección de correo para otras comunicaciones de marketing";
|
|
6204
|
-
var labels$
|
|
6037
|
+
var labels$f = {
|
|
6205
6038
|
submit: "Enviar",
|
|
6206
6039
|
firstName: "Nombre",
|
|
6207
6040
|
lastName: "Apellido",
|
|
@@ -6209,7 +6042,7 @@ var labels$g = {
|
|
|
6209
6042
|
postalCode: "Código postal",
|
|
6210
6043
|
required: "obligatorio"
|
|
6211
6044
|
};
|
|
6212
|
-
var messages$
|
|
6045
|
+
var messages$h = {
|
|
6213
6046
|
alreadyHaveAccount: "¿Ya tienes una cuenta?",
|
|
6214
6047
|
success: "El boletín se actualizó con éxito",
|
|
6215
6048
|
loginHere: "Inicia sesión aquí.",
|
|
@@ -6220,14 +6053,14 @@ var newsletter_es = {
|
|
|
6220
6053
|
title: title$8,
|
|
6221
6054
|
updateTitle: updateTitle,
|
|
6222
6055
|
subtitle: subtitle$3,
|
|
6223
|
-
labels: labels$
|
|
6224
|
-
messages: messages$
|
|
6056
|
+
labels: labels$f,
|
|
6057
|
+
messages: messages$h
|
|
6225
6058
|
};
|
|
6226
6059
|
|
|
6227
|
-
var labels$
|
|
6060
|
+
var labels$e = {
|
|
6228
6061
|
"continue": "Continuar al contenido"
|
|
6229
6062
|
};
|
|
6230
|
-
var messages$
|
|
6063
|
+
var messages$g = {
|
|
6231
6064
|
yourFreeTrial: "¡Suscripción exitosa!",
|
|
6232
6065
|
youHaveAccess: "Esperamos que disfrutes de tu suscripción. Por favor, contáctanos si tienes alguna pregunta o inquietud.",
|
|
6233
6066
|
clickToLearn: {
|
|
@@ -6253,12 +6086,12 @@ var errors$4 = {
|
|
|
6253
6086
|
"": ""
|
|
6254
6087
|
};
|
|
6255
6088
|
var success_es = {
|
|
6256
|
-
labels: labels$
|
|
6257
|
-
messages: messages$
|
|
6089
|
+
labels: labels$e,
|
|
6090
|
+
messages: messages$g,
|
|
6258
6091
|
errors: errors$4
|
|
6259
6092
|
};
|
|
6260
6093
|
|
|
6261
|
-
var messages$
|
|
6094
|
+
var messages$f = {
|
|
6262
6095
|
freeVisits: "Visitas gratuitas restantes:",
|
|
6263
6096
|
subscribeNow: "Suscribir",
|
|
6264
6097
|
alreadyHaveAccount: "¿Ya tienes una cuenta?",
|
|
@@ -6268,16 +6101,16 @@ var errors$3 = {
|
|
|
6268
6101
|
"": ""
|
|
6269
6102
|
};
|
|
6270
6103
|
var meter_es = {
|
|
6271
|
-
messages: messages$
|
|
6104
|
+
messages: messages$f,
|
|
6272
6105
|
errors: errors$3
|
|
6273
6106
|
};
|
|
6274
6107
|
|
|
6275
|
-
var messages$
|
|
6108
|
+
var messages$e = {
|
|
6276
6109
|
youAreSafe: "Estás seguro - PCI compliance 128 SSL por",
|
|
6277
6110
|
bankRedirection: "Por favor, espera, estamos redireccionando a tu banco.",
|
|
6278
6111
|
bankAuthenticationSuccess: "Por favor, espera un momento mientras procesamos tu solicitud."
|
|
6279
6112
|
};
|
|
6280
|
-
var labels$
|
|
6113
|
+
var labels$d = {
|
|
6281
6114
|
card: "Ingresar número de tarjeta",
|
|
6282
6115
|
date: "Vencimiento",
|
|
6283
6116
|
CVC: "CVC",
|
|
@@ -6297,13 +6130,11 @@ var labels$e = {
|
|
|
6297
6130
|
firstName: "Nombre",
|
|
6298
6131
|
lastName: "Apellido",
|
|
6299
6132
|
phone: "Teléfono",
|
|
6300
|
-
freeItems: "Artículos gratis"
|
|
6301
|
-
email: "Correo",
|
|
6302
|
-
password: "Contraseña"
|
|
6133
|
+
freeItems: "Artículos gratis"
|
|
6303
6134
|
};
|
|
6304
6135
|
var checkoutForm_es = {
|
|
6305
|
-
messages: messages$
|
|
6306
|
-
labels: labels$
|
|
6136
|
+
messages: messages$e,
|
|
6137
|
+
labels: labels$d
|
|
6307
6138
|
};
|
|
6308
6139
|
|
|
6309
6140
|
var youAreSafe = "Estás seguro - PCI compliance 128 SSL por";
|
|
@@ -6325,7 +6156,7 @@ var messages_es = {
|
|
|
6325
6156
|
zeroTotalInvoice: zeroTotalInvoice
|
|
6326
6157
|
};
|
|
6327
6158
|
|
|
6328
|
-
var labels$
|
|
6159
|
+
var labels$c = {
|
|
6329
6160
|
email: "Ingresar correo",
|
|
6330
6161
|
password: "Ingresar contraseña",
|
|
6331
6162
|
required: "obligatorio",
|
|
@@ -6333,7 +6164,7 @@ var labels$d = {
|
|
|
6333
6164
|
passwordPlaceholder: "Contraseña",
|
|
6334
6165
|
login: "Iniciar Sesión"
|
|
6335
6166
|
};
|
|
6336
|
-
var messages$
|
|
6167
|
+
var messages$d = {
|
|
6337
6168
|
loginTo: "Inicia sesión en tu cuenta",
|
|
6338
6169
|
welcome: "Bienvenido de vuelta, inicia sesión con tu cuenta existente.",
|
|
6339
6170
|
dontHaveAccount: "¿Aún no tienes una cuenta?",
|
|
@@ -6352,28 +6183,28 @@ var errors$2 = {
|
|
|
6352
6183
|
"": ""
|
|
6353
6184
|
};
|
|
6354
6185
|
var login_es = {
|
|
6355
|
-
labels: labels$
|
|
6356
|
-
messages: messages$
|
|
6186
|
+
labels: labels$c,
|
|
6187
|
+
messages: messages$d,
|
|
6357
6188
|
errors: errors$2
|
|
6358
6189
|
};
|
|
6359
6190
|
|
|
6360
|
-
var labels$
|
|
6191
|
+
var labels$b = {
|
|
6361
6192
|
title: "Verificando Enlace Sin Contraseña",
|
|
6362
6193
|
instructions: "¡Ya casi terminas!\nVamos a confirmar tu dirección de correo.\nPulsa el enlace de verificación que hemos enviado a tu correo:",
|
|
6363
6194
|
resend: "Reenviar correo"
|
|
6364
6195
|
};
|
|
6365
|
-
var messages$
|
|
6196
|
+
var messages$c = {
|
|
6366
6197
|
resent: "Reenvío exitoso",
|
|
6367
6198
|
success: "Inicio de sesión exitoso"
|
|
6368
6199
|
};
|
|
6369
6200
|
var verifyLinkToken_es = {
|
|
6370
|
-
labels: labels$
|
|
6371
|
-
messages: messages$
|
|
6201
|
+
labels: labels$b,
|
|
6202
|
+
messages: messages$c
|
|
6372
6203
|
};
|
|
6373
6204
|
|
|
6374
6205
|
var title$7 = "Crear una cuenta";
|
|
6375
6206
|
var subtitle$2 = "Ingresa tu correo y contraseña a continuación";
|
|
6376
|
-
var labels$
|
|
6207
|
+
var labels$a = {
|
|
6377
6208
|
signUpFacebook: "Regístrate con Facebook",
|
|
6378
6209
|
signUpGoogle: "Regístrate con Google",
|
|
6379
6210
|
signUpEmail: "Regístrate con Correo",
|
|
@@ -6386,7 +6217,7 @@ var labels$b = {
|
|
|
6386
6217
|
lastName: "Apellido",
|
|
6387
6218
|
phone: "Teléfono"
|
|
6388
6219
|
};
|
|
6389
|
-
var messages$
|
|
6220
|
+
var messages$b = {
|
|
6390
6221
|
alreadyHaveAccount: " ¿Ya tienes una cuenta?",
|
|
6391
6222
|
createAccount: "Crear cuenta",
|
|
6392
6223
|
loginHere: "inicia sesión aquí",
|
|
@@ -6432,8 +6263,7 @@ var gift = {
|
|
|
6432
6263
|
enterEmail: "Por favor, ingresa el correo del destinatario del regalo",
|
|
6433
6264
|
invalidDate: "La fecha del regalo debe ser entre hoy y un año a partir de ahora.",
|
|
6434
6265
|
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.",
|
|
6435
|
-
giftMessageInfo: "Deja un mensaje para el destinatario y no olvides firmar con tu nombre."
|
|
6436
|
-
giftMessageAllowedCharacters: "No se permiten caracteres especiales ni emojis."
|
|
6266
|
+
giftMessageInfo: "Deja un mensaje para el destinatario y no olvides firmar con tu nombre."
|
|
6437
6267
|
}
|
|
6438
6268
|
};
|
|
6439
6269
|
var redeem = {
|
|
@@ -6461,14 +6291,14 @@ var redeem = {
|
|
|
6461
6291
|
var register_es = {
|
|
6462
6292
|
title: title$7,
|
|
6463
6293
|
subtitle: subtitle$2,
|
|
6464
|
-
labels: labels$
|
|
6465
|
-
messages: messages$
|
|
6294
|
+
labels: labels$a,
|
|
6295
|
+
messages: messages$b,
|
|
6466
6296
|
errors: errors$1,
|
|
6467
6297
|
gift: gift,
|
|
6468
6298
|
redeem: redeem
|
|
6469
6299
|
};
|
|
6470
6300
|
|
|
6471
|
-
var labels$
|
|
6301
|
+
var labels$9 = {
|
|
6472
6302
|
title: "¿Quieres actualizar tu perfil?",
|
|
6473
6303
|
subtitle: "Ingresa tu información a continuación para actualizar tu perfil",
|
|
6474
6304
|
email: "Correo",
|
|
@@ -6487,21 +6317,21 @@ var labels$a = {
|
|
|
6487
6317
|
zoom: "Acercar",
|
|
6488
6318
|
tin: "Número de Identificación Fiscal"
|
|
6489
6319
|
};
|
|
6490
|
-
var messages$
|
|
6320
|
+
var messages$a = {
|
|
6491
6321
|
userUpdated: "¡Gracias! Tu perfil se actualizó con éxito.",
|
|
6492
6322
|
pictureRemoved: "Tu foto de perfil se eliminó con éxito.",
|
|
6493
6323
|
pictureUpdated: "Tu foto de perfil se actualizó con éxito."
|
|
6494
6324
|
};
|
|
6495
6325
|
var userEdit_es = {
|
|
6496
|
-
labels: labels$
|
|
6497
|
-
messages: messages$
|
|
6326
|
+
labels: labels$9,
|
|
6327
|
+
messages: messages$a
|
|
6498
6328
|
};
|
|
6499
6329
|
|
|
6500
6330
|
var title$6 = "Ingresa tu dirección de envío";
|
|
6501
6331
|
var titleGifting = "Introduce tu dirección";
|
|
6502
6332
|
var selectAddressTitle = "Por favor, selecciona una dirección";
|
|
6503
6333
|
var selectAddressSubtitle = "Selecciona una de tus direcciones guardadas o añade una nueva";
|
|
6504
|
-
var labels$
|
|
6334
|
+
var labels$8 = {
|
|
6505
6335
|
address: "Dirección",
|
|
6506
6336
|
code: "Código Postal/Área",
|
|
6507
6337
|
city: "Ciudad",
|
|
@@ -6512,12 +6342,12 @@ var labels$9 = {
|
|
|
6512
6342
|
required: "obligatorio",
|
|
6513
6343
|
isDefault: "Configurar como dirección Principal"
|
|
6514
6344
|
};
|
|
6515
|
-
var buttons$
|
|
6345
|
+
var buttons$3 = {
|
|
6516
6346
|
submit: "Enviar",
|
|
6517
6347
|
selectAddress: "Seleccionar dirección",
|
|
6518
6348
|
addAddress: "Añadir nueva dirección"
|
|
6519
6349
|
};
|
|
6520
|
-
var messages$
|
|
6350
|
+
var messages$9 = {
|
|
6521
6351
|
addressUpdated: "¡La dirección se actualizó con éxito!",
|
|
6522
6352
|
subRedeemed: "Tu suscripción ha sido redimida."
|
|
6523
6353
|
};
|
|
@@ -6526,9 +6356,9 @@ var address_es = {
|
|
|
6526
6356
|
titleGifting: titleGifting,
|
|
6527
6357
|
selectAddressTitle: selectAddressTitle,
|
|
6528
6358
|
selectAddressSubtitle: selectAddressSubtitle,
|
|
6529
|
-
labels: labels$
|
|
6530
|
-
buttons: buttons$
|
|
6531
|
-
messages: messages$
|
|
6359
|
+
labels: labels$8,
|
|
6360
|
+
buttons: buttons$3,
|
|
6361
|
+
messages: messages$9
|
|
6532
6362
|
};
|
|
6533
6363
|
|
|
6534
6364
|
var title$5 = "Restablecer tu contraseña";
|
|
@@ -6556,7 +6386,7 @@ var password = "Contraseña";
|
|
|
6556
6386
|
var submit$2 = "Enviar";
|
|
6557
6387
|
var required$2 = "Obligatorio";
|
|
6558
6388
|
var passwordResetEmailSent = "Las instrucciones de restablecimiento de la contraseña se han enviado a tu correo";
|
|
6559
|
-
var messages$
|
|
6389
|
+
var messages$8 = {
|
|
6560
6390
|
alreadyHaveAccount: "¿Ya tienes una cuenta?",
|
|
6561
6391
|
loginHere: "Inicia sesión aquí."
|
|
6562
6392
|
};
|
|
@@ -6567,7 +6397,7 @@ var passwordForgot_es = {
|
|
|
6567
6397
|
submit: submit$2,
|
|
6568
6398
|
required: required$2,
|
|
6569
6399
|
passwordResetEmailSent: passwordResetEmailSent,
|
|
6570
|
-
messages: messages$
|
|
6400
|
+
messages: messages$8
|
|
6571
6401
|
};
|
|
6572
6402
|
|
|
6573
6403
|
var title$3 = "Cambiar tu contraseña";
|
|
@@ -6595,7 +6425,7 @@ var title$2 = "Acceso sin contraseña";
|
|
|
6595
6425
|
var email = "Ingresar correo";
|
|
6596
6426
|
var submit = "Enviar";
|
|
6597
6427
|
var required = "obligatorio";
|
|
6598
|
-
var messages$
|
|
6428
|
+
var messages$7 = {
|
|
6599
6429
|
PasswordlessLoginSuccess: "Por favor, revisa tu correo y sigue las instrucciones que se indican"
|
|
6600
6430
|
};
|
|
6601
6431
|
var passwordlessRequest_es = {
|
|
@@ -6603,7 +6433,7 @@ var passwordlessRequest_es = {
|
|
|
6603
6433
|
email: email,
|
|
6604
6434
|
submit: submit,
|
|
6605
6435
|
required: required,
|
|
6606
|
-
messages: messages$
|
|
6436
|
+
messages: messages$7
|
|
6607
6437
|
};
|
|
6608
6438
|
|
|
6609
6439
|
var title$1 = "Tu carrito de compras";
|
|
@@ -6631,13 +6461,13 @@ var cart_es = {
|
|
|
6631
6461
|
removeAll: removeAll
|
|
6632
6462
|
};
|
|
6633
6463
|
|
|
6634
|
-
var buttons$
|
|
6464
|
+
var buttons$2 = {
|
|
6635
6465
|
select: "Seleccionar",
|
|
6636
6466
|
added: "Añadido al carrito",
|
|
6637
6467
|
purchase: "Compra",
|
|
6638
6468
|
"continue": "Continuar"
|
|
6639
6469
|
};
|
|
6640
|
-
var messages$
|
|
6470
|
+
var messages$6 = {
|
|
6641
6471
|
orderConfirmed: {
|
|
6642
6472
|
title: "¡Orden confirmada!",
|
|
6643
6473
|
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."
|
|
@@ -6646,17 +6476,17 @@ var messages$7 = {
|
|
|
6646
6476
|
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.",
|
|
6647
6477
|
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."
|
|
6648
6478
|
};
|
|
6649
|
-
var labels$
|
|
6479
|
+
var labels$7 = {
|
|
6650
6480
|
summary: "Resumen de la orden",
|
|
6651
6481
|
total: "total"
|
|
6652
6482
|
};
|
|
6653
6483
|
var shop_es = {
|
|
6654
|
-
buttons: buttons$
|
|
6655
|
-
messages: messages$
|
|
6656
|
-
labels: labels$
|
|
6484
|
+
buttons: buttons$2,
|
|
6485
|
+
messages: messages$6,
|
|
6486
|
+
labels: labels$7
|
|
6657
6487
|
};
|
|
6658
6488
|
|
|
6659
|
-
var labels$
|
|
6489
|
+
var labels$6 = {
|
|
6660
6490
|
cardNumber: "Número de Tarjeta",
|
|
6661
6491
|
securityCode: "Código de Seguridad",
|
|
6662
6492
|
submit: "Enviar",
|
|
@@ -6678,7 +6508,7 @@ var labels$7 = {
|
|
|
6678
6508
|
title: "Información de Pago"
|
|
6679
6509
|
}
|
|
6680
6510
|
};
|
|
6681
|
-
var messages$
|
|
6511
|
+
var messages$5 = {
|
|
6682
6512
|
youAreSafe: "Estás seguro - PCI compliance 128 SSL por",
|
|
6683
6513
|
cancel: "Cancela tu suscripción en línea en cualquier momento.",
|
|
6684
6514
|
giftSent: "La suscripción de regalo se ha enviado a",
|
|
@@ -6692,12 +6522,12 @@ var errors = {
|
|
|
6692
6522
|
"": ""
|
|
6693
6523
|
};
|
|
6694
6524
|
var payment_es = {
|
|
6695
|
-
labels: labels$
|
|
6696
|
-
messages: messages$
|
|
6525
|
+
labels: labels$6,
|
|
6526
|
+
messages: messages$5,
|
|
6697
6527
|
errors: errors
|
|
6698
6528
|
};
|
|
6699
6529
|
|
|
6700
|
-
var labels$
|
|
6530
|
+
var labels$5 = {
|
|
6701
6531
|
menu: "Menú de Pelcro",
|
|
6702
6532
|
name: "Nombre",
|
|
6703
6533
|
email: "Correo",
|
|
@@ -6782,12 +6612,9 @@ var labels$6 = {
|
|
|
6782
6612
|
},
|
|
6783
6613
|
subCancellation: {
|
|
6784
6614
|
goBack: "Volver"
|
|
6785
|
-
},
|
|
6786
|
-
donationCancellation: {
|
|
6787
|
-
goBack: "Go back"
|
|
6788
6615
|
}
|
|
6789
6616
|
};
|
|
6790
|
-
var messages$
|
|
6617
|
+
var messages$4 = {
|
|
6791
6618
|
noCard: "No tienes una tarjeta",
|
|
6792
6619
|
subCancellation: {
|
|
6793
6620
|
isSureToCancel: "¿Estás seguro de que quieres cancelar tu suscripción?",
|
|
@@ -6804,60 +6631,11 @@ var messages$5 = {
|
|
|
6804
6631
|
loading: "Reanudando tu suscripción",
|
|
6805
6632
|
success: "La suscripción se reanudó con éxito",
|
|
6806
6633
|
error: "Error al reanudar tu suscripción"
|
|
6807
|
-
},
|
|
6808
|
-
donationCancellation: {
|
|
6809
|
-
isSureToCancel: "¿Estás seguro de que quieres cancelar tu donación?",
|
|
6810
|
-
loading: "Cancelando tu donación",
|
|
6811
|
-
success: "La donación se canceló con éxito",
|
|
6812
|
-
error: "Error al cancelar tu donación"
|
|
6813
|
-
},
|
|
6814
|
-
donationReactivation: {
|
|
6815
|
-
success: "La donación se reactivó con éxito",
|
|
6816
|
-
error: "Error al reactivar su donación"
|
|
6817
|
-
},
|
|
6818
|
-
donationUnSuspend: {
|
|
6819
|
-
isSureToUnSuspend: "¿Estás seguro de que quieres reanudar tu donación?",
|
|
6820
|
-
loading: "Reanudando tu donación",
|
|
6821
|
-
success: "La donación se reanudó con éxito",
|
|
6822
|
-
error: "Error al reanudar tu donación"
|
|
6823
6634
|
}
|
|
6824
6635
|
};
|
|
6825
6636
|
var dashboard_es = {
|
|
6826
|
-
labels: labels$6,
|
|
6827
|
-
messages: messages$5
|
|
6828
|
-
};
|
|
6829
|
-
|
|
6830
|
-
var messages$4 = {
|
|
6831
|
-
alreadyHaveAccount: "¿Ya tienes una cuenta?",
|
|
6832
|
-
loginHere: "Inicia sesión aquí",
|
|
6833
|
-
checkbox: "Marca esta casilla para regalar esta suscripción"
|
|
6834
|
-
};
|
|
6835
|
-
var labels$5 = {
|
|
6836
|
-
plan: {
|
|
6837
|
-
title: "Suscribirse a un plan",
|
|
6838
|
-
subtitle: "Selecciona uno de los planes a continuación y pulsa en siguiente."
|
|
6839
|
-
},
|
|
6840
|
-
product: {
|
|
6841
|
-
title: "Suscribirse a un producto",
|
|
6842
|
-
subtitle: "Selecciona uno de los productos a continuación y pulsa en siguiente."
|
|
6843
|
-
},
|
|
6844
|
-
selectProduct: "Selecciona un producto",
|
|
6845
|
-
selectPlan: "Selecciona un plan",
|
|
6846
|
-
startingAt: "Inicia el",
|
|
6847
|
-
restrictiveArticles: {
|
|
6848
|
-
subscribeTo: "Suscríbete a una de las siguientes opciones para obtener acceso a esta página",
|
|
6849
|
-
or: "O revisa algunas de nuestras otras opciones a continuación"
|
|
6850
|
-
}
|
|
6851
|
-
};
|
|
6852
|
-
var buttons$2 = {
|
|
6853
|
-
next: "Siguiente",
|
|
6854
|
-
select: "Seleccionar",
|
|
6855
|
-
back: "Volver"
|
|
6856
|
-
};
|
|
6857
|
-
var select_es = {
|
|
6858
|
-
messages: messages$4,
|
|
6859
6637
|
labels: labels$5,
|
|
6860
|
-
|
|
6638
|
+
messages: messages$4
|
|
6861
6639
|
};
|
|
6862
6640
|
|
|
6863
6641
|
var messages$3 = {
|
|
@@ -6887,7 +6665,7 @@ var buttons$1 = {
|
|
|
6887
6665
|
select: "Seleccionar",
|
|
6888
6666
|
back: "Volver"
|
|
6889
6667
|
};
|
|
6890
|
-
var
|
|
6668
|
+
var select_es = {
|
|
6891
6669
|
messages: messages$3,
|
|
6892
6670
|
labels: labels$4,
|
|
6893
6671
|
buttons: buttons$1
|
|
@@ -9268,9 +9046,6 @@ const initialState$n = {
|
|
|
9268
9046
|
giftCode: "",
|
|
9269
9047
|
subscriptionIdToRenew: null,
|
|
9270
9048
|
subscriptionToManageMembers: null,
|
|
9271
|
-
isDonation: false,
|
|
9272
|
-
selectedDonationAmount: null,
|
|
9273
|
-
customDonationAmount: null,
|
|
9274
9049
|
// E-commerce
|
|
9275
9050
|
cartItems: [],
|
|
9276
9051
|
order: null,
|
|
@@ -9460,7 +9235,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
|
|
|
9460
9235
|
* @return {boolean}
|
|
9461
9236
|
*/
|
|
9462
9237
|
const isValidViewFromURL = viewID => {
|
|
9463
|
-
if (["login", "register", "plan-select", "
|
|
9238
|
+
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()) {
|
|
9464
9239
|
return true;
|
|
9465
9240
|
}
|
|
9466
9241
|
return false;
|
|
@@ -9667,24 +9442,6 @@ function notifyBugsnag(callback, startOptions) {
|
|
|
9667
9442
|
callback();
|
|
9668
9443
|
}
|
|
9669
9444
|
|
|
9670
|
-
//create a safe and strong password string with special characters
|
|
9671
|
-
function generatePassword() {
|
|
9672
|
-
const length = 16;
|
|
9673
|
-
const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+{}|:<>?`~";
|
|
9674
|
-
let retVal = "";
|
|
9675
|
-
for (let i = 0, n = charset.length; i < length; ++i) {
|
|
9676
|
-
retVal += charset.charAt(Math.floor(Math.random() * n));
|
|
9677
|
-
}
|
|
9678
|
-
return retVal;
|
|
9679
|
-
}
|
|
9680
|
-
function isStringValid(str) {
|
|
9681
|
-
// Define the regular expression to match only letters, numbers and spaces
|
|
9682
|
-
var regex = /^(?:[\p{L}\p{N}\p{Pc}\p{Zs}\n]+$|^[\\\p{Script=Hangul}\p{Pc}\p{Zs}\n]+)$/mu;
|
|
9683
|
-
|
|
9684
|
-
// Test the string against the regular expression
|
|
9685
|
-
return regex.test(str);
|
|
9686
|
-
}
|
|
9687
|
-
|
|
9688
9445
|
const resources = {
|
|
9689
9446
|
en: {
|
|
9690
9447
|
common: common_en,
|
|
@@ -9709,7 +9466,6 @@ const resources = {
|
|
|
9709
9466
|
payment: payment_en,
|
|
9710
9467
|
dashboard: dashboard_en,
|
|
9711
9468
|
select: select_en,
|
|
9712
|
-
donation: donation_en,
|
|
9713
9469
|
notification: notification_en,
|
|
9714
9470
|
invoiceDetails: invoiceDetails_en,
|
|
9715
9471
|
subscriptionCancel: subscriptionCancel_en,
|
|
@@ -9739,7 +9495,6 @@ const resources = {
|
|
|
9739
9495
|
payment: payment_fr,
|
|
9740
9496
|
dashboard: dashboard_fr,
|
|
9741
9497
|
select: select_fr,
|
|
9742
|
-
donation: donation_fr,
|
|
9743
9498
|
notification: notification_fr,
|
|
9744
9499
|
invoiceDetails: invoiceDetails_fr,
|
|
9745
9500
|
subscriptionCancel: subscriptionCancel_fr,
|
|
@@ -9769,7 +9524,6 @@ const resources = {
|
|
|
9769
9524
|
payment: payment_ko,
|
|
9770
9525
|
dashboard: dashboard_ko,
|
|
9771
9526
|
select: select_ko,
|
|
9772
|
-
donation: donation_ko,
|
|
9773
9527
|
notification: notification_ko,
|
|
9774
9528
|
invoiceDetails: invoiceDetails_ko,
|
|
9775
9529
|
subscriptionCancel: subscriptionCancel_ko,
|
|
@@ -9799,7 +9553,6 @@ const resources = {
|
|
|
9799
9553
|
payment: payment_es,
|
|
9800
9554
|
dashboard: dashboard_es,
|
|
9801
9555
|
select: select_es,
|
|
9802
|
-
donation: donation_es,
|
|
9803
9556
|
notification: notification_es,
|
|
9804
9557
|
invoiceDetails: invoiceDetails_es,
|
|
9805
9558
|
subscriptionCancel: subscriptionCancel_es,
|
|
@@ -9835,175 +9588,6 @@ pageLanguageObserver.observe(document.documentElement, {
|
|
|
9835
9588
|
attributes: true
|
|
9836
9589
|
});
|
|
9837
9590
|
|
|
9838
|
-
var pure$1 = createCommonjsModule(function (module, exports) {
|
|
9839
|
-
|
|
9840
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9841
|
-
|
|
9842
|
-
function _typeof(obj) {
|
|
9843
|
-
"@babel/helpers - typeof";
|
|
9844
|
-
|
|
9845
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
9846
|
-
_typeof = function (obj) {
|
|
9847
|
-
return typeof obj;
|
|
9848
|
-
};
|
|
9849
|
-
} else {
|
|
9850
|
-
_typeof = function (obj) {
|
|
9851
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
9852
|
-
};
|
|
9853
|
-
}
|
|
9854
|
-
|
|
9855
|
-
return _typeof(obj);
|
|
9856
|
-
}
|
|
9857
|
-
|
|
9858
|
-
var V3_URL = 'https://js.stripe.com/v3';
|
|
9859
|
-
var V3_URL_REGEX = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;
|
|
9860
|
-
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';
|
|
9861
|
-
var findScript = function findScript() {
|
|
9862
|
-
var scripts = document.querySelectorAll("script[src^=\"".concat(V3_URL, "\"]"));
|
|
9863
|
-
|
|
9864
|
-
for (var i = 0; i < scripts.length; i++) {
|
|
9865
|
-
var script = scripts[i];
|
|
9866
|
-
|
|
9867
|
-
if (!V3_URL_REGEX.test(script.src)) {
|
|
9868
|
-
continue;
|
|
9869
|
-
}
|
|
9870
|
-
|
|
9871
|
-
return script;
|
|
9872
|
-
}
|
|
9873
|
-
|
|
9874
|
-
return null;
|
|
9875
|
-
};
|
|
9876
|
-
|
|
9877
|
-
var injectScript = function injectScript(params) {
|
|
9878
|
-
var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';
|
|
9879
|
-
var script = document.createElement('script');
|
|
9880
|
-
script.src = "".concat(V3_URL).concat(queryString);
|
|
9881
|
-
var headOrBody = document.head || document.body;
|
|
9882
|
-
|
|
9883
|
-
if (!headOrBody) {
|
|
9884
|
-
throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');
|
|
9885
|
-
}
|
|
9886
|
-
|
|
9887
|
-
headOrBody.appendChild(script);
|
|
9888
|
-
return script;
|
|
9889
|
-
};
|
|
9890
|
-
|
|
9891
|
-
var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
9892
|
-
if (!stripe || !stripe._registerWrapper) {
|
|
9893
|
-
return;
|
|
9894
|
-
}
|
|
9895
|
-
|
|
9896
|
-
stripe._registerWrapper({
|
|
9897
|
-
name: 'stripe-js',
|
|
9898
|
-
version: "1.21.1",
|
|
9899
|
-
startTime: startTime
|
|
9900
|
-
});
|
|
9901
|
-
};
|
|
9902
|
-
|
|
9903
|
-
var stripePromise = null;
|
|
9904
|
-
var loadScript = function loadScript(params) {
|
|
9905
|
-
// Ensure that we only attempt to load Stripe.js at most once
|
|
9906
|
-
if (stripePromise !== null) {
|
|
9907
|
-
return stripePromise;
|
|
9908
|
-
}
|
|
9909
|
-
|
|
9910
|
-
stripePromise = new Promise(function (resolve, reject) {
|
|
9911
|
-
if (typeof window === 'undefined') {
|
|
9912
|
-
// Resolve to null when imported server side. This makes the module
|
|
9913
|
-
// safe to import in an isomorphic code base.
|
|
9914
|
-
resolve(null);
|
|
9915
|
-
return;
|
|
9916
|
-
}
|
|
9917
|
-
|
|
9918
|
-
if (window.Stripe && params) {
|
|
9919
|
-
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
9920
|
-
}
|
|
9921
|
-
|
|
9922
|
-
if (window.Stripe) {
|
|
9923
|
-
resolve(window.Stripe);
|
|
9924
|
-
return;
|
|
9925
|
-
}
|
|
9926
|
-
|
|
9927
|
-
try {
|
|
9928
|
-
var script = findScript();
|
|
9929
|
-
|
|
9930
|
-
if (script && params) {
|
|
9931
|
-
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
9932
|
-
} else if (!script) {
|
|
9933
|
-
script = injectScript(params);
|
|
9934
|
-
}
|
|
9935
|
-
|
|
9936
|
-
script.addEventListener('load', function () {
|
|
9937
|
-
if (window.Stripe) {
|
|
9938
|
-
resolve(window.Stripe);
|
|
9939
|
-
} else {
|
|
9940
|
-
reject(new Error('Stripe.js not available'));
|
|
9941
|
-
}
|
|
9942
|
-
});
|
|
9943
|
-
script.addEventListener('error', function () {
|
|
9944
|
-
reject(new Error('Failed to load Stripe.js'));
|
|
9945
|
-
});
|
|
9946
|
-
} catch (error) {
|
|
9947
|
-
reject(error);
|
|
9948
|
-
return;
|
|
9949
|
-
}
|
|
9950
|
-
});
|
|
9951
|
-
return stripePromise;
|
|
9952
|
-
};
|
|
9953
|
-
var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
9954
|
-
if (maybeStripe === null) {
|
|
9955
|
-
return null;
|
|
9956
|
-
}
|
|
9957
|
-
|
|
9958
|
-
var stripe = maybeStripe.apply(undefined, args);
|
|
9959
|
-
registerWrapper(stripe, startTime);
|
|
9960
|
-
return stripe;
|
|
9961
|
-
};
|
|
9962
|
-
var validateLoadParams = function validateLoadParams(params) {
|
|
9963
|
-
var errorMessage = "invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(params), "\n");
|
|
9964
|
-
|
|
9965
|
-
if (params === null || _typeof(params) !== 'object') {
|
|
9966
|
-
throw new Error(errorMessage);
|
|
9967
|
-
}
|
|
9968
|
-
|
|
9969
|
-
if (Object.keys(params).length === 1 && typeof params.advancedFraudSignals === 'boolean') {
|
|
9970
|
-
return params;
|
|
9971
|
-
}
|
|
9972
|
-
|
|
9973
|
-
throw new Error(errorMessage);
|
|
9974
|
-
};
|
|
9975
|
-
|
|
9976
|
-
var loadParams;
|
|
9977
|
-
var loadStripeCalled = false;
|
|
9978
|
-
var loadStripe = function loadStripe() {
|
|
9979
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9980
|
-
args[_key] = arguments[_key];
|
|
9981
|
-
}
|
|
9982
|
-
|
|
9983
|
-
loadStripeCalled = true;
|
|
9984
|
-
var startTime = Date.now();
|
|
9985
|
-
return loadScript(loadParams).then(function (maybeStripe) {
|
|
9986
|
-
return initStripe(maybeStripe, args, startTime);
|
|
9987
|
-
});
|
|
9988
|
-
};
|
|
9989
|
-
|
|
9990
|
-
loadStripe.setLoadParameters = function (params) {
|
|
9991
|
-
if (loadStripeCalled) {
|
|
9992
|
-
throw new Error('You cannot change load parameters after calling loadStripe');
|
|
9993
|
-
}
|
|
9994
|
-
|
|
9995
|
-
loadParams = validateLoadParams(params);
|
|
9996
|
-
};
|
|
9997
|
-
|
|
9998
|
-
exports.loadStripe = loadStripe;
|
|
9999
|
-
});
|
|
10000
|
-
|
|
10001
|
-
unwrapExports(pure$1);
|
|
10002
|
-
pure$1.loadStripe;
|
|
10003
|
-
|
|
10004
|
-
var pure = pure$1;
|
|
10005
|
-
var pure_1 = pure.loadStripe;
|
|
10006
|
-
|
|
10007
9591
|
function _classPrivateFieldGet(receiver, privateMap) {
|
|
10008
9592
|
var descriptor = privateMap.get(receiver);
|
|
10009
9593
|
|
|
@@ -11181,7 +10765,7 @@ toast.confirm = function (onConfirm, _ref3) {
|
|
|
11181
10765
|
...options
|
|
11182
10766
|
});
|
|
11183
10767
|
setTimeout(() => {
|
|
11184
|
-
notify.dismiss(id);
|
|
10768
|
+
notify$1.dismiss(id);
|
|
11185
10769
|
}, 3000);
|
|
11186
10770
|
};
|
|
11187
10771
|
const onFailure = errorValue => {
|
|
@@ -11190,11 +10774,11 @@ toast.confirm = function (onConfirm, _ref3) {
|
|
|
11190
10774
|
...options
|
|
11191
10775
|
});
|
|
11192
10776
|
setTimeout(() => {
|
|
11193
|
-
notify.dismiss(id);
|
|
10777
|
+
notify$1.dismiss(id);
|
|
11194
10778
|
}, 3000);
|
|
11195
10779
|
};
|
|
11196
10780
|
};
|
|
11197
|
-
const notify = toast;
|
|
10781
|
+
const notify$1 = toast;
|
|
11198
10782
|
|
|
11199
10783
|
const translations = i18next.t("common:buttons", {
|
|
11200
10784
|
returnObjects: true
|
|
@@ -11255,7 +10839,7 @@ const init$1 = () => {
|
|
|
11255
10839
|
const errorMessage = i18next.t("messages:invalidSubscription", {
|
|
11256
10840
|
returnObjects: true
|
|
11257
10841
|
});
|
|
11258
|
-
return notify.error(errorMessage);
|
|
10842
|
+
return notify$1.error(errorMessage);
|
|
11259
10843
|
}
|
|
11260
10844
|
switchView("manage-members");
|
|
11261
10845
|
});
|
|
@@ -11263,7 +10847,7 @@ const init$1 = () => {
|
|
|
11263
10847
|
const errorMessage = i18next.t("messages:invalidSubscription", {
|
|
11264
10848
|
returnObjects: true
|
|
11265
10849
|
});
|
|
11266
|
-
return notify.error(errorMessage);
|
|
10850
|
+
return notify$1.error(errorMessage);
|
|
11267
10851
|
}
|
|
11268
10852
|
}
|
|
11269
10853
|
}
|
|
@@ -11321,57 +10905,6 @@ const init$1 = () => {
|
|
|
11321
10905
|
}
|
|
11322
10906
|
}
|
|
11323
10907
|
}
|
|
11324
|
-
const pelcroDonateButtonsByClass = document.getElementsByClassName("pelcro-donate-button");
|
|
11325
|
-
if (pelcroDonateButtonsByClass.length !== 0) {
|
|
11326
|
-
for (let j = 0; j < pelcroDonateButtonsByClass.length; j++) {
|
|
11327
|
-
if (pelcroDonateButtonsByClass[j].dataset && "productId" in pelcroDonateButtonsByClass[j].dataset) {
|
|
11328
|
-
pelcroDonateButtonsByClass[j].addEventListener("click", e => {
|
|
11329
|
-
var _selectedProduct$plan2;
|
|
11330
|
-
set({
|
|
11331
|
-
isDonation: true
|
|
11332
|
-
});
|
|
11333
|
-
const productsList = window.Pelcro.product.list();
|
|
11334
|
-
if (!(productsList !== null && productsList !== void 0 && productsList.length)) return;
|
|
11335
|
-
const [productId, planId, isGift] = [e.target.dataset.productId, e.target.dataset.planId, e.target.dataset.isGift];
|
|
11336
|
-
const selectedProduct = productsList.find(product => product.id === Number(productId));
|
|
11337
|
-
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));
|
|
11338
|
-
set({
|
|
11339
|
-
product: selectedProduct,
|
|
11340
|
-
plan: selectedPlan,
|
|
11341
|
-
isGift: Boolean(isGift)
|
|
11342
|
-
});
|
|
11343
|
-
if (!selectedProduct || !selectedPlan) {
|
|
11344
|
-
return switchView("plan-select");
|
|
11345
|
-
}
|
|
11346
|
-
|
|
11347
|
-
// if (!isAuthenticated()) {
|
|
11348
|
-
// return switchView("register");
|
|
11349
|
-
// }
|
|
11350
|
-
|
|
11351
|
-
if (isGift) {
|
|
11352
|
-
return switchView("gift-create");
|
|
11353
|
-
}
|
|
11354
|
-
|
|
11355
|
-
// const requiresAddress = Boolean(
|
|
11356
|
-
// selectedProduct.address_required
|
|
11357
|
-
// );
|
|
11358
|
-
|
|
11359
|
-
// if (requiresAddress) {
|
|
11360
|
-
// return switchToAddressView();
|
|
11361
|
-
// }
|
|
11362
|
-
|
|
11363
|
-
return switchToPaymentView();
|
|
11364
|
-
});
|
|
11365
|
-
} else {
|
|
11366
|
-
pelcroDonateButtonsByClass[j].addEventListener("click", () => {
|
|
11367
|
-
set({
|
|
11368
|
-
isDonation: true
|
|
11369
|
-
});
|
|
11370
|
-
switchView("donation-select");
|
|
11371
|
-
});
|
|
11372
|
-
}
|
|
11373
|
-
}
|
|
11374
|
-
}
|
|
11375
10908
|
const pelcroOfflineSubButtonsByClass = document.getElementsByClassName("pelcro-offline-subscribe-button");
|
|
11376
10909
|
if (pelcroOfflineSubButtonsByClass.length !== 0) {
|
|
11377
10910
|
for (let j = 0; j < pelcroOfflineSubButtonsByClass.length; j++) {
|
|
@@ -11451,7 +10984,7 @@ const init$1 = () => {
|
|
|
11451
10984
|
const errorMsg = i18next.t("shop:messages.currencyMismatch", {
|
|
11452
10985
|
currency: userCurrency
|
|
11453
10986
|
});
|
|
11454
|
-
notify.error(errorMsg);
|
|
10987
|
+
notify$1.error(errorMsg);
|
|
11455
10988
|
}
|
|
11456
10989
|
});
|
|
11457
10990
|
}
|
|
@@ -11544,7 +11077,7 @@ const init = () => {
|
|
|
11544
11077
|
unblurElemWhenUserLogsIn(elemDeepClone, entitlements);
|
|
11545
11078
|
unblurElemWhenUserLogsOut(elemDeepClone, entitlements);
|
|
11546
11079
|
const NOTIFICATION_ID = "entitlement";
|
|
11547
|
-
notify( /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement(Trans, {
|
|
11080
|
+
notify$1( /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement(Trans, {
|
|
11548
11081
|
i18nKey: "messages:entitlement"
|
|
11549
11082
|
}, "Some of the content on this page is available with one or more of our plans.", /*#__PURE__*/React__default.createElement(Link, {
|
|
11550
11083
|
onClick: () => {
|
|
@@ -11559,7 +11092,7 @@ const init = () => {
|
|
|
11559
11092
|
plan: selectedPlan
|
|
11560
11093
|
});
|
|
11561
11094
|
}
|
|
11562
|
-
notify.dismiss(NOTIFICATION_ID);
|
|
11095
|
+
notify$1.dismiss(NOTIFICATION_ID);
|
|
11563
11096
|
switchView("_plan-select-entitlements");
|
|
11564
11097
|
}
|
|
11565
11098
|
}, "Subscribe"), "now to get full page access.")), {
|
|
@@ -11624,6 +11157,175 @@ function shouldBlurContent(entitlements) {
|
|
|
11624
11157
|
return entitlements.every(entitlement => !window.Pelcro.user.isEntitledTo(entitlement));
|
|
11625
11158
|
}
|
|
11626
11159
|
|
|
11160
|
+
var pure$1 = createCommonjsModule(function (module, exports) {
|
|
11161
|
+
|
|
11162
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11163
|
+
|
|
11164
|
+
function _typeof(obj) {
|
|
11165
|
+
"@babel/helpers - typeof";
|
|
11166
|
+
|
|
11167
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
11168
|
+
_typeof = function (obj) {
|
|
11169
|
+
return typeof obj;
|
|
11170
|
+
};
|
|
11171
|
+
} else {
|
|
11172
|
+
_typeof = function (obj) {
|
|
11173
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
11174
|
+
};
|
|
11175
|
+
}
|
|
11176
|
+
|
|
11177
|
+
return _typeof(obj);
|
|
11178
|
+
}
|
|
11179
|
+
|
|
11180
|
+
var V3_URL = 'https://js.stripe.com/v3';
|
|
11181
|
+
var V3_URL_REGEX = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;
|
|
11182
|
+
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';
|
|
11183
|
+
var findScript = function findScript() {
|
|
11184
|
+
var scripts = document.querySelectorAll("script[src^=\"".concat(V3_URL, "\"]"));
|
|
11185
|
+
|
|
11186
|
+
for (var i = 0; i < scripts.length; i++) {
|
|
11187
|
+
var script = scripts[i];
|
|
11188
|
+
|
|
11189
|
+
if (!V3_URL_REGEX.test(script.src)) {
|
|
11190
|
+
continue;
|
|
11191
|
+
}
|
|
11192
|
+
|
|
11193
|
+
return script;
|
|
11194
|
+
}
|
|
11195
|
+
|
|
11196
|
+
return null;
|
|
11197
|
+
};
|
|
11198
|
+
|
|
11199
|
+
var injectScript = function injectScript(params) {
|
|
11200
|
+
var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';
|
|
11201
|
+
var script = document.createElement('script');
|
|
11202
|
+
script.src = "".concat(V3_URL).concat(queryString);
|
|
11203
|
+
var headOrBody = document.head || document.body;
|
|
11204
|
+
|
|
11205
|
+
if (!headOrBody) {
|
|
11206
|
+
throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');
|
|
11207
|
+
}
|
|
11208
|
+
|
|
11209
|
+
headOrBody.appendChild(script);
|
|
11210
|
+
return script;
|
|
11211
|
+
};
|
|
11212
|
+
|
|
11213
|
+
var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
11214
|
+
if (!stripe || !stripe._registerWrapper) {
|
|
11215
|
+
return;
|
|
11216
|
+
}
|
|
11217
|
+
|
|
11218
|
+
stripe._registerWrapper({
|
|
11219
|
+
name: 'stripe-js',
|
|
11220
|
+
version: "1.21.1",
|
|
11221
|
+
startTime: startTime
|
|
11222
|
+
});
|
|
11223
|
+
};
|
|
11224
|
+
|
|
11225
|
+
var stripePromise = null;
|
|
11226
|
+
var loadScript = function loadScript(params) {
|
|
11227
|
+
// Ensure that we only attempt to load Stripe.js at most once
|
|
11228
|
+
if (stripePromise !== null) {
|
|
11229
|
+
return stripePromise;
|
|
11230
|
+
}
|
|
11231
|
+
|
|
11232
|
+
stripePromise = new Promise(function (resolve, reject) {
|
|
11233
|
+
if (typeof window === 'undefined') {
|
|
11234
|
+
// Resolve to null when imported server side. This makes the module
|
|
11235
|
+
// safe to import in an isomorphic code base.
|
|
11236
|
+
resolve(null);
|
|
11237
|
+
return;
|
|
11238
|
+
}
|
|
11239
|
+
|
|
11240
|
+
if (window.Stripe && params) {
|
|
11241
|
+
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
11242
|
+
}
|
|
11243
|
+
|
|
11244
|
+
if (window.Stripe) {
|
|
11245
|
+
resolve(window.Stripe);
|
|
11246
|
+
return;
|
|
11247
|
+
}
|
|
11248
|
+
|
|
11249
|
+
try {
|
|
11250
|
+
var script = findScript();
|
|
11251
|
+
|
|
11252
|
+
if (script && params) {
|
|
11253
|
+
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
11254
|
+
} else if (!script) {
|
|
11255
|
+
script = injectScript(params);
|
|
11256
|
+
}
|
|
11257
|
+
|
|
11258
|
+
script.addEventListener('load', function () {
|
|
11259
|
+
if (window.Stripe) {
|
|
11260
|
+
resolve(window.Stripe);
|
|
11261
|
+
} else {
|
|
11262
|
+
reject(new Error('Stripe.js not available'));
|
|
11263
|
+
}
|
|
11264
|
+
});
|
|
11265
|
+
script.addEventListener('error', function () {
|
|
11266
|
+
reject(new Error('Failed to load Stripe.js'));
|
|
11267
|
+
});
|
|
11268
|
+
} catch (error) {
|
|
11269
|
+
reject(error);
|
|
11270
|
+
return;
|
|
11271
|
+
}
|
|
11272
|
+
});
|
|
11273
|
+
return stripePromise;
|
|
11274
|
+
};
|
|
11275
|
+
var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
11276
|
+
if (maybeStripe === null) {
|
|
11277
|
+
return null;
|
|
11278
|
+
}
|
|
11279
|
+
|
|
11280
|
+
var stripe = maybeStripe.apply(undefined, args);
|
|
11281
|
+
registerWrapper(stripe, startTime);
|
|
11282
|
+
return stripe;
|
|
11283
|
+
};
|
|
11284
|
+
var validateLoadParams = function validateLoadParams(params) {
|
|
11285
|
+
var errorMessage = "invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(params), "\n");
|
|
11286
|
+
|
|
11287
|
+
if (params === null || _typeof(params) !== 'object') {
|
|
11288
|
+
throw new Error(errorMessage);
|
|
11289
|
+
}
|
|
11290
|
+
|
|
11291
|
+
if (Object.keys(params).length === 1 && typeof params.advancedFraudSignals === 'boolean') {
|
|
11292
|
+
return params;
|
|
11293
|
+
}
|
|
11294
|
+
|
|
11295
|
+
throw new Error(errorMessage);
|
|
11296
|
+
};
|
|
11297
|
+
|
|
11298
|
+
var loadParams;
|
|
11299
|
+
var loadStripeCalled = false;
|
|
11300
|
+
var loadStripe = function loadStripe() {
|
|
11301
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11302
|
+
args[_key] = arguments[_key];
|
|
11303
|
+
}
|
|
11304
|
+
|
|
11305
|
+
loadStripeCalled = true;
|
|
11306
|
+
var startTime = Date.now();
|
|
11307
|
+
return loadScript(loadParams).then(function (maybeStripe) {
|
|
11308
|
+
return initStripe(maybeStripe, args, startTime);
|
|
11309
|
+
});
|
|
11310
|
+
};
|
|
11311
|
+
|
|
11312
|
+
loadStripe.setLoadParameters = function (params) {
|
|
11313
|
+
if (loadStripeCalled) {
|
|
11314
|
+
throw new Error('You cannot change load parameters after calling loadStripe');
|
|
11315
|
+
}
|
|
11316
|
+
|
|
11317
|
+
loadParams = validateLoadParams(params);
|
|
11318
|
+
};
|
|
11319
|
+
|
|
11320
|
+
exports.loadStripe = loadStripe;
|
|
11321
|
+
});
|
|
11322
|
+
|
|
11323
|
+
unwrapExports(pure$1);
|
|
11324
|
+
pure$1.loadStripe;
|
|
11325
|
+
|
|
11326
|
+
var pure = pure$1;
|
|
11327
|
+
var pure_1 = pure.loadStripe;
|
|
11328
|
+
|
|
11627
11329
|
/**
|
|
11628
11330
|
* Extracts error message from the response error object
|
|
11629
11331
|
* @param {Object} error Error object
|
|
@@ -11777,12 +11479,16 @@ const initPaywalls = () => {
|
|
|
11777
11479
|
};
|
|
11778
11480
|
const loadPaymentSDKs = () => {
|
|
11779
11481
|
// Lazy load stripe's SDK
|
|
11780
|
-
|
|
11482
|
+
const {
|
|
11483
|
+
whenUserReady
|
|
11484
|
+
} = usePelcro.getStore();
|
|
11781
11485
|
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
11782
11486
|
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
11487
|
+
whenUserReady(() => {
|
|
11488
|
+
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
11489
|
+
pure_1(window.Pelcro.environment.stripe);
|
|
11490
|
+
}
|
|
11491
|
+
});
|
|
11786
11492
|
|
|
11787
11493
|
// Load PayPal SDKs
|
|
11788
11494
|
const supportsPaypal = Boolean(window.Pelcro.site.read().braintree_tokenization);
|
|
@@ -11933,9 +11639,6 @@ const initViewFromURL = () => {
|
|
|
11933
11639
|
if (view === "plan-select") {
|
|
11934
11640
|
return initSubscriptionFromURL();
|
|
11935
11641
|
}
|
|
11936
|
-
if (view === "donation-select") {
|
|
11937
|
-
return initDonationFromURL();
|
|
11938
|
-
}
|
|
11939
11642
|
if (view === "register") {
|
|
11940
11643
|
const offlinePlanId = window.Pelcro.helpers.getURLParameter("plan_id");
|
|
11941
11644
|
if (offlinePlanId) {
|
|
@@ -12018,61 +11721,6 @@ const initSubscriptionFromURL = () => {
|
|
|
12018
11721
|
});
|
|
12019
11722
|
};
|
|
12020
11723
|
|
|
12021
|
-
/**
|
|
12022
|
-
* Initializes the donation flow if 'product_id' & 'plan_id' params exist
|
|
12023
|
-
* with valid IDs. Otherwise, switches to the donation selection flow
|
|
12024
|
-
*/
|
|
12025
|
-
const initDonationFromURL = () => {
|
|
12026
|
-
const {
|
|
12027
|
-
switchView,
|
|
12028
|
-
whenSiteReady,
|
|
12029
|
-
set
|
|
12030
|
-
} = usePelcro.getStore();
|
|
12031
|
-
whenSiteReady(() => {
|
|
12032
|
-
var _selectedProduct$plan2;
|
|
12033
|
-
const productsList = window.Pelcro.product.list();
|
|
12034
|
-
if (!(productsList !== null && productsList !== void 0 && productsList.length)) {
|
|
12035
|
-
return;
|
|
12036
|
-
}
|
|
12037
|
-
const [productId, planId, isGiftParam] = [window.Pelcro.helpers.getURLParameter("product_id"), window.Pelcro.helpers.getURLParameter("plan_id"), window.Pelcro.helpers.getURLParameter("is_gift")];
|
|
12038
|
-
const isGift = (isGiftParam === null || isGiftParam === void 0 ? void 0 : isGiftParam.toLowerCase()) === "true";
|
|
12039
|
-
const selectedProduct = productsList.find(product => product.id === Number(productId));
|
|
12040
|
-
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));
|
|
12041
|
-
set({
|
|
12042
|
-
product: selectedProduct,
|
|
12043
|
-
plan: selectedPlan,
|
|
12044
|
-
isGift
|
|
12045
|
-
});
|
|
12046
|
-
if (!selectedProduct || !selectedPlan) {
|
|
12047
|
-
set({
|
|
12048
|
-
isDonation: true
|
|
12049
|
-
});
|
|
12050
|
-
return switchView("donation-select");
|
|
12051
|
-
}
|
|
12052
|
-
const {
|
|
12053
|
-
isAuthenticated,
|
|
12054
|
-
switchToAddressView,
|
|
12055
|
-
switchToPaymentView
|
|
12056
|
-
} = usePelcro.getStore();
|
|
12057
|
-
|
|
12058
|
-
// if (!isAuthenticated()) {
|
|
12059
|
-
// return switchView("register");
|
|
12060
|
-
// }
|
|
12061
|
-
|
|
12062
|
-
// if (isGift) {
|
|
12063
|
-
// return switchView("gift-create");
|
|
12064
|
-
// }
|
|
12065
|
-
|
|
12066
|
-
// const requiresAddress = Boolean(selectedProduct.address_required);
|
|
12067
|
-
//
|
|
12068
|
-
// if (requiresAddress) {
|
|
12069
|
-
// return switchToAddressView();
|
|
12070
|
-
// }
|
|
12071
|
-
|
|
12072
|
-
return switchToPaymentView();
|
|
12073
|
-
});
|
|
12074
|
-
};
|
|
12075
|
-
|
|
12076
11724
|
/**
|
|
12077
11725
|
* Initializes offline subscription flow if 'plan_id' params exist
|
|
12078
11726
|
* with valid IDs, Otherwise, ignore the param
|
|
@@ -12172,9 +11820,9 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
12172
11820
|
token: emailToken
|
|
12173
11821
|
}, (err, res) => {
|
|
12174
11822
|
if (err) {
|
|
12175
|
-
return notify.error(getErrorMessages(err));
|
|
11823
|
+
return notify$1.error(getErrorMessages(err));
|
|
12176
11824
|
}
|
|
12177
|
-
return notify.success(translations.success);
|
|
11825
|
+
return notify$1.success(translations.success);
|
|
12178
11826
|
});
|
|
12179
11827
|
}, {
|
|
12180
11828
|
once: true
|
|
@@ -12198,7 +11846,7 @@ const verifyLinkTokenFromUrl = () => {
|
|
|
12198
11846
|
token: loginToken
|
|
12199
11847
|
}, (err, res) => {
|
|
12200
11848
|
if (err) {
|
|
12201
|
-
return notify.error(getErrorMessages(err));
|
|
11849
|
+
return notify$1.error(getErrorMessages(err));
|
|
12202
11850
|
}
|
|
12203
11851
|
const {
|
|
12204
11852
|
auth_token
|
|
@@ -12207,10 +11855,10 @@ const verifyLinkTokenFromUrl = () => {
|
|
|
12207
11855
|
auth_token
|
|
12208
11856
|
}, (err, res) => {
|
|
12209
11857
|
if (err) {
|
|
12210
|
-
return notify.error(getErrorMessages(err));
|
|
11858
|
+
return notify$1.error(getErrorMessages(err));
|
|
12211
11859
|
}
|
|
12212
11860
|
resetView();
|
|
12213
|
-
return notify.success(translations.success);
|
|
11861
|
+
return notify$1.success(translations.success);
|
|
12214
11862
|
});
|
|
12215
11863
|
});
|
|
12216
11864
|
}, {
|
|
@@ -12285,7 +11933,7 @@ const showInvoiceDetailsFromUrl = () => {
|
|
|
12285
11933
|
const errorMessage = i18next.t("messages:invalidInvoice", {
|
|
12286
11934
|
returnObjects: true
|
|
12287
11935
|
});
|
|
12288
|
-
return notify.error(errorMessage);
|
|
11936
|
+
return notify$1.error(errorMessage);
|
|
12289
11937
|
}
|
|
12290
11938
|
const {
|
|
12291
11939
|
invoice
|
|
@@ -12294,7 +11942,7 @@ const showInvoiceDetailsFromUrl = () => {
|
|
|
12294
11942
|
const errorMessage = i18next.t("messages:zeroTotalInvoice", {
|
|
12295
11943
|
returnObjects: true
|
|
12296
11944
|
});
|
|
12297
|
-
return notify.error(errorMessage);
|
|
11945
|
+
return notify$1.error(errorMessage);
|
|
12298
11946
|
}
|
|
12299
11947
|
return switchView("invoice-details");
|
|
12300
11948
|
});
|
|
@@ -12319,7 +11967,7 @@ const showSubscriptionManageMembersFromUrl = () => {
|
|
|
12319
11967
|
const errorMessage = i18next.t("messages:invalidSubscription", {
|
|
12320
11968
|
returnObjects: true
|
|
12321
11969
|
});
|
|
12322
|
-
return notify.error(errorMessage);
|
|
11970
|
+
return notify$1.error(errorMessage);
|
|
12323
11971
|
}
|
|
12324
11972
|
return switchView("manage-members");
|
|
12325
11973
|
});
|
|
@@ -12344,18 +11992,8 @@ const PelcroModalController = _ref => {
|
|
|
12344
11992
|
const {
|
|
12345
11993
|
view,
|
|
12346
11994
|
isAuthenticated,
|
|
12347
|
-
whenSiteReady
|
|
12348
|
-
isDonation
|
|
11995
|
+
whenSiteReady
|
|
12349
11996
|
} = usePelcro();
|
|
12350
|
-
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
12351
|
-
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
12352
|
-
React__default.useEffect(() => {
|
|
12353
|
-
if (isDonation) {
|
|
12354
|
-
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
12355
|
-
pure_1(window.Pelcro.environment.stripe);
|
|
12356
|
-
}
|
|
12357
|
-
}
|
|
12358
|
-
}, [isDonation]);
|
|
12359
11997
|
React__default.useEffect(() => {
|
|
12360
11998
|
init$1();
|
|
12361
11999
|
renderShopView(React__default.Children.map(children, child => child).find(_ref2 => {
|
|
@@ -14888,7 +14526,7 @@ function SelectModalWithHook(props) {
|
|
|
14888
14526
|
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
14889
14527
|
});
|
|
14890
14528
|
}
|
|
14891
|
-
function productsWithMatchedTaggedFirst
|
|
14529
|
+
function productsWithMatchedTaggedFirst() {
|
|
14892
14530
|
var _window$Pelcro$produc;
|
|
14893
14531
|
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
14894
14532
|
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
@@ -14900,398 +14538,13 @@ function productMatchPageLanguage(product) {
|
|
|
14900
14538
|
return false;
|
|
14901
14539
|
}
|
|
14902
14540
|
if (product.language === null) {
|
|
14903
|
-
return true;
|
|
14904
|
-
}
|
|
14905
|
-
const siteLanguage = window.Pelcro.helpers.getHtmlLanguageAttribute();
|
|
14906
|
-
return product.language === siteLanguage;
|
|
14907
|
-
}
|
|
14908
|
-
SelectModalWithHook.viewId = "plan-select";
|
|
14909
|
-
class SelectModal extends Component {
|
|
14910
|
-
constructor(props) {
|
|
14911
|
-
super(props);
|
|
14912
|
-
_defineProperty$3(this, "componentDidMount", () => {
|
|
14913
|
-
if (this.props.product) {
|
|
14914
|
-
const {
|
|
14915
|
-
product
|
|
14916
|
-
} = this.props;
|
|
14917
|
-
const planList = product.plans;
|
|
14918
|
-
this.setState({
|
|
14919
|
-
product,
|
|
14920
|
-
planList,
|
|
14921
|
-
mode: "plan"
|
|
14922
|
-
});
|
|
14923
|
-
}
|
|
14924
|
-
if (this.props.plan) {
|
|
14925
|
-
const {
|
|
14926
|
-
plan
|
|
14927
|
-
} = this.props;
|
|
14928
|
-
this.setState({
|
|
14929
|
-
plan,
|
|
14930
|
-
disabled: false
|
|
14931
|
-
});
|
|
14932
|
-
}
|
|
14933
|
-
if (this.state.productList.length === 1) {
|
|
14934
|
-
this.setState({
|
|
14935
|
-
product: this.state.productList[0],
|
|
14936
|
-
planList: this.state.productList[0].plans,
|
|
14937
|
-
mode: "plan"
|
|
14938
|
-
});
|
|
14939
|
-
}
|
|
14940
|
-
if (this.state.productList.length === 0 && !window.Pelcro.user.isAuthenticated()) {
|
|
14941
|
-
this.props.setView("register");
|
|
14942
|
-
}
|
|
14943
|
-
document.addEventListener("keydown", this.handleSubmit);
|
|
14944
|
-
if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
|
|
14945
|
-
var _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$user, _window$Pelcro5, _window$Pelcro5$site;
|
|
14946
|
-
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;
|
|
14947
|
-
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;
|
|
14948
|
-
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;
|
|
14949
|
-
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 => {
|
|
14950
|
-
const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
|
|
14951
|
-
if (filteredPlans.length) return filteredPlans;
|
|
14952
|
-
});
|
|
14953
|
-
const productsMatchingUserCountry = productsMatchingUserCurrency.filter(product => {
|
|
14954
|
-
const filteredPlans = product.plans.filter(plan => {
|
|
14955
|
-
var _plan$countries;
|
|
14956
|
-
return plan.countries && ((_plan$countries = plan.countries) === null || _plan$countries === void 0 ? void 0 : _plan$countries.includes(userCountry)) || !plan.countries || !plan.countries.length;
|
|
14957
|
-
});
|
|
14958
|
-
if (filteredPlans.length) return filteredPlans;
|
|
14959
|
-
});
|
|
14960
|
-
notifyBugsnag(() => {
|
|
14961
|
-
Bugsnag.notify("SelectModal - No data viewed", event => {
|
|
14962
|
-
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;
|
|
14963
|
-
event.addMetadata("MetaData", {
|
|
14964
|
-
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(),
|
|
14965
|
-
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(),
|
|
14966
|
-
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,
|
|
14967
|
-
environment: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : _window$Pelcro9.environment,
|
|
14968
|
-
matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
|
|
14969
|
-
productListState: this.state.productList,
|
|
14970
|
-
methods: {
|
|
14971
|
-
productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst$1(),
|
|
14972
|
-
pelcroSDKProductsListMethod: window.Pelcro.product.list(),
|
|
14973
|
-
pelcroSDKGetByEntitlements: this.props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(this.props.matchingEntitlements) : null
|
|
14974
|
-
},
|
|
14975
|
-
userCurrency: userCurrency,
|
|
14976
|
-
userCountry: userCountry,
|
|
14977
|
-
userLanguage: userLanguage,
|
|
14978
|
-
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(),
|
|
14979
|
-
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,
|
|
14980
|
-
currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
|
|
14981
|
-
country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
|
|
14982
|
-
language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
|
|
14983
|
-
});
|
|
14984
|
-
});
|
|
14985
|
-
});
|
|
14986
|
-
}
|
|
14987
|
-
});
|
|
14988
|
-
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
14989
|
-
document.removeEventListener("keydown", this.handleSubmit);
|
|
14990
|
-
});
|
|
14991
|
-
_defineProperty$3(this, "handleSubmit", e => {
|
|
14992
|
-
if (e.key === "Enter" && !this.state.disabled) this.submitOption();
|
|
14993
|
-
});
|
|
14994
|
-
_defineProperty$3(this, "onProductChange", e => {
|
|
14995
|
-
const product = window.Pelcro.product.list()[e.target.selectedIndex];
|
|
14996
|
-
this.setState({
|
|
14997
|
-
product: product,
|
|
14998
|
-
plan: product.plans[0]
|
|
14999
|
-
});
|
|
15000
|
-
});
|
|
15001
|
-
_defineProperty$3(this, "onPlanChange", e => {
|
|
15002
|
-
this.setState({
|
|
15003
|
-
plan: this.state.product.plans[e.target.selectedIndex]
|
|
15004
|
-
});
|
|
15005
|
-
});
|
|
15006
|
-
_defineProperty$3(this, "onIsGiftChange", e => {
|
|
15007
|
-
this.setState({
|
|
15008
|
-
isGift: e.target.checked
|
|
15009
|
-
});
|
|
15010
|
-
});
|
|
15011
|
-
_defineProperty$3(this, "countStartPrice", arr => {
|
|
15012
|
-
let startingPlan = arr[0];
|
|
15013
|
-
for (const plan of arr) {
|
|
15014
|
-
if (plan.amount < startingPlan.amount) {
|
|
15015
|
-
startingPlan = plan;
|
|
15016
|
-
}
|
|
15017
|
-
}
|
|
15018
|
-
return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval}s` : `${startingPlan.interval}`}`;
|
|
15019
|
-
});
|
|
15020
|
-
_defineProperty$3(this, "renderOneProduct", (product, index, options) => {
|
|
15021
|
-
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
15022
|
-
const productButtonLabel = isPlanMode ? this.locale("buttons.back") : this.locale("buttons.select");
|
|
15023
|
-
const productButtonCallback = isPlanMode ? this.goBack : this.selectProduct;
|
|
15024
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
15025
|
-
key: product.id,
|
|
15026
|
-
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"}`
|
|
15027
|
-
}, product.image && /*#__PURE__*/React__default.createElement("img", {
|
|
15028
|
-
alt: `image of ${product.name}`,
|
|
15029
|
-
src: product.image,
|
|
15030
|
-
className: "plc-object-contain plc-w-1/4 pelcro-select-product-image"
|
|
15031
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
15032
|
-
className: `plc-flex plc-flex-wrap ${product.image ? "plc-w-3/4" : "plc-w-full"}`
|
|
15033
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15034
|
-
className: "plc-w-full pelcro-select-product-header"
|
|
15035
|
-
}, /*#__PURE__*/React__default.createElement("p", {
|
|
15036
|
-
className: "plc-font-bold pelcro-select-product-title"
|
|
15037
|
-
}, product.name), /*#__PURE__*/React__default.createElement("p", {
|
|
15038
|
-
className: "plc-text-xs pelcro-select-product-description"
|
|
15039
|
-
}, product.description)), /*#__PURE__*/React__default.createElement("div", {
|
|
15040
|
-
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
15041
|
-
}, product.plans && /*#__PURE__*/React__default.createElement("p", {
|
|
15042
|
-
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
15043
|
-
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
15044
|
-
onClick: productButtonCallback,
|
|
15045
|
-
"data-key": product.id,
|
|
15046
|
-
id: "pelcro-select-product-back-button",
|
|
15047
|
-
className: `plc-ml-auto plc-text-xs ${options !== null && options !== void 0 && options.emphasize ? "plc-bg-primary-700" : ""}`
|
|
15048
|
-
}, index === 0 && {
|
|
15049
|
-
autoFocus: true
|
|
15050
|
-
}), productButtonLabel))));
|
|
15051
|
-
});
|
|
15052
|
-
_defineProperty$3(this, "renderProducts", () => {
|
|
15053
|
-
const userDidSelectProduct = Boolean(this.state.mode === "plan");
|
|
15054
|
-
const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
|
|
15055
|
-
return productsToShow.map((product, index) => {
|
|
15056
|
-
if (product.plans.filter(plan => plan.type === "regular").length > 0) {
|
|
15057
|
-
return this.renderOneProduct(product, index);
|
|
15058
|
-
}
|
|
15059
|
-
});
|
|
15060
|
-
});
|
|
15061
|
-
_defineProperty$3(this, "renderMatchingProductsFirst", () => {
|
|
15062
|
-
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
15063
|
-
if (isPlanMode) {
|
|
15064
|
-
return this.renderOneProduct(this.state.product);
|
|
15065
|
-
}
|
|
15066
|
-
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst$1();
|
|
15067
|
-
|
|
15068
|
-
// Render normal products if there are no available matching products
|
|
15069
|
-
if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
|
|
15070
|
-
return this.renderProducts();
|
|
15071
|
-
}
|
|
15072
|
-
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h3", {
|
|
15073
|
-
className: "plc-text-sm plc-font-semibold"
|
|
15074
|
-
}, this.locale("labels.restrictiveArticles.subscribeTo")), productsThatMatchArticleTag.map((product, index) => this.renderOneProduct(product, index, {
|
|
15075
|
-
emphasize: true
|
|
15076
|
-
})), (allProductsMinusMatched === null || allProductsMinusMatched === void 0 ? void 0 : allProductsMinusMatched.length) > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("hr", {
|
|
15077
|
-
className: "plc-my-4"
|
|
15078
|
-
}), /*#__PURE__*/React__default.createElement("h3", {
|
|
15079
|
-
className: "plc-text-sm plc-font-semibold"
|
|
15080
|
-
}, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
|
|
15081
|
-
});
|
|
15082
|
-
_defineProperty$3(this, "renderPlans", () => {
|
|
15083
|
-
return this.state.planList.map(plan => {
|
|
15084
|
-
const isChecked = this.state.plan.id === plan.id ? true : false;
|
|
15085
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
15086
|
-
key: plan.id,
|
|
15087
|
-
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"
|
|
15088
|
-
}, /*#__PURE__*/React__default.createElement(Radio, {
|
|
15089
|
-
className: "plc-self-start pelcro-select-plan-radio",
|
|
15090
|
-
labelClassName: "plc-cursor-pointer plc-w-full",
|
|
15091
|
-
id: `pelcro-select-plan-${plan.id}`,
|
|
15092
|
-
name: "plan",
|
|
15093
|
-
checked: isChecked,
|
|
15094
|
-
"data-key": plan.id,
|
|
15095
|
-
onChange: this.selectPlan
|
|
15096
|
-
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", {
|
|
15097
|
-
className: "plc-font-bold pelcro-select-plan-title"
|
|
15098
|
-
}, plan.nickname), /*#__PURE__*/React__default.createElement("p", {
|
|
15099
|
-
className: "plc-text-xs pelcro-select-plan-description"
|
|
15100
|
-
}, plan.description)), /*#__PURE__*/React__default.createElement("p", {
|
|
15101
|
-
className: "plc-mt-3 plc-font-bold pelcro-select-plan-price"
|
|
15102
|
-
}, plan.amount_formatted)));
|
|
15103
|
-
});
|
|
15104
|
-
});
|
|
15105
|
-
_defineProperty$3(this, "selectProduct", e => {
|
|
15106
|
-
const id = e.target.dataset.key;
|
|
15107
|
-
for (const product of this.state.productList) {
|
|
15108
|
-
if (+product.id === +id) {
|
|
15109
|
-
var _this$state$plan;
|
|
15110
|
-
this.setState({
|
|
15111
|
-
product: product
|
|
15112
|
-
});
|
|
15113
|
-
this.setState({
|
|
15114
|
-
planList: product.plans.filter(plan => plan.type === "regular")
|
|
15115
|
-
});
|
|
15116
|
-
this.setState({
|
|
15117
|
-
mode: "plan"
|
|
15118
|
-
});
|
|
15119
|
-
const isSelectedPlanPartOfThisProduct = ((_this$state$plan = this.state.plan) === null || _this$state$plan === void 0 ? void 0 : _this$state$plan.product_id) === Number(product.id);
|
|
15120
|
-
if (isSelectedPlanPartOfThisProduct) {
|
|
15121
|
-
this.setState({
|
|
15122
|
-
disabled: false
|
|
15123
|
-
});
|
|
15124
|
-
}
|
|
15125
|
-
}
|
|
15126
|
-
}
|
|
15127
|
-
});
|
|
15128
|
-
_defineProperty$3(this, "selectPlan", e => {
|
|
15129
|
-
const id = e.target.dataset.key;
|
|
15130
|
-
for (const plan of this.state.planList) {
|
|
15131
|
-
if (+plan.id === +id) {
|
|
15132
|
-
plan.isCheked = true;
|
|
15133
|
-
this.setState({
|
|
15134
|
-
plan: plan
|
|
15135
|
-
});
|
|
15136
|
-
this.setState({
|
|
15137
|
-
disabled: false
|
|
15138
|
-
});
|
|
15139
|
-
} else {
|
|
15140
|
-
plan.isCheked = false;
|
|
15141
|
-
}
|
|
15142
|
-
}
|
|
15143
|
-
});
|
|
15144
|
-
_defineProperty$3(this, "goBack", () => {
|
|
15145
|
-
this.setState({
|
|
15146
|
-
disabled: true
|
|
15147
|
-
});
|
|
15148
|
-
this.setState({
|
|
15149
|
-
mode: "product"
|
|
15150
|
-
});
|
|
15151
|
-
});
|
|
15152
|
-
_defineProperty$3(this, "submitOption", () => {
|
|
15153
|
-
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
15154
|
-
const {
|
|
15155
|
-
product,
|
|
15156
|
-
isGift
|
|
15157
|
-
} = this.state;
|
|
15158
|
-
const {
|
|
15159
|
-
setView
|
|
15160
|
-
} = this.props;
|
|
15161
|
-
const isAuthenticated = window.Pelcro.user.isAuthenticated();
|
|
15162
|
-
const {
|
|
15163
|
-
switchToAddressView,
|
|
15164
|
-
switchToPaymentView
|
|
15165
|
-
} = usePelcro.getStore();
|
|
15166
|
-
if (!isAuthenticated) {
|
|
15167
|
-
return setView("register");
|
|
15168
|
-
}
|
|
15169
|
-
if (isGift) {
|
|
15170
|
-
return setView("gift-create");
|
|
15171
|
-
}
|
|
15172
|
-
if (product.address_required) {
|
|
15173
|
-
return switchToAddressView();
|
|
15174
|
-
}
|
|
15175
|
-
return switchToPaymentView();
|
|
15176
|
-
});
|
|
15177
|
-
_defineProperty$3(this, "displayLoginView", () => {
|
|
15178
|
-
this.props.setView("login");
|
|
15179
|
-
});
|
|
15180
|
-
this.state = {
|
|
15181
|
-
product: {},
|
|
15182
|
-
plan: {},
|
|
15183
|
-
isGift: props.isGift,
|
|
15184
|
-
disabled: true,
|
|
15185
|
-
mode: "product",
|
|
15186
|
-
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
15187
|
-
};
|
|
15188
|
-
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
15189
|
-
this.locale = this.props.t;
|
|
15190
|
-
this.closeButton = window.Pelcro.paywall.displayCloseButton();
|
|
15191
|
-
}
|
|
15192
|
-
render() {
|
|
15193
|
-
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
15194
|
-
const {
|
|
15195
|
-
disableGifting
|
|
15196
|
-
} = this.props;
|
|
15197
|
-
if (this.state.mode === "product") {
|
|
15198
|
-
var _ReactGA$event;
|
|
15199
|
-
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, {
|
|
15200
|
-
category: "VIEWS",
|
|
15201
|
-
action: "Product Modal Viewed",
|
|
15202
|
-
nonInteraction: true
|
|
15203
|
-
});
|
|
15204
|
-
} else if (this.state.mode === "plan") {
|
|
15205
|
-
var _ReactGA$event2;
|
|
15206
|
-
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, {
|
|
15207
|
-
category: "VIEWS",
|
|
15208
|
-
action: "Plan Modal Viewed",
|
|
15209
|
-
nonInteraction: true
|
|
15210
|
-
});
|
|
15211
|
-
}
|
|
15212
|
-
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
15213
|
-
hideCloseButton: !this.closeButton,
|
|
15214
|
-
onClose: this.props.onClose,
|
|
15215
|
-
id: "pelcro-selection-modal"
|
|
15216
|
-
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement("div", {
|
|
15217
|
-
id: "pelcro-selection-view"
|
|
15218
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15219
|
-
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
15220
|
-
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
15221
|
-
className: "plc-text-2xl plc-font-semibold"
|
|
15222
|
-
}, 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.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.createElement("div", {
|
|
15223
|
-
className: "pelcro-select-products-wrapper"
|
|
15224
|
-
}, (_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.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
15225
|
-
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
15226
|
-
}, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default.createElement("div", {
|
|
15227
|
-
className: "plc-flex plc-justify-center plc-mt-2"
|
|
15228
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
15229
|
-
onChange: this.onIsGiftChange,
|
|
15230
|
-
checked: this.state.isGift,
|
|
15231
|
-
id: "pelcro-input-is-gift"
|
|
15232
|
-
}, this.locale("messages.checkbox"))), /*#__PURE__*/React__default.createElement(Button, {
|
|
15233
|
-
disabled: this.state.disabled,
|
|
15234
|
-
onClick: this.submitOption,
|
|
15235
|
-
id: "pelcro-submit",
|
|
15236
|
-
className: "plc-w-full plc-mt-2"
|
|
15237
|
-
}, this.locale("buttons.next"))))), /*#__PURE__*/React__default.createElement(ModalFooter, null, !window.Pelcro.user.isAuthenticated() && /*#__PURE__*/React__default.createElement("p", null, this.locale("messages.alreadyHaveAccount") + " ", /*#__PURE__*/React__default.createElement(Link, {
|
|
15238
|
-
id: "pelcro-link-login",
|
|
15239
|
-
onClick: this.displayLoginView
|
|
15240
|
-
}, this.locale("messages.loginHere"))), /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
15241
|
-
}
|
|
15242
|
-
}
|
|
15243
|
-
const SelectModalWithTrans = withTranslation("select")(SelectModal);
|
|
15244
|
-
|
|
15245
|
-
/**
|
|
15246
|
-
*
|
|
15247
|
-
*/
|
|
15248
|
-
function DonationModalWithHook(props) {
|
|
15249
|
-
React__default.useEffect(() => {
|
|
15250
|
-
var _props$onDisplay;
|
|
15251
|
-
(_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
|
|
15252
|
-
}, []);
|
|
15253
|
-
const {
|
|
15254
|
-
isGift,
|
|
15255
|
-
plan,
|
|
15256
|
-
product,
|
|
15257
|
-
isRenewingGift,
|
|
15258
|
-
switchView,
|
|
15259
|
-
resetView,
|
|
15260
|
-
view,
|
|
15261
|
-
set
|
|
15262
|
-
} = usePelcro();
|
|
15263
|
-
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
15264
|
-
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
15265
|
-
return /*#__PURE__*/React__default.createElement(DonationModalWithTrans, {
|
|
15266
|
-
isGift: isGift,
|
|
15267
|
-
disableGifting: isRenewingGift,
|
|
15268
|
-
plan: plan,
|
|
15269
|
-
product: product,
|
|
15270
|
-
onClose: () => {
|
|
15271
|
-
var _props$onClose;
|
|
15272
|
-
(_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
|
|
15273
|
-
resetView();
|
|
15274
|
-
},
|
|
15275
|
-
setProductAndPlan: (product, plan, isGift, selectedDonationAmount, customDonationAmount) => set({
|
|
15276
|
-
product,
|
|
15277
|
-
plan,
|
|
15278
|
-
isGift,
|
|
15279
|
-
selectedDonationAmount,
|
|
15280
|
-
customDonationAmount
|
|
15281
|
-
}),
|
|
15282
|
-
setView: switchView,
|
|
15283
|
-
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
15284
|
-
});
|
|
15285
|
-
}
|
|
15286
|
-
function productsWithMatchedTaggedFirst() {
|
|
15287
|
-
var _window$Pelcro$produc;
|
|
15288
|
-
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
15289
|
-
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
15290
|
-
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
15291
|
-
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
14541
|
+
return true;
|
|
14542
|
+
}
|
|
14543
|
+
const siteLanguage = window.Pelcro.helpers.getHtmlLanguageAttribute();
|
|
14544
|
+
return product.language === siteLanguage;
|
|
15292
14545
|
}
|
|
15293
|
-
|
|
15294
|
-
class
|
|
14546
|
+
SelectModalWithHook.viewId = "plan-select";
|
|
14547
|
+
class SelectModal extends Component {
|
|
15295
14548
|
constructor(props) {
|
|
15296
14549
|
super(props);
|
|
15297
14550
|
_defineProperty$3(this, "componentDidMount", () => {
|
|
@@ -15322,39 +14575,53 @@ class DonationModal extends Component {
|
|
|
15322
14575
|
mode: "plan"
|
|
15323
14576
|
});
|
|
15324
14577
|
}
|
|
15325
|
-
|
|
15326
|
-
|
|
15327
|
-
|
|
15328
|
-
// !window.Pelcro.user.isAuthenticated()
|
|
15329
|
-
// ) {
|
|
15330
|
-
// this.props.setView("register");
|
|
15331
|
-
// }
|
|
15332
|
-
|
|
14578
|
+
if (this.state.productList.length === 0 && !window.Pelcro.user.isAuthenticated()) {
|
|
14579
|
+
this.props.setView("register");
|
|
14580
|
+
}
|
|
15333
14581
|
document.addEventListener("keydown", this.handleSubmit);
|
|
15334
14582
|
if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
|
|
15335
|
-
var _window$
|
|
15336
|
-
const userCurrency = (_window$
|
|
15337
|
-
const userCountry = (_window$
|
|
15338
|
-
(_window$
|
|
15339
|
-
const productsMatchingUserCurrency = (_window$
|
|
14583
|
+
var _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$user, _window$Pelcro5, _window$Pelcro5$site;
|
|
14584
|
+
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;
|
|
14585
|
+
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;
|
|
14586
|
+
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;
|
|
14587
|
+
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 => {
|
|
15340
14588
|
const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
|
|
15341
14589
|
if (filteredPlans.length) return filteredPlans;
|
|
15342
14590
|
});
|
|
15343
|
-
productsMatchingUserCurrency.filter(product => {
|
|
14591
|
+
const productsMatchingUserCountry = productsMatchingUserCurrency.filter(product => {
|
|
15344
14592
|
const filteredPlans = product.plans.filter(plan => {
|
|
15345
14593
|
var _plan$countries;
|
|
15346
14594
|
return plan.countries && ((_plan$countries = plan.countries) === null || _plan$countries === void 0 ? void 0 : _plan$countries.includes(userCountry)) || !plan.countries || !plan.countries.length;
|
|
15347
14595
|
});
|
|
15348
14596
|
if (filteredPlans.length) return filteredPlans;
|
|
15349
14597
|
});
|
|
15350
|
-
|
|
15351
|
-
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15355
|
-
|
|
15356
|
-
|
|
14598
|
+
notifyBugsnag(() => {
|
|
14599
|
+
Bugsnag.notify("SelectModal - No data viewed", event => {
|
|
14600
|
+
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;
|
|
14601
|
+
event.addMetadata("MetaData", {
|
|
14602
|
+
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(),
|
|
14603
|
+
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(),
|
|
14604
|
+
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,
|
|
14605
|
+
environment: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : _window$Pelcro9.environment,
|
|
14606
|
+
matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
|
|
14607
|
+
productListState: this.state.productList,
|
|
14608
|
+
methods: {
|
|
14609
|
+
productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst(),
|
|
14610
|
+
pelcroSDKProductsListMethod: window.Pelcro.product.list(),
|
|
14611
|
+
pelcroSDKGetByEntitlements: this.props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(this.props.matchingEntitlements) : null
|
|
14612
|
+
},
|
|
14613
|
+
userCurrency: userCurrency,
|
|
14614
|
+
userCountry: userCountry,
|
|
14615
|
+
userLanguage: userLanguage,
|
|
14616
|
+
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(),
|
|
14617
|
+
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,
|
|
14618
|
+
currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
|
|
14619
|
+
country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
|
|
14620
|
+
language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
|
|
14621
|
+
});
|
|
14622
|
+
});
|
|
15357
14623
|
});
|
|
14624
|
+
console.log("bugsnag Triggered");
|
|
15358
14625
|
}
|
|
15359
14626
|
});
|
|
15360
14627
|
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
@@ -15410,7 +14677,9 @@ class DonationModal extends Component {
|
|
|
15410
14677
|
className: "plc-text-xs pelcro-select-product-description"
|
|
15411
14678
|
}, product.description)), /*#__PURE__*/React__default.createElement("div", {
|
|
15412
14679
|
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
15413
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
14680
|
+
}, product.plans && /*#__PURE__*/React__default.createElement("p", {
|
|
14681
|
+
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
14682
|
+
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
15414
14683
|
onClick: productButtonCallback,
|
|
15415
14684
|
"data-key": product.id,
|
|
15416
14685
|
id: "pelcro-select-product-back-button",
|
|
@@ -15450,90 +14719,24 @@ class DonationModal extends Component {
|
|
|
15450
14719
|
_defineProperty$3(this, "renderPlans", () => {
|
|
15451
14720
|
return this.state.planList.map(plan => {
|
|
15452
14721
|
const isChecked = this.state.plan.id === plan.id ? true : false;
|
|
15453
|
-
let planDetails = /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
15454
|
-
className: "plc-bg-gray-100 plc-rounded-md plc-p-3 plc-mt-3 plc-text-sm plc-flex plc-items-center"
|
|
15455
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15456
|
-
className: "plc-flex plc-items-center plc-flex-1"
|
|
15457
|
-
}, "Auto renew:", " ", /*#__PURE__*/React__default.createElement("span", {
|
|
15458
|
-
className: "plc-inline-flex plc-w-6 plc-ml-1"
|
|
15459
|
-
}, plan.auto_renew ? /*#__PURE__*/React__default.createElement(SvgCheck, {
|
|
15460
|
-
className: "plc-text-green-500"
|
|
15461
|
-
}) : /*#__PURE__*/React__default.createElement(SvgXIcon, {
|
|
15462
|
-
className: "plc-text-red-500"
|
|
15463
|
-
})), " "), /*#__PURE__*/React__default.createElement("div", {
|
|
15464
|
-
className: "plc-flex plc-items-center plc-flex-1"
|
|
15465
|
-
}, "Renewed every:", " ", /*#__PURE__*/React__default.createElement("span", {
|
|
15466
|
-
className: "plc-inline-flex plc-w-6 plc-ml-1 plc-font-bold plc-capitalize"
|
|
15467
|
-
}, plan.interval || "-"))), plan.preset_donation_values && /*#__PURE__*/React__default.createElement("div", {
|
|
15468
|
-
className: "plc-mt-3 plc-pt-3 plc-border-t plc-border-gray-200"
|
|
15469
|
-
}, /*#__PURE__*/React__default.createElement("h5", {
|
|
15470
|
-
className: "plc-mb-4 plc-font-medium plc-text-center"
|
|
15471
|
-
}, "Select amount"), /*#__PURE__*/React__default.createElement("ul", {
|
|
15472
|
-
className: "plc-grid plc-grid-cols-2 plc-gap-3"
|
|
15473
|
-
}, plan.preset_donation_values.map(value => /*#__PURE__*/React__default.createElement("li", {
|
|
15474
|
-
key: value
|
|
15475
|
-
}, /*#__PURE__*/React__default.createElement("button", {
|
|
15476
|
-
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"}`,
|
|
15477
|
-
onClick: () => {
|
|
15478
|
-
this.setState({
|
|
15479
|
-
selectedDonationAmount: +value,
|
|
15480
|
-
customDonationAmount: "",
|
|
15481
|
-
disabled: false
|
|
15482
|
-
});
|
|
15483
|
-
}
|
|
15484
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
15485
|
-
className: "plc-font-bold plc-mr-1"
|
|
15486
|
-
}, value), /*#__PURE__*/React__default.createElement("span", {
|
|
15487
|
-
className: "plc-uppercase"
|
|
15488
|
-
}, plan === null || plan === void 0 ? void 0 : plan.currency))))), /*#__PURE__*/React__default.createElement("div", {
|
|
15489
|
-
className: "plc-relative plc-py-3 plc-mt-3"
|
|
15490
|
-
}, /*#__PURE__*/React__default.createElement("hr", null), " ", /*#__PURE__*/React__default.createElement("span", {
|
|
15491
|
-
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"
|
|
15492
|
-
}, "or"))), /*#__PURE__*/React__default.createElement("div", {
|
|
15493
|
-
className: "plc-relative plc-mt-3"
|
|
15494
|
-
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
15495
|
-
type: "number",
|
|
15496
|
-
value: this.state.customDonationAmount,
|
|
15497
|
-
onChange: e => {
|
|
15498
|
-
if (+e.target.value > 0) {
|
|
15499
|
-
this.setState({
|
|
15500
|
-
customDonationAmount: +e.target.value,
|
|
15501
|
-
selectedDonationAmount: null,
|
|
15502
|
-
disabled: false
|
|
15503
|
-
});
|
|
15504
|
-
} else {
|
|
15505
|
-
this.setState({
|
|
15506
|
-
customDonationAmount: ""
|
|
15507
|
-
});
|
|
15508
|
-
this.setState({
|
|
15509
|
-
disabled: true
|
|
15510
|
-
});
|
|
15511
|
-
}
|
|
15512
|
-
},
|
|
15513
|
-
placeholder: "Donate a custom amount ...",
|
|
15514
|
-
className: "plc-pr-14",
|
|
15515
|
-
wrapperClassName: "plc-mb-0"
|
|
15516
|
-
}), /*#__PURE__*/React__default.createElement("span", {
|
|
15517
|
-
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"
|
|
15518
|
-
}, plan.currency)));
|
|
15519
14722
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
15520
14723
|
key: plan.id,
|
|
15521
|
-
className:
|
|
14724
|
+
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"
|
|
15522
14725
|
}, /*#__PURE__*/React__default.createElement(Radio, {
|
|
15523
|
-
className: "plc-self-start pelcro-select-plan-radio
|
|
15524
|
-
labelClassName: "plc-cursor-pointer plc-w-full
|
|
14726
|
+
className: "plc-self-start pelcro-select-plan-radio",
|
|
14727
|
+
labelClassName: "plc-cursor-pointer plc-w-full",
|
|
15525
14728
|
id: `pelcro-select-plan-${plan.id}`,
|
|
15526
14729
|
name: "plan",
|
|
15527
14730
|
checked: isChecked,
|
|
15528
14731
|
"data-key": plan.id,
|
|
15529
14732
|
onChange: this.selectPlan
|
|
15530
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15531
|
-
className: "plc-text-center"
|
|
15532
|
-
}, /*#__PURE__*/React__default.createElement("p", {
|
|
14733
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", {
|
|
15533
14734
|
className: "plc-font-bold pelcro-select-plan-title"
|
|
15534
14735
|
}, plan.nickname), /*#__PURE__*/React__default.createElement("p", {
|
|
15535
14736
|
className: "plc-text-xs pelcro-select-plan-description"
|
|
15536
|
-
}, plan.description))
|
|
14737
|
+
}, plan.description)), /*#__PURE__*/React__default.createElement("p", {
|
|
14738
|
+
className: "plc-mt-3 plc-font-bold pelcro-select-plan-price"
|
|
14739
|
+
}, plan.amount_formatted)));
|
|
15537
14740
|
});
|
|
15538
14741
|
});
|
|
15539
14742
|
_defineProperty$3(this, "selectProduct", e => {
|
|
@@ -15541,15 +14744,13 @@ class DonationModal extends Component {
|
|
|
15541
14744
|
for (const product of this.state.productList) {
|
|
15542
14745
|
if (+product.id === +id) {
|
|
15543
14746
|
var _this$state$plan;
|
|
15544
|
-
const planList = product.plans.filter(plan => plan.type === "donation");
|
|
15545
|
-
if (planList.length === 1) {
|
|
15546
|
-
this.setState({
|
|
15547
|
-
plan: planList[0]
|
|
15548
|
-
});
|
|
15549
|
-
}
|
|
15550
14747
|
this.setState({
|
|
15551
|
-
product: product
|
|
15552
|
-
|
|
14748
|
+
product: product
|
|
14749
|
+
});
|
|
14750
|
+
this.setState({
|
|
14751
|
+
planList: product.plans
|
|
14752
|
+
});
|
|
14753
|
+
this.setState({
|
|
15553
14754
|
mode: "plan"
|
|
15554
14755
|
});
|
|
15555
14756
|
const isSelectedPlanPartOfThisProduct = ((_this$state$plan = this.state.plan) === null || _this$state$plan === void 0 ? void 0 : _this$state$plan.product_id) === Number(product.id);
|
|
@@ -15562,12 +14763,6 @@ class DonationModal extends Component {
|
|
|
15562
14763
|
}
|
|
15563
14764
|
});
|
|
15564
14765
|
_defineProperty$3(this, "selectPlan", e => {
|
|
15565
|
-
this.setState({
|
|
15566
|
-
selectedDonationAmount: null
|
|
15567
|
-
});
|
|
15568
|
-
this.setState({
|
|
15569
|
-
disabled: true
|
|
15570
|
-
});
|
|
15571
14766
|
const id = e.target.dataset.key;
|
|
15572
14767
|
for (const plan of this.state.planList) {
|
|
15573
14768
|
if (+plan.id === +id) {
|
|
@@ -15575,6 +14770,9 @@ class DonationModal extends Component {
|
|
|
15575
14770
|
this.setState({
|
|
15576
14771
|
plan: plan
|
|
15577
14772
|
});
|
|
14773
|
+
this.setState({
|
|
14774
|
+
disabled: false
|
|
14775
|
+
});
|
|
15578
14776
|
} else {
|
|
15579
14777
|
plan.isCheked = false;
|
|
15580
14778
|
}
|
|
@@ -15589,7 +14787,7 @@ class DonationModal extends Component {
|
|
|
15589
14787
|
});
|
|
15590
14788
|
});
|
|
15591
14789
|
_defineProperty$3(this, "submitOption", () => {
|
|
15592
|
-
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift
|
|
14790
|
+
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
15593
14791
|
const {
|
|
15594
14792
|
product,
|
|
15595
14793
|
isGift
|
|
@@ -15602,14 +14800,12 @@ class DonationModal extends Component {
|
|
|
15602
14800
|
switchToAddressView,
|
|
15603
14801
|
switchToPaymentView
|
|
15604
14802
|
} = usePelcro.getStore();
|
|
15605
|
-
if (!isAuthenticated
|
|
14803
|
+
if (!isAuthenticated) {
|
|
15606
14804
|
return setView("register");
|
|
15607
14805
|
}
|
|
15608
|
-
|
|
15609
|
-
|
|
15610
|
-
|
|
15611
|
-
// }
|
|
15612
|
-
|
|
14806
|
+
if (isGift) {
|
|
14807
|
+
return setView("gift-create");
|
|
14808
|
+
}
|
|
15613
14809
|
if (product.address_required) {
|
|
15614
14810
|
return switchToAddressView();
|
|
15615
14811
|
}
|
|
@@ -15618,16 +14814,13 @@ class DonationModal extends Component {
|
|
|
15618
14814
|
_defineProperty$3(this, "displayLoginView", () => {
|
|
15619
14815
|
this.props.setView("login");
|
|
15620
14816
|
});
|
|
15621
|
-
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);
|
|
15622
14817
|
this.state = {
|
|
15623
14818
|
product: {},
|
|
15624
14819
|
plan: {},
|
|
15625
14820
|
isGift: props.isGift,
|
|
15626
14821
|
disabled: true,
|
|
15627
14822
|
mode: "product",
|
|
15628
|
-
productList:
|
|
15629
|
-
selectedDonationAmount: null,
|
|
15630
|
-
customDonationAmount: ""
|
|
14823
|
+
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
15631
14824
|
};
|
|
15632
14825
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
15633
14826
|
this.locale = this.props.t;
|
|
@@ -15635,17 +14828,19 @@ class DonationModal extends Component {
|
|
|
15635
14828
|
}
|
|
15636
14829
|
render() {
|
|
15637
14830
|
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
15638
|
-
|
|
14831
|
+
const {
|
|
14832
|
+
disableGifting
|
|
14833
|
+
} = this.props;
|
|
15639
14834
|
if (this.state.mode === "product") {
|
|
15640
14835
|
var _ReactGA$event;
|
|
15641
|
-
|
|
14836
|
+
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, {
|
|
15642
14837
|
category: "VIEWS",
|
|
15643
14838
|
action: "Product Modal Viewed",
|
|
15644
14839
|
nonInteraction: true
|
|
15645
14840
|
});
|
|
15646
14841
|
} else if (this.state.mode === "plan") {
|
|
15647
14842
|
var _ReactGA$event2;
|
|
15648
|
-
|
|
14843
|
+
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, {
|
|
15649
14844
|
category: "VIEWS",
|
|
15650
14845
|
action: "Plan Modal Viewed",
|
|
15651
14846
|
nonInteraction: true
|
|
@@ -15664,16 +14859,25 @@ class DonationModal extends Component {
|
|
|
15664
14859
|
}, 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.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.createElement("div", {
|
|
15665
14860
|
className: "pelcro-select-products-wrapper"
|
|
15666
14861
|
}, (_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.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
15667
|
-
className: "plc-overflow-y-scroll pelcro-select-plans-wrapper"
|
|
15668
|
-
}, this.renderPlans()), /*#__PURE__*/React__default.createElement(
|
|
14862
|
+
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
14863
|
+
}, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default.createElement("div", {
|
|
14864
|
+
className: "plc-flex plc-justify-center plc-mt-2"
|
|
14865
|
+
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
14866
|
+
onChange: this.onIsGiftChange,
|
|
14867
|
+
checked: this.state.isGift,
|
|
14868
|
+
id: "pelcro-input-is-gift"
|
|
14869
|
+
}, this.locale("messages.checkbox"))), /*#__PURE__*/React__default.createElement(Button, {
|
|
15669
14870
|
disabled: this.state.disabled,
|
|
15670
|
-
onClick:
|
|
14871
|
+
onClick: this.submitOption,
|
|
15671
14872
|
id: "pelcro-submit",
|
|
15672
14873
|
className: "plc-w-full plc-mt-2"
|
|
15673
|
-
}, this.locale("buttons.
|
|
14874
|
+
}, this.locale("buttons.next"))))), /*#__PURE__*/React__default.createElement(ModalFooter, null, !window.Pelcro.user.isAuthenticated() && /*#__PURE__*/React__default.createElement("p", null, this.locale("messages.alreadyHaveAccount") + " ", /*#__PURE__*/React__default.createElement(Link, {
|
|
14875
|
+
id: "pelcro-link-login",
|
|
14876
|
+
onClick: this.displayLoginView
|
|
14877
|
+
}, this.locale("messages.loginHere"))), /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
15674
14878
|
}
|
|
15675
14879
|
}
|
|
15676
|
-
const
|
|
14880
|
+
const SelectModalWithTrans = withTranslation("select")(SelectModal);
|
|
15677
14881
|
|
|
15678
14882
|
var Provider_1 = createCommonjsModule(function (module, exports) {
|
|
15679
14883
|
|
|
@@ -17887,15 +17091,11 @@ const initialState$k = {
|
|
|
17887
17091
|
firstName: "",
|
|
17888
17092
|
lastName: "",
|
|
17889
17093
|
phone: "",
|
|
17890
|
-
email: "",
|
|
17891
|
-
password: "",
|
|
17892
17094
|
firstNameError: null,
|
|
17893
17095
|
lastNameError: null,
|
|
17894
17096
|
phoneError: null,
|
|
17895
|
-
emailError: null,
|
|
17896
17097
|
month: "",
|
|
17897
17098
|
year: "",
|
|
17898
|
-
passwordError: null,
|
|
17899
17099
|
cyberSourceSessionId: null,
|
|
17900
17100
|
alert: {
|
|
17901
17101
|
type: "error",
|
|
@@ -17929,11 +17129,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17929
17129
|
set,
|
|
17930
17130
|
order,
|
|
17931
17131
|
selectedPaymentMethodId,
|
|
17932
|
-
couponCode
|
|
17933
|
-
selectedDonationAmount,
|
|
17934
|
-
customDonationAmount,
|
|
17935
|
-
isAuthenticated,
|
|
17936
|
-
switchView
|
|
17132
|
+
couponCode
|
|
17937
17133
|
} = usePelcro();
|
|
17938
17134
|
const {
|
|
17939
17135
|
whenUserReady
|
|
@@ -17965,22 +17161,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17965
17161
|
});
|
|
17966
17162
|
updateTotalAmountWithTax();
|
|
17967
17163
|
}, []);
|
|
17968
|
-
const fireBugSnag = _ref2 => {
|
|
17969
|
-
let {
|
|
17970
|
-
error,
|
|
17971
|
-
title
|
|
17972
|
-
} = _ref2;
|
|
17973
|
-
notifyBugsnag(() => {
|
|
17974
|
-
Bugsnag.notify(title !== null && title !== void 0 ? title : "ERROR", event => {
|
|
17975
|
-
var _document$getElementB, _document$querySelect;
|
|
17976
|
-
event.addMetadata("MetaData", {
|
|
17977
|
-
error: error !== null && error !== void 0 ? error : "ERROR",
|
|
17978
|
-
paymentModalViewed: (_document$getElementB = !!document.getElementById("pelcro-subscription-create-modal")) !== null && _document$getElementB !== void 0 ? _document$getElementB : false,
|
|
17979
|
-
errorAppeared: (_document$querySelect = !!document.querySelector(".pelcro-alert-error")) !== null && _document$querySelect !== void 0 ? _document$querySelect : false
|
|
17980
|
-
});
|
|
17981
|
-
});
|
|
17982
|
-
});
|
|
17983
|
-
};
|
|
17984
17164
|
|
|
17985
17165
|
/*====== Start Cybersource integration ========*/
|
|
17986
17166
|
const cybersourceErrorHandle = err => {
|
|
@@ -17990,10 +17170,10 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17990
17170
|
const errorMessages = [];
|
|
17991
17171
|
|
|
17992
17172
|
// enumerable error (ex: validation errors)
|
|
17993
|
-
Object.values(err === null || err === void 0 ? void 0 : (_err$details2 = err.details) === null || _err$details2 === void 0 ? void 0 : (_err$details2$respons = _err$details2.responseStatus) === null || _err$details2$respons === void 0 ? void 0 : _err$details2$respons.details).forEach(
|
|
17173
|
+
Object.values(err === null || err === void 0 ? void 0 : (_err$details2 = err.details) === null || _err$details2 === void 0 ? void 0 : (_err$details2$respons = _err$details2.responseStatus) === null || _err$details2$respons === void 0 ? void 0 : _err$details2$respons.details).forEach(_ref2 => {
|
|
17994
17174
|
let {
|
|
17995
17175
|
message
|
|
17996
|
-
} =
|
|
17176
|
+
} = _ref2;
|
|
17997
17177
|
errorMessages.push(message);
|
|
17998
17178
|
});
|
|
17999
17179
|
|
|
@@ -18255,7 +17435,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18255
17435
|
|
|
18256
17436
|
/*====== Start Tap integration ========*/
|
|
18257
17437
|
const submitUsingTap = state => {
|
|
18258
|
-
var _ref4, _ref5,
|
|
17438
|
+
var _ref3, _ref4, _ref5, _state$updatedPrice;
|
|
18259
17439
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
18260
17440
|
if (isUsingExistingPaymentMethod) {
|
|
18261
17441
|
// no need to create a new source using tap
|
|
@@ -18279,15 +17459,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18279
17459
|
return total + item.price * item.quantity;
|
|
18280
17460
|
}, 0);
|
|
18281
17461
|
};
|
|
18282
|
-
|
|
18283
|
-
if (state.updatedPrice) return state.updatedPrice;
|
|
18284
|
-
if (plan.type === "donation" && (selectedDonationAmount || customDonationAmount)) {
|
|
18285
|
-
return selectedDonationAmount ? selectedDonationAmount * plan.amount : customDonationAmount * plan.amount;
|
|
18286
|
-
} else {
|
|
18287
|
-
return plan.amount;
|
|
18288
|
-
}
|
|
18289
|
-
}
|
|
18290
|
-
const totalAmount = (_ref4 = (_ref5 = (_getPlanAmount = getPlanAmount()) !== null && _getPlanAmount !== void 0 ? _getPlanAmount : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref5 !== void 0 ? _ref5 : getOrderItemsTotal()) !== null && _ref4 !== void 0 ? _ref4 : 10;
|
|
17462
|
+
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;
|
|
18291
17463
|
tapInstanceRef.current.createToken(tapInstanceCard.current).then(function (result) {
|
|
18292
17464
|
if (result.error) {
|
|
18293
17465
|
// Inform the user if there was an error
|
|
@@ -18769,21 +17941,13 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18769
17941
|
}, [selectedPaymentMethodId]);
|
|
18770
17942
|
const initPaymentRequest = (state, dispatch) => {
|
|
18771
17943
|
if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
|
|
18772
|
-
function getPlanAmount() {
|
|
18773
|
-
if (state.updatedPrice) return state.updatedPrice;
|
|
18774
|
-
if (plan.type === "donation" && (selectedDonationAmount || customDonationAmount)) {
|
|
18775
|
-
return selectedDonationAmount ? selectedDonationAmount * plan.amount : customDonationAmount * plan.amount;
|
|
18776
|
-
} else {
|
|
18777
|
-
return plan.amount;
|
|
18778
|
-
}
|
|
18779
|
-
}
|
|
18780
17944
|
try {
|
|
18781
17945
|
const paymentRequest = stripe.paymentRequest({
|
|
18782
17946
|
country: window.Pelcro.user.location.countryCode || "US",
|
|
18783
17947
|
currency: plan.currency,
|
|
18784
17948
|
total: {
|
|
18785
17949
|
label: plan.nickname || plan.description,
|
|
18786
|
-
amount:
|
|
17950
|
+
amount: state.updatedPrice || plan.amount
|
|
18787
17951
|
}
|
|
18788
17952
|
});
|
|
18789
17953
|
|
|
@@ -18815,12 +17979,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18815
17979
|
error
|
|
18816
17980
|
} = _ref7;
|
|
18817
17981
|
if (error) {
|
|
18818
|
-
handlePaymentError(error);
|
|
18819
|
-
fireBugSnag({
|
|
18820
|
-
error,
|
|
18821
|
-
title: "generate3DSecureSource - ERROR"
|
|
18822
|
-
});
|
|
18823
|
-
return;
|
|
17982
|
+
return handlePaymentError(error);
|
|
18824
17983
|
}
|
|
18825
17984
|
toggleAuthenticationPendingView(true, source);
|
|
18826
17985
|
});
|
|
@@ -19104,18 +18263,13 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19104
18263
|
});
|
|
19105
18264
|
if (res.error) {
|
|
19106
18265
|
onFailure(res.error);
|
|
19107
|
-
dispatch({
|
|
18266
|
+
return dispatch({
|
|
19108
18267
|
type: SHOW_ALERT,
|
|
19109
18268
|
payload: {
|
|
19110
18269
|
type: "error",
|
|
19111
18270
|
content: isSubCreate ? t("messages.tryAgainFromInvoice") : getErrorMessages(res.error)
|
|
19112
18271
|
}
|
|
19113
18272
|
});
|
|
19114
|
-
fireBugSnag({
|
|
19115
|
-
error: getErrorMessages(res.error),
|
|
19116
|
-
title: "StripeConfirmCardPayment - ERROR"
|
|
19117
|
-
});
|
|
19118
|
-
return;
|
|
19119
18273
|
}
|
|
19120
18274
|
onSuccess(res);
|
|
19121
18275
|
});
|
|
@@ -19131,18 +18285,13 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19131
18285
|
payload: false
|
|
19132
18286
|
});
|
|
19133
18287
|
onFailure(error);
|
|
19134
|
-
dispatch({
|
|
18288
|
+
return dispatch({
|
|
19135
18289
|
type: SHOW_ALERT,
|
|
19136
18290
|
payload: {
|
|
19137
18291
|
type: "error",
|
|
19138
18292
|
content: isSubCreate ? t("messages.tryAgainFromInvoice") : t("messages.cardAuthFailed")
|
|
19139
18293
|
}
|
|
19140
18294
|
});
|
|
19141
|
-
fireBugSnag({
|
|
19142
|
-
error: getErrorMessages(error),
|
|
19143
|
-
title: "StripeConfirmCardPayment - ERROR"
|
|
19144
|
-
});
|
|
19145
|
-
return;
|
|
19146
18295
|
} else {
|
|
19147
18296
|
onSuccess(response);
|
|
19148
18297
|
}
|
|
@@ -19157,18 +18306,13 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19157
18306
|
});
|
|
19158
18307
|
if (error) {
|
|
19159
18308
|
onFailure(error);
|
|
19160
|
-
dispatch({
|
|
18309
|
+
return dispatch({
|
|
19161
18310
|
type: SHOW_ALERT,
|
|
19162
18311
|
payload: {
|
|
19163
18312
|
type: "error",
|
|
19164
18313
|
content: getErrorMessages(error)
|
|
19165
18314
|
}
|
|
19166
18315
|
});
|
|
19167
|
-
fireBugSnag({
|
|
19168
|
-
error: getErrorMessages(error),
|
|
19169
|
-
title: "StripeConfirmCardPayment - ERROR"
|
|
19170
|
-
});
|
|
19171
|
-
return;
|
|
19172
18316
|
}
|
|
19173
18317
|
onSuccess(response);
|
|
19174
18318
|
}
|
|
@@ -19494,50 +18638,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19494
18638
|
}
|
|
19495
18639
|
});
|
|
19496
18640
|
};
|
|
19497
|
-
const sendRegisterRequest = (state, callback) => {
|
|
19498
|
-
window.Pelcro.user.register({
|
|
19499
|
-
email: state.email,
|
|
19500
|
-
password: generatePassword()
|
|
19501
|
-
}, (err, res) => {
|
|
19502
|
-
if (err) {
|
|
19503
|
-
var _err$response, _err$response$data;
|
|
19504
|
-
let {
|
|
19505
|
-
registered_on_other_sites,
|
|
19506
|
-
...errors
|
|
19507
|
-
} = 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;
|
|
19508
|
-
err.response.data.errors = {
|
|
19509
|
-
...errors
|
|
19510
|
-
};
|
|
19511
|
-
let errorContent;
|
|
19512
|
-
if (getErrorMessages(err) === "This email is already in use.") {
|
|
19513
|
-
errorContent = /*#__PURE__*/React__default.createElement("p", null, "This email is already in use.", " ", /*#__PURE__*/React__default.createElement("button", {
|
|
19514
|
-
className: "plc-font-bold plc-underline hover:plc-no-underline",
|
|
19515
|
-
onClick: () => switchView("login")
|
|
19516
|
-
}, "Login to continue"));
|
|
19517
|
-
} else {
|
|
19518
|
-
errorContent = getErrorMessages(err);
|
|
19519
|
-
}
|
|
19520
|
-
dispatch({
|
|
19521
|
-
type: SHOW_ALERT,
|
|
19522
|
-
payload: {
|
|
19523
|
-
type: "error",
|
|
19524
|
-
content: errorContent
|
|
19525
|
-
}
|
|
19526
|
-
});
|
|
19527
|
-
dispatch({
|
|
19528
|
-
type: DISABLE_SUBMIT,
|
|
19529
|
-
payload: false
|
|
19530
|
-
});
|
|
19531
|
-
dispatch({
|
|
19532
|
-
type: LOADING,
|
|
19533
|
-
payload: false
|
|
19534
|
-
});
|
|
19535
|
-
onFailure(err);
|
|
19536
|
-
} else {
|
|
19537
|
-
callback();
|
|
19538
|
-
}
|
|
19539
|
-
});
|
|
19540
|
-
};
|
|
19541
18641
|
const submitPayment = (state, dispatch) => {
|
|
19542
18642
|
if (skipPayment && props !== null && props !== void 0 && props.freeOrders) {
|
|
19543
18643
|
const isQuickPurchase = !Array.isArray(order);
|
|
@@ -19565,7 +18665,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19565
18665
|
stripe.createSource({
|
|
19566
18666
|
type: "card"
|
|
19567
18667
|
}).then(_ref9 => {
|
|
19568
|
-
var _ref10, _ref11, _state$
|
|
18668
|
+
var _ref10, _ref11, _state$updatedPrice2;
|
|
19569
18669
|
let {
|
|
19570
18670
|
source,
|
|
19571
18671
|
error
|
|
@@ -19588,7 +18688,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19588
18688
|
return total + item.price * item.quantity;
|
|
19589
18689
|
}, 0);
|
|
19590
18690
|
};
|
|
19591
|
-
(_ref10 = (_ref11 = (_state$
|
|
18691
|
+
(_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();
|
|
19592
18692
|
return handlePayment(source);
|
|
19593
18693
|
}).catch(error => {
|
|
19594
18694
|
return handlePaymentError(error);
|
|
@@ -19799,47 +18899,25 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19799
18899
|
return submitPayment(state);
|
|
19800
18900
|
}
|
|
19801
18901
|
if (getSiteCardProcessor() === "vantiv") {
|
|
19802
|
-
|
|
19803
|
-
return sendRegisterRequest(state, () => submitUsingVantiv(state));
|
|
19804
|
-
} else {
|
|
19805
|
-
return submitUsingVantiv(state);
|
|
19806
|
-
}
|
|
18902
|
+
return submitUsingVantiv(state);
|
|
19807
18903
|
}
|
|
19808
18904
|
if (getSiteCardProcessor() === "tap") {
|
|
19809
|
-
|
|
19810
|
-
return sendRegisterRequest(state, () => submitUsingTap(state));
|
|
19811
|
-
} else {
|
|
19812
|
-
return submitUsingTap(state);
|
|
19813
|
-
}
|
|
19814
|
-
}
|
|
19815
|
-
if (getSiteCardProcessor() === "cybersource") {
|
|
19816
|
-
return submitUsingCybersource(state, dispatch);
|
|
18905
|
+
return submitUsingTap(state);
|
|
19817
18906
|
}
|
|
19818
18907
|
if (getSiteCardProcessor() === "cybersource") {
|
|
19819
18908
|
return submitUsingCybersource(state, dispatch);
|
|
19820
18909
|
}
|
|
19821
18910
|
if (selectedPaymentMethodId) {
|
|
19822
|
-
|
|
19823
|
-
|
|
19824
|
-
|
|
19825
|
-
|
|
19826
|
-
|
|
19827
|
-
} else {
|
|
19828
|
-
// pay with selected method (source) if exists already
|
|
19829
|
-
return handlePayment({
|
|
19830
|
-
id: selectedPaymentMethodId,
|
|
19831
|
-
isExistingSource: true
|
|
19832
|
-
});
|
|
19833
|
-
}
|
|
18911
|
+
// pay with selected method (source) if exists already
|
|
18912
|
+
return handlePayment({
|
|
18913
|
+
id: selectedPaymentMethodId,
|
|
18914
|
+
isExistingSource: true
|
|
18915
|
+
});
|
|
19834
18916
|
}
|
|
19835
18917
|
if (type === "updatePaymentSource") {
|
|
19836
18918
|
return updatePaymentSource(state, dispatch);
|
|
19837
18919
|
}
|
|
19838
|
-
|
|
19839
|
-
return sendRegisterRequest(state, () => submitPayment(state));
|
|
19840
|
-
} else {
|
|
19841
|
-
return submitPayment(state);
|
|
19842
|
-
}
|
|
18920
|
+
submitPayment(state);
|
|
19843
18921
|
});
|
|
19844
18922
|
case HANDLE_PAYPAL_SUBSCRIPTION:
|
|
19845
18923
|
return lib_5(state, (state, dispatch) => {
|
|
@@ -19924,18 +19002,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19924
19002
|
phone: action.payload,
|
|
19925
19003
|
phoneError: null
|
|
19926
19004
|
});
|
|
19927
|
-
case SET_EMAIL:
|
|
19928
|
-
return lib_7({
|
|
19929
|
-
...state,
|
|
19930
|
-
email: action.payload,
|
|
19931
|
-
emailError: null
|
|
19932
|
-
});
|
|
19933
|
-
case SET_PASSWORD:
|
|
19934
|
-
return lib_7({
|
|
19935
|
-
...state,
|
|
19936
|
-
password: action.payload,
|
|
19937
|
-
passwordError: null
|
|
19938
|
-
});
|
|
19939
19005
|
case SET_FIRST_NAME_ERROR:
|
|
19940
19006
|
return lib_7({
|
|
19941
19007
|
...state,
|
|
@@ -19954,18 +19020,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19954
19020
|
phoneError: action.payload,
|
|
19955
19021
|
phone: null
|
|
19956
19022
|
});
|
|
19957
|
-
case SET_EMAIL_ERROR:
|
|
19958
|
-
return lib_7({
|
|
19959
|
-
...state,
|
|
19960
|
-
emailError: action.payload,
|
|
19961
|
-
email: ""
|
|
19962
|
-
});
|
|
19963
|
-
case SET_PASSWORD_ERROR:
|
|
19964
|
-
return lib_7({
|
|
19965
|
-
...state,
|
|
19966
|
-
passwordError: action.payload,
|
|
19967
|
-
password: ""
|
|
19968
|
-
});
|
|
19969
19023
|
case SHOW_ALERT:
|
|
19970
19024
|
return lib_7({
|
|
19971
19025
|
...state,
|
|
@@ -20004,14 +19058,18 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20004
19058
|
const UnwrappedForm = es_12(PaymentMethodContainerWithoutStripe);
|
|
20005
19059
|
const PaymentMethodContainer = props => {
|
|
20006
19060
|
const [isStripeLoaded, setIsStripeLoaded] = useState(Boolean(window.Stripe));
|
|
20007
|
-
|
|
19061
|
+
const {
|
|
19062
|
+
whenUserReady
|
|
19063
|
+
} = usePelcro.getStore();
|
|
20008
19064
|
const cardProcessor = getSiteCardProcessor();
|
|
20009
19065
|
useEffect(() => {
|
|
20010
|
-
|
|
20011
|
-
|
|
20012
|
-
|
|
20013
|
-
|
|
20014
|
-
|
|
19066
|
+
whenUserReady(() => {
|
|
19067
|
+
if (!window.Stripe && cardProcessor === "stripe") {
|
|
19068
|
+
document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
|
|
19069
|
+
setIsStripeLoaded(true);
|
|
19070
|
+
});
|
|
19071
|
+
}
|
|
19072
|
+
});
|
|
20015
19073
|
}, []);
|
|
20016
19074
|
if (isStripeLoaded) {
|
|
20017
19075
|
return /*#__PURE__*/React__default.createElement(es_13, {
|
|
@@ -20304,15 +19362,13 @@ const DiscountedPrice = props => {
|
|
|
20304
19362
|
};
|
|
20305
19363
|
|
|
20306
19364
|
const SubmitPaymentMethod = _ref => {
|
|
20307
|
-
var _plan$quantity,
|
|
19365
|
+
var _plan$quantity, _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
20308
19366
|
let {
|
|
20309
19367
|
onClick,
|
|
20310
19368
|
...otherProps
|
|
20311
19369
|
} = _ref;
|
|
20312
19370
|
const {
|
|
20313
19371
|
plan,
|
|
20314
|
-
selectedDonationAmount,
|
|
20315
|
-
customDonationAmount,
|
|
20316
19372
|
selectedPaymentMethodId
|
|
20317
19373
|
} = usePelcro();
|
|
20318
19374
|
const {
|
|
@@ -20324,8 +19380,6 @@ const SubmitPaymentMethod = _ref => {
|
|
|
20324
19380
|
firstNameError,
|
|
20325
19381
|
lastNameError,
|
|
20326
19382
|
phoneError,
|
|
20327
|
-
emailError,
|
|
20328
|
-
passwordError,
|
|
20329
19383
|
firstName,
|
|
20330
19384
|
lastName,
|
|
20331
19385
|
phone,
|
|
@@ -20338,7 +19392,7 @@ const SubmitPaymentMethod = _ref => {
|
|
|
20338
19392
|
} = useContext(store$k);
|
|
20339
19393
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
20340
19394
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
20341
|
-
const priceFormatted =
|
|
19395
|
+
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
20342
19396
|
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);
|
|
20343
19397
|
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);
|
|
20344
19398
|
const isUserFirstName = Boolean(window.Pelcro.user.read().first_name);
|
|
@@ -20349,9 +19403,9 @@ const SubmitPaymentMethod = _ref => {
|
|
|
20349
19403
|
if (supportsTap && isUserFirstName && isUserLastName && isUserPhone) {
|
|
20350
19404
|
setDisabled(disableSubmit);
|
|
20351
19405
|
} else {
|
|
20352
|
-
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) ||
|
|
19406
|
+
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));
|
|
20353
19407
|
}
|
|
20354
|
-
}, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone,
|
|
19408
|
+
}, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone, month, year]);
|
|
20355
19409
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
20356
19410
|
role: "submit",
|
|
20357
19411
|
className: "plc-w-full plc-py-3",
|
|
@@ -20986,10 +20040,6 @@ const OrderCreateFreeButton = _ref => {
|
|
|
20986
20040
|
}, otherProps), t("labels.submit"));
|
|
20987
20041
|
};
|
|
20988
20042
|
|
|
20989
|
-
const DonationEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
20990
|
-
store: store$k
|
|
20991
|
-
}, props));
|
|
20992
|
-
|
|
20993
20043
|
/**
|
|
20994
20044
|
*
|
|
20995
20045
|
*/
|
|
@@ -21009,10 +20059,6 @@ function PaymentMethodView(_ref) {
|
|
|
21009
20059
|
const {
|
|
21010
20060
|
t
|
|
21011
20061
|
} = useTranslation("checkoutForm");
|
|
21012
|
-
const {
|
|
21013
|
-
plan,
|
|
21014
|
-
isAuthenticated
|
|
21015
|
-
} = usePelcro();
|
|
21016
20062
|
const cardProcessor = getSiteCardProcessor();
|
|
21017
20063
|
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);
|
|
21018
20064
|
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);
|
|
@@ -21070,12 +20116,6 @@ function PaymentMethodView(_ref) {
|
|
|
21070
20116
|
errorId: "pelcro-input-phone-error",
|
|
21071
20117
|
label: t("labels.phone"),
|
|
21072
20118
|
required: true
|
|
21073
|
-
})), !isAuthenticated() && (plan === null || plan === void 0 ? void 0 : plan.type) === "donation" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(DonationEmail, {
|
|
21074
|
-
id: "pelcro-input-email",
|
|
21075
|
-
errorId: "pelcro-input-email-error",
|
|
21076
|
-
label: t("labels.email"),
|
|
21077
|
-
required: true,
|
|
21078
|
-
autoFocus: true
|
|
21079
20119
|
})), /*#__PURE__*/React__default.createElement(CheckoutForm, null), showCoupon && /*#__PURE__*/React__default.createElement("div", {
|
|
21080
20120
|
className: "plc-mb-2"
|
|
21081
20121
|
}, /*#__PURE__*/React__default.createElement(CouponCode, null), /*#__PURE__*/React__default.createElement(DiscountedPrice, null)), /*#__PURE__*/React__default.createElement(TaxAmount, null), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -21395,7 +20435,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
21395
20435
|
switchView(null);
|
|
21396
20436
|
|
|
21397
20437
|
//Show confirmation alert after closing the modal
|
|
21398
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
20438
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
21399
20439
|
cancelSubscription(payload, onSuccess, onFailure);
|
|
21400
20440
|
}, {
|
|
21401
20441
|
confirmMessage: t("messages.subCancellation.isSureToCancelNow"),
|
|
@@ -21467,7 +20507,7 @@ const SubscriptionCancelLaterButton = _ref => {
|
|
|
21467
20507
|
switchView(null);
|
|
21468
20508
|
|
|
21469
20509
|
//Show confirmation alert after closing the modal
|
|
21470
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
20510
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
21471
20511
|
cancelSubscription(payload, onSuccess, onFailure);
|
|
21472
20512
|
}, {
|
|
21473
20513
|
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
@@ -21704,7 +20744,7 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
21704
20744
|
switchView(null);
|
|
21705
20745
|
|
|
21706
20746
|
//Show confirmation alert after closing the modal
|
|
21707
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
20747
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
21708
20748
|
suspendSubscription(payload, onSuccess, onFailure);
|
|
21709
20749
|
}, {
|
|
21710
20750
|
confirmMessage: t("messages.subCancellation.isSureToSuspendNow"),
|
|
@@ -22424,14 +21464,12 @@ const SubscriptionCreateView = _ref => {
|
|
|
22424
21464
|
} = useTranslation("checkoutForm");
|
|
22425
21465
|
const {
|
|
22426
21466
|
product,
|
|
22427
|
-
plan
|
|
22428
|
-
selectedDonationAmount,
|
|
22429
|
-
customDonationAmount
|
|
21467
|
+
plan
|
|
22430
21468
|
} = usePelcro();
|
|
22431
21469
|
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;
|
|
22432
21470
|
const showSubscriptionButton = skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0;
|
|
22433
21471
|
const getPricingText = plan => {
|
|
22434
|
-
var _plan$quantity
|
|
21472
|
+
var _plan$quantity;
|
|
22435
21473
|
const autoRenewed = plan.auto_renew;
|
|
22436
21474
|
const {
|
|
22437
21475
|
interval,
|
|
@@ -22441,7 +21479,7 @@ const SubscriptionCreateView = _ref => {
|
|
|
22441
21479
|
interval,
|
|
22442
21480
|
count: interval_count
|
|
22443
21481
|
});
|
|
22444
|
-
const priceFormatted =
|
|
21482
|
+
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());
|
|
22445
21483
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
22446
21484
|
className: "plc-text-gray-600"
|
|
22447
21485
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -23764,7 +22802,7 @@ const AddressCreateContainer = _ref => {
|
|
|
23764
22802
|
});
|
|
23765
22803
|
return onFailure(err);
|
|
23766
22804
|
}
|
|
23767
|
-
notify.success(t("messages.addressUpdated"));
|
|
22805
|
+
notify$1.success(t("messages.addressUpdated"));
|
|
23768
22806
|
return onMembershipAdressUpdateSuccess(res);
|
|
23769
22807
|
});
|
|
23770
22808
|
}
|
|
@@ -26647,16 +25685,6 @@ const GiftCreateContainer = _ref => {
|
|
|
26647
25685
|
return onFailure();
|
|
26648
25686
|
}
|
|
26649
25687
|
}
|
|
26650
|
-
if (giftRecipient.giftMessage && !isStringValid(giftRecipient.giftMessage)) {
|
|
26651
|
-
dispatch({
|
|
26652
|
-
type: SHOW_ALERT,
|
|
26653
|
-
payload: {
|
|
26654
|
-
type: "error",
|
|
26655
|
-
content: t("gift.messages.giftMessageAllowedCharacters")
|
|
26656
|
-
}
|
|
26657
|
-
});
|
|
26658
|
-
return onFailure();
|
|
26659
|
-
}
|
|
26660
25688
|
set({
|
|
26661
25689
|
giftRecipient
|
|
26662
25690
|
});
|
|
@@ -27265,7 +26293,7 @@ const AddressSelectContainer = _ref => {
|
|
|
27265
26293
|
});
|
|
27266
26294
|
return onFailure(err);
|
|
27267
26295
|
}
|
|
27268
|
-
notify.success(t("messages.addressUpdated"));
|
|
26296
|
+
notify$1.success(t("messages.addressUpdated"));
|
|
27269
26297
|
return onMembershipAdressUpdateSuccess(res);
|
|
27270
26298
|
});
|
|
27271
26299
|
}
|
|
@@ -29226,7 +28254,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29226
28254
|
return switchView("email-verify");
|
|
29227
28255
|
}
|
|
29228
28256
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
29229
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
28257
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
29230
28258
|
cancelSubscription(sub.id, onSuccess, onFailure);
|
|
29231
28259
|
}, {
|
|
29232
28260
|
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
@@ -29243,7 +28271,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29243
28271
|
if (userMustVerifyEmail()) {
|
|
29244
28272
|
return switchView("email-verify");
|
|
29245
28273
|
}
|
|
29246
|
-
reactivateSubscription(sub.id
|
|
28274
|
+
reactivateSubscription(sub.id);
|
|
29247
28275
|
};
|
|
29248
28276
|
|
|
29249
28277
|
// Renew click
|
|
@@ -29281,7 +28309,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29281
28309
|
return switchView("email-verify");
|
|
29282
28310
|
}
|
|
29283
28311
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
29284
|
-
notify.confirm((onSuccess, onFailure) => {
|
|
28312
|
+
notify$1.confirm((onSuccess, onFailure) => {
|
|
29285
28313
|
unSuspendSubscription(sub.id, onSuccess, onFailure);
|
|
29286
28314
|
}, {
|
|
29287
28315
|
confirmMessage: t("messages.subUnSuspend.isSureToUnSuspend"),
|
|
@@ -29363,7 +28391,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29363
28391
|
onClick: onCancelClick,
|
|
29364
28392
|
disabled: disableSubmit,
|
|
29365
28393
|
"data-key": sub.id
|
|
29366
|
-
}, t("labels.unsubscribe")) : "", (sub === null || sub === void 0 ? void 0 : (_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) ===
|
|
28394
|
+
}, 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.createElement(Button, {
|
|
29367
28395
|
variant: "ghost",
|
|
29368
28396
|
className: "plc-text-blue-400 pelcro-dashboard-sub-manage-members-button",
|
|
29369
28397
|
icon: /*#__PURE__*/React__default.createElement(SvgRefresh, null),
|
|
@@ -29410,10 +28438,7 @@ const SubscriptionsItems = _ref => {
|
|
|
29410
28438
|
};
|
|
29411
28439
|
function getNonDonationSubs() {
|
|
29412
28440
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3;
|
|
29413
|
-
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 =>
|
|
29414
|
-
var _sub$plan2;
|
|
29415
|
-
return ((_sub$plan2 = sub.plan) === null || _sub$plan2 === void 0 ? void 0 : _sub$plan2.type) !== "donation";
|
|
29416
|
-
})) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
28441
|
+
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 : [];
|
|
29417
28442
|
}
|
|
29418
28443
|
function isDateAfterToday(date) {
|
|
29419
28444
|
const today = new Date().setHours(0, 0, 0, 0);
|
|
@@ -29701,7 +28726,6 @@ function SvgQrcode(props) {
|
|
|
29701
28726
|
|
|
29702
28727
|
const DonationsMenu = _ref => {
|
|
29703
28728
|
let {
|
|
29704
|
-
onClose,
|
|
29705
28729
|
reactivateSubscription,
|
|
29706
28730
|
disableSubmit,
|
|
29707
28731
|
cancelSubscription
|
|
@@ -29713,10 +28737,10 @@ const DonationsMenu = _ref => {
|
|
|
29713
28737
|
switchView,
|
|
29714
28738
|
setSubscriptionToCancel
|
|
29715
28739
|
} = usePelcro();
|
|
29716
|
-
const
|
|
29717
|
-
console.log("Sub", sub);
|
|
28740
|
+
const subscriptions = getDonationSubs().sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
|
|
29718
28741
|
// Cancel button click handlers
|
|
29719
28742
|
const onCancelClick = () => {
|
|
28743
|
+
var _onClose;
|
|
29720
28744
|
const isImmediateCancelationEnabled = window.Pelcro.site.read().cancel_settings.status;
|
|
29721
28745
|
if (isImmediateCancelationEnabled) {
|
|
29722
28746
|
setSubscriptionToCancel(sub.id);
|
|
@@ -29725,16 +28749,16 @@ const DonationsMenu = _ref => {
|
|
|
29725
28749
|
if (userMustVerifyEmail()) {
|
|
29726
28750
|
return switchView("email-verify");
|
|
29727
28751
|
}
|
|
29728
|
-
onClose === null ||
|
|
28752
|
+
(_onClose = onClose) === null || _onClose === void 0 ? void 0 : _onClose();
|
|
29729
28753
|
notify.confirm((onSuccess, onFailure) => {
|
|
29730
28754
|
cancelSubscription(sub.id, onSuccess, onFailure);
|
|
29731
28755
|
}, {
|
|
29732
|
-
confirmMessage: t("messages.
|
|
29733
|
-
loadingMessage: t("messages.
|
|
29734
|
-
successMessage: t("messages.
|
|
29735
|
-
errorMessage: t("messages.
|
|
28756
|
+
confirmMessage: t("messages.subCancellation.isSureToCancel"),
|
|
28757
|
+
loadingMessage: t("messages.subCancellation.loading"),
|
|
28758
|
+
successMessage: t("messages.subCancellation.success"),
|
|
28759
|
+
errorMessage: t("messages.subCancellation.error")
|
|
29736
28760
|
}, {
|
|
29737
|
-
closeButtonLabel: t("labels.
|
|
28761
|
+
closeButtonLabel: t("labels.subCancellation.goBack")
|
|
29738
28762
|
});
|
|
29739
28763
|
};
|
|
29740
28764
|
|
|
@@ -29743,7 +28767,7 @@ const DonationsMenu = _ref => {
|
|
|
29743
28767
|
if (userMustVerifyEmail()) {
|
|
29744
28768
|
return switchView("email-verify");
|
|
29745
28769
|
}
|
|
29746
|
-
reactivateSubscription(sub.id
|
|
28770
|
+
reactivateSubscription(sub.id);
|
|
29747
28771
|
};
|
|
29748
28772
|
return /*#__PURE__*/React__default.createElement("tr", {
|
|
29749
28773
|
key: sub.id,
|
|
@@ -29784,18 +28808,12 @@ const DonationsMenu = _ref => {
|
|
|
29784
28808
|
className: "plc-w-3/12 "
|
|
29785
28809
|
}, t("labels.actions")))), /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", {
|
|
29786
28810
|
className: "plc-h-4"
|
|
29787
|
-
}),
|
|
28811
|
+
}), subscriptions));
|
|
29788
28812
|
};
|
|
29789
28813
|
function getDonationSubs() {
|
|
29790
28814
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r, _window$Pelcro$user$r2;
|
|
29791
|
-
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 =>
|
|
29792
|
-
|
|
29793
|
-
return ((_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) === "donation";
|
|
29794
|
-
})) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
29795
|
-
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 => {
|
|
29796
|
-
var _sub$plan2;
|
|
29797
|
-
return ((_sub$plan2 = sub.plan) === null || _sub$plan2 === void 0 ? void 0 : _sub$plan2.type) === "donation";
|
|
29798
|
-
})) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
|
|
28815
|
+
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 : [];
|
|
28816
|
+
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 : [];
|
|
29799
28817
|
return [...donations, ...canceledDonations];
|
|
29800
28818
|
}
|
|
29801
28819
|
function formatStartDate(date) {
|
|
@@ -30186,7 +29204,7 @@ class Dashboard extends Component {
|
|
|
30186
29204
|
const formattedRenewDate = new Intl.DateTimeFormat("en-CA").format(renewDate);
|
|
30187
29205
|
return `${this.locale("labels.renewsOn")} ${formattedRenewDate}`;
|
|
30188
29206
|
});
|
|
30189
|
-
_defineProperty$3(this, "reactivateSubscription",
|
|
29207
|
+
_defineProperty$3(this, "reactivateSubscription", subscription_id => {
|
|
30190
29208
|
// disable the Login button to prevent repeated clicks
|
|
30191
29209
|
this.setState({
|
|
30192
29210
|
disableSubmit: true
|
|
@@ -30200,17 +29218,9 @@ class Dashboard extends Component {
|
|
|
30200
29218
|
});
|
|
30201
29219
|
this.props.onClose();
|
|
30202
29220
|
if (err) {
|
|
30203
|
-
|
|
30204
|
-
return notify.error(this.locale("messages.donationReactivation.error"));
|
|
30205
|
-
} else {
|
|
30206
|
-
return notify.error(this.locale("messages.subReactivation.error"));
|
|
30207
|
-
}
|
|
30208
|
-
}
|
|
30209
|
-
if (isDonation) {
|
|
30210
|
-
return notify.success(this.locale("messages.donationReactivation.success"));
|
|
30211
|
-
} else {
|
|
30212
|
-
return notify.success(this.locale("messages.subReactivation.success"));
|
|
29221
|
+
return notify$1.error(this.locale("messages.subReactivation.error"));
|
|
30213
29222
|
}
|
|
29223
|
+
return notify$1.success(this.locale("messages.subReactivation.success"));
|
|
30214
29224
|
});
|
|
30215
29225
|
});
|
|
30216
29226
|
_defineProperty$3(this, "getSubscriptionStatus", sub => {
|
|
@@ -30572,7 +29582,6 @@ class Dashboard extends Component {
|
|
|
30572
29582
|
}),
|
|
30573
29583
|
title: this.locale("labels.donations"),
|
|
30574
29584
|
content: /*#__PURE__*/React__default.createElement(DonationsMenu, {
|
|
30575
|
-
onClose: this.props.onClose,
|
|
30576
29585
|
reactivateSubscription: this.reactivateSubscription,
|
|
30577
29586
|
disableSubmit: this.state.disableSubmit,
|
|
30578
29587
|
cancelSubscription: this.cancelSubscription
|
|
@@ -30614,14 +29623,8 @@ function hasInvoices() {
|
|
|
30614
29623
|
}
|
|
30615
29624
|
function hasDonationSubs() {
|
|
30616
29625
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
|
|
30617
|
-
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 =>
|
|
30618
|
-
|
|
30619
|
-
return ((_sub$plan = sub.plan) === null || _sub$plan === void 0 ? void 0 : _sub$plan.type) === "donation";
|
|
30620
|
-
})) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
30621
|
-
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 => {
|
|
30622
|
-
var _sub$plan2;
|
|
30623
|
-
return ((_sub$plan2 = sub.plan) === null || _sub$plan2 === void 0 ? void 0 : _sub$plan2.type) === "donation";
|
|
30624
|
-
})) !== null && _window$Pelcro$user$r4 !== void 0 ? _window$Pelcro$user$r4 : [];
|
|
29626
|
+
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 : [];
|
|
29627
|
+
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 : [];
|
|
30625
29628
|
return donations.length > 0 || canceledDonations.length > 0;
|
|
30626
29629
|
}
|
|
30627
29630
|
function hasActiveMemberships() {
|
|
@@ -32786,7 +31789,7 @@ function VerifyLinkTokenModal(_ref) {
|
|
|
32786
31789
|
var _props$onSuccess;
|
|
32787
31790
|
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
32788
31791
|
resetView();
|
|
32789
|
-
notify.success(t("messages.success"));
|
|
31792
|
+
notify$1.success(t("messages.success"));
|
|
32790
31793
|
};
|
|
32791
31794
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
32792
31795
|
id: "pelcro-login-modal",
|
|
@@ -34444,4 +33447,4 @@ const QrCodeModal = _ref => {
|
|
|
34444
33447
|
};
|
|
34445
33448
|
QrCodeModal.viewId = "qrcode";
|
|
34446
33449
|
|
|
34447
|
-
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankAuthenticationSuccess, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice,
|
|
33450
|
+
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankAuthenticationSuccess, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, IncludeFirstName, IncludeLastName, IncludePhone, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateFreeButton, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserNameInput, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateTin, UserUpdateUsername, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify$1 as notify, unauthenticatedButtons, usePelcro };
|