@pelcro/react-pelcro-js 3.22.0-beta.15 → 3.22.0-beta.17

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$j = {
3256
+ var buttons$n = {
3257
3257
  account: "My account",
3258
3258
  login: "Login",
3259
3259
  subscribe: "Subscribe"
@@ -3331,7 +3331,7 @@ var confirm$b = {
3331
3331
  };
3332
3332
  var common_en = {
3333
3333
  validation: validation$3,
3334
- buttons: buttons$j,
3334
+ buttons: buttons$n,
3335
3335
  dashboard: dashboard$4,
3336
3336
  select: select$7,
3337
3337
  confirm: confirm$b
@@ -3362,7 +3362,7 @@ var paymentMethod_en = {
3362
3362
  var title$z = "Enter your email to subscribe to our newsletter";
3363
3363
  var updateTitle$3 = "Update newsletter selections";
3364
3364
  var subtitle$f = "We may use your email for other marketing communication";
3365
- var labels$12 = {
3365
+ var labels$16 = {
3366
3366
  submit: "Submit",
3367
3367
  firstName: "First name",
3368
3368
  lastName: "Last name",
@@ -3370,7 +3370,7 @@ var labels$12 = {
3370
3370
  postalCode: "Postal code",
3371
3371
  required: "required"
3372
3372
  };
3373
- var messages$17 = {
3373
+ var messages$1b = {
3374
3374
  alreadyHaveAccount: "Already have an account?",
3375
3375
  success: "Newsletters were successfully updated",
3376
3376
  loginHere: "Login here.",
@@ -3381,14 +3381,14 @@ var newsletter_en = {
3381
3381
  title: title$z,
3382
3382
  updateTitle: updateTitle$3,
3383
3383
  subtitle: subtitle$f,
3384
- labels: labels$12,
3385
- messages: messages$17
3384
+ labels: labels$16,
3385
+ messages: messages$1b
3386
3386
  };
3387
3387
 
3388
- var labels$11 = {
3388
+ var labels$15 = {
3389
3389
  "continue": "Continue to content"
3390
3390
  };
3391
- var messages$16 = {
3391
+ var messages$1a = {
3392
3392
  yourFreeTrial: "Subscription successful!",
3393
3393
  youHaveAccess: "Hope you enjoy the subscription. Please contact us if you have any questions or concerns.",
3394
3394
  clickToLearn: {
@@ -3414,12 +3414,12 @@ var errors$j = {
3414
3414
  "": ""
3415
3415
  };
3416
3416
  var success_en = {
3417
- labels: labels$11,
3418
- messages: messages$16,
3417
+ labels: labels$15,
3418
+ messages: messages$1a,
3419
3419
  errors: errors$j
3420
3420
  };
3421
3421
 
3422
- var messages$15 = {
3422
+ var messages$19 = {
3423
3423
  freeVisits: "Free visits left:",
3424
3424
  subscribeNow: "Subscribe",
3425
3425
  alreadyHaveAccount: "Already have an account?",
@@ -3429,16 +3429,16 @@ var errors$i = {
3429
3429
  "": ""
3430
3430
  };
3431
3431
  var meter_en = {
3432
- messages: messages$15,
3432
+ messages: messages$19,
3433
3433
  errors: errors$i
3434
3434
  };
3435
3435
 
3436
- var messages$14 = {
3436
+ var messages$18 = {
3437
3437
  youAreSafe: "You're safe - PCI compliant 128 SSL by",
3438
3438
  bankRedirection: "Please hold, redirecting you to your bank.",
3439
3439
  bankAuthenticationSuccess: "Please wait while we process your request."
3440
3440
  };
3441
- var labels$10 = {
3441
+ var labels$14 = {
3442
3442
  card: "Enter card number",
3443
3443
  date: "Expiration date",
3444
3444
  CVC: "CVC",
@@ -3458,11 +3458,12 @@ var labels$10 = {
3458
3458
  firstName: "First name",
3459
3459
  lastName: "Last name",
3460
3460
  phone: "Phone",
3461
- freeItems: "Free Items"
3461
+ freeItems: "Free Items",
3462
+ email: "Email"
3462
3463
  };
3463
3464
  var checkoutForm_en = {
3464
- messages: messages$14,
3465
- labels: labels$10
3465
+ messages: messages$18,
3466
+ labels: labels$14
3466
3467
  };
3467
3468
 
3468
3469
  var youAreSafe$3 = "You're safe - PCI compliant 128 SSL by";
@@ -3486,7 +3487,7 @@ var messages_en = {
3486
3487
  zeroTotalInvoice: zeroTotalInvoice$3
3487
3488
  };
3488
3489
 
3489
- var labels$$ = {
3490
+ var labels$13 = {
3490
3491
  email: "Enter email",
3491
3492
  username: "Enter username",
3492
3493
  password: "Enter password",
@@ -3495,7 +3496,7 @@ var labels$$ = {
3495
3496
  passwordPlaceholder: "Password",
3496
3497
  login: "Login"
3497
3498
  };
3498
- var messages$13 = {
3499
+ var messages$17 = {
3499
3500
  loginTo: "Login to your account",
3500
3501
  welcome: "Welcome back, sign in with your existing account.",
3501
3502
  dontHaveAccount: "Don't have an account yet?",
@@ -3514,28 +3515,28 @@ var errors$h = {
3514
3515
  "": ""
3515
3516
  };
3516
3517
  var login_en = {
3517
- labels: labels$$,
3518
- messages: messages$13,
3518
+ labels: labels$13,
3519
+ messages: messages$17,
3519
3520
  errors: errors$h
3520
3521
  };
3521
3522
 
3522
- var labels$_ = {
3523
+ var labels$12 = {
3523
3524
  title: "Verifying Passwordless Link",
3524
3525
  instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
3525
3526
  resend: "Resend email"
3526
3527
  };
3527
- var messages$12 = {
3528
+ var messages$16 = {
3528
3529
  resent: "Resent successfully",
3529
3530
  success: "You have logged in successfully"
3530
3531
  };
3531
3532
  var verifyLinkToken_en = {
3532
- labels: labels$_,
3533
- messages: messages$12
3533
+ labels: labels$12,
3534
+ messages: messages$16
3534
3535
  };
3535
3536
 
3536
3537
  var title$y = "Create an account";
3537
3538
  var subtitle$e = "Enter your email and password below";
3538
- var labels$Z = {
3539
+ var labels$11 = {
3539
3540
  signUpFacebook: "Sign up with Facebook",
3540
3541
  signUpGoogle: "Sign up with Google",
3541
3542
  signUpEmail: "Sign up with Email",
@@ -3548,7 +3549,7 @@ var labels$Z = {
3548
3549
  lastName: "Last name",
3549
3550
  phone: "Phone"
3550
3551
  };
3551
- var messages$11 = {
3552
+ var messages$15 = {
3552
3553
  alreadyHaveAccount: "Already have an account?",
3553
3554
  createAccount: "Create account",
3554
3555
  loginHere: "login here. ",
@@ -3622,14 +3623,14 @@ var redeem$3 = {
3622
3623
  var register_en = {
3623
3624
  title: title$y,
3624
3625
  subtitle: subtitle$e,
3625
- labels: labels$Z,
3626
- messages: messages$11,
3626
+ labels: labels$11,
3627
+ messages: messages$15,
3627
3628
  errors: errors$g,
3628
3629
  gift: gift$3,
3629
3630
  redeem: redeem$3
3630
3631
  };
3631
3632
 
3632
- var labels$Y = {
3633
+ var labels$10 = {
3633
3634
  title: "Want to update your profile?",
3634
3635
  subtitle: "Enter your information below to update your profile",
3635
3636
  email: "Email",
@@ -3648,21 +3649,21 @@ var labels$Y = {
3648
3649
  zoom: "Zoom",
3649
3650
  tin: "Tax Identification Number"
3650
3651
  };
3651
- var messages$10 = {
3652
+ var messages$14 = {
3652
3653
  userUpdated: "Thanks! Your profile was updated successfully.",
3653
3654
  pictureRemoved: "Your profile picture was removed successfully.",
3654
3655
  pictureUpdated: "Your profile picture was updated successfully."
3655
3656
  };
3656
3657
  var userEdit_en = {
3657
- labels: labels$Y,
3658
- messages: messages$10
3658
+ labels: labels$10,
3659
+ messages: messages$14
3659
3660
  };
3660
3661
 
3661
3662
  var title$x = "Enter your shipping address";
3662
3663
  var titleGifting$3 = "Enter your address";
3663
3664
  var selectAddressTitle$3 = "Please select an address";
3664
3665
  var selectAddressSubtitle$3 = "Select one of your saved addresses, or add a new one";
3665
- var labels$X = {
3666
+ var labels$$ = {
3666
3667
  address: "Address",
3667
3668
  code: "Postal Code/Zip",
3668
3669
  city: "City",
@@ -3673,12 +3674,12 @@ var labels$X = {
3673
3674
  required: "required",
3674
3675
  isDefault: "Set as default"
3675
3676
  };
3676
- var buttons$i = {
3677
+ var buttons$m = {
3677
3678
  submit: "Submit",
3678
3679
  selectAddress: "Select address",
3679
3680
  addAddress: "Add new address"
3680
3681
  };
3681
- var messages$$ = {
3682
+ var messages$13 = {
3682
3683
  addressUpdated: "The address was successfully updated!",
3683
3684
  subRedeemed: "Your subscription has been redeemed."
3684
3685
  };
@@ -3687,9 +3688,9 @@ var address_en = {
3687
3688
  titleGifting: titleGifting$3,
3688
3689
  selectAddressTitle: selectAddressTitle$3,
3689
3690
  selectAddressSubtitle: selectAddressSubtitle$3,
3690
- labels: labels$X,
3691
- buttons: buttons$i,
3692
- messages: messages$$
3691
+ labels: labels$$,
3692
+ buttons: buttons$m,
3693
+ messages: messages$13
3693
3694
  };
3694
3695
 
3695
3696
  var title$w = "Reset your password";
@@ -3717,7 +3718,7 @@ var password$6 = "Password";
3717
3718
  var submit$e = "Submit";
3718
3719
  var required$e = "Required";
3719
3720
  var passwordResetEmailSent$3 = "Password reset instructions have been sent to your email";
3720
- var messages$_ = {
3721
+ var messages$12 = {
3721
3722
  alreadyHaveAccount: "Already have an account?",
3722
3723
  loginHere: "login here."
3723
3724
  };
@@ -3728,7 +3729,7 @@ var passwordForgot_en = {
3728
3729
  submit: submit$e,
3729
3730
  required: required$e,
3730
3731
  passwordResetEmailSent: passwordResetEmailSent$3,
3731
- messages: messages$_
3732
+ messages: messages$12
3732
3733
  };
3733
3734
 
3734
3735
  var title$u = "Change your password";
@@ -3756,7 +3757,7 @@ var title$t = "Passwordless Login";
3756
3757
  var email$9 = "Enter email";
3757
3758
  var submit$c = "Submit";
3758
3759
  var required$c = "Required";
3759
- var messages$Z = {
3760
+ var messages$11 = {
3760
3761
  PasswordlessLoginSuccess: "Please check your email and follow the instructions there"
3761
3762
  };
3762
3763
  var passwordlessRequest_en = {
@@ -3764,7 +3765,7 @@ var passwordlessRequest_en = {
3764
3765
  email: email$9,
3765
3766
  submit: submit$c,
3766
3767
  required: required$c,
3767
- messages: messages$Z
3768
+ messages: messages$11
3768
3769
  };
3769
3770
 
3770
3771
  var title$s = "Your shopping cart";
@@ -3792,13 +3793,13 @@ var cart_en = {
3792
3793
  removeAll: removeAll$3
3793
3794
  };
3794
3795
 
3795
- var buttons$h = {
3796
+ var buttons$l = {
3796
3797
  select: "Select",
3797
3798
  added: "Added to cart",
3798
3799
  purchase: "Purchase",
3799
3800
  "continue": "Continue"
3800
3801
  };
3801
- var messages$Y = {
3802
+ var messages$10 = {
3802
3803
  orderConfirmed: {
3803
3804
  title: "Order confirmed!",
3804
3805
  body: "Your order has been confirmed and will be shipped within the next few days. You'll shortly receive an email confirmation of this order."
@@ -3807,17 +3808,17 @@ var messages$Y = {
3807
3808
  multipleCurrencies: "Your cart currently contains items which are available in different currencies. In order to proceed with the checkout, please make sure that all items have the same currency.",
3808
3809
  currencyMismatch: "The selected item(s) do not match your current default currency ({{currency}}). Please choose item(s) only matching this currency."
3809
3810
  };
3810
- var labels$W = {
3811
+ var labels$_ = {
3811
3812
  summary: "Order summary",
3812
3813
  total: "total"
3813
3814
  };
3814
3815
  var shop_en = {
3815
- buttons: buttons$h,
3816
- messages: messages$Y,
3817
- labels: labels$W
3816
+ buttons: buttons$l,
3817
+ messages: messages$10,
3818
+ labels: labels$_
3818
3819
  };
3819
3820
 
3820
- var labels$V = {
3821
+ var labels$Z = {
3821
3822
  cardNumber: "Card number",
3822
3823
  securityCode: "Security Code",
3823
3824
  submit: "Submit",
@@ -3839,7 +3840,7 @@ var labels$V = {
3839
3840
  title: "Payment Information"
3840
3841
  }
3841
3842
  };
3842
- var messages$X = {
3843
+ var messages$$ = {
3843
3844
  youAreSafe: "You're safe - PCI compliant 128 SSL by",
3844
3845
  cancel: "Cancel your subscription online at anytime.",
3845
3846
  giftSent: "Subscription gift has been sent to",
@@ -3853,12 +3854,12 @@ var errors$f = {
3853
3854
  "": ""
3854
3855
  };
3855
3856
  var payment_en = {
3856
- labels: labels$V,
3857
- messages: messages$X,
3857
+ labels: labels$Z,
3858
+ messages: messages$$,
3858
3859
  errors: errors$f
3859
3860
  };
3860
3861
 
3861
- var labels$U = {
3862
+ var labels$Y = {
3862
3863
  menu: "Pelcro Menu",
3863
3864
  name: "Name",
3864
3865
  email: "Email",
@@ -3946,7 +3947,7 @@ var labels$U = {
3946
3947
  goBack: "Go back"
3947
3948
  }
3948
3949
  };
3949
- var messages$W = {
3950
+ var messages$_ = {
3950
3951
  noCard: "You don't have a card",
3951
3952
  subCancellation: {
3952
3953
  isSureToCancel: "Are you sure you want to cancel your subscription?",
@@ -3966,16 +3967,16 @@ var messages$W = {
3966
3967
  }
3967
3968
  };
3968
3969
  var dashboard_en = {
3969
- labels: labels$U,
3970
- messages: messages$W
3970
+ labels: labels$Y,
3971
+ messages: messages$_
3971
3972
  };
3972
3973
 
3973
- var messages$V = {
3974
+ var messages$Z = {
3974
3975
  alreadyHaveAccount: "Already have an account?",
3975
3976
  loginHere: "Login here",
3976
3977
  checkbox: "Check this box to gift this subscription"
3977
3978
  };
3978
- var labels$T = {
3979
+ var labels$X = {
3979
3980
  plan: {
3980
3981
  title: "Subscribe to a plan",
3981
3982
  subtitle: "Select one of the plans below and click on next."
@@ -3992,15 +3993,49 @@ var labels$T = {
3992
3993
  or: "Or take a look at some of our other options below"
3993
3994
  }
3994
3995
  };
3995
- var buttons$g = {
3996
+ var buttons$k = {
3996
3997
  next: "Next",
3997
3998
  select: "Select",
3998
3999
  back: "Back"
3999
4000
  };
4000
4001
  var select_en = {
4001
- messages: messages$V,
4002
- labels: labels$T,
4003
- buttons: buttons$g
4002
+ messages: messages$Z,
4003
+ labels: labels$X,
4004
+ buttons: buttons$k
4005
+ };
4006
+
4007
+ var messages$Y = {
4008
+ alreadyHaveAccount: "Already have an account?",
4009
+ loginHere: "Login here",
4010
+ checkbox: "Check this box to gift this subscription"
4011
+ };
4012
+ var labels$W = {
4013
+ plan: {
4014
+ title: "Subscribe to a plan",
4015
+ subtitle: "Select one of the plans below and click on next."
4016
+ },
4017
+ product: {
4018
+ title: "Subscribe to a product",
4019
+ subtitle: "Select one of the products below and click on next."
4020
+ },
4021
+ selectProduct: "Select a product",
4022
+ selectPlan: "Select a plan",
4023
+ startingAt: "Starting at",
4024
+ restrictiveArticles: {
4025
+ subscribeTo: "Subscribe to one of the following options to get access to this page",
4026
+ or: "Or take a look at some of our other options below"
4027
+ }
4028
+ };
4029
+ var buttons$j = {
4030
+ signupAndDonate: "Sign up & donate",
4031
+ donate: "Donate",
4032
+ select: "Select",
4033
+ back: "Back"
4034
+ };
4035
+ var donation_en = {
4036
+ messages: messages$Y,
4037
+ labels: labels$W,
4038
+ buttons: buttons$j
4004
4039
  };
4005
4040
 
4006
4041
  var confirm$9 = {
@@ -4013,46 +4048,46 @@ var notification_en = {
4013
4048
  confirm: confirm$9
4014
4049
  };
4015
4050
 
4016
- var labels$S = {
4051
+ var labels$V = {
4017
4052
  title: "Verify your email",
4018
4053
  instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
4019
4054
  resend: "Resend email"
4020
4055
  };
4021
- var messages$U = {
4056
+ var messages$X = {
4022
4057
  resent: "Resent successfully",
4023
4058
  success: "Email verified successfully!"
4024
4059
  };
4025
4060
  var verifyEmail_en = {
4026
- labels: labels$S,
4027
- messages: messages$U
4061
+ labels: labels$V,
4062
+ messages: messages$X
4028
4063
  };
4029
4064
 
4030
4065
  var title$r = "Invoice details";
4031
- var labels$R = {
4066
+ var labels$U = {
4032
4067
  summary: "Summary",
4033
4068
  total: "Total",
4034
4069
  amountPaid: "Amount paid",
4035
4070
  amountDue: "Amount due",
4036
4071
  creationDate: "Created on:"
4037
4072
  };
4038
- var buttons$f = {
4073
+ var buttons$i = {
4039
4074
  download: "Download",
4040
4075
  pay: "Pay now"
4041
4076
  };
4042
4077
  var invoiceDetails_en = {
4043
4078
  title: title$r,
4044
- labels: labels$R,
4045
- buttons: buttons$f
4079
+ labels: labels$U,
4080
+ buttons: buttons$i
4046
4081
  };
4047
4082
 
4048
- var labels$Q = {
4083
+ var labels$T = {
4049
4084
  title: "Cancel subscription",
4050
4085
  cancelReason: "Cancellation reason",
4051
4086
  subCancellation: {
4052
4087
  goBack: "Go back"
4053
4088
  }
4054
4089
  };
4055
- var messages$T = {
4090
+ var messages$W = {
4056
4091
  subscriptionEnd: "This subscription is set to expire on",
4057
4092
  cancelNow: "Cancel Subscription Now",
4058
4093
  cancelLater: "Cancel at Period End",
@@ -4065,18 +4100,18 @@ var messages$T = {
4065
4100
  }
4066
4101
  };
4067
4102
  var subscriptionCancel_en = {
4068
- labels: labels$Q,
4069
- messages: messages$T
4103
+ labels: labels$T,
4104
+ messages: messages$W
4070
4105
  };
4071
4106
 
4072
- var labels$P = {
4107
+ var labels$S = {
4073
4108
  title: "Annuler l'abonnement",
4074
4109
  cancelReason: "Motif d'annulation",
4075
4110
  subCancellation: {
4076
4111
  goBack: "Retourner"
4077
4112
  }
4078
4113
  };
4079
- var messages$S = {
4114
+ var messages$V = {
4080
4115
  subscriptionEnd: "Cet abonnement doit expirer le",
4081
4116
  cancelNow: "Cancel Subscription Now",
4082
4117
  cancelLater: "Annuler l'abonnement maintenant",
@@ -4089,18 +4124,18 @@ var messages$S = {
4089
4124
  }
4090
4125
  };
4091
4126
  var subscriptionCancel_fr = {
4092
- labels: labels$P,
4093
- messages: messages$S
4127
+ labels: labels$S,
4128
+ messages: messages$V
4094
4129
  };
4095
4130
 
4096
- var labels$O = {
4131
+ var labels$R = {
4097
4132
  title: "구독 취소",
4098
4133
  cancelReason: "취소 사유",
4099
4134
  subCancellation: {
4100
4135
  goBack: "돌아가기"
4101
4136
  }
4102
4137
  };
4103
- var messages$R = {
4138
+ var messages$U = {
4104
4139
  subscriptionEnd: "이 구독은 다음 날짜에 만료되도록 설정되었습니다.",
4105
4140
  cancelNow: "지금 구독 취소",
4106
4141
  cancelLater: "기간 종료 시 취소",
@@ -4113,11 +4148,11 @@ var messages$R = {
4113
4148
  }
4114
4149
  };
4115
4150
  var subscriptionCancel_ko = {
4116
- labels: labels$O,
4117
- messages: messages$R
4151
+ labels: labels$R,
4152
+ messages: messages$U
4118
4153
  };
4119
4154
 
4120
- var labels$N = {
4155
+ var labels$Q = {
4121
4156
  inviteMembers: "Invite Members",
4122
4157
  listOfMembers: "List of members",
4123
4158
  invite: "Invite",
@@ -4128,10 +4163,10 @@ var labels$N = {
4128
4163
  email: "Email"
4129
4164
  };
4130
4165
  var subscriptionManageMembers_en = {
4131
- labels: labels$N
4166
+ labels: labels$Q
4132
4167
  };
4133
4168
 
4134
- var labels$M = {
4169
+ var labels$P = {
4135
4170
  inviteMembers: "Inviter des membres",
4136
4171
  listOfMembers: "Liste des membres",
4137
4172
  invite: "Inviter",
@@ -4142,10 +4177,10 @@ var labels$M = {
4142
4177
  email: "E-mail"
4143
4178
  };
4144
4179
  var subscriptionManageMembers_fr = {
4145
- labels: labels$M
4180
+ labels: labels$P
4146
4181
  };
4147
4182
 
4148
- var labels$L = {
4183
+ var labels$O = {
4149
4184
  inviteMembers: "회원 초대",
4150
4185
  listOfMembers: "구성원 목록",
4151
4186
  invite: "초대",
@@ -4156,17 +4191,17 @@ var labels$L = {
4156
4191
  email: "이메일"
4157
4192
  };
4158
4193
  var subscriptionManageMembers_ko = {
4159
- labels: labels$L
4194
+ labels: labels$O
4160
4195
  };
4161
4196
 
4162
- var labels$K = {
4197
+ var labels$N = {
4163
4198
  title: "Suspend subscription",
4164
4199
  suspensionDate: "Suspension date",
4165
4200
  subCancellation: {
4166
4201
  goBack: "Go back"
4167
4202
  }
4168
4203
  };
4169
- var messages$Q = {
4204
+ var messages$T = {
4170
4205
  suspensionEnd: "The suspension is set to expire on",
4171
4206
  suspendNow: "Suspend Subscription Now",
4172
4207
  suspendLater: "Suspend at Period End",
@@ -4179,8 +4214,8 @@ var messages$Q = {
4179
4214
  }
4180
4215
  };
4181
4216
  var subscriptionSuspend_en = {
4182
- labels: labels$K,
4183
- messages: messages$Q
4217
+ labels: labels$N,
4218
+ messages: messages$T
4184
4219
  };
4185
4220
 
4186
4221
  var validation$2 = {
@@ -4195,7 +4230,7 @@ var validation$2 = {
4195
4230
  enterLastName: "Le nom de famille est requis.",
4196
4231
  enterPhone: "Le numéro de téléphone est requis."
4197
4232
  };
4198
- var buttons$e = {
4233
+ var buttons$h = {
4199
4234
  account: "Accès abonné(e)s",
4200
4235
  login: "Se connecter",
4201
4236
  subscribe: "S'abonner"
@@ -4273,7 +4308,7 @@ var confirm$8 = {
4273
4308
  };
4274
4309
  var common_fr = {
4275
4310
  validation: validation$2,
4276
- buttons: buttons$e,
4311
+ buttons: buttons$h,
4277
4312
  dashboard: dashboard$3,
4278
4313
  select: select$5,
4279
4314
  confirm: confirm$8
@@ -4304,7 +4339,7 @@ var paymentMethod_fr = {
4304
4339
  var title$q = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
4305
4340
  var updateTitle$2 = "Mettre à jour son choix d'infolettres";
4306
4341
  var subtitle$b = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
4307
- var labels$J = {
4342
+ var labels$M = {
4308
4343
  submit: "Lire l’article !",
4309
4344
  firstName: "Prénom",
4310
4345
  lastName: "Nom de famille",
@@ -4312,7 +4347,7 @@ var labels$J = {
4312
4347
  postalCode: "Code postal",
4313
4348
  required: "Champs obligatoires"
4314
4349
  };
4315
- var messages$P = {
4350
+ var messages$S = {
4316
4351
  alreadyHaveAccount: "Vous avez déjà un compte ?",
4317
4352
  success: "Votre choix d'infolettres à été mis à jour",
4318
4353
  loginHere: "Connectez-vous ici",
@@ -4323,14 +4358,14 @@ var newsletter_fr = {
4323
4358
  title: title$q,
4324
4359
  updateTitle: updateTitle$2,
4325
4360
  subtitle: subtitle$b,
4326
- labels: labels$J,
4327
- messages: messages$P
4361
+ labels: labels$M,
4362
+ messages: messages$S
4328
4363
  };
4329
4364
 
4330
- var labels$I = {
4365
+ var labels$L = {
4331
4366
  "continue": "Abonnement réussi !"
4332
4367
  };
4333
- var messages$O = {
4368
+ var messages$R = {
4334
4369
  yourFreeTrial: "Votre essai gratuit vient de débuter",
4335
4370
  youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
4336
4371
  clickToLearn: {
@@ -4356,12 +4391,12 @@ var errors$e = {
4356
4391
  "": ""
4357
4392
  };
4358
4393
  var success_fr = {
4359
- labels: labels$I,
4360
- messages: messages$O,
4394
+ labels: labels$L,
4395
+ messages: messages$R,
4361
4396
  errors: errors$e
4362
4397
  };
4363
4398
 
4364
- var messages$N = {
4399
+ var messages$Q = {
4365
4400
  freeVisits: "Visites gratuites restantes:",
4366
4401
  subscribeNow: "Abonnez-vous maintenant !",
4367
4402
  alreadyHaveAccount: "Vous avez déjà un compte ?",
@@ -4371,16 +4406,16 @@ var errors$d = {
4371
4406
  "": ""
4372
4407
  };
4373
4408
  var meter_fr = {
4374
- messages: messages$N,
4409
+ messages: messages$Q,
4375
4410
  errors: errors$d
4376
4411
  };
4377
4412
 
4378
- var messages$M = {
4413
+ var messages$P = {
4379
4414
  youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
4380
4415
  bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque.",
4381
4416
  bankAuthenticationSuccess: "Veuillez patienter pendant que nous accédons à votre requête."
4382
4417
  };
4383
- var labels$H = {
4418
+ var labels$K = {
4384
4419
  card: "Entrez le numéro de carte",
4385
4420
  date: "Date d’expiration",
4386
4421
  CVC: "CVC",
@@ -4400,11 +4435,12 @@ var labels$H = {
4400
4435
  firstName: "Prénom",
4401
4436
  lastName: "Nom de famille",
4402
4437
  phone: "Téléphoner",
4403
- freeItems: "Articles gratuits"
4438
+ freeItems: "Articles gratuits",
4439
+ email: "Courriel"
4404
4440
  };
4405
4441
  var checkoutForm_fr = {
4406
- messages: messages$M,
4407
- labels: labels$H
4442
+ messages: messages$P,
4443
+ labels: labels$K
4408
4444
  };
4409
4445
 
4410
4446
  var youAreSafe$2 = "Vous êtes en sécurité - PCI conforme 128 SSL par";
@@ -4428,7 +4464,7 @@ var messages_fr = {
4428
4464
  zeroTotalInvoice: zeroTotalInvoice$2
4429
4465
  };
4430
4466
 
4431
- var labels$G = {
4467
+ var labels$J = {
4432
4468
  email: "Entrez votre adresse courriel",
4433
4469
  username: "Saisissez votre nom d'utilisateur",
4434
4470
  password: "Entrez votre mot de passe",
@@ -4437,7 +4473,7 @@ var labels$G = {
4437
4473
  passwordPlaceholder: "Mot de passe",
4438
4474
  login: "Connexion"
4439
4475
  };
4440
- var messages$L = {
4476
+ var messages$O = {
4441
4477
  loginTo: "Connectez-vous à votre compte",
4442
4478
  welcome: "Bienvenue, connectez-vous avec votre compte existant.",
4443
4479
  dontHaveAccount: "Vous n’avez pas encore de compte ?",
@@ -4456,28 +4492,28 @@ var errors$c = {
4456
4492
  "": ""
4457
4493
  };
4458
4494
  var login_fr = {
4459
- labels: labels$G,
4460
- messages: messages$L,
4495
+ labels: labels$J,
4496
+ messages: messages$O,
4461
4497
  errors: errors$c
4462
4498
  };
4463
4499
 
4464
- var labels$F = {
4500
+ var labels$I = {
4465
4501
  title: "Confirmez votre courriel",
4466
4502
  instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
4467
4503
  resend: "Renvoyer le courriel"
4468
4504
  };
4469
- var messages$K = {
4505
+ var messages$N = {
4470
4506
  resent: "Renvoyé avec succès",
4471
4507
  success: "Vous vous êtes connecté avec succès"
4472
4508
  };
4473
4509
  var verifyLinkToken_fr = {
4474
- labels: labels$F,
4475
- messages: messages$K
4510
+ labels: labels$I,
4511
+ messages: messages$N
4476
4512
  };
4477
4513
 
4478
4514
  var title$p = "Créer un compte";
4479
4515
  var subtitle$a = "Entrez votre courriel et votre mot de passe ci-dessous";
4480
- var labels$E = {
4516
+ var labels$H = {
4481
4517
  signUpFacebook: "Inscrivez-vous avec Facebook",
4482
4518
  signUpGoogle: "Inscrivez-vous avec Google",
4483
4519
  signUpEmail: "Inscrivez-vous avec votre courriel",
@@ -4490,7 +4526,7 @@ var labels$E = {
4490
4526
  lastName: "Nom de famille",
4491
4527
  phone: "Téléphoner"
4492
4528
  };
4493
- var messages$J = {
4529
+ var messages$M = {
4494
4530
  alreadyHaveAccount: "Vous avez déjà un compte?",
4495
4531
  createAccount: "Créer un compte",
4496
4532
  loginHere: "Connectez-vous ici",
@@ -4565,14 +4601,14 @@ var redeem$2 = {
4565
4601
  var register_fr = {
4566
4602
  title: title$p,
4567
4603
  subtitle: subtitle$a,
4568
- labels: labels$E,
4569
- messages: messages$J,
4604
+ labels: labels$H,
4605
+ messages: messages$M,
4570
4606
  errors: errors$b,
4571
4607
  gift: gift$2,
4572
4608
  redeem: redeem$2
4573
4609
  };
4574
4610
 
4575
- var labels$D = {
4611
+ var labels$G = {
4576
4612
  title: "Voulez-vous mettre à jour votre profil ?",
4577
4613
  subtitle: "Entrez vos informations ci-dessous pour mettre à jour votre profil",
4578
4614
  email: "Address courriel",
@@ -4591,21 +4627,21 @@ var labels$D = {
4591
4627
  zoom: "Zoom",
4592
4628
  tin: "Numéro d'identification fiscale"
4593
4629
  };
4594
- var messages$I = {
4630
+ var messages$L = {
4595
4631
  userUpdated: "Votre profil a été mis à jour avec succès.",
4596
4632
  pictureRemoved: "Votre photo de profil a été supprimée avec succès.",
4597
4633
  pictureUpdated: "Votre photo de profil a été mise à jour avec succès."
4598
4634
  };
4599
4635
  var userEdit_fr = {
4600
- labels: labels$D,
4601
- messages: messages$I
4636
+ labels: labels$G,
4637
+ messages: messages$L
4602
4638
  };
4603
4639
 
4604
4640
  var title$o = "Entrez votre adresse de livraison";
4605
4641
  var titleGifting$2 = "Entrez votre adresse";
4606
4642
  var selectAddressTitle$2 = "Veuillez sélectionner une adresse";
4607
4643
  var selectAddressSubtitle$2 = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
4608
- var labels$C = {
4644
+ var labels$F = {
4609
4645
  address: "Adresse",
4610
4646
  code: "Code postal / Zip",
4611
4647
  city: "Ville",
@@ -4616,12 +4652,12 @@ var labels$C = {
4616
4652
  required: "Champs obligatoires",
4617
4653
  isDefault: "Définir par défaut"
4618
4654
  };
4619
- var buttons$d = {
4655
+ var buttons$g = {
4620
4656
  submit: "Valider",
4621
4657
  selectAddress: "Choisir cette adresse",
4622
4658
  addAddress: "Ajouter une nouvelle adresse"
4623
4659
  };
4624
- var messages$H = {
4660
+ var messages$K = {
4625
4661
  addressUpdated: "Votre adresse a été mise à jour avec succès",
4626
4662
  subRedeemed: "Votre abonnement a bien été activé."
4627
4663
  };
@@ -4630,9 +4666,9 @@ var address_fr = {
4630
4666
  titleGifting: titleGifting$2,
4631
4667
  selectAddressTitle: selectAddressTitle$2,
4632
4668
  selectAddressSubtitle: selectAddressSubtitle$2,
4633
- labels: labels$C,
4634
- buttons: buttons$d,
4635
- messages: messages$H
4669
+ labels: labels$F,
4670
+ buttons: buttons$g,
4671
+ messages: messages$K
4636
4672
  };
4637
4673
 
4638
4674
  var title$n = "Réinitialiser votre mot de passe";
@@ -4660,7 +4696,7 @@ var password$4 = "Mot de passe";
4660
4696
  var submit$a = "Soumettre";
4661
4697
  var required$a = "Champs obligatoires";
4662
4698
  var passwordResetEmailSent$2 = "Un lien pour réinitialiser votre mot de passe vous a été envoyé. Si vous ne le recevez pas, vérifier votre courrier indésirable.";
4663
- var messages$G = {
4699
+ var messages$J = {
4664
4700
  alreadyHaveAccount: "Vous avez déjà un compte ?",
4665
4701
  loginHere: "Connectez-vous ici"
4666
4702
  };
@@ -4671,7 +4707,7 @@ var passwordForgot_fr = {
4671
4707
  submit: submit$a,
4672
4708
  required: required$a,
4673
4709
  passwordResetEmailSent: passwordResetEmailSent$2,
4674
- messages: messages$G
4710
+ messages: messages$J
4675
4711
  };
4676
4712
 
4677
4713
  var title$l = "Changez votre mot de passe";
@@ -4699,7 +4735,7 @@ var title$k = "Connexion sans mot de passe";
4699
4735
  var email$6 = "Entrez votre adresse courriel";
4700
4736
  var submit$8 = "Soumettre";
4701
4737
  var required$8 = "Champs obligatoires";
4702
- var messages$F = {
4738
+ var messages$I = {
4703
4739
  PasswordlessLoginSuccess: "Vous avez été authentifié avec succès avec la connexion sans mot de passe"
4704
4740
  };
4705
4741
  var passwordlessRequest_fr = {
@@ -4707,7 +4743,7 @@ var passwordlessRequest_fr = {
4707
4743
  email: email$6,
4708
4744
  submit: submit$8,
4709
4745
  required: required$8,
4710
- messages: messages$F
4746
+ messages: messages$I
4711
4747
  };
4712
4748
 
4713
4749
  var title$j = "Votre panier";
@@ -4735,13 +4771,13 @@ var cart_fr = {
4735
4771
  removeAll: removeAll$2
4736
4772
  };
4737
4773
 
4738
- var buttons$c = {
4774
+ var buttons$f = {
4739
4775
  select: "Choisir",
4740
4776
  added: "Ajouté au panier",
4741
4777
  purchase: "Acheter",
4742
4778
  "continue": "Continuer au contenu"
4743
4779
  };
4744
- var messages$E = {
4780
+ var messages$H = {
4745
4781
  orderConfirmed: {
4746
4782
  title: "Votre commande est confirmée !",
4747
4783
  body: "Votre commande a été confirmée et vous sera expédiée dans les prochains jours. Vous recevrez un courriel de confirmation sous peu."
@@ -4750,17 +4786,17 @@ var messages$E = {
4750
4786
  multipleCurrencies: "Votre panier contient des articles disponibles dans différentes devises. Avant de passer à la caisse, veuillez vous assurer que tous les articles ont la même devise.",
4751
4787
  currencyMismatch: "Les articles sélectionnés ne sont pas compatibles avec la devise associée à votre compte ({{currency}}). Veuillez choisir des articles uniquement offerts dans cette devise."
4752
4788
  };
4753
- var labels$B = {
4789
+ var labels$E = {
4754
4790
  summary: "récapitulatif de commande",
4755
4791
  total: "total"
4756
4792
  };
4757
4793
  var shop_fr = {
4758
- buttons: buttons$c,
4759
- messages: messages$E,
4760
- labels: labels$B
4794
+ buttons: buttons$f,
4795
+ messages: messages$H,
4796
+ labels: labels$E
4761
4797
  };
4762
4798
 
4763
- var labels$A = {
4799
+ var labels$D = {
4764
4800
  cardNumber: "Numéro de carte",
4765
4801
  securityCode: "Code de sécurité",
4766
4802
  submit: "Soumettre",
@@ -4782,7 +4818,7 @@ var labels$A = {
4782
4818
  title: "Informations de paiement"
4783
4819
  }
4784
4820
  };
4785
- var messages$D = {
4821
+ var messages$G = {
4786
4822
  youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
4787
4823
  cancel: "Annuler votre abonnement en ligne à tout moment.",
4788
4824
  giftSent: "Le cadeau d’abonnement a été envoyé à",
@@ -4796,12 +4832,12 @@ var errors$a = {
4796
4832
  "": ""
4797
4833
  };
4798
4834
  var payment_fr = {
4799
- labels: labels$A,
4800
- messages: messages$D,
4835
+ labels: labels$D,
4836
+ messages: messages$G,
4801
4837
  errors: errors$a
4802
4838
  };
4803
4839
 
4804
- var labels$z = {
4840
+ var labels$C = {
4805
4841
  menu: "Menu Pelcro",
4806
4842
  name: "Nom",
4807
4843
  email: "Courriel",
@@ -4889,7 +4925,7 @@ var labels$z = {
4889
4925
  goBack: "Retourner"
4890
4926
  }
4891
4927
  };
4892
- var messages$C = {
4928
+ var messages$F = {
4893
4929
  noCard: "Vous n’avez pas une carte",
4894
4930
  subCancellation: {
4895
4931
  isSureToCancel: "Êtes-vous certain de vouloir annuler votre abonnement?",
@@ -4909,16 +4945,16 @@ var messages$C = {
4909
4945
  }
4910
4946
  };
4911
4947
  var dashboard_fr = {
4912
- labels: labels$z,
4913
- messages: messages$C
4948
+ labels: labels$C,
4949
+ messages: messages$F
4914
4950
  };
4915
4951
 
4916
- var messages$B = {
4952
+ var messages$E = {
4917
4953
  alreadyHaveAccount: "Vous avez déjà un compte ?",
4918
4954
  loginHere: "Connectez-vous ici",
4919
4955
  checkbox: "Cochez cette case pour offrir cet abonnement"
4920
4956
  };
4921
- var labels$y = {
4957
+ var labels$B = {
4922
4958
  plan: {
4923
4959
  title: "Abonnez-vous à un plan",
4924
4960
  subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
@@ -4935,67 +4971,100 @@ var labels$y = {
4935
4971
  or: "Sinon, jetez un coup d'oeil à d'autres offres ci-dessous"
4936
4972
  }
4937
4973
  };
4938
- var buttons$b = {
4974
+ var buttons$e = {
4939
4975
  next: "Prochain",
4940
4976
  select: "Choisir",
4941
4977
  back: "Retour"
4942
4978
  };
4943
4979
  var select_fr = {
4944
- messages: messages$B,
4945
- labels: labels$y,
4946
- buttons: buttons$b
4980
+ messages: messages$E,
4981
+ labels: labels$B,
4982
+ buttons: buttons$e
4947
4983
  };
4948
4984
 
4949
- var confirm$6 = {
4950
- labels: {
4951
- confirm: "Confirmer",
4952
- close: "Fermer"
4953
- }
4954
- };
4955
- var notification_fr = {
4956
- confirm: confirm$6
4985
+ var messages$D = {
4986
+ alreadyHaveAccount: "Vous avez déjà un compte ?",
4987
+ loginHere: "Connectez-vous ici",
4988
+ checkbox: "Cochez cette case pour offrir cet abonnement"
4957
4989
  };
4958
-
4959
- var labels$x = {
4960
- title: "Confirmez votre courriel",
4961
- instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
4990
+ var labels$A = {
4991
+ plan: {
4992
+ title: "Abonnez-vous à un plan",
4993
+ subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
4994
+ },
4995
+ product: {
4996
+ title: "Abonnez-vous à un produit",
4997
+ subtitle: "Sélectionnez l’un des produits ci-dessous et cliquez sur suivant."
4998
+ },
4999
+ selectProduct: "Sélectionnez un produit",
5000
+ selectPlan: "Sélectionnez un plan",
5001
+ starningAt: "À partir de",
5002
+ restrictiveArticles: {
5003
+ subscribeTo: "Abonnez-vous à une des options suivantes pour accéder au contenu de cette page",
5004
+ or: "Sinon, jetez un coup d'oeil à d'autres offres ci-dessous"
5005
+ }
5006
+ };
5007
+ var buttons$d = {
5008
+ next: "Prochain",
5009
+ select: "Choisir",
5010
+ back: "Retour"
5011
+ };
5012
+ var donation_fr = {
5013
+ messages: messages$D,
5014
+ labels: labels$A,
5015
+ buttons: buttons$d
5016
+ };
5017
+
5018
+ var confirm$6 = {
5019
+ labels: {
5020
+ confirm: "Confirmer",
5021
+ close: "Fermer"
5022
+ }
5023
+ };
5024
+ var notification_fr = {
5025
+ confirm: confirm$6
5026
+ };
5027
+
5028
+ var labels$z = {
5029
+ title: "Confirmez votre courriel",
5030
+ instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
4962
5031
  resend: "Renvoyer le courriel"
4963
5032
  };
4964
- var messages$A = {
5033
+ var messages$C = {
4965
5034
  resent: "Renvoyé avec succès",
4966
5035
  success: "Adresse courriel vérifiée avec succès"
4967
5036
  };
4968
5037
  var verifyEmail_fr = {
4969
- labels: labels$x,
4970
- messages: messages$A
5038
+ labels: labels$z,
5039
+ messages: messages$C
4971
5040
  };
4972
5041
 
4973
5042
  var title$i = "Détails de la facture";
4974
- var labels$w = {
5043
+ var labels$y = {
4975
5044
  summary: "Résumé",
4976
5045
  total: "Total",
4977
5046
  amountPaid: "Montant payé",
4978
5047
  amountDue: "Montant dû",
4979
5048
  creationDate: "Créé le:"
4980
5049
  };
4981
- var buttons$a = {
5050
+ var buttons$c = {
4982
5051
  download: "Télécharger",
4983
5052
  pay: "Payer"
4984
5053
  };
4985
5054
  var invoiceDetails_fr = {
4986
5055
  title: title$i,
4987
- labels: labels$w,
4988
- buttons: buttons$a
5056
+ labels: labels$y,
5057
+ buttons: buttons$c
4989
5058
  };
4990
5059
 
4991
- var labels$v = {
5060
+ var labels$x = {
4992
5061
  title: "Suspendre l'abonnement",
4993
5062
  suspensionDate: "Date de suspension",
4994
5063
  subCancellation: {
4995
5064
  goBack: "Revenir en arrière"
4996
5065
  }
4997
5066
  };
4998
- var messages$z = {
5067
+ var messages$B = {
4999
5068
  suspensionEnd: "La suspension doit expirer le",
5000
5069
  suspendNow: "Suspendre l'abonnement maintenant",
5001
5070
  suspendLater: "Suspendre à la fin de la période",
@@ -5008,8 +5077,8 @@ var messages$z = {
5008
5077
  }
5009
5078
  };
5010
5079
  var subscriptionSuspend_fr = {
5011
- labels: labels$v,
5012
- messages: messages$z
5080
+ labels: labels$x,
5081
+ messages: messages$B
5013
5082
  };
5014
5083
 
5015
5084
  var validation$1 = {
@@ -5023,7 +5092,7 @@ var validation$1 = {
5023
5092
  enterLastName: "성은 필수 항목입니다.",
5024
5093
  enterPhone: "전화번호는 필수 항목입니다."
5025
5094
  };
5026
- var buttons$9 = {
5095
+ var buttons$b = {
5027
5096
  account: "내 계정",
5028
5097
  login: "로그인",
5029
5098
  subscribe: "구독하다"
@@ -5101,7 +5170,7 @@ var confirm$5 = {
5101
5170
  };
5102
5171
  var common_ko = {
5103
5172
  validation: validation$1,
5104
- buttons: buttons$9,
5173
+ buttons: buttons$b,
5105
5174
  dashboard: dashboard$2,
5106
5175
  select: select$3,
5107
5176
  confirm: confirm$5
@@ -5132,7 +5201,7 @@ var paymentMethod_ko = {
5132
5201
  var title$h = "Frieze 뉴스레터를 구독하려면 이메일을 입력하세요.";
5133
5202
  var updateTitle$1 = "뉴스레터 선택 업데이트";
5134
5203
  var subtitle$7 = "귀하의 이메일은 다른 마케팅 용도로도 사용됩니다.";
5135
- var labels$u = {
5204
+ var labels$w = {
5136
5205
  submit: "제출",
5137
5206
  firstName: "이름",
5138
5207
  lastName: "성",
@@ -5140,7 +5209,7 @@ var labels$u = {
5140
5209
  postalCode: "우편번호",
5141
5210
  required: "필수 항목"
5142
5211
  };
5143
- var messages$y = {
5212
+ var messages$A = {
5144
5213
  alreadyHaveAccount: "이미 계정이 있습니까?",
5145
5214
  success: "뉴스레터가 성공적으로 업데이트되었습니다.",
5146
5215
  loginHere: "여기에서 로그인하세요.",
@@ -5151,14 +5220,14 @@ var newsletter_ko = {
5151
5220
  title: title$h,
5152
5221
  updateTitle: updateTitle$1,
5153
5222
  subtitle: subtitle$7,
5154
- labels: labels$u,
5155
- messages: messages$y
5223
+ labels: labels$w,
5224
+ messages: messages$A
5156
5225
  };
5157
5226
 
5158
- var labels$t = {
5227
+ var labels$v = {
5159
5228
  "continue": "콘텐츠로 돌아가기"
5160
5229
  };
5161
- var messages$x = {
5230
+ var messages$z = {
5162
5231
  yourFreeTrial: "유료 멤버십에 가입하셨습니다!",
5163
5232
  youHaveAccess: "멤버십 혜택을 즐기시기를 바라며, 질문이나 문의 사항이 있으면 저희에게 연락주십시오.",
5164
5233
  clickToLearn: {
@@ -5184,12 +5253,12 @@ var errors$9 = {
5184
5253
  "": ""
5185
5254
  };
5186
5255
  var success_ko = {
5187
- labels: labels$t,
5188
- messages: messages$x,
5256
+ labels: labels$v,
5257
+ messages: messages$z,
5189
5258
  errors: errors$9
5190
5259
  };
5191
5260
 
5192
- var messages$w = {
5261
+ var messages$y = {
5193
5262
  freeVisits: "남은 무료 방문 기간:",
5194
5263
  subscribeNow: "멤버십 가입",
5195
5264
  alreadyHaveAccount: "이미 계정이 있습니까?",
@@ -5199,16 +5268,16 @@ var errors$8 = {
5199
5268
  "": ""
5200
5269
  };
5201
5270
  var meter_ko = {
5202
- messages: messages$w,
5271
+ messages: messages$y,
5203
5272
  errors: errors$8
5204
5273
  };
5205
5274
 
5206
- var messages$v = {
5275
+ var messages$x = {
5207
5276
  youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
5208
5277
  bankRedirection: "잠시만 기다려 주십시오. 결제 은행으로 연결 중입니다.",
5209
5278
  bankAuthenticationSuccess: "요청을 처리하는 동안 기다려 주십시오."
5210
5279
  };
5211
- var labels$s = {
5280
+ var labels$u = {
5212
5281
  card: "카드 번호 입력",
5213
5282
  date: "만료일",
5214
5283
  CVC: "CVC",
@@ -5228,11 +5297,12 @@ var labels$s = {
5228
5297
  firstName: "이름",
5229
5298
  lastName: "성",
5230
5299
  phone: "핸드폰",
5231
- freeItems: "무료 아이템"
5300
+ freeItems: "무료 아이템",
5301
+ email: "이메일"
5232
5302
  };
5233
5303
  var checkoutForm_ko = {
5234
- messages: messages$v,
5235
- labels: labels$s
5304
+ messages: messages$x,
5305
+ labels: labels$u
5236
5306
  };
5237
5307
 
5238
5308
  var youAreSafe$1 = "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ";
@@ -5256,7 +5326,7 @@ var messages_ko = {
5256
5326
  zeroTotalInvoice: zeroTotalInvoice$1
5257
5327
  };
5258
5328
 
5259
- var labels$r = {
5329
+ var labels$t = {
5260
5330
  email: "이메일 입력",
5261
5331
  username: "사용자 이름 입력",
5262
5332
  password: "비밀번호 입력",
@@ -5265,7 +5335,7 @@ var labels$r = {
5265
5335
  passwordPlaceholder: "비밀번호",
5266
5336
  login: "로그인"
5267
5337
  };
5268
- var messages$u = {
5338
+ var messages$w = {
5269
5339
  loginTo: "귀하의 계정에 로그인",
5270
5340
  welcome: "반갑습니다. 귀하의 기존 계정으로 로그인하세요.",
5271
5341
  dontHaveAccount: "아직 계정이 없으신가요?",
@@ -5284,28 +5354,28 @@ var errors$7 = {
5284
5354
  "": ""
5285
5355
  };
5286
5356
  var login_ko = {
5287
- labels: labels$r,
5288
- messages: messages$u,
5357
+ labels: labels$t,
5358
+ messages: messages$w,
5289
5359
  errors: errors$7
5290
5360
  };
5291
5361
 
5292
- var labels$q = {
5362
+ var labels$s = {
5293
5363
  title: "비밀번호 없는 링크 확인",
5294
5364
  instructions: "가는 중입니다!\n이메일 주소를 확인하겠습니다.\n이메일로 전송된 확인 링크를 클릭하세요.",
5295
5365
  resend: "이메일 재전송"
5296
5366
  };
5297
- var messages$t = {
5367
+ var messages$v = {
5298
5368
  resent: "성공적으로 재전송",
5299
5369
  success: "성공적으로 로그인했습니다"
5300
5370
  };
5301
5371
  var verifyLinkToken_ko = {
5302
- labels: labels$q,
5303
- messages: messages$t
5372
+ labels: labels$s,
5373
+ messages: messages$v
5304
5374
  };
5305
5375
 
5306
5376
  var title$g = "계정 만들기";
5307
5377
  var subtitle$6 = "아래에 이메일과 비밀번호를 입력하세요.";
5308
- var labels$p = {
5378
+ var labels$r = {
5309
5379
  signUpFacebook: "Facebook으로 가입하기",
5310
5380
  signUpGoogle: "Google로 가입하기",
5311
5381
  signUpEmail: "이메일로 가입하기",
@@ -5318,7 +5388,7 @@ var labels$p = {
5318
5388
  lastName: "성",
5319
5389
  phone: "핸드폰"
5320
5390
  };
5321
- var messages$s = {
5391
+ var messages$u = {
5322
5392
  alreadyHaveAccount: "이미 계정이 있습니까?",
5323
5393
  createAccount: "계정 만들기",
5324
5394
  loginHere: "여기에서 로그인하세요.",
@@ -5392,14 +5462,14 @@ var redeem$1 = {
5392
5462
  var register_ko = {
5393
5463
  title: title$g,
5394
5464
  subtitle: subtitle$6,
5395
- labels: labels$p,
5396
- messages: messages$s,
5465
+ labels: labels$r,
5466
+ messages: messages$u,
5397
5467
  errors: errors$6,
5398
5468
  gift: gift$1,
5399
5469
  redeem: redeem$1
5400
5470
  };
5401
5471
 
5402
- var labels$o = {
5472
+ var labels$q = {
5403
5473
  title: "프로파일을 업데이트하시겠습니까?",
5404
5474
  subtitle: "프로필을 업데이트하려면 아래 정보를 입력하세요.",
5405
5475
  email: "이메일",
@@ -5418,21 +5488,21 @@ var labels$o = {
5418
5488
  zoom: "확대",
5419
5489
  tin: "세금 식별 번호"
5420
5490
  };
5421
- var messages$r = {
5491
+ var messages$t = {
5422
5492
  userUpdated: "감사합니다! 프로필이 성공적으로 업데이트되었습니다.",
5423
5493
  pictureRemoved: "귀하의 프로필 사진이 제거되었습니다.",
5424
5494
  pictureUpdated: "귀하의 프로필 사진이 업데이트되었습니다."
5425
5495
  };
5426
5496
  var userEdit_ko = {
5427
- labels: labels$o,
5428
- messages: messages$r
5497
+ labels: labels$q,
5498
+ messages: messages$t
5429
5499
  };
5430
5500
 
5431
5501
  var title$f = "배송 주소를 입력하십시오.";
5432
5502
  var titleGifting$1 = "주소를 입력하세요";
5433
5503
  var selectAddressTitle$1 = "주소를 선택하십시오.";
5434
5504
  var selectAddressSubtitle$1 = "저장된 주소에서 선택하거나 새 주소를 추가하십시오.";
5435
- var labels$n = {
5505
+ var labels$p = {
5436
5506
  address: "주소",
5437
5507
  code: "우편번호",
5438
5508
  city: "도시",
@@ -5443,12 +5513,12 @@ var labels$n = {
5443
5513
  required: "필수 항목",
5444
5514
  isDefault: "기본값으로 설정"
5445
5515
  };
5446
- var buttons$8 = {
5516
+ var buttons$a = {
5447
5517
  submit: "제출",
5448
5518
  selectAddress: "주소 선택",
5449
5519
  addAddress: "새 주소 추가"
5450
5520
  };
5451
- var messages$q = {
5521
+ var messages$s = {
5452
5522
  addressUpdated: "주소가 성공적으로 업데이트되었습니다!",
5453
5523
  subRedeemed: "귀하의 유료 멤버십이 사용되었습니다."
5454
5524
  };
@@ -5457,9 +5527,9 @@ var address_ko = {
5457
5527
  titleGifting: titleGifting$1,
5458
5528
  selectAddressTitle: selectAddressTitle$1,
5459
5529
  selectAddressSubtitle: selectAddressSubtitle$1,
5460
- labels: labels$n,
5461
- buttons: buttons$8,
5462
- messages: messages$q
5530
+ labels: labels$p,
5531
+ buttons: buttons$a,
5532
+ messages: messages$s
5463
5533
  };
5464
5534
 
5465
5535
  var title$e = "비밀번호 재설정";
@@ -5487,7 +5557,7 @@ var password$2 = "비밀번호";
5487
5557
  var submit$6 = "제출";
5488
5558
  var required$6 = "필수 항목";
5489
5559
  var passwordResetEmailSent$1 = "비밀번호 재설정 안내가 귀하의 이메일로 발송되었습니다.";
5490
- var messages$p = {
5560
+ var messages$r = {
5491
5561
  alreadyHaveAccount: "이미 계정이 있습니까?",
5492
5562
  loginHere: "여기에서 로그인하세요."
5493
5563
  };
@@ -5498,7 +5568,7 @@ var passwordForgot_ko = {
5498
5568
  submit: submit$6,
5499
5569
  required: required$6,
5500
5570
  passwordResetEmailSent: passwordResetEmailSent$1,
5501
- messages: messages$p
5571
+ messages: messages$r
5502
5572
  };
5503
5573
 
5504
5574
  var title$c = "비밀번호를 변경합니다.";
@@ -5526,7 +5596,7 @@ var title$b = "비밀번호 없는 로그인";
5526
5596
  var email$3 = "이메일 입력";
5527
5597
  var submit$4 = "제출";
5528
5598
  var required$4 = "필수 항목";
5529
- var messages$o = {
5599
+ var messages$q = {
5530
5600
  PasswordlessLoginSuccess: "비밀번호 없는 로그인으로 성공적으로 인증되었습니다."
5531
5601
  };
5532
5602
  var passwordlessRequest_ko = {
@@ -5534,7 +5604,7 @@ var passwordlessRequest_ko = {
5534
5604
  email: email$3,
5535
5605
  submit: submit$4,
5536
5606
  required: required$4,
5537
- messages: messages$o
5607
+ messages: messages$q
5538
5608
  };
5539
5609
 
5540
5610
  var title$a = "귀하의 장바구니";
@@ -5562,13 +5632,13 @@ var cart_ko = {
5562
5632
  removeAll: removeAll$1
5563
5633
  };
5564
5634
 
5565
- var buttons$7 = {
5635
+ var buttons$9 = {
5566
5636
  select: "선택",
5567
5637
  added: "장바구니에 추가",
5568
5638
  purchase: "구매",
5569
5639
  "continue": "계속"
5570
5640
  };
5571
- var messages$n = {
5641
+ var messages$p = {
5572
5642
  orderConfirmed: {
5573
5643
  title: "주문이 확인되었습니다!",
5574
5644
  body: "귀하의 주문이 확인되었으며 며칠 안에 배송될 예정입니다. 이 주문의 확인 이메일이 귀하에게 전송됩니다."
@@ -5577,17 +5647,17 @@ var messages$n = {
5577
5647
  multipleCurrencies: "장바구니에 다른 통화로만 결제가 가능한 아이템이 있습니다. 결제를 계속 진행하려면 모든 아이템의 결제 통화가 동일한지 확인하십시오.",
5578
5648
  currencyMismatch: "선택하신 아이템(들)이 귀하가 설정한 기본 통화({{currency}})와 일치하지 않습니다. 기본 통화와 일치하는 아이템(들)만 선택하십시오."
5579
5649
  };
5580
- var labels$m = {
5650
+ var labels$o = {
5581
5651
  summary: "주문 요약",
5582
5652
  total: "총계"
5583
5653
  };
5584
5654
  var shop_ko = {
5585
- buttons: buttons$7,
5586
- messages: messages$n,
5587
- labels: labels$m
5655
+ buttons: buttons$9,
5656
+ messages: messages$p,
5657
+ labels: labels$o
5588
5658
  };
5589
5659
 
5590
- var labels$l = {
5660
+ var labels$n = {
5591
5661
  cardNumber: "카드 번호",
5592
5662
  securityCode: "보안 코드",
5593
5663
  submit: "제출",
@@ -5609,7 +5679,7 @@ var labels$l = {
5609
5679
  title: "결제 정보"
5610
5680
  }
5611
5681
  };
5612
- var messages$m = {
5682
+ var messages$o = {
5613
5683
  youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
5614
5684
  cancel: "유료 멤버십은 언제든 온라인으로 취소가 가능합니다.",
5615
5685
  giftSent: "유료 멤버십 선물이 ",
@@ -5623,12 +5693,12 @@ var errors$5 = {
5623
5693
  "": ""
5624
5694
  };
5625
5695
  var payment_ko = {
5626
- labels: labels$l,
5627
- messages: messages$m,
5696
+ labels: labels$n,
5697
+ messages: messages$o,
5628
5698
  errors: errors$5
5629
5699
  };
5630
5700
 
5631
- var labels$k = {
5701
+ var labels$m = {
5632
5702
  menu: "Pelcro 메뉴",
5633
5703
  name: "이름",
5634
5704
  email: "이메일",
@@ -5776,7 +5846,7 @@ var savedItems = {
5776
5846
  var subCancellation = {
5777
5847
  goBack: "뒤로 가기"
5778
5848
  };
5779
- var messages$l = {
5849
+ var messages$n = {
5780
5850
  noCard: "등록된 카드가 없습니다.",
5781
5851
  subCancellation: {
5782
5852
  isSureToCancel: "정말로 유료 멤버십을 취소하시겠습니까?",
@@ -5796,7 +5866,7 @@ var messages$l = {
5796
5866
  }
5797
5867
  };
5798
5868
  var dashboard_ko = {
5799
- labels: labels$k,
5869
+ labels: labels$m,
5800
5870
  shipments: shipments,
5801
5871
  logout: logout,
5802
5872
  dashboard: dashboard$1,
@@ -5845,15 +5915,15 @@ var dashboard_ko = {
5845
5915
  orders: orders,
5846
5916
  savedItems: savedItems,
5847
5917
  subCancellation: subCancellation,
5848
- messages: messages$l
5918
+ messages: messages$n
5849
5919
  };
5850
5920
 
5851
- var messages$k = {
5921
+ var messages$m = {
5852
5922
  alreadyHaveAccount: "이미 계정이 있습니까?",
5853
5923
  loginHere: "여기에서 로그인하세요.",
5854
5924
  checkbox: "이 유료 멤버십을 선물하려면 체크하세요."
5855
5925
  };
5856
- var labels$j = {
5926
+ var labels$l = {
5857
5927
  plan: {
5858
5928
  title: "요금제 가입하기",
5859
5929
  subtitle: "아래 요금제 중 하나를 선택하고 다음을 클릭하세요."
@@ -5870,15 +5940,48 @@ var labels$j = {
5870
5940
  or: "아래에서 다른 상품을 선택해주시기 바랍니다."
5871
5941
  }
5872
5942
  };
5873
- var buttons$6 = {
5943
+ var buttons$8 = {
5874
5944
  next: "다음",
5875
5945
  select: "선택",
5876
5946
  back: "뒤로"
5877
5947
  };
5878
5948
  var select_ko = {
5879
- messages: messages$k,
5880
- labels: labels$j,
5881
- buttons: buttons$6
5949
+ messages: messages$m,
5950
+ labels: labels$l,
5951
+ buttons: buttons$8
5952
+ };
5953
+
5954
+ var messages$l = {
5955
+ alreadyHaveAccount: "이미 계정이 있습니까?",
5956
+ loginHere: "여기에서 로그인하세요.",
5957
+ checkbox: "이 유료 멤버십을 선물하려면 체크하세요."
5958
+ };
5959
+ var labels$k = {
5960
+ plan: {
5961
+ title: "요금제 가입하기",
5962
+ subtitle: "아래 요금제 중 하나를 선택하고 다음을 클릭하세요."
5963
+ },
5964
+ product: {
5965
+ title: "상품 가입하기",
5966
+ subtitle: "아래 상품 중 하나를 선택하고 다음을 클릭하세요."
5967
+ },
5968
+ selectProduct: "상품 선택",
5969
+ selectPlan: "요금제 선택",
5970
+ startingAt: "시작일:",
5971
+ restrictiveArticles: {
5972
+ subscribeTo: "이 페이지에 액세스하려면 다음 요금제 중 하나에 가입하거나",
5973
+ or: "아래에서 다른 상품을 선택해주시기 바랍니다."
5974
+ }
5975
+ };
5976
+ var buttons$7 = {
5977
+ next: "다음",
5978
+ select: "선택",
5979
+ back: "뒤로"
5980
+ };
5981
+ var donation_ko = {
5982
+ messages: messages$l,
5983
+ labels: labels$k,
5984
+ buttons: buttons$7
5882
5985
  };
5883
5986
 
5884
5987
  var confirm$3 = {
@@ -5891,46 +5994,46 @@ var notification_ko = {
5891
5994
  confirm: confirm$3
5892
5995
  };
5893
5996
 
5894
- var labels$i = {
5997
+ var labels$j = {
5895
5998
  title: "이메일 주소를 인증하세요.",
5896
5999
  instructions: "거의 완료되었습니다!\n이메일 주소만 인증하면 됩니다.\n다음 이메일 주소로 전송된 인증 링크를 클릭해 주십시오:",
5897
6000
  resend: "이메일 재전송"
5898
6001
  };
5899
- var messages$j = {
6002
+ var messages$k = {
5900
6003
  resent: "재전송 완료",
5901
6004
  success: "이메일 주소가 인증되었습니다!"
5902
6005
  };
5903
6006
  var verifyEmail_ko = {
5904
- labels: labels$i,
5905
- messages: messages$j
6007
+ labels: labels$j,
6008
+ messages: messages$k
5906
6009
  };
5907
6010
 
5908
6011
  var title$9 = "인보이스 세부 정보";
5909
- var labels$h = {
6012
+ var labels$i = {
5910
6013
  summary: "요약",
5911
6014
  total: "총계",
5912
6015
  amountPaid: "지불된 금액",
5913
6016
  amountDue: "지불액",
5914
6017
  creationDate: "생성일:"
5915
6018
  };
5916
- var buttons$5 = {
6019
+ var buttons$6 = {
5917
6020
  download: "다운로드",
5918
6021
  pay: "지금 지불"
5919
6022
  };
5920
6023
  var invoiceDetails_ko = {
5921
6024
  title: title$9,
5922
- labels: labels$h,
5923
- buttons: buttons$5
6025
+ labels: labels$i,
6026
+ buttons: buttons$6
5924
6027
  };
5925
6028
 
5926
- var labels$g = {
6029
+ var labels$h = {
5927
6030
  title: "구독 중단",
5928
6031
  suspensionDate: "중단 날짜",
5929
6032
  subCancellation: {
5930
6033
  goBack: "돌아가기"
5931
6034
  }
5932
6035
  };
5933
- var messages$i = {
6036
+ var messages$j = {
5934
6037
  suspensionEnd: "일시 중지가 만료되도록 설정되었습니다.",
5935
6038
  suspendNow: "지금 구독 일시 중단",
5936
6039
  suspendLater: "기간 종료 시 일시 중단",
@@ -5943,8 +6046,8 @@ var messages$i = {
5943
6046
  }
5944
6047
  };
5945
6048
  var subscriptionSuspend_ko = {
5946
- labels: labels$g,
5947
- messages: messages$i
6049
+ labels: labels$h,
6050
+ messages: messages$j
5948
6051
  };
5949
6052
 
5950
6053
  var validation = {
@@ -5956,7 +6059,7 @@ var validation = {
5956
6059
  enterLastName: "El apellido es obligatorio.",
5957
6060
  enterPhone: "El número de teléfono es obligatorio."
5958
6061
  };
5959
- var buttons$4 = {
6062
+ var buttons$5 = {
5960
6063
  account: "Mi cuenta",
5961
6064
  login: "Iniciar Sesión"
5962
6065
  };
@@ -6033,7 +6136,7 @@ var confirm$2 = {
6033
6136
  };
6034
6137
  var common_es = {
6035
6138
  validation: validation,
6036
- buttons: buttons$4,
6139
+ buttons: buttons$5,
6037
6140
  dashboard: dashboard,
6038
6141
  select: select$1,
6039
6142
  confirm: confirm$2
@@ -6064,7 +6167,7 @@ var paymentMethod_es = {
6064
6167
  var title$8 = "Ingresa tu correo para suscribirte a nuestro boletín";
6065
6168
  var updateTitle = "Actualizar selecciones del boletín";
6066
6169
  var subtitle$3 = "Podríamos usar tu dirección de correo para otras comunicaciones de marketing";
6067
- var labels$f = {
6170
+ var labels$g = {
6068
6171
  submit: "Enviar",
6069
6172
  firstName: "Nombre",
6070
6173
  lastName: "Apellido",
@@ -6072,7 +6175,7 @@ var labels$f = {
6072
6175
  postalCode: "Código postal",
6073
6176
  required: "obligatorio"
6074
6177
  };
6075
- var messages$h = {
6178
+ var messages$i = {
6076
6179
  alreadyHaveAccount: "¿Ya tienes una cuenta?",
6077
6180
  success: "El boletín se actualizó con éxito",
6078
6181
  loginHere: "Inicia sesión aquí.",
@@ -6083,14 +6186,14 @@ var newsletter_es = {
6083
6186
  title: title$8,
6084
6187
  updateTitle: updateTitle,
6085
6188
  subtitle: subtitle$3,
6086
- labels: labels$f,
6087
- messages: messages$h
6189
+ labels: labels$g,
6190
+ messages: messages$i
6088
6191
  };
6089
6192
 
6090
- var labels$e = {
6193
+ var labels$f = {
6091
6194
  "continue": "Continuar al contenido"
6092
6195
  };
6093
- var messages$g = {
6196
+ var messages$h = {
6094
6197
  yourFreeTrial: "¡Suscripción exitosa!",
6095
6198
  youHaveAccess: "Esperamos que disfrutes de tu suscripción. Por favor, contáctanos si tienes alguna pregunta o inquietud.",
6096
6199
  clickToLearn: {
@@ -6116,12 +6219,12 @@ var errors$4 = {
6116
6219
  "": ""
6117
6220
  };
6118
6221
  var success_es = {
6119
- labels: labels$e,
6120
- messages: messages$g,
6222
+ labels: labels$f,
6223
+ messages: messages$h,
6121
6224
  errors: errors$4
6122
6225
  };
6123
6226
 
6124
- var messages$f = {
6227
+ var messages$g = {
6125
6228
  freeVisits: "Visitas gratuitas restantes:",
6126
6229
  subscribeNow: "Suscribir",
6127
6230
  alreadyHaveAccount: "¿Ya tienes una cuenta?",
@@ -6131,16 +6234,16 @@ var errors$3 = {
6131
6234
  "": ""
6132
6235
  };
6133
6236
  var meter_es = {
6134
- messages: messages$f,
6237
+ messages: messages$g,
6135
6238
  errors: errors$3
6136
6239
  };
6137
6240
 
6138
- var messages$e = {
6241
+ var messages$f = {
6139
6242
  youAreSafe: "Estás seguro - PCI compliance 128 SSL por",
6140
6243
  bankRedirection: "Por favor, espera, estamos redireccionando a tu banco.",
6141
6244
  bankAuthenticationSuccess: "Por favor, espera un momento mientras procesamos tu solicitud."
6142
6245
  };
6143
- var labels$d = {
6246
+ var labels$e = {
6144
6247
  card: "Ingresar número de tarjeta",
6145
6248
  date: "Vencimiento",
6146
6249
  CVC: "CVC",
@@ -6160,11 +6263,12 @@ var labels$d = {
6160
6263
  firstName: "Nombre",
6161
6264
  lastName: "Apellido",
6162
6265
  phone: "Teléfono",
6163
- freeItems: "Artículos gratis"
6266
+ freeItems: "Artículos gratis",
6267
+ email: "Correo"
6164
6268
  };
6165
6269
  var checkoutForm_es = {
6166
- messages: messages$e,
6167
- labels: labels$d
6270
+ messages: messages$f,
6271
+ labels: labels$e
6168
6272
  };
6169
6273
 
6170
6274
  var youAreSafe = "Estás seguro - PCI compliance 128 SSL por";
@@ -6186,7 +6290,7 @@ var messages_es = {
6186
6290
  zeroTotalInvoice: zeroTotalInvoice
6187
6291
  };
6188
6292
 
6189
- var labels$c = {
6293
+ var labels$d = {
6190
6294
  email: "Ingresar correo",
6191
6295
  password: "Ingresar contraseña",
6192
6296
  required: "obligatorio",
@@ -6194,7 +6298,7 @@ var labels$c = {
6194
6298
  passwordPlaceholder: "Contraseña",
6195
6299
  login: "Iniciar Sesión"
6196
6300
  };
6197
- var messages$d = {
6301
+ var messages$e = {
6198
6302
  loginTo: "Inicia sesión en tu cuenta",
6199
6303
  welcome: "Bienvenido de vuelta, inicia sesión con tu cuenta existente.",
6200
6304
  dontHaveAccount: "¿Aún no tienes una cuenta?",
@@ -6213,28 +6317,28 @@ var errors$2 = {
6213
6317
  "": ""
6214
6318
  };
6215
6319
  var login_es = {
6216
- labels: labels$c,
6217
- messages: messages$d,
6320
+ labels: labels$d,
6321
+ messages: messages$e,
6218
6322
  errors: errors$2
6219
6323
  };
6220
6324
 
6221
- var labels$b = {
6325
+ var labels$c = {
6222
6326
  title: "Verificando Enlace Sin Contraseña",
6223
6327
  instructions: "¡Ya casi terminas!\nVamos a confirmar tu dirección de correo.\nPulsa el enlace de verificación que hemos enviado a tu correo:",
6224
6328
  resend: "Reenviar correo"
6225
6329
  };
6226
- var messages$c = {
6330
+ var messages$d = {
6227
6331
  resent: "Reenvío exitoso",
6228
6332
  success: "Inicio de sesión exitoso"
6229
6333
  };
6230
6334
  var verifyLinkToken_es = {
6231
- labels: labels$b,
6232
- messages: messages$c
6335
+ labels: labels$c,
6336
+ messages: messages$d
6233
6337
  };
6234
6338
 
6235
6339
  var title$7 = "Crear una cuenta";
6236
6340
  var subtitle$2 = "Ingresa tu correo y contraseña a continuación";
6237
- var labels$a = {
6341
+ var labels$b = {
6238
6342
  signUpFacebook: "Regístrate con Facebook",
6239
6343
  signUpGoogle: "Regístrate con Google",
6240
6344
  signUpEmail: "Regístrate con Correo",
@@ -6247,7 +6351,7 @@ var labels$a = {
6247
6351
  lastName: "Apellido",
6248
6352
  phone: "Teléfono"
6249
6353
  };
6250
- var messages$b = {
6354
+ var messages$c = {
6251
6355
  alreadyHaveAccount: " ¿Ya tienes una cuenta?",
6252
6356
  createAccount: "Crear cuenta",
6253
6357
  loginHere: "inicia sesión aquí",
@@ -6321,14 +6425,14 @@ var redeem = {
6321
6425
  var register_es = {
6322
6426
  title: title$7,
6323
6427
  subtitle: subtitle$2,
6324
- labels: labels$a,
6325
- messages: messages$b,
6428
+ labels: labels$b,
6429
+ messages: messages$c,
6326
6430
  errors: errors$1,
6327
6431
  gift: gift,
6328
6432
  redeem: redeem
6329
6433
  };
6330
6434
 
6331
- var labels$9 = {
6435
+ var labels$a = {
6332
6436
  title: "¿Quieres actualizar tu perfil?",
6333
6437
  subtitle: "Ingresa tu información a continuación para actualizar tu perfil",
6334
6438
  email: "Correo",
@@ -6347,21 +6451,21 @@ var labels$9 = {
6347
6451
  zoom: "Acercar",
6348
6452
  tin: "Número de Identificación Fiscal"
6349
6453
  };
6350
- var messages$a = {
6454
+ var messages$b = {
6351
6455
  userUpdated: "¡Gracias! Tu perfil se actualizó con éxito.",
6352
6456
  pictureRemoved: "Tu foto de perfil se eliminó con éxito.",
6353
6457
  pictureUpdated: "Tu foto de perfil se actualizó con éxito."
6354
6458
  };
6355
6459
  var userEdit_es = {
6356
- labels: labels$9,
6357
- messages: messages$a
6460
+ labels: labels$a,
6461
+ messages: messages$b
6358
6462
  };
6359
6463
 
6360
6464
  var title$6 = "Ingresa tu dirección de envío";
6361
6465
  var titleGifting = "Introduce tu dirección";
6362
6466
  var selectAddressTitle = "Por favor, selecciona una dirección";
6363
6467
  var selectAddressSubtitle = "Selecciona una de tus direcciones guardadas o añade una nueva";
6364
- var labels$8 = {
6468
+ var labels$9 = {
6365
6469
  address: "Dirección",
6366
6470
  code: "Código Postal/Área",
6367
6471
  city: "Ciudad",
@@ -6372,12 +6476,12 @@ var labels$8 = {
6372
6476
  required: "obligatorio",
6373
6477
  isDefault: "Configurar como dirección Principal"
6374
6478
  };
6375
- var buttons$3 = {
6479
+ var buttons$4 = {
6376
6480
  submit: "Enviar",
6377
6481
  selectAddress: "Seleccionar dirección",
6378
6482
  addAddress: "Añadir nueva dirección"
6379
6483
  };
6380
- var messages$9 = {
6484
+ var messages$a = {
6381
6485
  addressUpdated: "¡La dirección se actualizó con éxito!",
6382
6486
  subRedeemed: "Tu suscripción ha sido redimida."
6383
6487
  };
@@ -6386,9 +6490,9 @@ var address_es = {
6386
6490
  titleGifting: titleGifting,
6387
6491
  selectAddressTitle: selectAddressTitle,
6388
6492
  selectAddressSubtitle: selectAddressSubtitle,
6389
- labels: labels$8,
6390
- buttons: buttons$3,
6391
- messages: messages$9
6493
+ labels: labels$9,
6494
+ buttons: buttons$4,
6495
+ messages: messages$a
6392
6496
  };
6393
6497
 
6394
6498
  var title$5 = "Restablecer tu contraseña";
@@ -6416,7 +6520,7 @@ var password = "Contraseña";
6416
6520
  var submit$2 = "Enviar";
6417
6521
  var required$2 = "Obligatorio";
6418
6522
  var passwordResetEmailSent = "Las instrucciones de restablecimiento de la contraseña se han enviado a tu correo";
6419
- var messages$8 = {
6523
+ var messages$9 = {
6420
6524
  alreadyHaveAccount: "¿Ya tienes una cuenta?",
6421
6525
  loginHere: "Inicia sesión aquí."
6422
6526
  };
@@ -6427,7 +6531,7 @@ var passwordForgot_es = {
6427
6531
  submit: submit$2,
6428
6532
  required: required$2,
6429
6533
  passwordResetEmailSent: passwordResetEmailSent,
6430
- messages: messages$8
6534
+ messages: messages$9
6431
6535
  };
6432
6536
 
6433
6537
  var title$3 = "Cambiar tu contraseña";
@@ -6455,7 +6559,7 @@ var title$2 = "Acceso sin contraseña";
6455
6559
  var email = "Ingresar correo";
6456
6560
  var submit = "Enviar";
6457
6561
  var required = "obligatorio";
6458
- var messages$7 = {
6562
+ var messages$8 = {
6459
6563
  PasswordlessLoginSuccess: "Por favor, revisa tu correo y sigue las instrucciones que se indican"
6460
6564
  };
6461
6565
  var passwordlessRequest_es = {
@@ -6463,7 +6567,7 @@ var passwordlessRequest_es = {
6463
6567
  email: email,
6464
6568
  submit: submit,
6465
6569
  required: required,
6466
- messages: messages$7
6570
+ messages: messages$8
6467
6571
  };
6468
6572
 
6469
6573
  var title$1 = "Tu carrito de compras";
@@ -6491,13 +6595,13 @@ var cart_es = {
6491
6595
  removeAll: removeAll
6492
6596
  };
6493
6597
 
6494
- var buttons$2 = {
6598
+ var buttons$3 = {
6495
6599
  select: "Seleccionar",
6496
6600
  added: "Añadido al carrito",
6497
6601
  purchase: "Compra",
6498
6602
  "continue": "Continuar"
6499
6603
  };
6500
- var messages$6 = {
6604
+ var messages$7 = {
6501
6605
  orderConfirmed: {
6502
6606
  title: "¡Orden confirmada!",
6503
6607
  body: "Tu orden ha sido confirmada y será enviada en los próximos días. En breve recibirás un correo electrónico de confirmación de esta orden."
@@ -6506,17 +6610,17 @@ var messages$6 = {
6506
6610
  multipleCurrencies: "Tu carrito actualmente contiene artículos que están disponibles en diferentes divisas. Para proceder a la compra, asegúrate de que todos los artículos tengan la misma divisa.",
6507
6611
  currencyMismatch: "El siguiente artículo(s) no coincide con tu divisa predeterminada actual ({{currency}}). Por favor, solo elige artículos que coincidan con esta divisa."
6508
6612
  };
6509
- var labels$7 = {
6613
+ var labels$8 = {
6510
6614
  summary: "Resumen de la orden",
6511
6615
  total: "total"
6512
6616
  };
6513
6617
  var shop_es = {
6514
- buttons: buttons$2,
6515
- messages: messages$6,
6516
- labels: labels$7
6618
+ buttons: buttons$3,
6619
+ messages: messages$7,
6620
+ labels: labels$8
6517
6621
  };
6518
6622
 
6519
- var labels$6 = {
6623
+ var labels$7 = {
6520
6624
  cardNumber: "Número de Tarjeta",
6521
6625
  securityCode: "Código de Seguridad",
6522
6626
  submit: "Enviar",
@@ -6538,7 +6642,7 @@ var labels$6 = {
6538
6642
  title: "Información de Pago"
6539
6643
  }
6540
6644
  };
6541
- var messages$5 = {
6645
+ var messages$6 = {
6542
6646
  youAreSafe: "Estás seguro - PCI compliance 128 SSL por",
6543
6647
  cancel: "Cancela tu suscripción en línea en cualquier momento.",
6544
6648
  giftSent: "La suscripción de regalo se ha enviado a",
@@ -6552,12 +6656,12 @@ var errors = {
6552
6656
  "": ""
6553
6657
  };
6554
6658
  var payment_es = {
6555
- labels: labels$6,
6556
- messages: messages$5,
6659
+ labels: labels$7,
6660
+ messages: messages$6,
6557
6661
  errors: errors
6558
6662
  };
6559
6663
 
6560
- var labels$5 = {
6664
+ var labels$6 = {
6561
6665
  menu: "Menú de Pelcro",
6562
6666
  name: "Nombre",
6563
6667
  email: "Correo",
@@ -6644,7 +6748,7 @@ var labels$5 = {
6644
6748
  goBack: "Volver"
6645
6749
  }
6646
6750
  };
6647
- var messages$4 = {
6751
+ var messages$5 = {
6648
6752
  noCard: "No tienes una tarjeta",
6649
6753
  subCancellation: {
6650
6754
  isSureToCancel: "¿Estás seguro de que quieres cancelar tu suscripción?",
@@ -6664,8 +6768,41 @@ var messages$4 = {
6664
6768
  }
6665
6769
  };
6666
6770
  var dashboard_es = {
6771
+ labels: labels$6,
6772
+ messages: messages$5
6773
+ };
6774
+
6775
+ var messages$4 = {
6776
+ alreadyHaveAccount: "¿Ya tienes una cuenta?",
6777
+ loginHere: "Inicia sesión aquí",
6778
+ checkbox: "Marca esta casilla para regalar esta suscripción"
6779
+ };
6780
+ var labels$5 = {
6781
+ plan: {
6782
+ title: "Suscribirse a un plan",
6783
+ subtitle: "Selecciona uno de los planes a continuación y pulsa en siguiente."
6784
+ },
6785
+ product: {
6786
+ title: "Suscribirse a un producto",
6787
+ subtitle: "Selecciona uno de los productos a continuación y pulsa en siguiente."
6788
+ },
6789
+ selectProduct: "Selecciona un producto",
6790
+ selectPlan: "Selecciona un plan",
6791
+ startingAt: "Inicia el",
6792
+ restrictiveArticles: {
6793
+ subscribeTo: "Suscríbete a una de las siguientes opciones para obtener acceso a esta página",
6794
+ or: "O revisa algunas de nuestras otras opciones a continuación"
6795
+ }
6796
+ };
6797
+ var buttons$2 = {
6798
+ next: "Siguiente",
6799
+ select: "Seleccionar",
6800
+ back: "Volver"
6801
+ };
6802
+ var select_es = {
6803
+ messages: messages$4,
6667
6804
  labels: labels$5,
6668
- messages: messages$4
6805
+ buttons: buttons$2
6669
6806
  };
6670
6807
 
6671
6808
  var messages$3 = {
@@ -6695,7 +6832,7 @@ var buttons$1 = {
6695
6832
  select: "Seleccionar",
6696
6833
  back: "Volver"
6697
6834
  };
6698
- var select_es = {
6835
+ var donation_es = {
6699
6836
  messages: messages$3,
6700
6837
  labels: labels$4,
6701
6838
  buttons: buttons$1
@@ -8539,6 +8676,9 @@ const initialState$n = {
8539
8676
  giftCode: "",
8540
8677
  subscriptionIdToRenew: null,
8541
8678
  subscriptionToManageMembers: null,
8679
+ isDonation: false,
8680
+ selectedDonationAmount: null,
8681
+ customDonationAmount: null,
8542
8682
  // E-commerce
8543
8683
  cartItems: [],
8544
8684
  order: null,
@@ -8722,7 +8862,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
8722
8862
  * @return {boolean}
8723
8863
  */
8724
8864
  const isValidViewFromURL = viewID => {
8725
- if (["login", "register", "plan-select", "gift-redeem", "password-forgot", "password-reset", "password-change", "passwordless-request", "passwordless-login", "payment-method-update", "user-edit", "newsletter", "address-create", "order-create", "cart", "email-verify", "invoice-details", "manage-members"].includes(viewID) || hasValidNewsletterUpdateUrl()) {
8865
+ if (["login", "register", "plan-select", "donation-select", "gift-redeem", "password-forgot", "password-reset", "password-change", "passwordless-request", "passwordless-login", "payment-method-update", "user-edit", "newsletter", "address-create", "order-create", "cart", "email-verify", "invoice-details", "manage-members"].includes(viewID) || hasValidNewsletterUpdateUrl()) {
8726
8866
  return true;
8727
8867
  }
8728
8868
  return false;
@@ -8929,6 +9069,17 @@ function notifyBugsnag(callback, startOptions) {
8929
9069
  callback();
8930
9070
  }
8931
9071
 
9072
+ //create a safe and strong password string with special characters
9073
+ function generatePassword() {
9074
+ const length = 16;
9075
+ const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+{}|:<>?`~";
9076
+ let retVal = "";
9077
+ for (let i = 0, n = charset.length; i < length; ++i) {
9078
+ retVal += charset.charAt(Math.floor(Math.random() * n));
9079
+ }
9080
+ return retVal;
9081
+ }
9082
+
8932
9083
  const resources = {
8933
9084
  en: {
8934
9085
  common: common_en,
@@ -8953,6 +9104,7 @@ const resources = {
8953
9104
  payment: payment_en,
8954
9105
  dashboard: dashboard_en,
8955
9106
  select: select_en,
9107
+ donation: donation_en,
8956
9108
  notification: notification_en,
8957
9109
  invoiceDetails: invoiceDetails_en,
8958
9110
  subscriptionCancel: subscriptionCancel_en,
@@ -8982,6 +9134,7 @@ const resources = {
8982
9134
  payment: payment_fr,
8983
9135
  dashboard: dashboard_fr,
8984
9136
  select: select_fr,
9137
+ donation: donation_fr,
8985
9138
  notification: notification_fr,
8986
9139
  invoiceDetails: invoiceDetails_fr,
8987
9140
  subscriptionCancel: subscriptionCancel_fr,
@@ -9011,6 +9164,7 @@ const resources = {
9011
9164
  payment: payment_ko,
9012
9165
  dashboard: dashboard_ko,
9013
9166
  select: select_ko,
9167
+ donation: donation_ko,
9014
9168
  notification: notification_ko,
9015
9169
  invoiceDetails: invoiceDetails_ko,
9016
9170
  subscriptionCancel: subscriptionCancel_ko,
@@ -9040,6 +9194,7 @@ const resources = {
9040
9194
  payment: payment_es,
9041
9195
  dashboard: dashboard_es,
9042
9196
  select: select_es,
9197
+ donation: donation_es,
9043
9198
  notification: notification_es,
9044
9199
  invoiceDetails: invoiceDetails_es,
9045
9200
  subscriptionCancel: subscriptionCancel_es,
@@ -9075,6 +9230,175 @@ pageLanguageObserver.observe(document.documentElement, {
9075
9230
  attributes: true
9076
9231
  });
9077
9232
 
9233
+ var pure$1 = createCommonjsModule(function (module, exports) {
9234
+
9235
+ Object.defineProperty(exports, '__esModule', { value: true });
9236
+
9237
+ function _typeof(obj) {
9238
+ "@babel/helpers - typeof";
9239
+
9240
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
9241
+ _typeof = function (obj) {
9242
+ return typeof obj;
9243
+ };
9244
+ } else {
9245
+ _typeof = function (obj) {
9246
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9247
+ };
9248
+ }
9249
+
9250
+ return _typeof(obj);
9251
+ }
9252
+
9253
+ var V3_URL = 'https://js.stripe.com/v3';
9254
+ var V3_URL_REGEX = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;
9255
+ 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';
9256
+ var findScript = function findScript() {
9257
+ var scripts = document.querySelectorAll("script[src^=\"".concat(V3_URL, "\"]"));
9258
+
9259
+ for (var i = 0; i < scripts.length; i++) {
9260
+ var script = scripts[i];
9261
+
9262
+ if (!V3_URL_REGEX.test(script.src)) {
9263
+ continue;
9264
+ }
9265
+
9266
+ return script;
9267
+ }
9268
+
9269
+ return null;
9270
+ };
9271
+
9272
+ var injectScript = function injectScript(params) {
9273
+ var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';
9274
+ var script = document.createElement('script');
9275
+ script.src = "".concat(V3_URL).concat(queryString);
9276
+ var headOrBody = document.head || document.body;
9277
+
9278
+ if (!headOrBody) {
9279
+ throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');
9280
+ }
9281
+
9282
+ headOrBody.appendChild(script);
9283
+ return script;
9284
+ };
9285
+
9286
+ var registerWrapper = function registerWrapper(stripe, startTime) {
9287
+ if (!stripe || !stripe._registerWrapper) {
9288
+ return;
9289
+ }
9290
+
9291
+ stripe._registerWrapper({
9292
+ name: 'stripe-js',
9293
+ version: "1.21.1",
9294
+ startTime: startTime
9295
+ });
9296
+ };
9297
+
9298
+ var stripePromise = null;
9299
+ var loadScript = function loadScript(params) {
9300
+ // Ensure that we only attempt to load Stripe.js at most once
9301
+ if (stripePromise !== null) {
9302
+ return stripePromise;
9303
+ }
9304
+
9305
+ stripePromise = new Promise(function (resolve, reject) {
9306
+ if (typeof window === 'undefined') {
9307
+ // Resolve to null when imported server side. This makes the module
9308
+ // safe to import in an isomorphic code base.
9309
+ resolve(null);
9310
+ return;
9311
+ }
9312
+
9313
+ if (window.Stripe && params) {
9314
+ console.warn(EXISTING_SCRIPT_MESSAGE);
9315
+ }
9316
+
9317
+ if (window.Stripe) {
9318
+ resolve(window.Stripe);
9319
+ return;
9320
+ }
9321
+
9322
+ try {
9323
+ var script = findScript();
9324
+
9325
+ if (script && params) {
9326
+ console.warn(EXISTING_SCRIPT_MESSAGE);
9327
+ } else if (!script) {
9328
+ script = injectScript(params);
9329
+ }
9330
+
9331
+ script.addEventListener('load', function () {
9332
+ if (window.Stripe) {
9333
+ resolve(window.Stripe);
9334
+ } else {
9335
+ reject(new Error('Stripe.js not available'));
9336
+ }
9337
+ });
9338
+ script.addEventListener('error', function () {
9339
+ reject(new Error('Failed to load Stripe.js'));
9340
+ });
9341
+ } catch (error) {
9342
+ reject(error);
9343
+ return;
9344
+ }
9345
+ });
9346
+ return stripePromise;
9347
+ };
9348
+ var initStripe = function initStripe(maybeStripe, args, startTime) {
9349
+ if (maybeStripe === null) {
9350
+ return null;
9351
+ }
9352
+
9353
+ var stripe = maybeStripe.apply(undefined, args);
9354
+ registerWrapper(stripe, startTime);
9355
+ return stripe;
9356
+ };
9357
+ var validateLoadParams = function validateLoadParams(params) {
9358
+ var errorMessage = "invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(params), "\n");
9359
+
9360
+ if (params === null || _typeof(params) !== 'object') {
9361
+ throw new Error(errorMessage);
9362
+ }
9363
+
9364
+ if (Object.keys(params).length === 1 && typeof params.advancedFraudSignals === 'boolean') {
9365
+ return params;
9366
+ }
9367
+
9368
+ throw new Error(errorMessage);
9369
+ };
9370
+
9371
+ var loadParams;
9372
+ var loadStripeCalled = false;
9373
+ var loadStripe = function loadStripe() {
9374
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9375
+ args[_key] = arguments[_key];
9376
+ }
9377
+
9378
+ loadStripeCalled = true;
9379
+ var startTime = Date.now();
9380
+ return loadScript(loadParams).then(function (maybeStripe) {
9381
+ return initStripe(maybeStripe, args, startTime);
9382
+ });
9383
+ };
9384
+
9385
+ loadStripe.setLoadParameters = function (params) {
9386
+ if (loadStripeCalled) {
9387
+ throw new Error('You cannot change load parameters after calling loadStripe');
9388
+ }
9389
+
9390
+ loadParams = validateLoadParams(params);
9391
+ };
9392
+
9393
+ exports.loadStripe = loadStripe;
9394
+ });
9395
+
9396
+ unwrapExports(pure$1);
9397
+ pure$1.loadStripe;
9398
+
9399
+ var pure = pure$1;
9400
+ var pure_1 = pure.loadStripe;
9401
+
9078
9402
  function _classPrivateFieldGet(receiver, privateMap) {
9079
9403
  var descriptor = privateMap.get(receiver);
9080
9404
 
@@ -10390,23 +10714,74 @@ const init$1 = () => {
10390
10714
  }
10391
10715
  }
10392
10716
  }
10393
- const pelcroOfflineSubButtonsByClass = document.getElementsByClassName("pelcro-offline-subscribe-button");
10394
- if (pelcroOfflineSubButtonsByClass.length !== 0) {
10395
- for (let j = 0; j < pelcroOfflineSubButtonsByClass.length; j++) {
10396
- if (pelcroOfflineSubButtonsByClass[j].dataset && "productId" in pelcroOfflineSubButtonsByClass[j].dataset && "planId" in pelcroOfflineSubButtonsByClass[j].dataset) {
10397
- pelcroOfflineSubButtonsByClass[j].addEventListener("click", e => {
10717
+ const pelcroDonateButtonsByClass = document.getElementsByClassName("pelcro-donate-button");
10718
+ if (pelcroDonateButtonsByClass.length !== 0) {
10719
+ for (let j = 0; j < pelcroDonateButtonsByClass.length; j++) {
10720
+ if (pelcroDonateButtonsByClass[j].dataset && "productId" in pelcroDonateButtonsByClass[j].dataset) {
10721
+ pelcroDonateButtonsByClass[j].addEventListener("click", e => {
10722
+ var _selectedProduct$plan2;
10398
10723
  set({
10399
- product: {
10400
- id: e.target.dataset.productId
10401
- },
10402
- plan: {
10403
- product_id: e.target.dataset.productId,
10404
- id: e.target.dataset.planId
10405
- }
10724
+ isDonation: true
10406
10725
  });
10407
- window.Pelcro.plan.getPlan({
10408
- plan_id: e.target.dataset.planId
10409
- }, (error, response) => {
10726
+ const productsList = window.Pelcro.product.list();
10727
+ if (!(productsList !== null && productsList !== void 0 && productsList.length)) return;
10728
+ const [productId, planId, isGift] = [e.target.dataset.productId, e.target.dataset.planId, e.target.dataset.isGift];
10729
+ const selectedProduct = productsList.find(product => product.id === Number(productId));
10730
+ 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));
10731
+ set({
10732
+ product: selectedProduct,
10733
+ plan: selectedPlan,
10734
+ isGift: Boolean(isGift)
10735
+ });
10736
+ if (!selectedProduct || !selectedPlan) {
10737
+ return switchView("plan-select");
10738
+ }
10739
+
10740
+ // if (!isAuthenticated()) {
10741
+ // return switchView("register");
10742
+ // }
10743
+
10744
+ if (isGift) {
10745
+ return switchView("gift-create");
10746
+ }
10747
+
10748
+ // const requiresAddress = Boolean(
10749
+ // selectedProduct.address_required
10750
+ // );
10751
+
10752
+ // if (requiresAddress) {
10753
+ // return switchToAddressView();
10754
+ // }
10755
+
10756
+ return switchToPaymentView();
10757
+ });
10758
+ } else {
10759
+ pelcroDonateButtonsByClass[j].addEventListener("click", () => {
10760
+ set({
10761
+ isDonation: true
10762
+ });
10763
+ switchView("donation-select");
10764
+ });
10765
+ }
10766
+ }
10767
+ }
10768
+ const pelcroOfflineSubButtonsByClass = document.getElementsByClassName("pelcro-offline-subscribe-button");
10769
+ if (pelcroOfflineSubButtonsByClass.length !== 0) {
10770
+ for (let j = 0; j < pelcroOfflineSubButtonsByClass.length; j++) {
10771
+ if (pelcroOfflineSubButtonsByClass[j].dataset && "productId" in pelcroOfflineSubButtonsByClass[j].dataset && "planId" in pelcroOfflineSubButtonsByClass[j].dataset) {
10772
+ pelcroOfflineSubButtonsByClass[j].addEventListener("click", e => {
10773
+ set({
10774
+ product: {
10775
+ id: e.target.dataset.productId
10776
+ },
10777
+ plan: {
10778
+ product_id: e.target.dataset.productId,
10779
+ id: e.target.dataset.planId
10780
+ }
10781
+ });
10782
+ window.Pelcro.plan.getPlan({
10783
+ plan_id: e.target.dataset.planId
10784
+ }, (error, response) => {
10410
10785
  if (error) {
10411
10786
  return;
10412
10787
  }
@@ -10642,175 +11017,6 @@ function shouldBlurContent(entitlements) {
10642
11017
  return entitlements.every(entitlement => !window.Pelcro.user.isEntitledTo(entitlement));
10643
11018
  }
10644
11019
 
10645
- var pure$1 = createCommonjsModule(function (module, exports) {
10646
-
10647
- Object.defineProperty(exports, '__esModule', { value: true });
10648
-
10649
- function _typeof(obj) {
10650
- "@babel/helpers - typeof";
10651
-
10652
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
10653
- _typeof = function (obj) {
10654
- return typeof obj;
10655
- };
10656
- } else {
10657
- _typeof = function (obj) {
10658
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
10659
- };
10660
- }
10661
-
10662
- return _typeof(obj);
10663
- }
10664
-
10665
- var V3_URL = 'https://js.stripe.com/v3';
10666
- var V3_URL_REGEX = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;
10667
- var EXISTING_SCRIPT_MESSAGE = 'loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used';
10668
- var findScript = function findScript() {
10669
- var scripts = document.querySelectorAll("script[src^=\"".concat(V3_URL, "\"]"));
10670
-
10671
- for (var i = 0; i < scripts.length; i++) {
10672
- var script = scripts[i];
10673
-
10674
- if (!V3_URL_REGEX.test(script.src)) {
10675
- continue;
10676
- }
10677
-
10678
- return script;
10679
- }
10680
-
10681
- return null;
10682
- };
10683
-
10684
- var injectScript = function injectScript(params) {
10685
- var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';
10686
- var script = document.createElement('script');
10687
- script.src = "".concat(V3_URL).concat(queryString);
10688
- var headOrBody = document.head || document.body;
10689
-
10690
- if (!headOrBody) {
10691
- throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');
10692
- }
10693
-
10694
- headOrBody.appendChild(script);
10695
- return script;
10696
- };
10697
-
10698
- var registerWrapper = function registerWrapper(stripe, startTime) {
10699
- if (!stripe || !stripe._registerWrapper) {
10700
- return;
10701
- }
10702
-
10703
- stripe._registerWrapper({
10704
- name: 'stripe-js',
10705
- version: "1.21.1",
10706
- startTime: startTime
10707
- });
10708
- };
10709
-
10710
- var stripePromise = null;
10711
- var loadScript = function loadScript(params) {
10712
- // Ensure that we only attempt to load Stripe.js at most once
10713
- if (stripePromise !== null) {
10714
- return stripePromise;
10715
- }
10716
-
10717
- stripePromise = new Promise(function (resolve, reject) {
10718
- if (typeof window === 'undefined') {
10719
- // Resolve to null when imported server side. This makes the module
10720
- // safe to import in an isomorphic code base.
10721
- resolve(null);
10722
- return;
10723
- }
10724
-
10725
- if (window.Stripe && params) {
10726
- console.warn(EXISTING_SCRIPT_MESSAGE);
10727
- }
10728
-
10729
- if (window.Stripe) {
10730
- resolve(window.Stripe);
10731
- return;
10732
- }
10733
-
10734
- try {
10735
- var script = findScript();
10736
-
10737
- if (script && params) {
10738
- console.warn(EXISTING_SCRIPT_MESSAGE);
10739
- } else if (!script) {
10740
- script = injectScript(params);
10741
- }
10742
-
10743
- script.addEventListener('load', function () {
10744
- if (window.Stripe) {
10745
- resolve(window.Stripe);
10746
- } else {
10747
- reject(new Error('Stripe.js not available'));
10748
- }
10749
- });
10750
- script.addEventListener('error', function () {
10751
- reject(new Error('Failed to load Stripe.js'));
10752
- });
10753
- } catch (error) {
10754
- reject(error);
10755
- return;
10756
- }
10757
- });
10758
- return stripePromise;
10759
- };
10760
- var initStripe = function initStripe(maybeStripe, args, startTime) {
10761
- if (maybeStripe === null) {
10762
- return null;
10763
- }
10764
-
10765
- var stripe = maybeStripe.apply(undefined, args);
10766
- registerWrapper(stripe, startTime);
10767
- return stripe;
10768
- };
10769
- var validateLoadParams = function validateLoadParams(params) {
10770
- var errorMessage = "invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(params), "\n");
10771
-
10772
- if (params === null || _typeof(params) !== 'object') {
10773
- throw new Error(errorMessage);
10774
- }
10775
-
10776
- if (Object.keys(params).length === 1 && typeof params.advancedFraudSignals === 'boolean') {
10777
- return params;
10778
- }
10779
-
10780
- throw new Error(errorMessage);
10781
- };
10782
-
10783
- var loadParams;
10784
- var loadStripeCalled = false;
10785
- var loadStripe = function loadStripe() {
10786
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10787
- args[_key] = arguments[_key];
10788
- }
10789
-
10790
- loadStripeCalled = true;
10791
- var startTime = Date.now();
10792
- return loadScript(loadParams).then(function (maybeStripe) {
10793
- return initStripe(maybeStripe, args, startTime);
10794
- });
10795
- };
10796
-
10797
- loadStripe.setLoadParameters = function (params) {
10798
- if (loadStripeCalled) {
10799
- throw new Error('You cannot change load parameters after calling loadStripe');
10800
- }
10801
-
10802
- loadParams = validateLoadParams(params);
10803
- };
10804
-
10805
- exports.loadStripe = loadStripe;
10806
- });
10807
-
10808
- unwrapExports(pure$1);
10809
- pure$1.loadStripe;
10810
-
10811
- var pure = pure$1;
10812
- var pure_1 = pure.loadStripe;
10813
-
10814
11020
  /**
10815
11021
  * Extracts error message from the response error object
10816
11022
  * @param {Object} error Error object
@@ -11118,6 +11324,9 @@ const initViewFromURL = () => {
11118
11324
  if (view === "plan-select") {
11119
11325
  return initSubscriptionFromURL();
11120
11326
  }
11327
+ if (view === "donation-select") {
11328
+ return initDonationFromURL();
11329
+ }
11121
11330
  if (view === "register") {
11122
11331
  const offlinePlanId = window.Pelcro.helpers.getURLParameter("plan_id");
11123
11332
  if (offlinePlanId) {
@@ -11200,6 +11409,61 @@ const initSubscriptionFromURL = () => {
11200
11409
  });
11201
11410
  };
11202
11411
 
11412
+ /**
11413
+ * Initializes the donation flow if 'product_id' & 'plan_id' params exist
11414
+ * with valid IDs. Otherwise, switches to the donation selection flow
11415
+ */
11416
+ const initDonationFromURL = () => {
11417
+ const {
11418
+ switchView,
11419
+ whenSiteReady,
11420
+ set
11421
+ } = usePelcro.getStore();
11422
+ whenSiteReady(() => {
11423
+ var _selectedProduct$plan2;
11424
+ const productsList = window.Pelcro.product.list();
11425
+ if (!(productsList !== null && productsList !== void 0 && productsList.length)) {
11426
+ return;
11427
+ }
11428
+ const [productId, planId, isGiftParam] = [window.Pelcro.helpers.getURLParameter("product_id"), window.Pelcro.helpers.getURLParameter("plan_id"), window.Pelcro.helpers.getURLParameter("is_gift")];
11429
+ const isGift = (isGiftParam === null || isGiftParam === void 0 ? void 0 : isGiftParam.toLowerCase()) === "true";
11430
+ const selectedProduct = productsList.find(product => product.id === Number(productId));
11431
+ 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));
11432
+ set({
11433
+ product: selectedProduct,
11434
+ plan: selectedPlan,
11435
+ isGift
11436
+ });
11437
+ if (!selectedProduct || !selectedPlan) {
11438
+ set({
11439
+ isDonation: true
11440
+ });
11441
+ return switchView("donation-select");
11442
+ }
11443
+ const {
11444
+ isAuthenticated,
11445
+ switchToAddressView,
11446
+ switchToPaymentView
11447
+ } = usePelcro.getStore();
11448
+
11449
+ // if (!isAuthenticated()) {
11450
+ // return switchView("register");
11451
+ // }
11452
+
11453
+ // if (isGift) {
11454
+ // return switchView("gift-create");
11455
+ // }
11456
+
11457
+ // const requiresAddress = Boolean(selectedProduct.address_required);
11458
+ //
11459
+ // if (requiresAddress) {
11460
+ // return switchToAddressView();
11461
+ // }
11462
+
11463
+ return switchToPaymentView();
11464
+ });
11465
+ };
11466
+
11203
11467
  /**
11204
11468
  * Initializes offline subscription flow if 'plan_id' params exist
11205
11469
  * with valid IDs, Otherwise, ignore the param
@@ -11471,8 +11735,18 @@ const PelcroModalController = _ref => {
11471
11735
  const {
11472
11736
  view,
11473
11737
  isAuthenticated,
11474
- whenSiteReady
11738
+ whenSiteReady,
11739
+ isDonation
11475
11740
  } = usePelcro();
11741
+ const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
11742
+ const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
11743
+ React__default['default'].useEffect(() => {
11744
+ if (isDonation) {
11745
+ if (!window.Stripe && !supportsVantiv && !supportsTap) {
11746
+ pure_1(window.Pelcro.environment.stripe);
11747
+ }
11748
+ }
11749
+ }, [isDonation]);
11476
11750
  React__default['default'].useEffect(() => {
11477
11751
  init$1();
11478
11752
  renderShopView(React__default['default'].Children.map(children, child => child).find(_ref2 => {
@@ -13952,7 +14226,398 @@ function Radio(_ref) {
13952
14226
  /**
13953
14227
  *
13954
14228
  */
13955
- function SelectModalWithHook(props) {
14229
+ function SelectModalWithHook(props) {
14230
+ React__default['default'].useEffect(() => {
14231
+ var _props$onDisplay;
14232
+ (_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
14233
+ }, []);
14234
+ const {
14235
+ isGift,
14236
+ plan,
14237
+ product,
14238
+ isRenewingGift,
14239
+ switchView,
14240
+ resetView,
14241
+ view,
14242
+ set
14243
+ } = usePelcro();
14244
+ const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
14245
+ const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
14246
+ return /*#__PURE__*/React__default['default'].createElement(SelectModalWithTrans, {
14247
+ isGift: isGift,
14248
+ disableGifting: isRenewingGift,
14249
+ plan: plan,
14250
+ product: product,
14251
+ onClose: () => {
14252
+ var _props$onClose;
14253
+ (_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
14254
+ resetView();
14255
+ },
14256
+ setProductAndPlan: (product, plan, isGift) => set({
14257
+ product,
14258
+ plan,
14259
+ isGift
14260
+ }),
14261
+ setView: switchView,
14262
+ matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
14263
+ });
14264
+ }
14265
+ function productsWithMatchedTaggedFirst$1() {
14266
+ var _window$Pelcro$produc;
14267
+ const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
14268
+ const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
14269
+ const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
14270
+ return [productsThatMatchArticleTag, allProductsMinusMatched];
14271
+ }
14272
+ function productMatchPageLanguage(product) {
14273
+ if (!product) {
14274
+ return false;
14275
+ }
14276
+ if (product.language === null) {
14277
+ return true;
14278
+ }
14279
+ const siteLanguage = window.Pelcro.helpers.getHtmlLanguageAttribute();
14280
+ return product.language === siteLanguage;
14281
+ }
14282
+ SelectModalWithHook.viewId = "plan-select";
14283
+ class SelectModal extends React.Component {
14284
+ constructor(props) {
14285
+ super(props);
14286
+ _defineProperty$3(this, "componentDidMount", () => {
14287
+ if (this.props.product) {
14288
+ const {
14289
+ product
14290
+ } = this.props;
14291
+ const planList = product.plans;
14292
+ this.setState({
14293
+ product,
14294
+ planList,
14295
+ mode: "plan"
14296
+ });
14297
+ }
14298
+ if (this.props.plan) {
14299
+ const {
14300
+ plan
14301
+ } = this.props;
14302
+ this.setState({
14303
+ plan,
14304
+ disabled: false
14305
+ });
14306
+ }
14307
+ if (this.state.productList.length === 1) {
14308
+ this.setState({
14309
+ product: this.state.productList[0],
14310
+ planList: this.state.productList[0].plans,
14311
+ mode: "plan"
14312
+ });
14313
+ }
14314
+ if (this.state.productList.length === 0 && !window.Pelcro.user.isAuthenticated()) {
14315
+ this.props.setView("register");
14316
+ }
14317
+ document.addEventListener("keydown", this.handleSubmit);
14318
+ if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
14319
+ var _window$Pelcro, _window$Pelcro$user, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$site;
14320
+ 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;
14321
+ 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;
14322
+ const userLanguage = (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$user = _window$Pelcro3.user) === null || _window$Pelcro3$user === void 0 ? void 0 : _window$Pelcro3$user.read().language;
14323
+ 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 => {
14324
+ const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
14325
+ if (filteredPlans.length) return filteredPlans;
14326
+ });
14327
+ const productsMatchingUserCountry = productsMatchingUserCurrency.filter(product => {
14328
+ const filteredPlans = product.plans.filter(plan => {
14329
+ var _plan$countries;
14330
+ return plan.countries && ((_plan$countries = plan.countries) === null || _plan$countries === void 0 ? void 0 : _plan$countries.includes(userCountry)) || !plan.countries || !plan.countries.length;
14331
+ });
14332
+ if (filteredPlans.length) return filteredPlans;
14333
+ });
14334
+ notifyBugsnag(() => {
14335
+ Bugsnag.notify("SelectModal - No data viewed", event => {
14336
+ var _window$Pelcro5, _window$Pelcro5$site, _window$Pelcro6, _window$Pelcro6$user, _window$Pelcro7, _window$Pelcro7$uiSet, _window$Pelcro8, _this$props, _window$Pelcro9, _window$Pelcro9$helpe, _window$Pelcro10, _window$Pelcro10$site;
14337
+ event.addMetadata("MetaData", {
14338
+ site: (_window$Pelcro5 = window.Pelcro) === null || _window$Pelcro5 === void 0 ? void 0 : (_window$Pelcro5$site = _window$Pelcro5.site) === null || _window$Pelcro5$site === void 0 ? void 0 : _window$Pelcro5$site.read(),
14339
+ user: (_window$Pelcro6 = window.Pelcro) === null || _window$Pelcro6 === void 0 ? void 0 : (_window$Pelcro6$user = _window$Pelcro6.user) === null || _window$Pelcro6$user === void 0 ? void 0 : _window$Pelcro6$user.read(),
14340
+ uiVersion: (_window$Pelcro7 = window.Pelcro) === null || _window$Pelcro7 === void 0 ? void 0 : (_window$Pelcro7$uiSet = _window$Pelcro7.uiSettings) === null || _window$Pelcro7$uiSet === void 0 ? void 0 : _window$Pelcro7$uiSet.uiVersion,
14341
+ environment: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : _window$Pelcro8.environment,
14342
+ matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
14343
+ productListState: this.state.productList,
14344
+ methods: {
14345
+ productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst$1(),
14346
+ pelcroSDKProductsListMethod: window.Pelcro.product.list(),
14347
+ pelcroSDKGetByEntitlements: this.props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(this.props.matchingEntitlements) : null
14348
+ },
14349
+ userCurrency: userCurrency,
14350
+ userCountry: userCountry,
14351
+ userLanguage: userLanguage,
14352
+ siteLanguage: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : (_window$Pelcro9$helpe = _window$Pelcro9.helpers) === null || _window$Pelcro9$helpe === void 0 ? void 0 : _window$Pelcro9$helpe.getHtmlLanguageAttribute(),
14353
+ products: (_window$Pelcro10 = window.Pelcro) === null || _window$Pelcro10 === void 0 ? void 0 : (_window$Pelcro10$site = _window$Pelcro10.site) === null || _window$Pelcro10$site === void 0 ? void 0 : _window$Pelcro10$site.read().products.length,
14354
+ currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
14355
+ country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
14356
+ language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
14357
+ });
14358
+ });
14359
+ });
14360
+ }
14361
+ });
14362
+ _defineProperty$3(this, "componentWillUnmount", () => {
14363
+ document.removeEventListener("keydown", this.handleSubmit);
14364
+ });
14365
+ _defineProperty$3(this, "handleSubmit", e => {
14366
+ if (e.key === "Enter" && !this.state.disabled) this.submitOption();
14367
+ });
14368
+ _defineProperty$3(this, "onProductChange", e => {
14369
+ const product = window.Pelcro.product.list()[e.target.selectedIndex];
14370
+ this.setState({
14371
+ product: product,
14372
+ plan: product.plans[0]
14373
+ });
14374
+ });
14375
+ _defineProperty$3(this, "onPlanChange", e => {
14376
+ this.setState({
14377
+ plan: this.state.product.plans[e.target.selectedIndex]
14378
+ });
14379
+ });
14380
+ _defineProperty$3(this, "onIsGiftChange", e => {
14381
+ this.setState({
14382
+ isGift: e.target.checked
14383
+ });
14384
+ });
14385
+ _defineProperty$3(this, "countStartPrice", arr => {
14386
+ let startingPlan = arr[0];
14387
+ for (const plan of arr) {
14388
+ if (plan.amount < startingPlan.amount) {
14389
+ startingPlan = plan;
14390
+ }
14391
+ }
14392
+ return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval}s` : `${startingPlan.interval}`}`;
14393
+ });
14394
+ _defineProperty$3(this, "renderOneProduct", (product, index, options) => {
14395
+ const isPlanMode = Boolean(this.state.mode === "plan");
14396
+ const productButtonLabel = isPlanMode ? this.locale("buttons.back") : this.locale("buttons.select");
14397
+ const productButtonCallback = isPlanMode ? this.goBack : this.selectProduct;
14398
+ return /*#__PURE__*/React__default['default'].createElement("div", {
14399
+ key: product.id,
14400
+ 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"}`
14401
+ }, product.image && /*#__PURE__*/React__default['default'].createElement("img", {
14402
+ alt: `image of ${product.name}`,
14403
+ src: product.image,
14404
+ className: "plc-object-contain plc-w-1/4 pelcro-select-product-image"
14405
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
14406
+ className: `plc-flex plc-flex-wrap ${product.image ? "plc-w-3/4" : "plc-w-full"}`
14407
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
14408
+ className: "plc-w-full pelcro-select-product-header"
14409
+ }, /*#__PURE__*/React__default['default'].createElement("p", {
14410
+ className: "plc-font-bold pelcro-select-product-title"
14411
+ }, product.name), /*#__PURE__*/React__default['default'].createElement("p", {
14412
+ className: "plc-text-xs pelcro-select-product-description"
14413
+ }, product.description)), /*#__PURE__*/React__default['default'].createElement("div", {
14414
+ className: "plc-flex plc-items-end plc-w-full plc-mt-3"
14415
+ }, product.plans && /*#__PURE__*/React__default['default'].createElement("p", {
14416
+ className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
14417
+ }, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
14418
+ onClick: productButtonCallback,
14419
+ "data-key": product.id,
14420
+ id: "pelcro-select-product-back-button",
14421
+ className: `plc-ml-auto plc-text-xs ${options !== null && options !== void 0 && options.emphasize ? "plc-bg-primary-700" : ""}`
14422
+ }, index === 0 && {
14423
+ autoFocus: true
14424
+ }), productButtonLabel))));
14425
+ });
14426
+ _defineProperty$3(this, "renderProducts", () => {
14427
+ const userDidSelectProduct = Boolean(this.state.mode === "plan");
14428
+ const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
14429
+ return productsToShow.map((product, index) => {
14430
+ return this.renderOneProduct(product, index);
14431
+ });
14432
+ });
14433
+ _defineProperty$3(this, "renderMatchingProductsFirst", () => {
14434
+ const isPlanMode = Boolean(this.state.mode === "plan");
14435
+ if (isPlanMode) {
14436
+ return this.renderOneProduct(this.state.product);
14437
+ }
14438
+ const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst$1();
14439
+
14440
+ // Render normal products if there are no available matching products
14441
+ if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
14442
+ return this.renderProducts();
14443
+ }
14444
+ return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("h3", {
14445
+ className: "plc-text-sm plc-font-semibold"
14446
+ }, this.locale("labels.restrictiveArticles.subscribeTo")), productsThatMatchArticleTag.map((product, index) => this.renderOneProduct(product, index, {
14447
+ emphasize: true
14448
+ })), (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", {
14449
+ className: "plc-my-4"
14450
+ }), /*#__PURE__*/React__default['default'].createElement("h3", {
14451
+ className: "plc-text-sm plc-font-semibold"
14452
+ }, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
14453
+ });
14454
+ _defineProperty$3(this, "renderPlans", () => {
14455
+ return this.state.planList.map(plan => {
14456
+ const isChecked = this.state.plan.id === plan.id ? true : false;
14457
+ return /*#__PURE__*/React__default['default'].createElement("div", {
14458
+ key: plan.id,
14459
+ 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"
14460
+ }, /*#__PURE__*/React__default['default'].createElement(Radio, {
14461
+ className: "plc-self-start pelcro-select-plan-radio",
14462
+ labelClassName: "plc-cursor-pointer plc-w-full",
14463
+ id: `pelcro-select-plan-${plan.id}`,
14464
+ name: "plan",
14465
+ checked: isChecked,
14466
+ "data-key": plan.id,
14467
+ onChange: this.selectPlan
14468
+ }, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
14469
+ className: "plc-font-bold pelcro-select-plan-title"
14470
+ }, plan.nickname), /*#__PURE__*/React__default['default'].createElement("p", {
14471
+ className: "plc-text-xs pelcro-select-plan-description"
14472
+ }, plan.description)), /*#__PURE__*/React__default['default'].createElement("p", {
14473
+ className: "plc-mt-3 plc-font-bold pelcro-select-plan-price"
14474
+ }, plan.amount_formatted)));
14475
+ });
14476
+ });
14477
+ _defineProperty$3(this, "selectProduct", e => {
14478
+ const id = e.target.dataset.key;
14479
+ for (const product of this.state.productList) {
14480
+ if (+product.id === +id) {
14481
+ var _this$state$plan;
14482
+ this.setState({
14483
+ product: product
14484
+ });
14485
+ this.setState({
14486
+ planList: product.plans.filter(plan => plan.type === "regular")
14487
+ });
14488
+ this.setState({
14489
+ mode: "plan"
14490
+ });
14491
+ const isSelectedPlanPartOfThisProduct = ((_this$state$plan = this.state.plan) === null || _this$state$plan === void 0 ? void 0 : _this$state$plan.product_id) === Number(product.id);
14492
+ if (isSelectedPlanPartOfThisProduct) {
14493
+ this.setState({
14494
+ disabled: false
14495
+ });
14496
+ }
14497
+ }
14498
+ }
14499
+ });
14500
+ _defineProperty$3(this, "selectPlan", e => {
14501
+ const id = e.target.dataset.key;
14502
+ for (const plan of this.state.planList) {
14503
+ if (+plan.id === +id) {
14504
+ plan.isCheked = true;
14505
+ this.setState({
14506
+ plan: plan
14507
+ });
14508
+ this.setState({
14509
+ disabled: false
14510
+ });
14511
+ } else {
14512
+ plan.isCheked = false;
14513
+ }
14514
+ }
14515
+ });
14516
+ _defineProperty$3(this, "goBack", () => {
14517
+ this.setState({
14518
+ disabled: true
14519
+ });
14520
+ this.setState({
14521
+ mode: "product"
14522
+ });
14523
+ });
14524
+ _defineProperty$3(this, "submitOption", () => {
14525
+ this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
14526
+ const {
14527
+ product,
14528
+ isGift
14529
+ } = this.state;
14530
+ const {
14531
+ setView
14532
+ } = this.props;
14533
+ const isAuthenticated = window.Pelcro.user.isAuthenticated();
14534
+ const {
14535
+ switchToAddressView,
14536
+ switchToPaymentView
14537
+ } = usePelcro.getStore();
14538
+ if (!isAuthenticated) {
14539
+ return setView("register");
14540
+ }
14541
+ if (isGift) {
14542
+ return setView("gift-create");
14543
+ }
14544
+ if (product.address_required) {
14545
+ return switchToAddressView();
14546
+ }
14547
+ return switchToPaymentView();
14548
+ });
14549
+ _defineProperty$3(this, "displayLoginView", () => {
14550
+ this.props.setView("login");
14551
+ });
14552
+ this.state = {
14553
+ product: {},
14554
+ plan: {},
14555
+ isGift: props.isGift,
14556
+ disabled: true,
14557
+ mode: "product",
14558
+ productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
14559
+ };
14560
+ this.product = this.props.product || window.Pelcro.paywall.getProduct();
14561
+ this.locale = this.props.t;
14562
+ this.closeButton = window.Pelcro.paywall.displayCloseButton();
14563
+ }
14564
+ render() {
14565
+ var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
14566
+ const {
14567
+ disableGifting
14568
+ } = this.props;
14569
+ if (this.state.mode === "product") {
14570
+ var _ReactGA$event;
14571
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
14572
+ category: "VIEWS",
14573
+ action: "Product Modal Viewed",
14574
+ nonInteraction: true
14575
+ });
14576
+ } else if (this.state.mode === "plan") {
14577
+ var _ReactGA$event2;
14578
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
14579
+ category: "VIEWS",
14580
+ action: "Plan Modal Viewed",
14581
+ nonInteraction: true
14582
+ });
14583
+ }
14584
+ return /*#__PURE__*/React__default['default'].createElement(Modal, {
14585
+ hideCloseButton: !this.closeButton,
14586
+ onClose: this.props.onClose,
14587
+ id: "pelcro-selection-modal"
14588
+ }, /*#__PURE__*/React__default['default'].createElement(ModalBody, null, /*#__PURE__*/React__default['default'].createElement("div", {
14589
+ id: "pelcro-selection-view"
14590
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
14591
+ className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
14592
+ }, /*#__PURE__*/React__default['default'].createElement("h4", {
14593
+ className: "plc-text-2xl plc-font-semibold"
14594
+ }, 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", {
14595
+ className: "pelcro-select-products-wrapper"
14596
+ }, (_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", {
14597
+ className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
14598
+ }, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default['default'].createElement("div", {
14599
+ className: "plc-flex plc-justify-center plc-mt-2"
14600
+ }, /*#__PURE__*/React__default['default'].createElement(Checkbox, {
14601
+ onChange: this.onIsGiftChange,
14602
+ checked: this.state.isGift,
14603
+ id: "pelcro-input-is-gift"
14604
+ }, this.locale("messages.checkbox"))), /*#__PURE__*/React__default['default'].createElement(Button, {
14605
+ disabled: this.state.disabled,
14606
+ onClick: this.submitOption,
14607
+ id: "pelcro-submit",
14608
+ className: "plc-w-full plc-mt-2"
14609
+ }, 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, {
14610
+ id: "pelcro-link-login",
14611
+ onClick: this.displayLoginView
14612
+ }, this.locale("messages.loginHere"))), /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
14613
+ }
14614
+ }
14615
+ const SelectModalWithTrans = withTranslation("select")(SelectModal);
14616
+
14617
+ /**
14618
+ *
14619
+ */
14620
+ function DonationModalWithHook(props) {
13956
14621
  React__default['default'].useEffect(() => {
13957
14622
  var _props$onDisplay;
13958
14623
  (_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
@@ -13969,7 +14634,7 @@ function SelectModalWithHook(props) {
13969
14634
  } = usePelcro();
13970
14635
  const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
13971
14636
  const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
13972
- return /*#__PURE__*/React__default['default'].createElement(SelectModalWithTrans, {
14637
+ return /*#__PURE__*/React__default['default'].createElement(DonationModalWithTrans, {
13973
14638
  isGift: isGift,
13974
14639
  disableGifting: isRenewingGift,
13975
14640
  plan: plan,
@@ -13979,10 +14644,12 @@ function SelectModalWithHook(props) {
13979
14644
  (_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
13980
14645
  resetView();
13981
14646
  },
13982
- setProductAndPlan: (product, plan, isGift) => set({
14647
+ setProductAndPlan: (product, plan, isGift, selectedDonationAmount, customDonationAmount) => set({
13983
14648
  product,
13984
14649
  plan,
13985
- isGift
14650
+ isGift,
14651
+ selectedDonationAmount,
14652
+ customDonationAmount
13986
14653
  }),
13987
14654
  setView: switchView,
13988
14655
  matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
@@ -13995,18 +14662,8 @@ function productsWithMatchedTaggedFirst() {
13995
14662
  const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
13996
14663
  return [productsThatMatchArticleTag, allProductsMinusMatched];
13997
14664
  }
13998
- function productMatchPageLanguage(product) {
13999
- if (!product) {
14000
- return false;
14001
- }
14002
- if (product.language === null) {
14003
- return true;
14004
- }
14005
- const siteLanguage = window.Pelcro.helpers.getHtmlLanguageAttribute();
14006
- return product.language === siteLanguage;
14007
- }
14008
- SelectModalWithHook.viewId = "plan-select";
14009
- class SelectModal extends React.Component {
14665
+ DonationModalWithHook.viewId = "donation-select";
14666
+ class DonationModal extends React.Component {
14010
14667
  constructor(props) {
14011
14668
  super(props);
14012
14669
  _defineProperty$3(this, "componentDidMount", () => {
@@ -14037,52 +14694,31 @@ class SelectModal extends React.Component {
14037
14694
  mode: "plan"
14038
14695
  });
14039
14696
  }
14040
- if (this.state.productList.length === 0 && !window.Pelcro.user.isAuthenticated()) {
14041
- this.props.setView("register");
14042
- }
14697
+
14698
+ // if (
14699
+ // this.state.productList.length === 0 &&
14700
+ // !window.Pelcro.user.isAuthenticated()
14701
+ // ) {
14702
+ // this.props.setView("register");
14703
+ // }
14704
+
14043
14705
  document.addEventListener("keydown", this.handleSubmit);
14044
14706
  if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
14045
14707
  var _window$Pelcro, _window$Pelcro$user, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$site;
14046
14708
  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;
14047
14709
  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;
14048
- const userLanguage = (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$user = _window$Pelcro3.user) === null || _window$Pelcro3$user === void 0 ? void 0 : _window$Pelcro3$user.read().language;
14710
+ (_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;
14049
14711
  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 => {
14050
14712
  const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
14051
14713
  if (filteredPlans.length) return filteredPlans;
14052
14714
  });
14053
- const productsMatchingUserCountry = productsMatchingUserCurrency.filter(product => {
14715
+ productsMatchingUserCurrency.filter(product => {
14054
14716
  const filteredPlans = product.plans.filter(plan => {
14055
14717
  var _plan$countries;
14056
14718
  return plan.countries && ((_plan$countries = plan.countries) === null || _plan$countries === void 0 ? void 0 : _plan$countries.includes(userCountry)) || !plan.countries || !plan.countries.length;
14057
14719
  });
14058
14720
  if (filteredPlans.length) return filteredPlans;
14059
14721
  });
14060
- notifyBugsnag(() => {
14061
- Bugsnag.notify("SelectModal - No data viewed", event => {
14062
- var _window$Pelcro5, _window$Pelcro5$site, _window$Pelcro6, _window$Pelcro6$user, _window$Pelcro7, _window$Pelcro7$uiSet, _window$Pelcro8, _this$props, _window$Pelcro9, _window$Pelcro9$helpe, _window$Pelcro10, _window$Pelcro10$site;
14063
- event.addMetadata("MetaData", {
14064
- site: (_window$Pelcro5 = window.Pelcro) === null || _window$Pelcro5 === void 0 ? void 0 : (_window$Pelcro5$site = _window$Pelcro5.site) === null || _window$Pelcro5$site === void 0 ? void 0 : _window$Pelcro5$site.read(),
14065
- user: (_window$Pelcro6 = window.Pelcro) === null || _window$Pelcro6 === void 0 ? void 0 : (_window$Pelcro6$user = _window$Pelcro6.user) === null || _window$Pelcro6$user === void 0 ? void 0 : _window$Pelcro6$user.read(),
14066
- uiVersion: (_window$Pelcro7 = window.Pelcro) === null || _window$Pelcro7 === void 0 ? void 0 : (_window$Pelcro7$uiSet = _window$Pelcro7.uiSettings) === null || _window$Pelcro7$uiSet === void 0 ? void 0 : _window$Pelcro7$uiSet.uiVersion,
14067
- environment: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : _window$Pelcro8.environment,
14068
- matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
14069
- productListState: this.state.productList,
14070
- methods: {
14071
- productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst(),
14072
- pelcroSDKProductsListMethod: window.Pelcro.product.list(),
14073
- pelcroSDKGetByEntitlements: this.props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(this.props.matchingEntitlements) : null
14074
- },
14075
- userCurrency: userCurrency,
14076
- userCountry: userCountry,
14077
- userLanguage: userLanguage,
14078
- siteLanguage: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : (_window$Pelcro9$helpe = _window$Pelcro9.helpers) === null || _window$Pelcro9$helpe === void 0 ? void 0 : _window$Pelcro9$helpe.getHtmlLanguageAttribute(),
14079
- products: (_window$Pelcro10 = window.Pelcro) === null || _window$Pelcro10 === void 0 ? void 0 : (_window$Pelcro10$site = _window$Pelcro10.site) === null || _window$Pelcro10$site === void 0 ? void 0 : _window$Pelcro10$site.read().products.length,
14080
- currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
14081
- country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
14082
- language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
14083
- });
14084
- });
14085
- });
14086
14722
  }
14087
14723
  });
14088
14724
  _defineProperty$3(this, "componentWillUnmount", () => {
@@ -14180,24 +14816,85 @@ class SelectModal extends React.Component {
14180
14816
  _defineProperty$3(this, "renderPlans", () => {
14181
14817
  return this.state.planList.map(plan => {
14182
14818
  const isChecked = this.state.plan.id === plan.id ? true : false;
14819
+ let planDetails = /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
14820
+ className: "plc-bg-gray-100 plc-rounded-md plc-p-3 plc-mt-3 plc-text-sm plc-flex plc-items-center"
14821
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
14822
+ className: "plc-flex plc-items-center plc-flex-1"
14823
+ }, "Auto renewed:", " ", /*#__PURE__*/React__default['default'].createElement("span", {
14824
+ className: "plc-inline-flex plc-w-6 plc-ml-1"
14825
+ }, plan.auto_renew ? /*#__PURE__*/React__default['default'].createElement(SvgCheck, {
14826
+ className: "plc-text-green-500"
14827
+ }) : /*#__PURE__*/React__default['default'].createElement(SvgXIcon, {
14828
+ className: "plc-text-red-500"
14829
+ })), " "), /*#__PURE__*/React__default['default'].createElement("div", {
14830
+ className: "plc-flex plc-items-center plc-flex-1"
14831
+ }, "Renewed every:", " ", /*#__PURE__*/React__default['default'].createElement("span", {
14832
+ className: "plc-inline-flex plc-w-6 plc-ml-1 plc-font-bold plc-capitalize"
14833
+ }, plan.interval || "-"))), plan.preset_donation_values && /*#__PURE__*/React__default['default'].createElement("div", {
14834
+ className: "plc-mt-3 plc-pt-3 plc-border-t plc-border-gray-200"
14835
+ }, /*#__PURE__*/React__default['default'].createElement("h5", {
14836
+ className: "plc-mb-4 plc-font-medium plc-text-center"
14837
+ }, "Select amount"), /*#__PURE__*/React__default['default'].createElement("ul", {
14838
+ className: "plc-grid plc-grid-cols-2 plc-gap-3"
14839
+ }, plan.preset_donation_values.map(value => /*#__PURE__*/React__default['default'].createElement("li", {
14840
+ key: value
14841
+ }, /*#__PURE__*/React__default['default'].createElement("button", {
14842
+ className: `plc-bg-white plc-rounded-md plc-flex plc-items-center plc-justify-center plc-text-lg plc-w-full plc-min-h-20 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"}`,
14843
+ onClick: () => {
14844
+ this.setState({
14845
+ selectedDonationAmount: +value,
14846
+ customDonationAmount: "",
14847
+ disabled: false
14848
+ });
14849
+ }
14850
+ }, getFormattedPriceByLocal(value, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage()))))), /*#__PURE__*/React__default['default'].createElement("div", {
14851
+ className: "plc-relative plc-py-3 plc-mt-3"
14852
+ }, /*#__PURE__*/React__default['default'].createElement("hr", null), " ", /*#__PURE__*/React__default['default'].createElement("span", {
14853
+ 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"
14854
+ }, "or"))), /*#__PURE__*/React__default['default'].createElement("div", {
14855
+ className: "plc-relative plc-mt-3"
14856
+ }, /*#__PURE__*/React__default['default'].createElement(Input, {
14857
+ type: "number",
14858
+ value: this.state.customDonationAmount,
14859
+ onChange: e => {
14860
+ if (+e.target.value > 0) {
14861
+ this.setState({
14862
+ customDonationAmount: +e.target.value,
14863
+ selectedDonationAmount: null,
14864
+ disabled: false
14865
+ });
14866
+ } else {
14867
+ this.setState({
14868
+ customDonationAmount: ""
14869
+ });
14870
+ this.setState({
14871
+ disabled: true
14872
+ });
14873
+ }
14874
+ },
14875
+ placeholder: "Donate a custome amount ...",
14876
+ className: "plc-pr-14"
14877
+ }), /*#__PURE__*/React__default['default'].createElement("span", {
14878
+ 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"
14879
+ }, plan.currency)));
14183
14880
  return /*#__PURE__*/React__default['default'].createElement("div", {
14184
14881
  key: plan.id,
14185
- 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"
14882
+ 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 "}`
14186
14883
  }, /*#__PURE__*/React__default['default'].createElement(Radio, {
14187
- className: "plc-self-start pelcro-select-plan-radio",
14188
- labelClassName: "plc-cursor-pointer plc-w-full",
14884
+ className: "plc-self-start pelcro-select-plan-radio plc-hidden",
14885
+ labelClassName: "plc-cursor-pointer plc-w-full plc-ml-0",
14189
14886
  id: `pelcro-select-plan-${plan.id}`,
14190
14887
  name: "plan",
14191
14888
  checked: isChecked,
14192
14889
  "data-key": plan.id,
14193
14890
  onChange: this.selectPlan
14194
- }, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
14891
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
14892
+ className: "plc-text-center"
14893
+ }, /*#__PURE__*/React__default['default'].createElement("p", {
14195
14894
  className: "plc-font-bold pelcro-select-plan-title"
14196
14895
  }, plan.nickname), /*#__PURE__*/React__default['default'].createElement("p", {
14197
14896
  className: "plc-text-xs pelcro-select-plan-description"
14198
- }, plan.description)), /*#__PURE__*/React__default['default'].createElement("p", {
14199
- className: "plc-mt-3 plc-font-bold pelcro-select-plan-price"
14200
- }, plan.amount_formatted)));
14897
+ }, plan.description))), isChecked && planDetails);
14201
14898
  });
14202
14899
  });
14203
14900
  _defineProperty$3(this, "selectProduct", e => {
@@ -14209,7 +14906,7 @@ class SelectModal extends React.Component {
14209
14906
  product: product
14210
14907
  });
14211
14908
  this.setState({
14212
- planList: product.plans
14909
+ planList: product.plans.filter(plan => plan.type === "donation")
14213
14910
  });
14214
14911
  this.setState({
14215
14912
  mode: "plan"
@@ -14224,6 +14921,12 @@ class SelectModal extends React.Component {
14224
14921
  }
14225
14922
  });
14226
14923
  _defineProperty$3(this, "selectPlan", e => {
14924
+ this.setState({
14925
+ selectedDonationAmount: null
14926
+ });
14927
+ this.setState({
14928
+ disabled: true
14929
+ });
14227
14930
  const id = e.target.dataset.key;
14228
14931
  for (const plan of this.state.planList) {
14229
14932
  if (+plan.id === +id) {
@@ -14231,9 +14934,6 @@ class SelectModal extends React.Component {
14231
14934
  this.setState({
14232
14935
  plan: plan
14233
14936
  });
14234
- this.setState({
14235
- disabled: false
14236
- });
14237
14937
  } else {
14238
14938
  plan.isCheked = false;
14239
14939
  }
@@ -14247,8 +14947,8 @@ class SelectModal extends React.Component {
14247
14947
  mode: "product"
14248
14948
  });
14249
14949
  });
14250
- _defineProperty$3(this, "submitOption", () => {
14251
- this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
14950
+ _defineProperty$3(this, "submitOption", signUpFirst => {
14951
+ this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift, this.state.selectedDonationAmount, this.state.customDonationAmount);
14252
14952
  const {
14253
14953
  product,
14254
14954
  isGift
@@ -14261,12 +14961,14 @@ class SelectModal extends React.Component {
14261
14961
  switchToAddressView,
14262
14962
  switchToPaymentView
14263
14963
  } = usePelcro.getStore();
14264
- if (!isAuthenticated) {
14964
+ if (!isAuthenticated && product.address_required || !isAuthenticated && signUpFirst) {
14265
14965
  return setView("register");
14266
14966
  }
14267
- if (isGift) {
14268
- return setView("gift-create");
14269
- }
14967
+
14968
+ // if (isGift) {
14969
+ // return setView("gift-create");
14970
+ // }
14971
+
14270
14972
  if (product.address_required) {
14271
14973
  return switchToAddressView();
14272
14974
  }
@@ -14275,23 +14977,24 @@ class SelectModal extends React.Component {
14275
14977
  _defineProperty$3(this, "displayLoginView", () => {
14276
14978
  this.props.setView("login");
14277
14979
  });
14980
+ 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);
14278
14981
  this.state = {
14279
14982
  product: {},
14280
14983
  plan: {},
14281
14984
  isGift: props.isGift,
14282
14985
  disabled: true,
14283
14986
  mode: "product",
14284
- productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
14987
+ productList: productList,
14988
+ selectedDonationAmount: null,
14989
+ customDonationAmount: ""
14285
14990
  };
14286
14991
  this.product = this.props.product || window.Pelcro.paywall.getProduct();
14287
14992
  this.locale = this.props.t;
14288
14993
  this.closeButton = window.Pelcro.paywall.displayCloseButton();
14289
14994
  }
14290
14995
  render() {
14291
- var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
14292
- const {
14293
- disableGifting
14294
- } = this.props;
14996
+ var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r, _this$state$product;
14997
+ this.props;
14295
14998
  if (this.state.mode === "product") {
14296
14999
  var _ReactGA$event;
14297
15000
  ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
@@ -14321,24 +15024,32 @@ class SelectModal extends React.Component {
14321
15024
  className: "pelcro-select-products-wrapper"
14322
15025
  }, (_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", {
14323
15026
  className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
14324
- }, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default['default'].createElement("div", {
14325
- className: "plc-flex plc-justify-center plc-mt-2"
14326
- }, /*#__PURE__*/React__default['default'].createElement(Checkbox, {
14327
- onChange: this.onIsGiftChange,
14328
- checked: this.state.isGift,
14329
- id: "pelcro-input-is-gift"
14330
- }, this.locale("messages.checkbox"))), /*#__PURE__*/React__default['default'].createElement(Button, {
15027
+ }, this.renderPlans()), !window.Pelcro.user.isAuthenticated() && (_this$state$product = this.state.product) !== null && _this$state$product !== void 0 && _this$state$product.address_required ? /*#__PURE__*/React__default['default'].createElement(Button, {
14331
15028
  disabled: this.state.disabled,
14332
- onClick: this.submitOption,
15029
+ onClick: () => this.submitOption(true),
14333
15030
  id: "pelcro-submit",
14334
15031
  className: "plc-w-full plc-mt-2"
14335
- }, 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, {
14336
- id: "pelcro-link-login",
14337
- onClick: this.displayLoginView
14338
- }, this.locale("messages.loginHere"))), /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
15032
+ }, this.locale("buttons.signupAndDonate")) : !window.Pelcro.user.isAuthenticated() ? /*#__PURE__*/React__default['default'].createElement("div", {
15033
+ className: "plc-flex plc-items-center plc-mt-2"
15034
+ }, /*#__PURE__*/React__default['default'].createElement(Button, {
15035
+ disabled: this.state.disabled,
15036
+ onClick: () => this.submitOption(true),
15037
+ id: "pelcro-submit",
15038
+ className: "plc-flex-1 plc-mr-2"
15039
+ }, this.locale("buttons.signupAndDonate")), /*#__PURE__*/React__default['default'].createElement(Button, {
15040
+ disabled: this.state.disabled,
15041
+ onClick: () => this.submitOption(false),
15042
+ id: "pelcro-submit",
15043
+ className: "plc-flex-1 pelcro-button-outline"
15044
+ }, this.locale("buttons.donate"))) : /*#__PURE__*/React__default['default'].createElement(Button, {
15045
+ disabled: this.state.disabled,
15046
+ onClick: () => this.submitOption(false),
15047
+ id: "pelcro-submit",
15048
+ className: "plc-w-full plc-mt-2"
15049
+ }, this.locale("buttons.donate"))))), /*#__PURE__*/React__default['default'].createElement(ModalFooter, null, /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
14339
15050
  }
14340
15051
  }
14341
- const SelectModalWithTrans = withTranslation("select")(SelectModal);
15052
+ const DonationModalWithTrans = withTranslation("donation")(DonationModal);
14342
15053
 
14343
15054
  var Provider_1 = createCommonjsModule(function (module, exports) {
14344
15055
 
@@ -16333,9 +17044,11 @@ const initialState$k = {
16333
17044
  firstName: "",
16334
17045
  lastName: "",
16335
17046
  phone: "",
17047
+ email: "",
16336
17048
  firstNameError: null,
16337
17049
  lastNameError: null,
16338
17050
  phoneError: null,
17051
+ emailError: null,
16339
17052
  alert: {
16340
17053
  type: "error",
16341
17054
  content: ""
@@ -16368,7 +17081,10 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16368
17081
  set,
16369
17082
  order,
16370
17083
  selectedPaymentMethodId,
16371
- couponCode
17084
+ couponCode,
17085
+ selectedDonationAmount,
17086
+ customDonationAmount,
17087
+ isAuthenticated
16372
17088
  } = usePelcro();
16373
17089
  const {
16374
17090
  whenUserReady
@@ -16403,7 +17119,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16403
17119
 
16404
17120
  /*====== Start Tap integration ========*/
16405
17121
  const submitUsingTap = state => {
16406
- var _ref2, _ref3, _ref4, _state$updatedPrice;
17122
+ var _ref2, _ref3, _getPlanAmount;
16407
17123
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
16408
17124
  if (isUsingExistingPaymentMethod) {
16409
17125
  // no need to create a new source using tap
@@ -16427,7 +17143,15 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16427
17143
  return total + item.price * item.quantity;
16428
17144
  }, 0);
16429
17145
  };
16430
- const totalAmount = (_ref2 = (_ref3 = (_ref4 = (_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 && _ref4 !== void 0 ? _ref4 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref3 !== void 0 ? _ref3 : getOrderItemsTotal()) !== null && _ref2 !== void 0 ? _ref2 : 10;
17146
+ function getPlanAmount() {
17147
+ if (state.updatedPrice) return state.updatedPrice;
17148
+ if (plan.type === "donation" && (selectedDonationAmount || customDonationAmount)) {
17149
+ return selectedDonationAmount ? selectedDonationAmount * plan.amount : customDonationAmount * plan.amount;
17150
+ } else {
17151
+ return plan.amount;
17152
+ }
17153
+ }
17154
+ const totalAmount = (_ref2 = (_ref3 = (_getPlanAmount = getPlanAmount()) !== null && _getPlanAmount !== void 0 ? _getPlanAmount : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref3 !== void 0 ? _ref3 : getOrderItemsTotal()) !== null && _ref2 !== void 0 ? _ref2 : 10;
16431
17155
  tapInstanceRef.current.createToken(tapInstanceCard.current).then(function (result) {
16432
17156
  if (result.error) {
16433
17157
  // Inform the user if there was an error
@@ -16896,24 +17620,32 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16896
17620
  }, [selectedPaymentMethodId]);
16897
17621
  const initPaymentRequest = (state, dispatch) => {
16898
17622
  if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
17623
+ function getPlanAmount() {
17624
+ if (state.updatedPrice) return state.updatedPrice;
17625
+ if (plan.type === "donation" && (selectedDonationAmount || customDonationAmount)) {
17626
+ return selectedDonationAmount ? selectedDonationAmount * plan.amount : customDonationAmount * plan.amount;
17627
+ } else {
17628
+ return plan.amount;
17629
+ }
17630
+ }
16899
17631
  try {
16900
17632
  const paymentRequest = stripe.paymentRequest({
16901
17633
  country: window.Pelcro.user.location.countryCode || "US",
16902
17634
  currency: plan.currency,
16903
17635
  total: {
16904
17636
  label: plan.nickname || plan.description,
16905
- amount: state.updatedPrice || plan.amount
17637
+ amount: getPlanAmount()
16906
17638
  }
16907
17639
  });
16908
17640
 
16909
17641
  // When Google pay / Apple pay source created
16910
- paymentRequest.on("source", _ref5 => {
17642
+ paymentRequest.on("source", _ref4 => {
16911
17643
  var _source$card;
16912
17644
  let {
16913
17645
  complete,
16914
17646
  source,
16915
17647
  ...data
16916
- } = _ref5;
17648
+ } = _ref4;
16917
17649
  dispatch({
16918
17650
  type: DISABLE_COUPON_BUTTON,
16919
17651
  payload: true
@@ -16928,11 +17660,11 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16928
17660
  });
16929
17661
  complete("success");
16930
17662
  if ((source === null || source === void 0 ? void 0 : (_source$card = source.card) === null || _source$card === void 0 ? void 0 : _source$card.three_d_secure) === "required") {
16931
- return generate3DSecureSource(source).then(_ref6 => {
17663
+ return generate3DSecureSource(source).then(_ref5 => {
16932
17664
  let {
16933
17665
  source,
16934
17666
  error
16935
- } = _ref6;
17667
+ } = _ref5;
16936
17668
  if (error) {
16937
17669
  return handlePaymentError(error);
16938
17670
  }
@@ -17532,12 +18264,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17532
18264
  const updatePaymentSource = (state, dispatch) => {
17533
18265
  return stripe.createSource({
17534
18266
  type: "card"
17535
- }).then(_ref7 => {
18267
+ }).then(_ref6 => {
17536
18268
  var _source$card2;
17537
18269
  let {
17538
18270
  source,
17539
18271
  error
17540
- } = _ref7;
18272
+ } = _ref6;
17541
18273
  if (error) {
17542
18274
  return handlePaymentError(error);
17543
18275
  }
@@ -17592,6 +18324,41 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17592
18324
  }
17593
18325
  });
17594
18326
  };
18327
+ const sendRegisterRequest = (state, callback) => {
18328
+ window.Pelcro.user.register({
18329
+ email: state.email,
18330
+ password: generatePassword()
18331
+ }, (err, res) => {
18332
+ if (err) {
18333
+ var _err$response, _err$response$data;
18334
+ let {
18335
+ registered_on_other_sites,
18336
+ ...errors
18337
+ } = 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;
18338
+ err.response.data.errors = {
18339
+ ...errors
18340
+ };
18341
+ dispatch({
18342
+ type: SHOW_ALERT,
18343
+ payload: {
18344
+ type: "error",
18345
+ content: getErrorMessages(err)
18346
+ }
18347
+ });
18348
+ dispatch({
18349
+ type: DISABLE_SUBMIT,
18350
+ payload: false
18351
+ });
18352
+ dispatch({
18353
+ type: LOADING,
18354
+ payload: false
18355
+ });
18356
+ onFailure(err);
18357
+ } else {
18358
+ callback();
18359
+ }
18360
+ });
18361
+ };
17595
18362
  const submitPayment = (state, dispatch) => {
17596
18363
  if (skipPayment && props !== null && props !== void 0 && props.freeOrders) {
17597
18364
  const isQuickPurchase = !Array.isArray(order);
@@ -17618,12 +18385,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17618
18385
  }
17619
18386
  stripe.createSource({
17620
18387
  type: "card"
17621
- }).then(_ref8 => {
17622
- var _ref9, _ref10, _state$updatedPrice2;
18388
+ }).then(_ref7 => {
18389
+ var _ref8, _ref9, _state$updatedPrice;
17623
18390
  let {
17624
18391
  source,
17625
18392
  error
17626
- } = _ref8;
18393
+ } = _ref7;
17627
18394
  if (error) {
17628
18395
  return handlePaymentError(error);
17629
18396
  }
@@ -17642,7 +18409,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17642
18409
  return total + item.price * item.quantity;
17643
18410
  }, 0);
17644
18411
  };
17645
- (_ref9 = (_ref10 = (_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 && _ref10 !== void 0 ? _ref10 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref9 !== void 0 ? _ref9 : getOrderItemsTotal();
18412
+ (_ref8 = (_ref9 = (_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 && _ref9 !== void 0 ? _ref9 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref8 !== void 0 ? _ref8 : getOrderItemsTotal();
17646
18413
  return handlePayment(source);
17647
18414
  }).catch(error => {
17648
18415
  return handlePaymentError(error);
@@ -17853,22 +18620,41 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17853
18620
  return submitPayment(state);
17854
18621
  }
17855
18622
  if (getSiteCardProcessor() === "vantiv") {
17856
- return submitUsingVantiv(state);
18623
+ if (!isAuthenticated() && plan.type === "donation") {
18624
+ return sendRegisterRequest(state, () => submitUsingVantiv(state));
18625
+ } else {
18626
+ return submitUsingVantiv(state);
18627
+ }
17857
18628
  }
17858
18629
  if (getSiteCardProcessor() === "tap") {
17859
- return submitUsingTap(state);
18630
+ if (!isAuthenticated() && plan.type === "donation") {
18631
+ return sendRegisterRequest(state, () => submitUsingTap(state));
18632
+ } else {
18633
+ return submitUsingTap(state);
18634
+ }
17860
18635
  }
17861
18636
  if (selectedPaymentMethodId) {
17862
- // pay with selected method (source) if exists already
17863
- return handlePayment({
17864
- id: selectedPaymentMethodId,
17865
- isExistingSource: true
17866
- });
18637
+ if (!isAuthenticated() && plan.type === "donation") {
18638
+ return sendRegisterRequest(state, () => handlePayment({
18639
+ id: selectedPaymentMethodId,
18640
+ isExistingSource: true
18641
+ }));
18642
+ } else {
18643
+ // pay with selected method (source) if exists already
18644
+ return handlePayment({
18645
+ id: selectedPaymentMethodId,
18646
+ isExistingSource: true
18647
+ });
18648
+ }
17867
18649
  }
17868
18650
  if (type === "updatePaymentSource") {
17869
18651
  return updatePaymentSource(state, dispatch);
17870
18652
  }
17871
- submitPayment(state);
18653
+ if (!isAuthenticated() && plan.type === "donation") {
18654
+ return sendRegisterRequest(state, () => submitPayment(state));
18655
+ } else {
18656
+ return submitPayment(state);
18657
+ }
17872
18658
  });
17873
18659
  case HANDLE_PAYPAL_SUBSCRIPTION:
17874
18660
  return lib_5(state, (state, dispatch) => {
@@ -17943,6 +18729,18 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17943
18729
  phone: action.payload,
17944
18730
  phoneError: null
17945
18731
  });
18732
+ case SET_EMAIL:
18733
+ return lib_7({
18734
+ ...state,
18735
+ email: action.payload,
18736
+ emailError: null
18737
+ });
18738
+ case SET_PASSWORD:
18739
+ return lib_7({
18740
+ ...state,
18741
+ password: action.payload,
18742
+ passwordError: null
18743
+ });
17946
18744
  case SET_FIRST_NAME_ERROR:
17947
18745
  return lib_7({
17948
18746
  ...state,
@@ -17961,6 +18759,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17961
18759
  phoneError: action.payload,
17962
18760
  phone: null
17963
18761
  });
18762
+ case SET_EMAIL_ERROR:
18763
+ return lib_7({
18764
+ ...state,
18765
+ emailError: action.payload,
18766
+ email: ""
18767
+ });
17964
18768
  case SHOW_ALERT:
17965
18769
  return lib_7({
17966
18770
  ...state,
@@ -18189,6 +18993,7 @@ const SubmitPaymentMethod = _ref => {
18189
18993
  firstNameError,
18190
18994
  lastNameError,
18191
18995
  phoneError,
18996
+ emailError,
18192
18997
  firstName,
18193
18998
  lastName,
18194
18999
  phone,
@@ -18209,9 +19014,9 @@ const SubmitPaymentMethod = _ref => {
18209
19014
  if (supportsTap && isUserFirstName && isUserLastName && isUserPhone) {
18210
19015
  setDisabled(disableSubmit);
18211
19016
  } else {
18212
- 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));
19017
+ 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);
18213
19018
  }
18214
- }, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone]);
19019
+ }, [disableSubmit, firstNameError, lastNameError, phoneError, firstName, lastName, phone, emailError]);
18215
19020
  return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
18216
19021
  role: "submit",
18217
19022
  className: "plc-w-full plc-py-3",
@@ -18846,6 +19651,10 @@ const OrderCreateFreeButton = _ref => {
18846
19651
  }, otherProps), t("labels.submit"));
18847
19652
  };
18848
19653
 
19654
+ const DonationEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
19655
+ store: store$k
19656
+ }, props));
19657
+
18849
19658
  /**
18850
19659
  *
18851
19660
  */
@@ -18865,6 +19674,10 @@ function PaymentMethodView(_ref) {
18865
19674
  const {
18866
19675
  t
18867
19676
  } = useTranslation("checkoutForm");
19677
+ const {
19678
+ plan,
19679
+ isAuthenticated
19680
+ } = usePelcro();
18868
19681
  const cardProcessor = getSiteCardProcessor();
18869
19682
  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);
18870
19683
  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);
@@ -18921,7 +19734,13 @@ function PaymentMethodView(_ref) {
18921
19734
  errorId: "pelcro-input-phone-error",
18922
19735
  label: t("labels.phone"),
18923
19736
  required: true
18924
- })), /*#__PURE__*/React__default['default'].createElement(CheckoutForm, null), showCoupon && /*#__PURE__*/React__default['default'].createElement("div", {
19737
+ })), !isAuthenticated() && (plan === null || plan === void 0 ? void 0 : plan.type) === "donation" && /*#__PURE__*/React__default['default'].createElement(DonationEmail, {
19738
+ id: "pelcro-input-email",
19739
+ errorId: "pelcro-input-email-error",
19740
+ label: t("labels.email"),
19741
+ required: true,
19742
+ autoFocus: true
19743
+ }), /*#__PURE__*/React__default['default'].createElement(CheckoutForm, null), showCoupon && /*#__PURE__*/React__default['default'].createElement("div", {
18925
19744
  className: "plc-mb-2"
18926
19745
  }, /*#__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", {
18927
19746
  className: "plc-grid plc-mt-4 plc-gap-y-2"
@@ -20260,12 +21079,14 @@ const SubscriptionCreateView = _ref => {
20260
21079
  } = useTranslation("checkoutForm");
20261
21080
  const {
20262
21081
  product,
20263
- plan
21082
+ plan,
21083
+ selectedDonationAmount,
21084
+ customDonationAmount
20264
21085
  } = usePelcro();
20265
21086
  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;
20266
21087
  const showSubscriptionButton = skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0;
20267
21088
  const getPricingText = plan => {
20268
- var _plan$quantity;
21089
+ var _plan$quantity, _plan$quantity2, _plan$quantity3;
20269
21090
  const autoRenewed = plan.auto_renew;
20270
21091
  const {
20271
21092
  interval,
@@ -20275,7 +21096,7 @@ const SubscriptionCreateView = _ref => {
20275
21096
  interval,
20276
21097
  count: interval_count
20277
21098
  });
20278
- 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());
21099
+ 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());
20279
21100
  return /*#__PURE__*/React__default['default'].createElement("p", {
20280
21101
  className: "plc-text-gray-600"
20281
21102
  }, /*#__PURE__*/React__default['default'].createElement("span", {
@@ -32315,6 +33136,7 @@ exports.Dashboard = DashboardWithHook;
32315
33136
  exports.DashboardOpenButton = DashboardOpenButton;
32316
33137
  exports.DatePicker = DatePicker;
32317
33138
  exports.DiscountedPrice = DiscountedPrice;
33139
+ exports.DonationModal = DonationModalWithHook;
32318
33140
  exports.Email = Email;
32319
33141
  exports.EmailVerifyContainer = EmailVerifyContainer;
32320
33142
  exports.EmailVerifyModal = EmailVerifyModal;