@pelcro/react-pelcro-js 3.25.0-beta.2 → 3.25.0

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