@pelcro/react-pelcro-js 3.26.0-sandbox.2 → 3.26.0-sandbox.21

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
@@ -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$13 = {
3366
3366
  submit: "Submit",
3367
3367
  firstName: "First name",
3368
3368
  lastName: "Last name",
@@ -3381,11 +3381,11 @@ var newsletter_en = {
3381
3381
  title: title$z,
3382
3382
  updateTitle: updateTitle$3,
3383
3383
  subtitle: subtitle$f,
3384
- labels: labels$12,
3384
+ labels: labels$13,
3385
3385
  messages: messages$17
3386
3386
  };
3387
3387
 
3388
- var labels$11 = {
3388
+ var labels$12 = {
3389
3389
  "continue": "Continue to content"
3390
3390
  };
3391
3391
  var messages$16 = {
@@ -3414,7 +3414,7 @@ var errors$j = {
3414
3414
  "": ""
3415
3415
  };
3416
3416
  var success_en = {
3417
- labels: labels$11,
3417
+ labels: labels$12,
3418
3418
  messages: messages$16,
3419
3419
  errors: errors$j
3420
3420
  };
@@ -3438,7 +3438,7 @@ var messages$14 = {
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$11 = {
3442
3442
  card: "Enter card number",
3443
3443
  date: "Expiration date",
3444
3444
  CVC: "CVC",
@@ -3462,7 +3462,7 @@ var labels$10 = {
3462
3462
  };
3463
3463
  var checkoutForm_en = {
3464
3464
  messages: messages$14,
3465
- labels: labels$10
3465
+ labels: labels$11
3466
3466
  };
3467
3467
 
3468
3468
  var youAreSafe$3 = "You're safe - PCI compliant 128 SSL by";
@@ -3486,7 +3486,7 @@ var messages_en = {
3486
3486
  zeroTotalInvoice: zeroTotalInvoice$3
3487
3487
  };
3488
3488
 
3489
- var labels$$ = {
3489
+ var labels$10 = {
3490
3490
  email: "Enter email",
3491
3491
  username: "Enter username",
3492
3492
  password: "Enter password",
@@ -3514,12 +3514,12 @@ var errors$h = {
3514
3514
  "": ""
3515
3515
  };
3516
3516
  var login_en = {
3517
- labels: labels$$,
3517
+ labels: labels$10,
3518
3518
  messages: messages$13,
3519
3519
  errors: errors$h
3520
3520
  };
3521
3521
 
3522
- var labels$_ = {
3522
+ var labels$$ = {
3523
3523
  title: "Verifying Passwordless Link",
3524
3524
  instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
3525
3525
  resend: "Resend email"
@@ -3529,13 +3529,13 @@ var messages$12 = {
3529
3529
  success: "You have logged in successfully"
3530
3530
  };
3531
3531
  var verifyLinkToken_en = {
3532
- labels: labels$_,
3532
+ labels: labels$$,
3533
3533
  messages: messages$12
3534
3534
  };
3535
3535
 
3536
3536
  var title$y = "Create an account";
3537
3537
  var subtitle$e = "Enter your email and password below";
3538
- var labels$Z = {
3538
+ var labels$_ = {
3539
3539
  signUpFacebook: "Sign up with Facebook",
3540
3540
  signUpGoogle: "Sign up with Google",
3541
3541
  signUpEmail: "Sign up with Email",
@@ -3622,14 +3622,14 @@ var redeem$3 = {
3622
3622
  var register_en = {
3623
3623
  title: title$y,
3624
3624
  subtitle: subtitle$e,
3625
- labels: labels$Z,
3625
+ labels: labels$_,
3626
3626
  messages: messages$11,
3627
3627
  errors: errors$g,
3628
3628
  gift: gift$3,
3629
3629
  redeem: redeem$3
3630
3630
  };
3631
3631
 
3632
- var labels$Y = {
3632
+ var labels$Z = {
3633
3633
  title: "Want to update your profile?",
3634
3634
  subtitle: "Enter your information below to update your profile",
3635
3635
  email: "Email",
@@ -3654,7 +3654,7 @@ var messages$10 = {
3654
3654
  pictureUpdated: "Your profile picture was updated successfully."
3655
3655
  };
3656
3656
  var userEdit_en = {
3657
- labels: labels$Y,
3657
+ labels: labels$Z,
3658
3658
  messages: messages$10
3659
3659
  };
3660
3660
 
@@ -3662,7 +3662,7 @@ var title$x = "Enter your shipping address";
3662
3662
  var titleGifting$3 = "Enter your address";
3663
3663
  var selectAddressTitle$3 = "Please select an address";
3664
3664
  var selectAddressSubtitle$3 = "Select one of your saved addresses, or add a new one";
3665
- var labels$X = {
3665
+ var labels$Y = {
3666
3666
  address: "Address",
3667
3667
  code: "Postal Code/Zip",
3668
3668
  city: "City",
@@ -3687,7 +3687,7 @@ var address_en = {
3687
3687
  titleGifting: titleGifting$3,
3688
3688
  selectAddressTitle: selectAddressTitle$3,
3689
3689
  selectAddressSubtitle: selectAddressSubtitle$3,
3690
- labels: labels$X,
3690
+ labels: labels$Y,
3691
3691
  buttons: buttons$i,
3692
3692
  messages: messages$$
3693
3693
  };
@@ -3807,17 +3807,17 @@ var messages$Y = {
3807
3807
  multipleCurrencies: "Your cart currently contains items which are available in different currencies. In order to proceed with the checkout, please make sure that all items have the same currency.",
3808
3808
  currencyMismatch: "The selected item(s) do not match your current default currency ({{currency}}). Please choose item(s) only matching this currency."
3809
3809
  };
3810
- var labels$W = {
3810
+ var labels$X = {
3811
3811
  summary: "Order summary",
3812
3812
  total: "total"
3813
3813
  };
3814
3814
  var shop_en = {
3815
3815
  buttons: buttons$h,
3816
3816
  messages: messages$Y,
3817
- labels: labels$W
3817
+ labels: labels$X
3818
3818
  };
3819
3819
 
3820
- var labels$V = {
3820
+ var labels$W = {
3821
3821
  cardNumber: "Card number",
3822
3822
  securityCode: "Security Code",
3823
3823
  submit: "Submit",
@@ -3853,12 +3853,12 @@ var errors$f = {
3853
3853
  "": ""
3854
3854
  };
3855
3855
  var payment_en = {
3856
- labels: labels$V,
3856
+ labels: labels$W,
3857
3857
  messages: messages$X,
3858
3858
  errors: errors$f
3859
3859
  };
3860
3860
 
3861
- var labels$U = {
3861
+ var labels$V = {
3862
3862
  menu: "Pelcro Menu",
3863
3863
  name: "Name",
3864
3864
  email: "Email",
@@ -3966,7 +3966,7 @@ var messages$W = {
3966
3966
  }
3967
3967
  };
3968
3968
  var dashboard_en = {
3969
- labels: labels$U,
3969
+ labels: labels$V,
3970
3970
  messages: messages$W
3971
3971
  };
3972
3972
 
@@ -3975,7 +3975,7 @@ var messages$V = {
3975
3975
  loginHere: "Login here",
3976
3976
  checkbox: "Check this box to gift this subscription"
3977
3977
  };
3978
- var labels$T = {
3978
+ var labels$U = {
3979
3979
  plan: {
3980
3980
  title: "Subscribe to a plan",
3981
3981
  subtitle: "Select one of the plans below and click on next."
@@ -3999,7 +3999,7 @@ var buttons$g = {
3999
3999
  };
4000
4000
  var select_en = {
4001
4001
  messages: messages$V,
4002
- labels: labels$T,
4002
+ labels: labels$U,
4003
4003
  buttons: buttons$g
4004
4004
  };
4005
4005
 
@@ -4013,7 +4013,7 @@ var notification_en = {
4013
4013
  confirm: confirm$9
4014
4014
  };
4015
4015
 
4016
- var labels$S = {
4016
+ var labels$T = {
4017
4017
  title: "Verify your email",
4018
4018
  instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
4019
4019
  resend: "Resend email"
@@ -4023,12 +4023,12 @@ var messages$U = {
4023
4023
  success: "Email verified successfully!"
4024
4024
  };
4025
4025
  var verifyEmail_en = {
4026
- labels: labels$S,
4026
+ labels: labels$T,
4027
4027
  messages: messages$U
4028
4028
  };
4029
4029
 
4030
4030
  var title$r = "Invoice details";
4031
- var labels$R = {
4031
+ var labels$S = {
4032
4032
  summary: "Summary",
4033
4033
  total: "Total",
4034
4034
  amountPaid: "Amount paid",
@@ -4041,19 +4041,23 @@ var buttons$f = {
4041
4041
  };
4042
4042
  var invoiceDetails_en = {
4043
4043
  title: title$r,
4044
- labels: labels$R,
4044
+ labels: labels$S,
4045
4045
  buttons: buttons$f
4046
4046
  };
4047
4047
 
4048
- var labels$Q = {
4048
+ var labels$R = {
4049
4049
  title: "Cancel subscription",
4050
4050
  cancelReason: "Cancellation reason",
4051
+ endOn: "End on",
4052
+ endImmediately: "End immediately",
4053
+ cancel: "Cancel",
4051
4054
  subCancellation: {
4052
4055
  goBack: "Go back"
4053
4056
  }
4054
4057
  };
4055
4058
  var messages$T = {
4056
4059
  subscriptionEnd: "This subscription is set to expire on",
4060
+ cancelWhen: "When would you like to cancel?",
4057
4061
  cancelNow: "Cancel Subscription Now",
4058
4062
  cancelLater: "Cancel at Period End",
4059
4063
  subCancellation: {
@@ -4065,59 +4069,11 @@ var messages$T = {
4065
4069
  }
4066
4070
  };
4067
4071
  var subscriptionCancel_en = {
4068
- labels: labels$Q,
4072
+ labels: labels$R,
4069
4073
  messages: messages$T
4070
4074
  };
4071
4075
 
4072
- var labels$P = {
4073
- title: "Annuler l'abonnement",
4074
- cancelReason: "Motif d'annulation",
4075
- subCancellation: {
4076
- goBack: "Retourner"
4077
- }
4078
- };
4079
- var messages$S = {
4080
- subscriptionEnd: "Cet abonnement doit expirer le",
4081
- cancelNow: "Cancel Subscription Now",
4082
- cancelLater: "Annuler l'abonnement maintenant",
4083
- subCancellation: {
4084
- isSureToCancelNow: "Êtes-vous sûr de vouloir résilier votre abonnement immédiatement?",
4085
- isSureToCancel: "Êtes-vous sûr de vouloir résilier votre abonnement?",
4086
- loading: "Annulation de votre abonnement",
4087
- success: "L'abonnement a été annulé avec succès",
4088
- error: "Erreur lors de l'annulation de votre abonnement"
4089
- }
4090
- };
4091
- var subscriptionCancel_fr = {
4092
- labels: labels$P,
4093
- messages: messages$S
4094
- };
4095
-
4096
- var labels$O = {
4097
- title: "구독 취소",
4098
- cancelReason: "취소 사유",
4099
- subCancellation: {
4100
- goBack: "돌아가기"
4101
- }
4102
- };
4103
- var messages$R = {
4104
- subscriptionEnd: "이 구독은 다음 날짜에 만료되도록 설정되었습니다.",
4105
- cancelNow: "지금 구독 취소",
4106
- cancelLater: "기간 종료 시 취소",
4107
- subCancellation: {
4108
- isSureToCancelNow: "구독을 즉시 취소하시겠습니까?",
4109
- isSureToCancel: "구독을 취소하시겠습니까?",
4110
- loading: "구독 취소",
4111
- success: "구독이 성공적으로 취소되었습니다.",
4112
- error: "구독 취소 중 오류 발생"
4113
- }
4114
- };
4115
- var subscriptionCancel_ko = {
4116
- labels: labels$O,
4117
- messages: messages$R
4118
- };
4119
-
4120
- var labels$N = {
4076
+ var labels$Q = {
4121
4077
  inviteMembers: "Invite Members",
4122
4078
  listOfMembers: "List of members",
4123
4079
  invite: "Invite",
@@ -4125,48 +4081,21 @@ var labels$N = {
4125
4081
  emails: "Enter emails",
4126
4082
  status: "Status",
4127
4083
  actions: "Actions",
4128
- email: "Email"
4084
+ email: "Email",
4085
+ listNote: "Comma-separated list e.g."
4129
4086
  };
4130
4087
  var subscriptionManageMembers_en = {
4131
- labels: labels$N
4132
- };
4133
-
4134
- var labels$M = {
4135
- inviteMembers: "Inviter des membres",
4136
- listOfMembers: "Liste des membres",
4137
- invite: "Inviter",
4138
- remove: "Retirer",
4139
- emails: "Saisir les e-mails",
4140
- status: "Statut",
4141
- actions: "Actions",
4142
- email: "E-mail"
4143
- };
4144
- var subscriptionManageMembers_fr = {
4145
- labels: labels$M
4146
- };
4147
-
4148
- var labels$L = {
4149
- inviteMembers: "회원 초대",
4150
- listOfMembers: "구성원 목록",
4151
- invite: "초대",
4152
- remove: "제거하다",
4153
- emails: "이메일 입력",
4154
- status: "상태",
4155
- actions: "행위",
4156
- email: "이메일"
4157
- };
4158
- var subscriptionManageMembers_ko = {
4159
- labels: labels$L
4088
+ labels: labels$Q
4160
4089
  };
4161
4090
 
4162
- var labels$K = {
4091
+ var labels$P = {
4163
4092
  title: "Suspend subscription",
4164
4093
  suspensionDate: "Suspension date",
4165
4094
  subCancellation: {
4166
4095
  goBack: "Go back"
4167
4096
  }
4168
4097
  };
4169
- var messages$Q = {
4098
+ var messages$S = {
4170
4099
  suspensionEnd: "The suspension is set to expire on",
4171
4100
  suspendNow: "Suspend Subscription Now",
4172
4101
  suspendLater: "Suspend at Period End",
@@ -4179,8 +4108,8 @@ var messages$Q = {
4179
4108
  }
4180
4109
  };
4181
4110
  var subscriptionSuspend_en = {
4182
- labels: labels$K,
4183
- messages: messages$Q
4111
+ labels: labels$P,
4112
+ messages: messages$S
4184
4113
  };
4185
4114
 
4186
4115
  var validation$2 = {
@@ -4304,7 +4233,7 @@ var paymentMethod_fr = {
4304
4233
  var title$q = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
4305
4234
  var updateTitle$2 = "Mettre à jour son choix d'infolettres";
4306
4235
  var subtitle$b = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
4307
- var labels$J = {
4236
+ var labels$O = {
4308
4237
  submit: "Lire l’article !",
4309
4238
  firstName: "Prénom",
4310
4239
  lastName: "Nom de famille",
@@ -4312,7 +4241,7 @@ var labels$J = {
4312
4241
  postalCode: "Code postal",
4313
4242
  required: "Champs obligatoires"
4314
4243
  };
4315
- var messages$P = {
4244
+ var messages$R = {
4316
4245
  alreadyHaveAccount: "Vous avez déjà un compte ?",
4317
4246
  success: "Votre choix d'infolettres à été mis à jour",
4318
4247
  loginHere: "Connectez-vous ici",
@@ -4323,14 +4252,14 @@ var newsletter_fr = {
4323
4252
  title: title$q,
4324
4253
  updateTitle: updateTitle$2,
4325
4254
  subtitle: subtitle$b,
4326
- labels: labels$J,
4327
- messages: messages$P
4255
+ labels: labels$O,
4256
+ messages: messages$R
4328
4257
  };
4329
4258
 
4330
- var labels$I = {
4259
+ var labels$N = {
4331
4260
  "continue": "Abonnement réussi !"
4332
4261
  };
4333
- var messages$O = {
4262
+ var messages$Q = {
4334
4263
  yourFreeTrial: "Votre essai gratuit vient de débuter",
4335
4264
  youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
4336
4265
  clickToLearn: {
@@ -4356,12 +4285,12 @@ var errors$e = {
4356
4285
  "": ""
4357
4286
  };
4358
4287
  var success_fr = {
4359
- labels: labels$I,
4360
- messages: messages$O,
4288
+ labels: labels$N,
4289
+ messages: messages$Q,
4361
4290
  errors: errors$e
4362
4291
  };
4363
4292
 
4364
- var messages$N = {
4293
+ var messages$P = {
4365
4294
  freeVisits: "Visites gratuites restantes:",
4366
4295
  subscribeNow: "Abonnez-vous maintenant !",
4367
4296
  alreadyHaveAccount: "Vous avez déjà un compte ?",
@@ -4371,16 +4300,16 @@ var errors$d = {
4371
4300
  "": ""
4372
4301
  };
4373
4302
  var meter_fr = {
4374
- messages: messages$N,
4303
+ messages: messages$P,
4375
4304
  errors: errors$d
4376
4305
  };
4377
4306
 
4378
- var messages$M = {
4307
+ var messages$O = {
4379
4308
  youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
4380
4309
  bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque.",
4381
4310
  bankAuthenticationSuccess: "Veuillez patienter pendant que nous accédons à votre requête."
4382
4311
  };
4383
- var labels$H = {
4312
+ var labels$M = {
4384
4313
  card: "Entrez le numéro de carte",
4385
4314
  date: "Date d’expiration",
4386
4315
  CVC: "CVC",
@@ -4403,8 +4332,8 @@ var labels$H = {
4403
4332
  freeItems: "Articles gratuits"
4404
4333
  };
4405
4334
  var checkoutForm_fr = {
4406
- messages: messages$M,
4407
- labels: labels$H
4335
+ messages: messages$O,
4336
+ labels: labels$M
4408
4337
  };
4409
4338
 
4410
4339
  var youAreSafe$2 = "Vous êtes en sécurité - PCI conforme 128 SSL par";
@@ -4428,7 +4357,7 @@ var messages_fr = {
4428
4357
  zeroTotalInvoice: zeroTotalInvoice$2
4429
4358
  };
4430
4359
 
4431
- var labels$G = {
4360
+ var labels$L = {
4432
4361
  email: "Entrez votre adresse courriel",
4433
4362
  username: "Saisissez votre nom d'utilisateur",
4434
4363
  password: "Entrez votre mot de passe",
@@ -4437,7 +4366,7 @@ var labels$G = {
4437
4366
  passwordPlaceholder: "Mot de passe",
4438
4367
  login: "Connexion"
4439
4368
  };
4440
- var messages$L = {
4369
+ var messages$N = {
4441
4370
  loginTo: "Connectez-vous à votre compte",
4442
4371
  welcome: "Bienvenue, connectez-vous avec votre compte existant.",
4443
4372
  dontHaveAccount: "Vous n’avez pas encore de compte ?",
@@ -4456,28 +4385,28 @@ var errors$c = {
4456
4385
  "": ""
4457
4386
  };
4458
4387
  var login_fr = {
4459
- labels: labels$G,
4460
- messages: messages$L,
4388
+ labels: labels$L,
4389
+ messages: messages$N,
4461
4390
  errors: errors$c
4462
4391
  };
4463
4392
 
4464
- var labels$F = {
4393
+ var labels$K = {
4465
4394
  title: "Confirmez votre courriel",
4466
4395
  instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
4467
4396
  resend: "Renvoyer le courriel"
4468
4397
  };
4469
- var messages$K = {
4398
+ var messages$M = {
4470
4399
  resent: "Renvoyé avec succès",
4471
4400
  success: "Vous vous êtes connecté avec succès"
4472
4401
  };
4473
4402
  var verifyLinkToken_fr = {
4474
- labels: labels$F,
4475
- messages: messages$K
4403
+ labels: labels$K,
4404
+ messages: messages$M
4476
4405
  };
4477
4406
 
4478
4407
  var title$p = "Créer un compte";
4479
4408
  var subtitle$a = "Entrez votre courriel et votre mot de passe ci-dessous";
4480
- var labels$E = {
4409
+ var labels$J = {
4481
4410
  signUpFacebook: "Inscrivez-vous avec Facebook",
4482
4411
  signUpGoogle: "Inscrivez-vous avec Google",
4483
4412
  signUpEmail: "Inscrivez-vous avec votre courriel",
@@ -4490,7 +4419,7 @@ var labels$E = {
4490
4419
  lastName: "Nom de famille",
4491
4420
  phone: "Téléphoner"
4492
4421
  };
4493
- var messages$J = {
4422
+ var messages$L = {
4494
4423
  alreadyHaveAccount: "Vous avez déjà un compte?",
4495
4424
  createAccount: "Créer un compte",
4496
4425
  loginHere: "Connectez-vous ici",
@@ -4565,14 +4494,14 @@ var redeem$2 = {
4565
4494
  var register_fr = {
4566
4495
  title: title$p,
4567
4496
  subtitle: subtitle$a,
4568
- labels: labels$E,
4569
- messages: messages$J,
4497
+ labels: labels$J,
4498
+ messages: messages$L,
4570
4499
  errors: errors$b,
4571
4500
  gift: gift$2,
4572
4501
  redeem: redeem$2
4573
4502
  };
4574
4503
 
4575
- var labels$D = {
4504
+ var labels$I = {
4576
4505
  title: "Voulez-vous mettre à jour votre profil ?",
4577
4506
  subtitle: "Entrez vos informations ci-dessous pour mettre à jour votre profil",
4578
4507
  email: "Address courriel",
@@ -4591,21 +4520,21 @@ var labels$D = {
4591
4520
  zoom: "Zoom",
4592
4521
  tin: "Numéro d'identification fiscale"
4593
4522
  };
4594
- var messages$I = {
4523
+ var messages$K = {
4595
4524
  userUpdated: "Votre profil a été mis à jour avec succès.",
4596
4525
  pictureRemoved: "Votre photo de profil a été supprimée avec succès.",
4597
4526
  pictureUpdated: "Votre photo de profil a été mise à jour avec succès."
4598
4527
  };
4599
4528
  var userEdit_fr = {
4600
- labels: labels$D,
4601
- messages: messages$I
4529
+ labels: labels$I,
4530
+ messages: messages$K
4602
4531
  };
4603
4532
 
4604
4533
  var title$o = "Entrez votre adresse de livraison";
4605
4534
  var titleGifting$2 = "Entrez votre adresse";
4606
4535
  var selectAddressTitle$2 = "Veuillez sélectionner une adresse";
4607
4536
  var selectAddressSubtitle$2 = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
4608
- var labels$C = {
4537
+ var labels$H = {
4609
4538
  address: "Adresse",
4610
4539
  code: "Code postal / Zip",
4611
4540
  city: "Ville",
@@ -4621,7 +4550,7 @@ var buttons$d = {
4621
4550
  selectAddress: "Choisir cette adresse",
4622
4551
  addAddress: "Ajouter une nouvelle adresse"
4623
4552
  };
4624
- var messages$H = {
4553
+ var messages$J = {
4625
4554
  addressUpdated: "Votre adresse a été mise à jour avec succès",
4626
4555
  subRedeemed: "Votre abonnement a bien été activé."
4627
4556
  };
@@ -4630,9 +4559,9 @@ var address_fr = {
4630
4559
  titleGifting: titleGifting$2,
4631
4560
  selectAddressTitle: selectAddressTitle$2,
4632
4561
  selectAddressSubtitle: selectAddressSubtitle$2,
4633
- labels: labels$C,
4562
+ labels: labels$H,
4634
4563
  buttons: buttons$d,
4635
- messages: messages$H
4564
+ messages: messages$J
4636
4565
  };
4637
4566
 
4638
4567
  var title$n = "Réinitialiser votre mot de passe";
@@ -4660,7 +4589,7 @@ var password$4 = "Mot de passe";
4660
4589
  var submit$a = "Soumettre";
4661
4590
  var required$a = "Champs obligatoires";
4662
4591
  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 = {
4592
+ var messages$I = {
4664
4593
  alreadyHaveAccount: "Vous avez déjà un compte ?",
4665
4594
  loginHere: "Connectez-vous ici"
4666
4595
  };
@@ -4671,7 +4600,7 @@ var passwordForgot_fr = {
4671
4600
  submit: submit$a,
4672
4601
  required: required$a,
4673
4602
  passwordResetEmailSent: passwordResetEmailSent$2,
4674
- messages: messages$G
4603
+ messages: messages$I
4675
4604
  };
4676
4605
 
4677
4606
  var title$l = "Changez votre mot de passe";
@@ -4699,7 +4628,7 @@ var title$k = "Connexion sans mot de passe";
4699
4628
  var email$6 = "Entrez votre adresse courriel";
4700
4629
  var submit$8 = "Soumettre";
4701
4630
  var required$8 = "Champs obligatoires";
4702
- var messages$F = {
4631
+ var messages$H = {
4703
4632
  PasswordlessLoginSuccess: "Vous avez été authentifié avec succès avec la connexion sans mot de passe"
4704
4633
  };
4705
4634
  var passwordlessRequest_fr = {
@@ -4707,7 +4636,7 @@ var passwordlessRequest_fr = {
4707
4636
  email: email$6,
4708
4637
  submit: submit$8,
4709
4638
  required: required$8,
4710
- messages: messages$F
4639
+ messages: messages$H
4711
4640
  };
4712
4641
 
4713
4642
  var title$j = "Votre panier";
@@ -4741,7 +4670,7 @@ var buttons$c = {
4741
4670
  purchase: "Acheter",
4742
4671
  "continue": "Continuer au contenu"
4743
4672
  };
4744
- var messages$E = {
4673
+ var messages$G = {
4745
4674
  orderConfirmed: {
4746
4675
  title: "Votre commande est confirmée !",
4747
4676
  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 +4679,17 @@ var messages$E = {
4750
4679
  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
4680
  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
4681
  };
4753
- var labels$B = {
4682
+ var labels$G = {
4754
4683
  summary: "récapitulatif de commande",
4755
4684
  total: "total"
4756
4685
  };
4757
4686
  var shop_fr = {
4758
4687
  buttons: buttons$c,
4759
- messages: messages$E,
4760
- labels: labels$B
4688
+ messages: messages$G,
4689
+ labels: labels$G
4761
4690
  };
4762
4691
 
4763
- var labels$A = {
4692
+ var labels$F = {
4764
4693
  cardNumber: "Numéro de carte",
4765
4694
  securityCode: "Code de sécurité",
4766
4695
  submit: "Soumettre",
@@ -4782,7 +4711,7 @@ var labels$A = {
4782
4711
  title: "Informations de paiement"
4783
4712
  }
4784
4713
  };
4785
- var messages$D = {
4714
+ var messages$F = {
4786
4715
  youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
4787
4716
  cancel: "Annuler votre abonnement en ligne à tout moment.",
4788
4717
  giftSent: "Le cadeau d’abonnement a été envoyé à",
@@ -4796,12 +4725,12 @@ var errors$a = {
4796
4725
  "": ""
4797
4726
  };
4798
4727
  var payment_fr = {
4799
- labels: labels$A,
4800
- messages: messages$D,
4728
+ labels: labels$F,
4729
+ messages: messages$F,
4801
4730
  errors: errors$a
4802
4731
  };
4803
4732
 
4804
- var labels$z = {
4733
+ var labels$E = {
4805
4734
  menu: "Menu Pelcro",
4806
4735
  name: "Nom",
4807
4736
  email: "Courriel",
@@ -4889,7 +4818,7 @@ var labels$z = {
4889
4818
  goBack: "Retourner"
4890
4819
  }
4891
4820
  };
4892
- var messages$C = {
4821
+ var messages$E = {
4893
4822
  noCard: "Vous n’avez pas une carte",
4894
4823
  subCancellation: {
4895
4824
  isSureToCancel: "Êtes-vous certain de vouloir annuler votre abonnement?",
@@ -4909,16 +4838,16 @@ var messages$C = {
4909
4838
  }
4910
4839
  };
4911
4840
  var dashboard_fr = {
4912
- labels: labels$z,
4913
- messages: messages$C
4841
+ labels: labels$E,
4842
+ messages: messages$E
4914
4843
  };
4915
4844
 
4916
- var messages$B = {
4845
+ var messages$D = {
4917
4846
  alreadyHaveAccount: "Vous avez déjà un compte ?",
4918
4847
  loginHere: "Connectez-vous ici",
4919
4848
  checkbox: "Cochez cette case pour offrir cet abonnement"
4920
4849
  };
4921
- var labels$y = {
4850
+ var labels$D = {
4922
4851
  plan: {
4923
4852
  title: "Abonnez-vous à un plan",
4924
4853
  subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
@@ -4941,8 +4870,8 @@ var buttons$b = {
4941
4870
  back: "Retour"
4942
4871
  };
4943
4872
  var select_fr = {
4944
- messages: messages$B,
4945
- labels: labels$y,
4873
+ messages: messages$D,
4874
+ labels: labels$D,
4946
4875
  buttons: buttons$b
4947
4876
  };
4948
4877
 
@@ -4956,22 +4885,22 @@ var notification_fr = {
4956
4885
  confirm: confirm$6
4957
4886
  };
4958
4887
 
4959
- var labels$x = {
4888
+ var labels$C = {
4960
4889
  title: "Confirmez votre courriel",
4961
4890
  instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
4962
4891
  resend: "Renvoyer le courriel"
4963
4892
  };
4964
- var messages$A = {
4893
+ var messages$C = {
4965
4894
  resent: "Renvoyé avec succès",
4966
4895
  success: "Adresse courriel vérifiée avec succès"
4967
4896
  };
4968
4897
  var verifyEmail_fr = {
4969
- labels: labels$x,
4970
- messages: messages$A
4898
+ labels: labels$C,
4899
+ messages: messages$C
4971
4900
  };
4972
4901
 
4973
4902
  var title$i = "Détails de la facture";
4974
- var labels$w = {
4903
+ var labels$B = {
4975
4904
  summary: "Résumé",
4976
4905
  total: "Total",
4977
4906
  amountPaid: "Montant payé",
@@ -4984,18 +4913,61 @@ var buttons$a = {
4984
4913
  };
4985
4914
  var invoiceDetails_fr = {
4986
4915
  title: title$i,
4987
- labels: labels$w,
4916
+ labels: labels$B,
4988
4917
  buttons: buttons$a
4989
4918
  };
4990
4919
 
4991
- var labels$v = {
4920
+ var labels$A = {
4921
+ title: "Annuler l'abonnement",
4922
+ cancelReason: "Motif d'annulation",
4923
+ endOn: "Fin sur",
4924
+ endImmediately: "Fin immédiate",
4925
+ cancel: "Annuler",
4926
+ subCancellation: {
4927
+ goBack: "Retourner"
4928
+ }
4929
+ };
4930
+ var messages$B = {
4931
+ subscriptionEnd: "Cet abonnement doit expirer le",
4932
+ cancelWhen: "Quand voulez-vous annuler?",
4933
+ cancelNow: "Cancel Subscription Now",
4934
+ cancelLater: "Annuler l'abonnement maintenant",
4935
+ subCancellation: {
4936
+ isSureToCancelNow: "Êtes-vous sûr de vouloir résilier votre abonnement immédiatement?",
4937
+ isSureToCancel: "Êtes-vous sûr de vouloir résilier votre abonnement?",
4938
+ loading: "Annulation de votre abonnement",
4939
+ success: "L'abonnement a été annulé avec succès",
4940
+ error: "Erreur lors de l'annulation de votre abonnement"
4941
+ }
4942
+ };
4943
+ var subscriptionCancel_fr = {
4944
+ labels: labels$A,
4945
+ messages: messages$B
4946
+ };
4947
+
4948
+ var labels$z = {
4949
+ inviteMembers: "Inviter des membres",
4950
+ listOfMembers: "Liste des membres",
4951
+ invite: "Inviter",
4952
+ remove: "Retirer",
4953
+ emails: "Saisir les e-mails",
4954
+ status: "Statut",
4955
+ actions: "Actions",
4956
+ email: "E-mail",
4957
+ listNote: "Liste séparée par des virgules, par ex."
4958
+ };
4959
+ var subscriptionManageMembers_fr = {
4960
+ labels: labels$z
4961
+ };
4962
+
4963
+ var labels$y = {
4992
4964
  title: "Suspendre l'abonnement",
4993
4965
  suspensionDate: "Date de suspension",
4994
4966
  subCancellation: {
4995
4967
  goBack: "Revenir en arrière"
4996
4968
  }
4997
4969
  };
4998
- var messages$z = {
4970
+ var messages$A = {
4999
4971
  suspensionEnd: "La suspension doit expirer le",
5000
4972
  suspendNow: "Suspendre l'abonnement maintenant",
5001
4973
  suspendLater: "Suspendre à la fin de la période",
@@ -5008,8 +4980,8 @@ var messages$z = {
5008
4980
  }
5009
4981
  };
5010
4982
  var subscriptionSuspend_fr = {
5011
- labels: labels$v,
5012
- messages: messages$z
4983
+ labels: labels$y,
4984
+ messages: messages$A
5013
4985
  };
5014
4986
 
5015
4987
  var validation$1 = {
@@ -5132,7 +5104,7 @@ var paymentMethod_ko = {
5132
5104
  var title$h = "Frieze 뉴스레터를 구독하려면 이메일을 입력하세요.";
5133
5105
  var updateTitle$1 = "뉴스레터 선택 업데이트";
5134
5106
  var subtitle$7 = "귀하의 이메일은 다른 마케팅 용도로도 사용됩니다.";
5135
- var labels$u = {
5107
+ var labels$x = {
5136
5108
  submit: "제출",
5137
5109
  firstName: "이름",
5138
5110
  lastName: "성",
@@ -5140,7 +5112,7 @@ var labels$u = {
5140
5112
  postalCode: "우편번호",
5141
5113
  required: "필수 항목"
5142
5114
  };
5143
- var messages$y = {
5115
+ var messages$z = {
5144
5116
  alreadyHaveAccount: "이미 계정이 있습니까?",
5145
5117
  success: "뉴스레터가 성공적으로 업데이트되었습니다.",
5146
5118
  loginHere: "여기에서 로그인하세요.",
@@ -5151,14 +5123,14 @@ var newsletter_ko = {
5151
5123
  title: title$h,
5152
5124
  updateTitle: updateTitle$1,
5153
5125
  subtitle: subtitle$7,
5154
- labels: labels$u,
5155
- messages: messages$y
5126
+ labels: labels$x,
5127
+ messages: messages$z
5156
5128
  };
5157
5129
 
5158
- var labels$t = {
5130
+ var labels$w = {
5159
5131
  "continue": "콘텐츠로 돌아가기"
5160
5132
  };
5161
- var messages$x = {
5133
+ var messages$y = {
5162
5134
  yourFreeTrial: "유료 멤버십에 가입하셨습니다!",
5163
5135
  youHaveAccess: "멤버십 혜택을 즐기시기를 바라며, 질문이나 문의 사항이 있으면 저희에게 연락주십시오.",
5164
5136
  clickToLearn: {
@@ -5184,12 +5156,12 @@ var errors$9 = {
5184
5156
  "": ""
5185
5157
  };
5186
5158
  var success_ko = {
5187
- labels: labels$t,
5188
- messages: messages$x,
5159
+ labels: labels$w,
5160
+ messages: messages$y,
5189
5161
  errors: errors$9
5190
5162
  };
5191
5163
 
5192
- var messages$w = {
5164
+ var messages$x = {
5193
5165
  freeVisits: "남은 무료 방문 기간:",
5194
5166
  subscribeNow: "멤버십 가입",
5195
5167
  alreadyHaveAccount: "이미 계정이 있습니까?",
@@ -5199,16 +5171,16 @@ var errors$8 = {
5199
5171
  "": ""
5200
5172
  };
5201
5173
  var meter_ko = {
5202
- messages: messages$w,
5174
+ messages: messages$x,
5203
5175
  errors: errors$8
5204
5176
  };
5205
5177
 
5206
- var messages$v = {
5178
+ var messages$w = {
5207
5179
  youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
5208
5180
  bankRedirection: "잠시만 기다려 주십시오. 결제 은행으로 연결 중입니다.",
5209
5181
  bankAuthenticationSuccess: "요청을 처리하는 동안 기다려 주십시오."
5210
5182
  };
5211
- var labels$s = {
5183
+ var labels$v = {
5212
5184
  card: "카드 번호 입력",
5213
5185
  date: "만료일",
5214
5186
  CVC: "CVC",
@@ -5231,8 +5203,8 @@ var labels$s = {
5231
5203
  freeItems: "무료 아이템"
5232
5204
  };
5233
5205
  var checkoutForm_ko = {
5234
- messages: messages$v,
5235
- labels: labels$s
5206
+ messages: messages$w,
5207
+ labels: labels$v
5236
5208
  };
5237
5209
 
5238
5210
  var youAreSafe$1 = "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ";
@@ -5256,7 +5228,7 @@ var messages_ko = {
5256
5228
  zeroTotalInvoice: zeroTotalInvoice$1
5257
5229
  };
5258
5230
 
5259
- var labels$r = {
5231
+ var labels$u = {
5260
5232
  email: "이메일 입력",
5261
5233
  username: "사용자 이름 입력",
5262
5234
  password: "비밀번호 입력",
@@ -5265,7 +5237,7 @@ var labels$r = {
5265
5237
  passwordPlaceholder: "비밀번호",
5266
5238
  login: "로그인"
5267
5239
  };
5268
- var messages$u = {
5240
+ var messages$v = {
5269
5241
  loginTo: "귀하의 계정에 로그인",
5270
5242
  welcome: "반갑습니다. 귀하의 기존 계정으로 로그인하세요.",
5271
5243
  dontHaveAccount: "아직 계정이 없으신가요?",
@@ -5284,28 +5256,28 @@ var errors$7 = {
5284
5256
  "": ""
5285
5257
  };
5286
5258
  var login_ko = {
5287
- labels: labels$r,
5288
- messages: messages$u,
5259
+ labels: labels$u,
5260
+ messages: messages$v,
5289
5261
  errors: errors$7
5290
5262
  };
5291
5263
 
5292
- var labels$q = {
5264
+ var labels$t = {
5293
5265
  title: "비밀번호 없는 링크 확인",
5294
5266
  instructions: "가는 중입니다!\n이메일 주소를 확인하겠습니다.\n이메일로 전송된 확인 링크를 클릭하세요.",
5295
5267
  resend: "이메일 재전송"
5296
5268
  };
5297
- var messages$t = {
5269
+ var messages$u = {
5298
5270
  resent: "성공적으로 재전송",
5299
5271
  success: "성공적으로 로그인했습니다"
5300
5272
  };
5301
5273
  var verifyLinkToken_ko = {
5302
- labels: labels$q,
5303
- messages: messages$t
5274
+ labels: labels$t,
5275
+ messages: messages$u
5304
5276
  };
5305
5277
 
5306
5278
  var title$g = "계정 만들기";
5307
5279
  var subtitle$6 = "아래에 이메일과 비밀번호를 입력하세요.";
5308
- var labels$p = {
5280
+ var labels$s = {
5309
5281
  signUpFacebook: "Facebook으로 가입하기",
5310
5282
  signUpGoogle: "Google로 가입하기",
5311
5283
  signUpEmail: "이메일로 가입하기",
@@ -5318,7 +5290,7 @@ var labels$p = {
5318
5290
  lastName: "성",
5319
5291
  phone: "핸드폰"
5320
5292
  };
5321
- var messages$s = {
5293
+ var messages$t = {
5322
5294
  alreadyHaveAccount: "이미 계정이 있습니까?",
5323
5295
  createAccount: "계정 만들기",
5324
5296
  loginHere: "여기에서 로그인하세요.",
@@ -5392,14 +5364,14 @@ var redeem$1 = {
5392
5364
  var register_ko = {
5393
5365
  title: title$g,
5394
5366
  subtitle: subtitle$6,
5395
- labels: labels$p,
5396
- messages: messages$s,
5367
+ labels: labels$s,
5368
+ messages: messages$t,
5397
5369
  errors: errors$6,
5398
5370
  gift: gift$1,
5399
5371
  redeem: redeem$1
5400
5372
  };
5401
5373
 
5402
- var labels$o = {
5374
+ var labels$r = {
5403
5375
  title: "프로파일을 업데이트하시겠습니까?",
5404
5376
  subtitle: "프로필을 업데이트하려면 아래 정보를 입력하세요.",
5405
5377
  email: "이메일",
@@ -5418,21 +5390,21 @@ var labels$o = {
5418
5390
  zoom: "확대",
5419
5391
  tin: "세금 식별 번호"
5420
5392
  };
5421
- var messages$r = {
5393
+ var messages$s = {
5422
5394
  userUpdated: "감사합니다! 프로필이 성공적으로 업데이트되었습니다.",
5423
5395
  pictureRemoved: "귀하의 프로필 사진이 제거되었습니다.",
5424
5396
  pictureUpdated: "귀하의 프로필 사진이 업데이트되었습니다."
5425
5397
  };
5426
5398
  var userEdit_ko = {
5427
- labels: labels$o,
5428
- messages: messages$r
5399
+ labels: labels$r,
5400
+ messages: messages$s
5429
5401
  };
5430
5402
 
5431
5403
  var title$f = "배송 주소를 입력하십시오.";
5432
5404
  var titleGifting$1 = "주소를 입력하세요";
5433
5405
  var selectAddressTitle$1 = "주소를 선택하십시오.";
5434
5406
  var selectAddressSubtitle$1 = "저장된 주소에서 선택하거나 새 주소를 추가하십시오.";
5435
- var labels$n = {
5407
+ var labels$q = {
5436
5408
  address: "주소",
5437
5409
  code: "우편번호",
5438
5410
  city: "도시",
@@ -5448,7 +5420,7 @@ var buttons$8 = {
5448
5420
  selectAddress: "주소 선택",
5449
5421
  addAddress: "새 주소 추가"
5450
5422
  };
5451
- var messages$q = {
5423
+ var messages$r = {
5452
5424
  addressUpdated: "주소가 성공적으로 업데이트되었습니다!",
5453
5425
  subRedeemed: "귀하의 유료 멤버십이 사용되었습니다."
5454
5426
  };
@@ -5457,9 +5429,9 @@ var address_ko = {
5457
5429
  titleGifting: titleGifting$1,
5458
5430
  selectAddressTitle: selectAddressTitle$1,
5459
5431
  selectAddressSubtitle: selectAddressSubtitle$1,
5460
- labels: labels$n,
5432
+ labels: labels$q,
5461
5433
  buttons: buttons$8,
5462
- messages: messages$q
5434
+ messages: messages$r
5463
5435
  };
5464
5436
 
5465
5437
  var title$e = "비밀번호 재설정";
@@ -5487,7 +5459,7 @@ var password$2 = "비밀번호";
5487
5459
  var submit$6 = "제출";
5488
5460
  var required$6 = "필수 항목";
5489
5461
  var passwordResetEmailSent$1 = "비밀번호 재설정 안내가 귀하의 이메일로 발송되었습니다.";
5490
- var messages$p = {
5462
+ var messages$q = {
5491
5463
  alreadyHaveAccount: "이미 계정이 있습니까?",
5492
5464
  loginHere: "여기에서 로그인하세요."
5493
5465
  };
@@ -5498,7 +5470,7 @@ var passwordForgot_ko = {
5498
5470
  submit: submit$6,
5499
5471
  required: required$6,
5500
5472
  passwordResetEmailSent: passwordResetEmailSent$1,
5501
- messages: messages$p
5473
+ messages: messages$q
5502
5474
  };
5503
5475
 
5504
5476
  var title$c = "비밀번호를 변경합니다.";
@@ -5526,7 +5498,7 @@ var title$b = "비밀번호 없는 로그인";
5526
5498
  var email$3 = "이메일 입력";
5527
5499
  var submit$4 = "제출";
5528
5500
  var required$4 = "필수 항목";
5529
- var messages$o = {
5501
+ var messages$p = {
5530
5502
  PasswordlessLoginSuccess: "비밀번호 없는 로그인으로 성공적으로 인증되었습니다."
5531
5503
  };
5532
5504
  var passwordlessRequest_ko = {
@@ -5534,7 +5506,7 @@ var passwordlessRequest_ko = {
5534
5506
  email: email$3,
5535
5507
  submit: submit$4,
5536
5508
  required: required$4,
5537
- messages: messages$o
5509
+ messages: messages$p
5538
5510
  };
5539
5511
 
5540
5512
  var title$a = "귀하의 장바구니";
@@ -5568,7 +5540,7 @@ var buttons$7 = {
5568
5540
  purchase: "구매",
5569
5541
  "continue": "계속"
5570
5542
  };
5571
- var messages$n = {
5543
+ var messages$o = {
5572
5544
  orderConfirmed: {
5573
5545
  title: "주문이 확인되었습니다!",
5574
5546
  body: "귀하의 주문이 확인되었으며 며칠 안에 배송될 예정입니다. 이 주문의 확인 이메일이 귀하에게 전송됩니다."
@@ -5577,17 +5549,17 @@ var messages$n = {
5577
5549
  multipleCurrencies: "장바구니에 다른 통화로만 결제가 가능한 아이템이 있습니다. 결제를 계속 진행하려면 모든 아이템의 결제 통화가 동일한지 확인하십시오.",
5578
5550
  currencyMismatch: "선택하신 아이템(들)이 귀하가 설정한 기본 통화({{currency}})와 일치하지 않습니다. 기본 통화와 일치하는 아이템(들)만 선택하십시오."
5579
5551
  };
5580
- var labels$m = {
5552
+ var labels$p = {
5581
5553
  summary: "주문 요약",
5582
5554
  total: "총계"
5583
5555
  };
5584
5556
  var shop_ko = {
5585
5557
  buttons: buttons$7,
5586
- messages: messages$n,
5587
- labels: labels$m
5558
+ messages: messages$o,
5559
+ labels: labels$p
5588
5560
  };
5589
5561
 
5590
- var labels$l = {
5562
+ var labels$o = {
5591
5563
  cardNumber: "카드 번호",
5592
5564
  securityCode: "보안 코드",
5593
5565
  submit: "제출",
@@ -5609,7 +5581,7 @@ var labels$l = {
5609
5581
  title: "결제 정보"
5610
5582
  }
5611
5583
  };
5612
- var messages$m = {
5584
+ var messages$n = {
5613
5585
  youAreSafe: "PCI 준수 128비트 SSL 인증서로 보호됩니다. 제공: ",
5614
5586
  cancel: "유료 멤버십은 언제든 온라인으로 취소가 가능합니다.",
5615
5587
  giftSent: "유료 멤버십 선물이 ",
@@ -5623,12 +5595,12 @@ var errors$5 = {
5623
5595
  "": ""
5624
5596
  };
5625
5597
  var payment_ko = {
5626
- labels: labels$l,
5627
- messages: messages$m,
5598
+ labels: labels$o,
5599
+ messages: messages$n,
5628
5600
  errors: errors$5
5629
5601
  };
5630
5602
 
5631
- var labels$k = {
5603
+ var labels$n = {
5632
5604
  menu: "Pelcro 메뉴",
5633
5605
  name: "이름",
5634
5606
  email: "이메일",
@@ -5776,7 +5748,7 @@ var savedItems = {
5776
5748
  var subCancellation = {
5777
5749
  goBack: "뒤로 가기"
5778
5750
  };
5779
- var messages$l = {
5751
+ var messages$m = {
5780
5752
  noCard: "등록된 카드가 없습니다.",
5781
5753
  subCancellation: {
5782
5754
  isSureToCancel: "정말로 유료 멤버십을 취소하시겠습니까?",
@@ -5796,7 +5768,7 @@ var messages$l = {
5796
5768
  }
5797
5769
  };
5798
5770
  var dashboard_ko = {
5799
- labels: labels$k,
5771
+ labels: labels$n,
5800
5772
  shipments: shipments,
5801
5773
  logout: logout,
5802
5774
  dashboard: dashboard$1,
@@ -5845,15 +5817,15 @@ var dashboard_ko = {
5845
5817
  orders: orders,
5846
5818
  savedItems: savedItems,
5847
5819
  subCancellation: subCancellation,
5848
- messages: messages$l
5820
+ messages: messages$m
5849
5821
  };
5850
5822
 
5851
- var messages$k = {
5823
+ var messages$l = {
5852
5824
  alreadyHaveAccount: "이미 계정이 있습니까?",
5853
5825
  loginHere: "여기에서 로그인하세요.",
5854
5826
  checkbox: "이 유료 멤버십을 선물하려면 체크하세요."
5855
5827
  };
5856
- var labels$j = {
5828
+ var labels$m = {
5857
5829
  plan: {
5858
5830
  title: "요금제 가입하기",
5859
5831
  subtitle: "아래 요금제 중 하나를 선택하고 다음을 클릭하세요."
@@ -5876,8 +5848,8 @@ var buttons$6 = {
5876
5848
  back: "뒤로"
5877
5849
  };
5878
5850
  var select_ko = {
5879
- messages: messages$k,
5880
- labels: labels$j,
5851
+ messages: messages$l,
5852
+ labels: labels$m,
5881
5853
  buttons: buttons$6
5882
5854
  };
5883
5855
 
@@ -5891,22 +5863,22 @@ var notification_ko = {
5891
5863
  confirm: confirm$3
5892
5864
  };
5893
5865
 
5894
- var labels$i = {
5866
+ var labels$l = {
5895
5867
  title: "이메일 주소를 인증하세요.",
5896
5868
  instructions: "거의 완료되었습니다!\n이메일 주소만 인증하면 됩니다.\n다음 이메일 주소로 전송된 인증 링크를 클릭해 주십시오:",
5897
5869
  resend: "이메일 재전송"
5898
5870
  };
5899
- var messages$j = {
5871
+ var messages$k = {
5900
5872
  resent: "재전송 완료",
5901
5873
  success: "이메일 주소가 인증되었습니다!"
5902
5874
  };
5903
5875
  var verifyEmail_ko = {
5904
- labels: labels$i,
5905
- messages: messages$j
5876
+ labels: labels$l,
5877
+ messages: messages$k
5906
5878
  };
5907
5879
 
5908
5880
  var title$9 = "인보이스 세부 정보";
5909
- var labels$h = {
5881
+ var labels$k = {
5910
5882
  summary: "요약",
5911
5883
  total: "총계",
5912
5884
  amountPaid: "지불된 금액",
@@ -5919,11 +5891,54 @@ var buttons$5 = {
5919
5891
  };
5920
5892
  var invoiceDetails_ko = {
5921
5893
  title: title$9,
5922
- labels: labels$h,
5894
+ labels: labels$k,
5923
5895
  buttons: buttons$5
5924
5896
  };
5925
5897
 
5926
- var labels$g = {
5898
+ var labels$j = {
5899
+ title: "구독 취소",
5900
+ cancelReason: "취소 사유",
5901
+ endOn: "종료",
5902
+ endImmediately: "즉시 종료",
5903
+ cancel: "취소",
5904
+ subCancellation: {
5905
+ goBack: "돌아가기"
5906
+ }
5907
+ };
5908
+ var messages$j = {
5909
+ subscriptionEnd: "이 구독은 다음 날짜에 만료되도록 설정되었습니다.",
5910
+ cancelWhen: "언제 취소하시겠습니까?",
5911
+ cancelNow: "지금 구독 취소",
5912
+ cancelLater: "기간 종료 시 취소",
5913
+ subCancellation: {
5914
+ isSureToCancelNow: "구독을 즉시 취소하시겠습니까?",
5915
+ isSureToCancel: "구독을 취소하시겠습니까?",
5916
+ loading: "구독 취소",
5917
+ success: "구독이 성공적으로 취소되었습니다.",
5918
+ error: "구독 취소 중 오류 발생"
5919
+ }
5920
+ };
5921
+ var subscriptionCancel_ko = {
5922
+ labels: labels$j,
5923
+ messages: messages$j
5924
+ };
5925
+
5926
+ var labels$i = {
5927
+ inviteMembers: "회원 초대",
5928
+ listOfMembers: "구성원 목록",
5929
+ invite: "초대",
5930
+ remove: "제거하다",
5931
+ emails: "이메일 입력",
5932
+ status: "상태",
5933
+ actions: "행위",
5934
+ email: "이메일",
5935
+ listNote: "쉼표로 구분된 목록입니다."
5936
+ };
5937
+ var subscriptionManageMembers_ko = {
5938
+ labels: labels$i
5939
+ };
5940
+
5941
+ var labels$h = {
5927
5942
  title: "구독 중단",
5928
5943
  suspensionDate: "중단 날짜",
5929
5944
  subCancellation: {
@@ -5943,7 +5958,7 @@ var messages$i = {
5943
5958
  }
5944
5959
  };
5945
5960
  var subscriptionSuspend_ko = {
5946
- labels: labels$g,
5961
+ labels: labels$h,
5947
5962
  messages: messages$i
5948
5963
  };
5949
5964
 
@@ -6064,7 +6079,7 @@ var paymentMethod_es = {
6064
6079
  var title$8 = "Ingresa tu correo para suscribirte a nuestro boletín";
6065
6080
  var updateTitle = "Actualizar selecciones del boletín";
6066
6081
  var subtitle$3 = "Podríamos usar tu dirección de correo para otras comunicaciones de marketing";
6067
- var labels$f = {
6082
+ var labels$g = {
6068
6083
  submit: "Enviar",
6069
6084
  firstName: "Nombre",
6070
6085
  lastName: "Apellido",
@@ -6083,11 +6098,11 @@ var newsletter_es = {
6083
6098
  title: title$8,
6084
6099
  updateTitle: updateTitle,
6085
6100
  subtitle: subtitle$3,
6086
- labels: labels$f,
6101
+ labels: labels$g,
6087
6102
  messages: messages$h
6088
6103
  };
6089
6104
 
6090
- var labels$e = {
6105
+ var labels$f = {
6091
6106
  "continue": "Continuar al contenido"
6092
6107
  };
6093
6108
  var messages$g = {
@@ -6116,7 +6131,7 @@ var errors$4 = {
6116
6131
  "": ""
6117
6132
  };
6118
6133
  var success_es = {
6119
- labels: labels$e,
6134
+ labels: labels$f,
6120
6135
  messages: messages$g,
6121
6136
  errors: errors$4
6122
6137
  };
@@ -6140,7 +6155,7 @@ var messages$e = {
6140
6155
  bankRedirection: "Por favor, espera, estamos redireccionando a tu banco.",
6141
6156
  bankAuthenticationSuccess: "Por favor, espera un momento mientras procesamos tu solicitud."
6142
6157
  };
6143
- var labels$d = {
6158
+ var labels$e = {
6144
6159
  card: "Ingresar número de tarjeta",
6145
6160
  date: "Vencimiento",
6146
6161
  CVC: "CVC",
@@ -6164,7 +6179,7 @@ var labels$d = {
6164
6179
  };
6165
6180
  var checkoutForm_es = {
6166
6181
  messages: messages$e,
6167
- labels: labels$d
6182
+ labels: labels$e
6168
6183
  };
6169
6184
 
6170
6185
  var youAreSafe = "Estás seguro - PCI compliance 128 SSL por";
@@ -6186,7 +6201,7 @@ var messages_es = {
6186
6201
  zeroTotalInvoice: zeroTotalInvoice
6187
6202
  };
6188
6203
 
6189
- var labels$c = {
6204
+ var labels$d = {
6190
6205
  email: "Ingresar correo",
6191
6206
  password: "Ingresar contraseña",
6192
6207
  required: "obligatorio",
@@ -6213,12 +6228,12 @@ var errors$2 = {
6213
6228
  "": ""
6214
6229
  };
6215
6230
  var login_es = {
6216
- labels: labels$c,
6231
+ labels: labels$d,
6217
6232
  messages: messages$d,
6218
6233
  errors: errors$2
6219
6234
  };
6220
6235
 
6221
- var labels$b = {
6236
+ var labels$c = {
6222
6237
  title: "Verificando Enlace Sin Contraseña",
6223
6238
  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
6239
  resend: "Reenviar correo"
@@ -6228,13 +6243,13 @@ var messages$c = {
6228
6243
  success: "Inicio de sesión exitoso"
6229
6244
  };
6230
6245
  var verifyLinkToken_es = {
6231
- labels: labels$b,
6246
+ labels: labels$c,
6232
6247
  messages: messages$c
6233
6248
  };
6234
6249
 
6235
6250
  var title$7 = "Crear una cuenta";
6236
6251
  var subtitle$2 = "Ingresa tu correo y contraseña a continuación";
6237
- var labels$a = {
6252
+ var labels$b = {
6238
6253
  signUpFacebook: "Regístrate con Facebook",
6239
6254
  signUpGoogle: "Regístrate con Google",
6240
6255
  signUpEmail: "Regístrate con Correo",
@@ -6321,14 +6336,14 @@ var redeem = {
6321
6336
  var register_es = {
6322
6337
  title: title$7,
6323
6338
  subtitle: subtitle$2,
6324
- labels: labels$a,
6339
+ labels: labels$b,
6325
6340
  messages: messages$b,
6326
6341
  errors: errors$1,
6327
6342
  gift: gift,
6328
6343
  redeem: redeem
6329
6344
  };
6330
6345
 
6331
- var labels$9 = {
6346
+ var labels$a = {
6332
6347
  title: "¿Quieres actualizar tu perfil?",
6333
6348
  subtitle: "Ingresa tu información a continuación para actualizar tu perfil",
6334
6349
  email: "Correo",
@@ -6353,7 +6368,7 @@ var messages$a = {
6353
6368
  pictureUpdated: "Tu foto de perfil se actualizó con éxito."
6354
6369
  };
6355
6370
  var userEdit_es = {
6356
- labels: labels$9,
6371
+ labels: labels$a,
6357
6372
  messages: messages$a
6358
6373
  };
6359
6374
 
@@ -6361,7 +6376,7 @@ var title$6 = "Ingresa tu dirección de envío";
6361
6376
  var titleGifting = "Introduce tu dirección";
6362
6377
  var selectAddressTitle = "Por favor, selecciona una dirección";
6363
6378
  var selectAddressSubtitle = "Selecciona una de tus direcciones guardadas o añade una nueva";
6364
- var labels$8 = {
6379
+ var labels$9 = {
6365
6380
  address: "Dirección",
6366
6381
  code: "Código Postal/Área",
6367
6382
  city: "Ciudad",
@@ -6386,7 +6401,7 @@ var address_es = {
6386
6401
  titleGifting: titleGifting,
6387
6402
  selectAddressTitle: selectAddressTitle,
6388
6403
  selectAddressSubtitle: selectAddressSubtitle,
6389
- labels: labels$8,
6404
+ labels: labels$9,
6390
6405
  buttons: buttons$3,
6391
6406
  messages: messages$9
6392
6407
  };
@@ -6506,17 +6521,17 @@ var messages$6 = {
6506
6521
  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
6522
  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
6523
  };
6509
- var labels$7 = {
6524
+ var labels$8 = {
6510
6525
  summary: "Resumen de la orden",
6511
6526
  total: "total"
6512
6527
  };
6513
6528
  var shop_es = {
6514
6529
  buttons: buttons$2,
6515
6530
  messages: messages$6,
6516
- labels: labels$7
6531
+ labels: labels$8
6517
6532
  };
6518
6533
 
6519
- var labels$6 = {
6534
+ var labels$7 = {
6520
6535
  cardNumber: "Número de Tarjeta",
6521
6536
  securityCode: "Código de Seguridad",
6522
6537
  submit: "Enviar",
@@ -6552,12 +6567,12 @@ var errors = {
6552
6567
  "": ""
6553
6568
  };
6554
6569
  var payment_es = {
6555
- labels: labels$6,
6570
+ labels: labels$7,
6556
6571
  messages: messages$5,
6557
6572
  errors: errors
6558
6573
  };
6559
6574
 
6560
- var labels$5 = {
6575
+ var labels$6 = {
6561
6576
  menu: "Menú de Pelcro",
6562
6577
  name: "Nombre",
6563
6578
  email: "Correo",
@@ -6572,6 +6587,7 @@ var labels$5 = {
6572
6587
  scheduled: "Programada",
6573
6588
  incomplete: "Incompleta"
6574
6589
  },
6590
+ manageMembers: "Administrar miembros",
6575
6591
  shipments: "Envíos restantes",
6576
6592
  logout: "Cerrar sesión",
6577
6593
  dashboard: "Panel",
@@ -6664,7 +6680,7 @@ var messages$4 = {
6664
6680
  }
6665
6681
  };
6666
6682
  var dashboard_es = {
6667
- labels: labels$5,
6683
+ labels: labels$6,
6668
6684
  messages: messages$4
6669
6685
  };
6670
6686
 
@@ -6673,7 +6689,7 @@ var messages$3 = {
6673
6689
  loginHere: "Inicia sesión aquí",
6674
6690
  checkbox: "Marca esta casilla para regalar esta suscripción"
6675
6691
  };
6676
- var labels$4 = {
6692
+ var labels$5 = {
6677
6693
  plan: {
6678
6694
  title: "Suscribirse a un plan",
6679
6695
  subtitle: "Selecciona uno de los planes a continuación y pulsa en siguiente."
@@ -6697,7 +6713,7 @@ var buttons$1 = {
6697
6713
  };
6698
6714
  var select_es = {
6699
6715
  messages: messages$3,
6700
- labels: labels$4,
6716
+ labels: labels$5,
6701
6717
  buttons: buttons$1
6702
6718
  };
6703
6719
 
@@ -6711,7 +6727,7 @@ var notification_es = {
6711
6727
  confirm: confirm
6712
6728
  };
6713
6729
 
6714
- var labels$3 = {
6730
+ var labels$4 = {
6715
6731
  title: "Verifica tu correo",
6716
6732
  instructions: "¡Ya casi terminas!\nVamos a confirmar tu dirección de correo.\nPulsa el enlace de verificación que hemos enviado a tu correo:",
6717
6733
  resend: "Reenviar correo"
@@ -6721,12 +6737,12 @@ var messages$2 = {
6721
6737
  success: "¡El correo se verificó con éxito!"
6722
6738
  };
6723
6739
  var verifyEmail_es = {
6724
- labels: labels$3,
6740
+ labels: labels$4,
6725
6741
  messages: messages$2
6726
6742
  };
6727
6743
 
6728
6744
  var title = "Detalles del comprobante de pago";
6729
- var labels$2 = {
6745
+ var labels$3 = {
6730
6746
  summary: "Resumen",
6731
6747
  total: "Total",
6732
6748
  amountPaid: "Monto pagado",
@@ -6739,19 +6755,23 @@ var buttons = {
6739
6755
  };
6740
6756
  var invoiceDetails_es = {
6741
6757
  title: title,
6742
- labels: labels$2,
6758
+ labels: labels$3,
6743
6759
  buttons: buttons
6744
6760
  };
6745
6761
 
6746
- var labels$1 = {
6762
+ var labels$2 = {
6747
6763
  title: "Cancelar suscripción",
6748
6764
  cancelReason: "Razón de la cancelación",
6765
+ endOn: "Fin de",
6766
+ endImmediately: "Fin inmediato",
6767
+ cancel: "Cancelar",
6749
6768
  subCancellation: {
6750
6769
  goBack: "Volver"
6751
6770
  }
6752
6771
  };
6753
6772
  var messages$1 = {
6754
6773
  subscriptionEnd: "Esta suscripción expirará el",
6774
+ cancelWhen: "¿Cuándo desea cancelar?",
6755
6775
  cancelNow: "Cancelar Suscripción Ahora",
6756
6776
  cancelLater: "Cancelar al Final del Periodo",
6757
6777
  subCancellation: {
@@ -6763,10 +6783,25 @@ var messages$1 = {
6763
6783
  }
6764
6784
  };
6765
6785
  var subscriptionCancel_es = {
6766
- labels: labels$1,
6786
+ labels: labels$2,
6767
6787
  messages: messages$1
6768
6788
  };
6769
6789
 
6790
+ var labels$1 = {
6791
+ inviteMembers: "Invitar miembros",
6792
+ listOfMembers: "Lista de miembros",
6793
+ invite: "Invitar",
6794
+ remove: "quitar",
6795
+ emails: "Ingresar correo electrónico",
6796
+ status: "Estado",
6797
+ actions: "Acciones",
6798
+ email: "Correo electrónico",
6799
+ listNote: "Lista separada por comas, por ejemplo"
6800
+ };
6801
+ var subscriptionManageMembers_es = {
6802
+ labels: labels$1
6803
+ };
6804
+
6770
6805
  var labels = {
6771
6806
  title: "Suspender suscripción",
6772
6807
  suspensionDate: "Fecha de suspensión",
@@ -8174,7 +8209,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8174
8209
  OutboundLink$1.origTrackLink = OutboundLink$1.trackLink;
8175
8210
  OutboundLink$1.trackLink = outboundLink;
8176
8211
  var OutboundLink = OutboundLink$1;
8177
- var ReactGA1 = _objectSpread({}, Defaults, {
8212
+ var ReactGA = _objectSpread({}, Defaults, {
8178
8213
  OutboundLink: OutboundLink
8179
8214
  });
8180
8215
 
@@ -8713,8 +8748,6 @@ exports["default"] = _default;
8713
8748
  var ReactGA4 = unwrapExports(dist);
8714
8749
  dist.ReactGAImplementation;
8715
8750
 
8716
- var _window$d, _window$Pelcro$d, _window$Pelcro$uiSett$d;
8717
- const ReactGA$d = (_window$d = window) !== null && _window$d !== void 0 && (_window$Pelcro$d = _window$d.Pelcro) !== null && _window$Pelcro$d !== void 0 && (_window$Pelcro$uiSett$d = _window$Pelcro$d.uiSettings) !== null && _window$Pelcro$uiSett$d !== void 0 && _window$Pelcro$uiSett$d.enableReactGA4 ? ReactGA4 : ReactGA1;
8718
8751
  class PelcroActions {
8719
8752
  constructor(storeSetter, storeGetter) {
8720
8753
  var _this = this;
@@ -8894,23 +8927,31 @@ class PelcroActions {
8894
8927
  });
8895
8928
  });
8896
8929
  _defineProperty$3(this, "logout", function () {
8897
- var _ReactGA$event;
8930
+ var _window, _window$Pelcro, _window$Pelcro$uiSett;
8898
8931
  let displayLogin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
8899
8932
  const {
8900
8933
  switchView,
8901
8934
  resetView,
8902
8935
  isAuthenticated
8903
8936
  } = _this.get();
8937
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
8904
8938
  // if user is not authenticated function execution is terminated
8905
8939
  if (!isAuthenticated()) {
8906
8940
  return console.warn("You are already logged out.");
8907
8941
  }
8908
8942
  window.Pelcro.user.logout();
8909
- ReactGA$d === null || ReactGA$d === void 0 ? void 0 : (_ReactGA$event = ReactGA$d.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$d, {
8910
- category: "ACTIONS",
8911
- action: "Logged out",
8912
- nonInteraction: true
8913
- });
8943
+ if (enableReactGA4) {
8944
+ ReactGA4.event("Logged out", {
8945
+ nonInteraction: true
8946
+ });
8947
+ } else {
8948
+ var _ReactGA$event;
8949
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
8950
+ category: "ACTIONS",
8951
+ action: "Logged out",
8952
+ nonInteraction: true
8953
+ });
8954
+ }
8914
8955
  resetView();
8915
8956
  if (displayLogin) {
8916
8957
  switchView("login");
@@ -8923,7 +8964,7 @@ class PelcroActions {
8923
8964
  return false;
8924
8965
  }
8925
8966
 
8926
- //Dispatch PelcroElementsCartItemAdded when an item added successfully to the
8967
+ // Dispatch PelcroElementsCartItemAdded when an item added successfully to the
8927
8968
  document.dispatchEvent(cartItemAdded(itemToAdd));
8928
8969
  const {
8929
8970
  cartItems
@@ -9132,9 +9173,6 @@ if (process.env.NODE_ENV === "development") {
9132
9173
  c$1("Pelcro Store", usePelcro);
9133
9174
  }
9134
9175
 
9135
- var _window$c, _window$Pelcro$c, _window$Pelcro$uiSett$c;
9136
- const ReactGA$c = (_window$c = window) !== null && _window$c !== void 0 && (_window$Pelcro$c = _window$c.Pelcro) !== null && _window$Pelcro$c !== void 0 && (_window$Pelcro$uiSett$c = _window$Pelcro$c.uiSettings) !== null && _window$Pelcro$uiSett$c !== void 0 && _window$Pelcro$uiSett$c.enableReactGA4 ? ReactGA4 : ReactGA1;
9137
-
9138
9176
  /**
9139
9177
  * List of zero-decimal currencies.
9140
9178
  * @see https://stripe.com/docs/currencies#zero-decimal
@@ -9220,8 +9258,8 @@ const getLanguageWithoutRegion = localeName => {
9220
9258
  * @return {string | undefined}
9221
9259
  */
9222
9260
  const getPageOrDefaultLanguage = () => {
9223
- var _window$Pelcro$helper, _window$Pelcro2, _window$Pelcro2$site, _window$Pelcro2$site$, _window$Pelcro2$site$2;
9224
- return (_window$Pelcro$helper = window.Pelcro.helpers.getHtmlLanguageAttribute()) !== null && _window$Pelcro$helper !== void 0 ? _window$Pelcro$helper : getLanguageWithoutRegion((_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$site = _window$Pelcro2.site) === null || _window$Pelcro2$site === void 0 ? void 0 : (_window$Pelcro2$site$ = _window$Pelcro2$site.read) === null || _window$Pelcro2$site$ === void 0 ? void 0 : (_window$Pelcro2$site$2 = _window$Pelcro2$site$.call(_window$Pelcro2$site)) === null || _window$Pelcro2$site$2 === void 0 ? void 0 : _window$Pelcro2$site$2.default_locale);
9261
+ var _window$Pelcro$helper, _window$Pelcro, _window$Pelcro$site, _window$Pelcro$site$r, _window$Pelcro$site$r2;
9262
+ return (_window$Pelcro$helper = window.Pelcro.helpers.getHtmlLanguageAttribute()) !== null && _window$Pelcro$helper !== void 0 ? _window$Pelcro$helper : getLanguageWithoutRegion((_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$site = _window$Pelcro.site) === null || _window$Pelcro$site === void 0 ? void 0 : (_window$Pelcro$site$r = _window$Pelcro$site.read) === null || _window$Pelcro$site$r === void 0 ? void 0 : (_window$Pelcro$site$r2 = _window$Pelcro$site$r.call(_window$Pelcro$site)) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.default_locale);
9225
9263
  };
9226
9264
 
9227
9265
  /**
@@ -9274,9 +9312,9 @@ const isValidViewFromURL = viewID => {
9274
9312
  *
9275
9313
  */
9276
9314
  function hasValidNewsletterUpdateUrl() {
9277
- var _window$Pelcro3, _window$Pelcro3$uiSet;
9315
+ var _window$Pelcro2, _window$Pelcro2$uiSet;
9278
9316
  if (viewID !== "newsletter-update") return false;
9279
- const newsletters = (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$uiSet = _window$Pelcro3.uiSettings) === null || _window$Pelcro3$uiSet === void 0 ? void 0 : _window$Pelcro3$uiSet.newsletters;
9317
+ const newsletters = (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$uiSet = _window$Pelcro2.uiSettings) === null || _window$Pelcro2$uiSet === void 0 ? void 0 : _window$Pelcro2$uiSet.newsletters;
9280
9318
  const siteHasNewslettersDefined = Array.isArray(newsletters) && newsletters.length > 0;
9281
9319
  if (!siteHasNewslettersDefined) {
9282
9320
  return false;
@@ -9322,7 +9360,7 @@ const disableScroll = () => {
9322
9360
  }
9323
9361
  };
9324
9362
  const trackSubscriptionOnGA = () => {
9325
- var _window$Pelcro$user$r5, _window$Pelcro$user$r6, _ReactGA$set, _ReactGA$plugin, _ReactGA$plugin$execu, _ReactGA$plugin2, _ReactGA$plugin2$exec, _ReactGA$plugin3, _ReactGA$plugin3$exec, _ReactGA$event;
9363
+ var _window, _window$Pelcro3, _window$Pelcro3$uiSet, _window$Pelcro$user$r5, _window$Pelcro$user$r6;
9326
9364
  const {
9327
9365
  product,
9328
9366
  plan,
@@ -9337,33 +9375,56 @@ const trackSubscriptionOnGA = () => {
9337
9375
  invoices
9338
9376
  } = window.Pelcro.user.read();
9339
9377
  const lastSubscriptionId = invoices === null || invoices === void 0 ? void 0 : invoices[invoices.length - 1].subscription_id;
9378
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro3 = _window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$uiSet = _window$Pelcro3.uiSettings) === null || _window$Pelcro3$uiSet === void 0 ? void 0 : _window$Pelcro3$uiSet.enableReactGA4;
9340
9379
  if (!lastSubscriptionId) {
9341
9380
  return;
9342
9381
  }
9343
9382
  const currencyCode = (_window$Pelcro$user$r5 = (_window$Pelcro$user$r6 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r6 === void 0 ? void 0 : _window$Pelcro$user$r6.currency) !== null && _window$Pelcro$user$r5 !== void 0 ? _window$Pelcro$user$r5 : plan.currency;
9344
- ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$set = ReactGA$c.set) === null || _ReactGA$set === void 0 ? void 0 : _ReactGA$set.call(ReactGA$c, {
9345
- currencyCode: currencyCode
9346
- });
9347
- ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$plugin = ReactGA$c.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$execu = _ReactGA$plugin.execute) === null || _ReactGA$plugin$execu === void 0 ? void 0 : _ReactGA$plugin$execu.call(_ReactGA$plugin, "ecommerce", "addTransaction", {
9348
- id: lastSubscriptionId,
9349
- affiliation: "Pelcro",
9350
- revenue: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
9351
- coupon: couponCode
9352
- });
9353
- ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$plugin2 = ReactGA$c.plugin) === null || _ReactGA$plugin2 === void 0 ? void 0 : (_ReactGA$plugin2$exec = _ReactGA$plugin2.execute) === null || _ReactGA$plugin2$exec === void 0 ? void 0 : _ReactGA$plugin2$exec.call(_ReactGA$plugin2, "ecommerce", "addItem", {
9354
- id: lastSubscriptionId,
9355
- name: product.name,
9356
- category: product.description,
9357
- variant: plan.nickname,
9358
- price: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
9359
- quantity: 1
9360
- });
9361
- ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$plugin3 = ReactGA$c.plugin) === null || _ReactGA$plugin3 === void 0 ? void 0 : (_ReactGA$plugin3$exec = _ReactGA$plugin3.execute) === null || _ReactGA$plugin3$exec === void 0 ? void 0 : _ReactGA$plugin3$exec.call(_ReactGA$plugin3, "ecommerce", "send");
9362
- ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$event = ReactGA$c.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$c, {
9363
- category: "ACTIONS",
9364
- action: "Subscribed",
9365
- nonInteraction: true
9366
- });
9383
+ if (enableReactGA4) {
9384
+ ReactGA4.event("purchase", {
9385
+ transaction_id: lastSubscriptionId,
9386
+ affiliation: "Pelcro",
9387
+ currency: currencyCode,
9388
+ value: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
9389
+ coupon: couponCode,
9390
+ items: [{
9391
+ item_id: lastSubscriptionId,
9392
+ item_name: product.name,
9393
+ item_category: product.description,
9394
+ item_variant: plan.nickname,
9395
+ price: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
9396
+ quantity: 1
9397
+ }]
9398
+ });
9399
+ ReactGA4.event("Subscribed", {
9400
+ nonInteraction: true
9401
+ });
9402
+ } else {
9403
+ var _ReactGA$set, _ReactGA$plugin, _ReactGA$plugin$execu, _ReactGA$plugin2, _ReactGA$plugin2$exec, _ReactGA$plugin3, _ReactGA$plugin3$exec, _ReactGA$event;
9404
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$set = ReactGA.set) === null || _ReactGA$set === void 0 ? void 0 : _ReactGA$set.call(ReactGA, {
9405
+ currencyCode: currencyCode
9406
+ });
9407
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin = ReactGA.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$execu = _ReactGA$plugin.execute) === null || _ReactGA$plugin$execu === void 0 ? void 0 : _ReactGA$plugin$execu.call(_ReactGA$plugin, "ecommerce", "addTransaction", {
9408
+ id: lastSubscriptionId,
9409
+ affiliation: "Pelcro",
9410
+ revenue: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
9411
+ coupon: couponCode
9412
+ });
9413
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin2 = ReactGA.plugin) === null || _ReactGA$plugin2 === void 0 ? void 0 : (_ReactGA$plugin2$exec = _ReactGA$plugin2.execute) === null || _ReactGA$plugin2$exec === void 0 ? void 0 : _ReactGA$plugin2$exec.call(_ReactGA$plugin2, "ecommerce", "addItem", {
9414
+ id: lastSubscriptionId,
9415
+ name: product.name,
9416
+ category: product.description,
9417
+ variant: plan.nickname,
9418
+ price: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
9419
+ quantity: 1
9420
+ });
9421
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin3 = ReactGA.plugin) === null || _ReactGA$plugin3 === void 0 ? void 0 : (_ReactGA$plugin3$exec = _ReactGA$plugin3.execute) === null || _ReactGA$plugin3$exec === void 0 ? void 0 : _ReactGA$plugin3$exec.call(_ReactGA$plugin3, "ecommerce", "send");
9422
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
9423
+ category: "ACTIONS",
9424
+ action: "Subscribed",
9425
+ nonInteraction: true
9426
+ });
9427
+ }
9367
9428
  };
9368
9429
 
9369
9430
  /** check wether or not the user have any existing payment method
@@ -9447,14 +9508,14 @@ function getDateWithoutTime(dateObject) {
9447
9508
  return date;
9448
9509
  }
9449
9510
  function userMustVerifyEmail() {
9450
- var _window$Pelcro$site$r, _window$Pelcro$site$r2, _window$Pelcro$user$r9, _window$Pelcro$user$r10;
9451
- const isEmailVerificationEnabled = (_window$Pelcro$site$r = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.email_verify_enabled) !== null && _window$Pelcro$site$r !== void 0 ? _window$Pelcro$site$r : false;
9511
+ var _window$Pelcro$site$r3, _window$Pelcro$site$r4, _window$Pelcro$user$r9, _window$Pelcro$user$r10;
9512
+ const isEmailVerificationEnabled = (_window$Pelcro$site$r3 = (_window$Pelcro$site$r4 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r4 === void 0 ? void 0 : _window$Pelcro$site$r4.email_verify_enabled) !== null && _window$Pelcro$site$r3 !== void 0 ? _window$Pelcro$site$r3 : false;
9452
9513
  const isUserEmailVerified = (_window$Pelcro$user$r9 = (_window$Pelcro$user$r10 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r10 === void 0 ? void 0 : _window$Pelcro$user$r10.email_confirm) !== null && _window$Pelcro$user$r9 !== void 0 ? _window$Pelcro$user$r9 : false;
9453
9514
  return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
9454
9515
  }
9455
9516
  function notifyBugsnag(callback, startOptions) {
9456
9517
  if (!window.Bugsnag && !document.querySelector('script[src="https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js"]')) {
9457
- //load bugsnag CDN
9518
+ // load bugsnag CDN
9458
9519
  window.Pelcro.helpers.loadSDK("https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js", "bugsnag-cdn");
9459
9520
  document.querySelector('script[src="https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js"]').addEventListener("load", () => {
9460
9521
  var _window$Pelcro$enviro, _window$Pelcro4, _window$Pelcro4$envir, _window$Pelcro5, _window$Pelcro5$envir;
@@ -9586,7 +9647,8 @@ const resources = {
9586
9647
  notification: notification_es,
9587
9648
  invoiceDetails: invoiceDetails_es,
9588
9649
  subscriptionCancel: subscriptionCancel_es,
9589
- subscriptionSuspend: subscriptionSuspend_es
9650
+ subscriptionSuspend: subscriptionSuspend_es,
9651
+ subscriptionManageMembers: subscriptionManageMembers_es
9590
9652
  }
9591
9653
  };
9592
9654
 
@@ -9632,10 +9694,8 @@ function _classPrivateFieldGet(receiver, privateMap) {
9632
9694
  return descriptor.value;
9633
9695
  }
9634
9696
 
9635
- var _window$b, _window$Pelcro$b, _window$Pelcro$uiSett$b;
9636
9697
  function _classPrivateFieldInitSpec$2(obj, privateMap, value) { _checkPrivateRedeclaration$2(obj, privateMap); privateMap.set(obj, value); }
9637
9698
  function _checkPrivateRedeclaration$2(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
9638
- const ReactGA$b = (_window$b = window) !== null && _window$b !== void 0 && (_window$Pelcro$b = _window$b.Pelcro) !== null && _window$Pelcro$b !== void 0 && (_window$Pelcro$uiSett$b = _window$Pelcro$b.uiSettings) !== null && _window$Pelcro$uiSett$b !== void 0 && _window$Pelcro$uiSett$b.enableReactGA4 ? ReactGA4 : ReactGA1;
9639
9699
  var _isAlreadySaved = /*#__PURE__*/new WeakMap();
9640
9700
  var _markButtonAsLoading = /*#__PURE__*/new WeakMap();
9641
9701
  var _removeLoadingState = /*#__PURE__*/new WeakMap();
@@ -9719,7 +9779,7 @@ class SaveToMetadataButtonClass {
9719
9779
  _classPrivateFieldInitSpec$2(this, _saveToMetadata, {
9720
9780
  writable: true,
9721
9781
  value: event => {
9722
- var _user$metadata;
9782
+ var _window, _window$Pelcro, _window$Pelcro$uiSett, _user$metadata;
9723
9783
  const button = event.currentTarget;
9724
9784
  const user = window.Pelcro.user.read();
9725
9785
  const {
@@ -9729,6 +9789,7 @@ class SaveToMetadataButtonClass {
9729
9789
  key,
9730
9790
  ...buttonMetadata
9731
9791
  } = button.dataset;
9792
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
9732
9793
  if (userMustVerifyEmail()) {
9733
9794
  return switchView("email-verify");
9734
9795
  }
@@ -9753,16 +9814,22 @@ class SaveToMetadataButtonClass {
9753
9814
  value: newMetadataValue,
9754
9815
  auth_token: window.Pelcro.user.read().auth_token
9755
9816
  }, (err, resp) => {
9756
- var _ReactGA$event;
9757
9817
  if (err) {
9758
9818
  return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
9759
9819
  }
9760
9820
  _classPrivateFieldGet(this, _markButtonAsSaved).call(this, button);
9761
- ReactGA$b === null || ReactGA$b === void 0 ? void 0 : (_ReactGA$event = ReactGA$b.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$b, {
9762
- category: "ACTIONS",
9763
- action: "Save/Follow",
9764
- label: buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title
9765
- });
9821
+ if (enableReactGA4) {
9822
+ ReactGA4.event("Save/Follow", {
9823
+ event_label: buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title
9824
+ });
9825
+ } else {
9826
+ var _ReactGA$event;
9827
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
9828
+ category: "ACTIONS",
9829
+ action: "Save/Follow",
9830
+ label: buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title
9831
+ });
9832
+ }
9766
9833
  });
9767
9834
  }
9768
9835
  }
@@ -9770,6 +9837,7 @@ class SaveToMetadataButtonClass {
9770
9837
  _classPrivateFieldInitSpec$2(this, _removeMetaData, {
9771
9838
  writable: true,
9772
9839
  value: event => {
9840
+ var _window2, _window2$Pelcro, _window2$Pelcro$uiSet;
9773
9841
  const button = event.currentTarget;
9774
9842
  const user = window.Pelcro.user.read();
9775
9843
  const {
@@ -9777,6 +9845,7 @@ class SaveToMetadataButtonClass {
9777
9845
  title
9778
9846
  } = button.dataset;
9779
9847
  const oldValue = user.metadata[`metadata_saved_${key}`];
9848
+ const enableReactGA4 = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$Pelcro = _window2.Pelcro) === null || _window2$Pelcro === void 0 ? void 0 : (_window2$Pelcro$uiSet = _window2$Pelcro.uiSettings) === null || _window2$Pelcro$uiSet === void 0 ? void 0 : _window2$Pelcro$uiSet.enableReactGA4;
9780
9849
  const newMetadataValue = oldValue.filter(metadata => !((metadata === null || metadata === void 0 ? void 0 : metadata.title) === title));
9781
9850
  if (window.Pelcro.user.isAuthenticated()) {
9782
9851
  _classPrivateFieldGet(this, _markButtonAsLoading).call(this, button);
@@ -9785,16 +9854,22 @@ class SaveToMetadataButtonClass {
9785
9854
  value: newMetadataValue,
9786
9855
  auth_token: window.Pelcro.user.read().auth_token
9787
9856
  }, (err, resp) => {
9788
- var _ReactGA$event2;
9789
9857
  if (err) {
9790
9858
  return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
9791
9859
  }
9792
9860
  _classPrivateFieldGet(this, _unmarkSavedButton).call(this, button);
9793
- ReactGA$b === null || ReactGA$b === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$b.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$b, {
9794
- category: "ACTIONS",
9795
- action: "Unsave/Unfollow",
9796
- label: title
9797
- });
9861
+ if (enableReactGA4) {
9862
+ ReactGA4.event("Unsave/Unfollow", {
9863
+ event_label: title
9864
+ });
9865
+ } else {
9866
+ var _ReactGA$event2;
9867
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
9868
+ category: "ACTIONS",
9869
+ action: "Unsave/Unfollow",
9870
+ label: title
9871
+ });
9872
+ }
9798
9873
  });
9799
9874
  }
9800
9875
  }
@@ -11435,9 +11510,6 @@ function getSiteCardProcessor() {
11435
11510
  return "stripe";
11436
11511
  }
11437
11512
 
11438
- var _window$a, _window$Pelcro$a, _window$Pelcro$uiSett$a;
11439
- const ReactGA$a = (_window$a = window) !== null && _window$a !== void 0 && (_window$Pelcro$a = _window$a.Pelcro) !== null && _window$Pelcro$a !== void 0 && (_window$Pelcro$uiSett$a = _window$Pelcro$a.uiSettings) !== null && _window$Pelcro$uiSett$a !== void 0 && _window$Pelcro$uiSett$a.enableReactGA4 ? ReactGA4 : ReactGA1;
11440
-
11441
11513
  /**
11442
11514
  * @typedef {Object} OptionsType
11443
11515
  * @property {boolean} loadPaymentSDKs
@@ -11564,17 +11636,44 @@ const initSecuritySdk = () => {
11564
11636
  });
11565
11637
  };
11566
11638
  const initGATracking = () => {
11567
- var _ReactGA$initialize, _ReactGA$plugin, _ReactGA$plugin$requi;
11568
- ReactGA$a === null || ReactGA$a === void 0 ? void 0 : (_ReactGA$initialize = ReactGA$a.initialize) === null || _ReactGA$initialize === void 0 ? void 0 : _ReactGA$initialize.call(ReactGA$a, window.Pelcro.site.read().google_analytics_id);
11569
- ReactGA$a === null || ReactGA$a === void 0 ? void 0 : (_ReactGA$plugin = ReactGA$a.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$requi = _ReactGA$plugin.require) === null || _ReactGA$plugin$requi === void 0 ? void 0 : _ReactGA$plugin$requi.call(_ReactGA$plugin, "ecommerce");
11639
+ var _window, _window$Pelcro, _window$Pelcro$uiSett;
11640
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
11641
+ if (window.Pelcro.site.read().google_analytics_id) {
11642
+ if (enableReactGA4) {
11643
+ // Initialize ReactGA4 with your tracking ID
11644
+ ReactGA4.initialize(window.Pelcro.site.read().google_analytics_id);
11645
+ // Enable e-commerce tracking
11646
+ ReactGA4.initialize(window.Pelcro.site.read().google_analytics_id, {
11647
+ gaOptions: {
11648
+ send_page_view: true,
11649
+ ecommerce: {
11650
+ enabled: true
11651
+ }
11652
+ }
11653
+ });
11654
+ } else {
11655
+ var _ReactGA$initialize, _ReactGA$plugin, _ReactGA$plugin$requi;
11656
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$initialize = ReactGA.initialize) === null || _ReactGA$initialize === void 0 ? void 0 : _ReactGA$initialize.call(ReactGA, window.Pelcro.site.read().google_analytics_id);
11657
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin = ReactGA.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$requi = _ReactGA$plugin.require) === null || _ReactGA$plugin$requi === void 0 ? void 0 : _ReactGA$plugin$requi.call(_ReactGA$plugin, "ecommerce");
11658
+ }
11659
+ }
11570
11660
  };
11571
11661
  const dispatchModalDisplayEvents = modalName => {
11572
- var _ReactGA$event, _modalName$replace, _modalName$replace2;
11573
- ReactGA$a === null || ReactGA$a === void 0 ? void 0 : (_ReactGA$event = ReactGA$a.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$a, {
11574
- category: "VIEWS",
11575
- action: `${modalName === null || modalName === void 0 ? void 0 : (_modalName$replace = modalName.replace("pelcro-", "")) === null || _modalName$replace === void 0 ? void 0 : _modalName$replace.replaceAll("-", " ")} viewed`,
11576
- nonInteraction: true
11577
- });
11662
+ var _window2, _window2$Pelcro, _window2$Pelcro$uiSet, _modalName$replace, _modalName$replace2;
11663
+ const enableReactGA4 = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$Pelcro = _window2.Pelcro) === null || _window2$Pelcro === void 0 ? void 0 : (_window2$Pelcro$uiSet = _window2$Pelcro.uiSettings) === null || _window2$Pelcro$uiSet === void 0 ? void 0 : _window2$Pelcro$uiSet.enableReactGA4;
11664
+ const formattedAction = modalName === null || modalName === void 0 ? void 0 : (_modalName$replace = modalName.replace("pelcro-", "")) === null || _modalName$replace === void 0 ? void 0 : _modalName$replace.replaceAll("-", " ");
11665
+ if (enableReactGA4) {
11666
+ ReactGA4.event(`${formattedAction} viewed`, {
11667
+ nonInteraction: true
11668
+ });
11669
+ } else {
11670
+ var _ReactGA$event;
11671
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
11672
+ category: "VIEWS",
11673
+ action: `${formattedAction} viewed`,
11674
+ nonInteraction: true
11675
+ });
11676
+ }
11578
11677
  window.Pelcro.insight.track("Modal Displayed", {
11579
11678
  name: `${modalName === null || modalName === void 0 ? void 0 : (_modalName$replace2 = modalName.replace("pelcro-", "")) === null || _modalName$replace2 === void 0 ? void 0 : _modalName$replace2.replaceAll("-", " ")}`
11580
11679
  });
@@ -11929,11 +12028,8 @@ const showPaymentMethodUpdateFromUrl = () => {
11929
12028
  }
11930
12029
 
11931
12030
  //vantiv
11932
- if (supportsVantiv) {
11933
- document.querySelector("#vantiv-eprotect-sdk").addEventListener("load", () => {
11934
- return switchView("payment-method-update");
11935
- });
11936
- return;
12031
+ if (supportsVantiv && document.querySelector("#vantiv-eprotect-sdk")) {
12032
+ return switchView("payment-method-update");
11937
12033
  }
11938
12034
 
11939
12035
  //Tap
@@ -12369,6 +12465,7 @@ const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
12369
12465
  const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
12370
12466
  const LINK_TOKEN_VERIFY = "LINK_TOKEN_VERIFY";
12371
12467
  const SET_CANCEL_SUBSCRIPTION_REASON = "SET_CANCEL_SUBSCRIPTION_REASON";
12468
+ const SET_CANCEL_SUBSCRIPTION_OPTION = "SET_CANCEL_SUBSCRIPTION_OPTION";
12372
12469
  const HANDLE_CHECKBOX_CHANGE = "HANDLE_CHECKBOX_CHANGE";
12373
12470
  const SET_SUBSCRIPTION_SUSPEND_DATE = "SET_SUBSCRIPTION_SUSPEND_DATE";
12374
12471
  const SET_EMAILS = "SET_EMAILS";
@@ -12399,6 +12496,7 @@ const {
12399
12496
  Provider: Provider$m
12400
12497
  } = store$m;
12401
12498
  const LoginContainer = _ref => {
12499
+ var _window, _window$Pelcro, _window$Pelcro$uiSett;
12402
12500
  let {
12403
12501
  style,
12404
12502
  className = "",
@@ -12406,6 +12504,7 @@ const LoginContainer = _ref => {
12406
12504
  onFailure = () => {},
12407
12505
  children
12408
12506
  } = _ref;
12507
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
12409
12508
  const handleLogin = (_ref2, dispatch) => {
12410
12509
  let {
12411
12510
  email,
@@ -12435,13 +12534,19 @@ const LoginContainer = _ref => {
12435
12534
  });
12436
12535
  onFailure(err);
12437
12536
  } else {
12438
- var _ReactGA$event;
12439
12537
  onSuccess(res);
12440
- ReactGA1 === null || ReactGA1 === void 0 ? void 0 : (_ReactGA$event = ReactGA1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA1, {
12441
- category: "ACTIONS",
12442
- action: "Logged in",
12443
- nonInteraction: true
12444
- });
12538
+ if (enableReactGA4) {
12539
+ ReactGA4.event("Logged in", {
12540
+ nonInteraction: true
12541
+ });
12542
+ } else {
12543
+ var _ReactGA$event;
12544
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
12545
+ category: "ACTIONS",
12546
+ action: "Logged in",
12547
+ nonInteraction: true
12548
+ });
12549
+ }
12445
12550
  }
12446
12551
  });
12447
12552
  };
@@ -12827,17 +12932,23 @@ function ConfirmPassword(_ref) {
12827
12932
  }, otherProps));
12828
12933
  }
12829
12934
 
12830
- var _window$9, _window$Pelcro$9, _window$Pelcro$uiSett$9;
12831
- const ReactGA$9 = (_window$9 = window) !== null && _window$9 !== void 0 && (_window$Pelcro$9 = _window$9.Pelcro) !== null && _window$Pelcro$9 !== void 0 && (_window$Pelcro$uiSett$9 = _window$Pelcro$9.uiSettings) !== null && _window$Pelcro$uiSett$9 !== void 0 && _window$Pelcro$uiSett$9.enableReactGA4 ? ReactGA4 : ReactGA1;
12832
12935
  const Logout = props => {
12833
12936
  const handleLogout = () => {
12834
- var _ReactGA$event;
12937
+ var _window, _window$Pelcro, _window$Pelcro$uiSett;
12835
12938
  window.Pelcro.user.logout();
12836
- ReactGA$9 === null || ReactGA$9 === void 0 ? void 0 : (_ReactGA$event = ReactGA$9.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$9, {
12837
- category: "ACTIONS",
12838
- action: "Logged out",
12839
- nonInteraction: true
12840
- });
12939
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
12940
+ if (enableReactGA4) {
12941
+ ReactGA4.event("Logged out", {
12942
+ nonInteraction: true
12943
+ });
12944
+ } else {
12945
+ var _ReactGA$event;
12946
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
12947
+ category: "ACTIONS",
12948
+ action: "Logged out",
12949
+ nonInteraction: true
12950
+ });
12951
+ }
12841
12952
  };
12842
12953
  return /*#__PURE__*/React__default['default'].createElement("button", {
12843
12954
  name: "logout",
@@ -14395,13 +14506,11 @@ const RegisterCompany = props => {
14395
14506
  }, props));
14396
14507
  };
14397
14508
 
14398
- var _window$8, _window$Pelcro$8, _window$Pelcro$uiSett$8;
14399
- const ReactGA$8 = (_window$8 = window) !== null && _window$8 !== void 0 && (_window$Pelcro$8 = _window$8.Pelcro) !== null && _window$Pelcro$8 !== void 0 && (_window$Pelcro$uiSett$8 = _window$Pelcro$8.uiSettings) !== null && _window$Pelcro$uiSett$8 !== void 0 && _window$Pelcro$uiSett$8.enableReactGA4 ? ReactGA4 : ReactGA1;
14400
-
14401
14509
  /**
14402
14510
  *
14403
14511
  */
14404
14512
  function RegisterModal(props) {
14513
+ var _window, _window$Pelcro, _window$Pelcro$uiSett;
14405
14514
  const {
14406
14515
  t
14407
14516
  } = useTranslation("register");
@@ -14416,18 +14525,26 @@ function RegisterModal(props) {
14416
14525
  giftCode,
14417
14526
  isGift
14418
14527
  } = usePelcro();
14528
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
14419
14529
  const onSuccess = res => {
14420
14530
  var _props$onSuccess;
14421
14531
  (_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
14422
14532
  handleAfterRegistrationLogic();
14423
14533
  };
14424
14534
  const handleAfterRegistrationLogic = () => {
14425
- var _ReactGA$event, _window$Pelcro$site$r, _window$Pelcro$site$r2;
14426
- ReactGA$8 === null || ReactGA$8 === void 0 ? void 0 : (_ReactGA$event = ReactGA$8.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$8, {
14427
- category: "ACTIONS",
14428
- action: "Registered",
14429
- nonInteraction: true
14430
- });
14535
+ var _window$Pelcro$site$r, _window$Pelcro$site$r2;
14536
+ if (enableReactGA4) {
14537
+ ReactGA4.event("Registered", {
14538
+ nonInteraction: true
14539
+ });
14540
+ } else {
14541
+ var _ReactGA$event;
14542
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
14543
+ category: "ACTIONS",
14544
+ action: "Registered",
14545
+ nonInteraction: true
14546
+ });
14547
+ }
14431
14548
  const isEmailVerificationEnabled = (_window$Pelcro$site$r = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.email_verify_enabled) !== null && _window$Pelcro$site$r !== void 0 ? _window$Pelcro$site$r : false;
14432
14549
  if (isEmailVerificationEnabled) {
14433
14550
  return switchView("email-verify");
@@ -14514,9 +14631,6 @@ function Radio(_ref) {
14514
14631
  }, children));
14515
14632
  }
14516
14633
 
14517
- var _window$7, _window$Pelcro$7, _window$Pelcro$uiSett$7;
14518
- const ReactGA$7 = (_window$7 = window) !== null && _window$7 !== void 0 && (_window$Pelcro$7 = _window$7.Pelcro) !== null && _window$Pelcro$7 !== void 0 && (_window$Pelcro$uiSett$7 = _window$Pelcro$7.uiSettings) !== null && _window$Pelcro$uiSett$7 !== void 0 && _window$Pelcro$uiSett$7.enableReactGA4 ? ReactGA4 : ReactGA1;
14519
-
14520
14634
  /**
14521
14635
  *
14522
14636
  */
@@ -14576,6 +14690,7 @@ function productMatchPageLanguage(product) {
14576
14690
  SelectModalWithHook.viewId = "plan-select";
14577
14691
  class SelectModal extends React.Component {
14578
14692
  constructor(props) {
14693
+ var _window, _window$Pelcro11, _window$Pelcro11$uiSe;
14579
14694
  super(props);
14580
14695
  _defineProperty$3(this, "componentDidMount", () => {
14581
14696
  if (this.props.product) {
@@ -14610,11 +14725,11 @@ class SelectModal extends React.Component {
14610
14725
  }
14611
14726
  document.addEventListener("keydown", this.handleSubmit);
14612
14727
  if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
14613
- var _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$user, _window$Pelcro5, _window$Pelcro5$site;
14614
- const userCurrency = (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$user = _window$Pelcro2.user) === null || _window$Pelcro2$user === void 0 ? void 0 : _window$Pelcro2$user.read().currency;
14615
- const userCountry = (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$user = _window$Pelcro3.user) === null || _window$Pelcro3$user === void 0 ? void 0 : _window$Pelcro3$user.location.countryCode;
14616
- const userLanguage = (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : (_window$Pelcro4$user = _window$Pelcro4.user) === null || _window$Pelcro4$user === void 0 ? void 0 : _window$Pelcro4$user.read().language;
14617
- const productsMatchingUserCurrency = (_window$Pelcro5 = window.Pelcro) === null || _window$Pelcro5 === void 0 ? void 0 : (_window$Pelcro5$site = _window$Pelcro5.site) === null || _window$Pelcro5$site === void 0 ? void 0 : _window$Pelcro5$site.read().products.filter(product => {
14728
+ var _window$Pelcro, _window$Pelcro$user, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$site;
14729
+ 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;
14730
+ 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;
14731
+ 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;
14732
+ 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 => {
14618
14733
  const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
14619
14734
  if (filteredPlans.length) return filteredPlans;
14620
14735
  });
@@ -14627,12 +14742,12 @@ class SelectModal extends React.Component {
14627
14742
  });
14628
14743
  notifyBugsnag(() => {
14629
14744
  Bugsnag.notify("SelectModal - No data viewed", event => {
14630
- var _window$Pelcro6, _window$Pelcro6$site, _window$Pelcro7, _window$Pelcro7$user, _window$Pelcro8, _window$Pelcro8$uiSet, _window$Pelcro9, _this$props, _window$Pelcro10, _window$Pelcro10$help, _window$Pelcro11, _window$Pelcro11$site;
14745
+ 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;
14631
14746
  event.addMetadata("MetaData", {
14632
- site: (_window$Pelcro6 = window.Pelcro) === null || _window$Pelcro6 === void 0 ? void 0 : (_window$Pelcro6$site = _window$Pelcro6.site) === null || _window$Pelcro6$site === void 0 ? void 0 : _window$Pelcro6$site.read(),
14633
- user: (_window$Pelcro7 = window.Pelcro) === null || _window$Pelcro7 === void 0 ? void 0 : (_window$Pelcro7$user = _window$Pelcro7.user) === null || _window$Pelcro7$user === void 0 ? void 0 : _window$Pelcro7$user.read(),
14634
- uiVersion: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : (_window$Pelcro8$uiSet = _window$Pelcro8.uiSettings) === null || _window$Pelcro8$uiSet === void 0 ? void 0 : _window$Pelcro8$uiSet.uiVersion,
14635
- environment: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : _window$Pelcro9.environment,
14747
+ 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(),
14748
+ 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(),
14749
+ 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,
14750
+ environment: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : _window$Pelcro8.environment,
14636
14751
  matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
14637
14752
  productListState: this.state.productList,
14638
14753
  methods: {
@@ -14643,15 +14758,14 @@ class SelectModal extends React.Component {
14643
14758
  userCurrency: userCurrency,
14644
14759
  userCountry: userCountry,
14645
14760
  userLanguage: userLanguage,
14646
- siteLanguage: (_window$Pelcro10 = window.Pelcro) === null || _window$Pelcro10 === void 0 ? void 0 : (_window$Pelcro10$help = _window$Pelcro10.helpers) === null || _window$Pelcro10$help === void 0 ? void 0 : _window$Pelcro10$help.getHtmlLanguageAttribute(),
14647
- products: (_window$Pelcro11 = window.Pelcro) === null || _window$Pelcro11 === void 0 ? void 0 : (_window$Pelcro11$site = _window$Pelcro11.site) === null || _window$Pelcro11$site === void 0 ? void 0 : _window$Pelcro11$site.read().products.length,
14761
+ 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(),
14762
+ 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,
14648
14763
  currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
14649
14764
  country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
14650
14765
  language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
14651
14766
  });
14652
14767
  });
14653
14768
  });
14654
- console.log("bugsnag Triggered");
14655
14769
  }
14656
14770
  });
14657
14771
  _defineProperty$3(this, "componentWillUnmount", () => {
@@ -14855,6 +14969,7 @@ class SelectModal extends React.Component {
14855
14969
  this.product = this.props.product || window.Pelcro.paywall.getProduct();
14856
14970
  this.locale = this.props.t;
14857
14971
  this.closeButton = window.Pelcro.paywall.displayCloseButton();
14972
+ this.enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro11 = _window.Pelcro) === null || _window$Pelcro11 === void 0 ? void 0 : (_window$Pelcro11$uiSe = _window$Pelcro11.uiSettings) === null || _window$Pelcro11$uiSe === void 0 ? void 0 : _window$Pelcro11$uiSe.enableReactGA4;
14858
14973
  }
14859
14974
  render() {
14860
14975
  var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
@@ -14862,19 +14977,31 @@ class SelectModal extends React.Component {
14862
14977
  disableGifting
14863
14978
  } = this.props;
14864
14979
  if (this.state.mode === "product") {
14865
- var _ReactGA$event;
14866
- ReactGA$7 === null || ReactGA$7 === void 0 ? void 0 : (_ReactGA$event = ReactGA$7.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$7, {
14867
- category: "VIEWS",
14868
- action: "Product Modal Viewed",
14869
- nonInteraction: true
14870
- });
14980
+ if (this.enableReactGA4) {
14981
+ ReactGA4.event("Product Modal Viewed", {
14982
+ nonInteraction: true
14983
+ });
14984
+ } else {
14985
+ var _ReactGA$event;
14986
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
14987
+ category: "VIEWS",
14988
+ action: "Product Modal Viewed",
14989
+ nonInteraction: true
14990
+ });
14991
+ }
14871
14992
  } else if (this.state.mode === "plan") {
14872
- var _ReactGA$event2;
14873
- ReactGA$7 === null || ReactGA$7 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$7.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$7, {
14874
- category: "VIEWS",
14875
- action: "Plan Modal Viewed",
14876
- nonInteraction: true
14877
- });
14993
+ if (this.enableReactGA4) {
14994
+ ReactGA4.event("Plan Modal Viewed", {
14995
+ nonInteraction: true
14996
+ });
14997
+ } else {
14998
+ var _ReactGA$event2;
14999
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
15000
+ category: "VIEWS",
15001
+ action: "Plan Modal Viewed",
15002
+ nonInteraction: true
15003
+ });
15004
+ }
14878
15005
  }
14879
15006
  return /*#__PURE__*/React__default['default'].createElement(Modal, {
14880
15007
  hideCloseButton: !this.closeButton,
@@ -17216,7 +17343,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17216
17343
  };
17217
17344
  const submitUsingCybersource = (state, dispatch) => {
17218
17345
  var _cybersourceInstanceR;
17219
- console.log("State", state);
17220
17346
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
17221
17347
  if (isUsingExistingPaymentMethod) {
17222
17348
  // no need to create a new source using cybersrce
@@ -18299,8 +18425,9 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18299
18425
  * @param error
18300
18426
  * @returns {*}
18301
18427
  */
18302
- const confirmStripeIntentSetup = (response, error, stripeSource) => {
18428
+ const confirmStripeIntentSetup = function (response) {
18303
18429
  var _response$data2;
18430
+ let isUpdateSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
18304
18431
  const setup_intent = (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.setup_intent;
18305
18432
  if (setup_intent !== null && setup_intent !== void 0 && setup_intent.client_secret) {
18306
18433
  var _response$data3, _response$data3$sourc;
@@ -18322,6 +18449,25 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18322
18449
  }
18323
18450
  });
18324
18451
  }
18452
+ if (isUpdateSource) {
18453
+ dispatch({
18454
+ type: DISABLE_SUBMIT,
18455
+ payload: false
18456
+ });
18457
+ dispatch({
18458
+ type: LOADING,
18459
+ payload: false
18460
+ });
18461
+ dispatch({
18462
+ type: SHOW_ALERT,
18463
+ payload: {
18464
+ type: "success",
18465
+ content: t("messages.sourceUpdated")
18466
+ }
18467
+ });
18468
+ onSuccess(res);
18469
+ return;
18470
+ }
18325
18471
  return handlePayment(response === null || response === void 0 ? void 0 : (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : _response$data4.source);
18326
18472
  });
18327
18473
  } else {
@@ -18347,8 +18493,8 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18347
18493
  gift_message: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.giftMessage,
18348
18494
  address_id: product.address_required ? selectedAddressId : null
18349
18495
  }, (err, res) => {
18350
- var _res$data, _res$data$payment_int;
18351
- if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$payment_int = _res$data.payment_intent) === null || _res$data$payment_int === void 0 ? void 0 : _res$data$payment_int.status) === "requires_action") {
18496
+ var _res$data, _res$data$payment_int, _res$data2, _res$data2$payment_in;
18497
+ if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$payment_int = _res$data.payment_intent) === null || _res$data$payment_int === void 0 ? void 0 : _res$data$payment_int.status) === "requires_action" || (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : (_res$data2$payment_in = _res$data2.payment_intent) === null || _res$data2$payment_in === void 0 ? void 0 : _res$data2$payment_in.status) === "requires_confirmation") {
18352
18498
  confirmStripePaymentIntent(res);
18353
18499
  } else {
18354
18500
  dispatch({
@@ -18383,8 +18529,8 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18383
18529
  subscription_id: subscriptionIdToRenew,
18384
18530
  address_id: product.address_required ? selectedAddressId : null
18385
18531
  }, (err, res) => {
18386
- var _res$data2, _res$data2$payment_in;
18387
- if ((res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : (_res$data2$payment_in = _res$data2.payment_intent) === null || _res$data2$payment_in === void 0 ? void 0 : _res$data2$payment_in.status) === "requires_action") {
18532
+ var _res$data3, _res$data3$payment_in, _res$data4, _res$data4$payment_in;
18533
+ if ((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : (_res$data3$payment_in = _res$data3.payment_intent) === null || _res$data3$payment_in === void 0 ? void 0 : _res$data3$payment_in.status) === "requires_action" || (res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : (_res$data4$payment_in = _res$data4.payment_intent) === null || _res$data4$payment_in === void 0 ? void 0 : _res$data4$payment_in.status) === "requires_confirmation") {
18388
18534
  confirmStripePaymentIntent(res);
18389
18535
  } else {
18390
18536
  dispatch({
@@ -18418,8 +18564,8 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18418
18564
  subscription_id: subscriptionIdToRenew,
18419
18565
  address_id: product.address_required ? selectedAddressId : null
18420
18566
  }, (err, res) => {
18421
- var _res$data3, _res$data3$payment_in;
18422
- if ((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : (_res$data3$payment_in = _res$data3.payment_intent) === null || _res$data3$payment_in === void 0 ? void 0 : _res$data3$payment_in.status) === "requires_action") {
18567
+ var _res$data5, _res$data5$payment_in, _res$data6, _res$data6$payment_in;
18568
+ if ((res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : (_res$data5$payment_in = _res$data5.payment_intent) === null || _res$data5$payment_in === void 0 ? void 0 : _res$data5$payment_in.status) === "requires_action" || (res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : (_res$data6$payment_in = _res$data6.payment_intent) === null || _res$data6$payment_in === void 0 ? void 0 : _res$data6$payment_in.status) === "requires_confirmation") {
18423
18569
  confirmStripePaymentIntent(res);
18424
18570
  } else {
18425
18571
  dispatch({
@@ -18528,7 +18674,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18528
18674
  onSuccess(res);
18529
18675
  });
18530
18676
  };
18531
- const purchase = (gatewayService, gatewayToken, state, dispatch) => {
18677
+ const purchase = (gatewayService, backendSource, state, dispatch) => {
18532
18678
  const isQuickPurchase = !Array.isArray(order);
18533
18679
  const mappedOrderItems = isQuickPurchase ? [{
18534
18680
  sku_id: order.id,
@@ -18543,14 +18689,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18543
18689
  const payment = new Payment(gatewayService);
18544
18690
  payment.execute({
18545
18691
  type: PAYMENT_TYPES.PURCHASE_ECOMMERCE_ORDER,
18546
- token: gatewayToken,
18547
- isExistingSource: Boolean(selectedPaymentMethodId),
18692
+ token: backendSource,
18693
+ isExistingSource: true,
18548
18694
  items: mappedOrderItems,
18549
18695
  addressId: selectedAddressId,
18550
18696
  couponCode
18551
18697
  }, (err, orderResponse) => {
18552
- var _res, _res$data4, _res$data4$payment_in;
18553
- if (((_res = res) === null || _res === void 0 ? void 0 : (_res$data4 = _res.data) === null || _res$data4 === void 0 ? void 0 : (_res$data4$payment_in = _res$data4.payment_intent) === null || _res$data4$payment_in === void 0 ? void 0 : _res$data4$payment_in.status) === "requires_action") {
18698
+ var _res, _res$data7, _res$data7$payment_in, _res2, _res2$data, _res2$data$payment_in;
18699
+ if (((_res = res) === null || _res === void 0 ? void 0 : (_res$data7 = _res.data) === null || _res$data7 === void 0 ? void 0 : (_res$data7$payment_in = _res$data7.payment_intent) === null || _res$data7$payment_in === void 0 ? void 0 : _res$data7$payment_in.status) === "requires_action" || ((_res2 = res) === null || _res2 === void 0 ? void 0 : (_res2$data = _res2.data) === null || _res2$data === void 0 ? void 0 : (_res2$data$payment_in = _res2$data.payment_intent) === null || _res2$data$payment_in === void 0 ? void 0 : _res2$data$payment_in.status) === "requires_confirmation") {
18554
18700
  confirmStripePaymentIntent(res);
18555
18701
  } else {
18556
18702
  var _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro2$user$;
@@ -18610,16 +18756,16 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18610
18756
  }
18611
18757
  });
18612
18758
  };
18613
- const payInvoice = (gatewayService, gatewayToken, dispatch) => {
18759
+ const payInvoice = (gatewayService, backendSource, dispatch) => {
18614
18760
  const payment = new Payment(gatewayService);
18615
18761
  return payment.execute({
18616
18762
  type: PAYMENT_TYPES.PAY_INVOICE,
18617
- token: gatewayToken,
18618
- isExistingSource: Boolean(selectedPaymentMethodId),
18763
+ token: backendSource,
18764
+ isExistingSource: true,
18619
18765
  invoiceId: invoice.id
18620
18766
  }, (err, res) => {
18621
- var _res$data5, _res$data5$payment_in;
18622
- if ((res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : (_res$data5$payment_in = _res$data5.payment_intent) === null || _res$data5$payment_in === void 0 ? void 0 : _res$data5$payment_in.status) === "requires_action") {
18767
+ var _res$data8, _res$data8$payment_in, _res$data9, _res$data9$payment_in;
18768
+ if ((res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : (_res$data8$payment_in = _res$data8.payment_intent) === null || _res$data8$payment_in === void 0 ? void 0 : _res$data8$payment_in.status) === "requires_action" || (res === null || res === void 0 ? void 0 : (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : (_res$data9$payment_in = _res$data9.payment_intent) === null || _res$data9$payment_in === void 0 ? void 0 : _res$data9$payment_in.status) === "requires_confirmation") {
18623
18769
  confirmStripePaymentIntent(res);
18624
18770
  } else {
18625
18771
  dispatch({
@@ -18644,11 +18790,11 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18644
18790
  }
18645
18791
  });
18646
18792
  };
18793
+ console.log("trigger release");
18647
18794
  const updatePaymentSource = (state, dispatch) => {
18648
18795
  return stripe.createSource({
18649
18796
  type: "card"
18650
18797
  }).then(_ref8 => {
18651
- var _source$card2;
18652
18798
  let {
18653
18799
  source,
18654
18800
  error
@@ -18656,45 +18802,41 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18656
18802
  if (error) {
18657
18803
  return handlePaymentError(error);
18658
18804
  }
18659
-
18660
- // We don't support source creation for 3D secure yet
18661
- if ((source === null || source === void 0 ? void 0 : (_source$card2 = source.card) === null || _source$card2 === void 0 ? void 0 : _source$card2.three_d_secure) === "required") {
18662
- return handlePaymentError({
18663
- error: {
18664
- message: t("messages.cardAuthNotSupported")
18805
+ window.Pelcro.source.create({
18806
+ auth_token: window.Pelcro.user.read().auth_token,
18807
+ token: source.id
18808
+ }, (err, res) => {
18809
+ var _res$data10, _res$data10$setup_int, _res$data11, _res$data11$setup_int;
18810
+ if (((_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : (_res$data10$setup_int = _res$data10.setup_intent) === null || _res$data10$setup_int === void 0 ? void 0 : _res$data10$setup_int.status) === "requires_action" || ((_res$data11 = res.data) === null || _res$data11 === void 0 ? void 0 : (_res$data11$setup_int = _res$data11.setup_intent) === null || _res$data11$setup_int === void 0 ? void 0 : _res$data11$setup_int.status) === "requires_confirmation") {
18811
+ confirmStripeIntentSetup(res, true);
18812
+ } else {
18813
+ dispatch({
18814
+ type: DISABLE_SUBMIT,
18815
+ payload: false
18816
+ });
18817
+ dispatch({
18818
+ type: LOADING,
18819
+ payload: false
18820
+ });
18821
+ if (err) {
18822
+ onFailure(err);
18823
+ return dispatch({
18824
+ type: SHOW_ALERT,
18825
+ payload: {
18826
+ type: "error",
18827
+ content: getErrorMessages(err)
18828
+ }
18829
+ });
18665
18830
  }
18666
- });
18667
- }
18668
- window.Pelcro.source.create({
18669
- auth_token: window.Pelcro.user.read().auth_token,
18670
- token: source.id
18671
- }, (err, res) => {
18672
- dispatch({
18673
- type: DISABLE_SUBMIT,
18674
- payload: false
18675
- });
18676
- dispatch({
18677
- type: LOADING,
18678
- payload: false
18679
- });
18680
- if (err) {
18681
- onFailure(err);
18682
- return dispatch({
18831
+ dispatch({
18683
18832
  type: SHOW_ALERT,
18684
18833
  payload: {
18685
- type: "error",
18686
- content: getErrorMessages(err)
18834
+ type: "success",
18835
+ content: t("messages.sourceUpdated")
18687
18836
  }
18688
18837
  });
18838
+ onSuccess(res);
18689
18839
  }
18690
- dispatch({
18691
- type: SHOW_ALERT,
18692
- payload: {
18693
- type: "success",
18694
- content: t("messages.sourceUpdated")
18695
- }
18696
- });
18697
- onSuccess(res);
18698
18840
  });
18699
18841
  });
18700
18842
  };
@@ -18762,30 +18904,31 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18762
18904
  auth_token: window.Pelcro.user.read().auth_token,
18763
18905
  token: source.id
18764
18906
  }, (err, res) => {
18765
- var _res$data6, _res$data6$setup_inte;
18766
- if (((_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : (_res$data6$setup_inte = _res$data6.setup_intent) === null || _res$data6$setup_inte === void 0 ? void 0 : _res$data6$setup_inte.status) === "requires_action") {
18767
- confirmStripeIntentSetup(res);
18907
+ if (err) {
18908
+ onFailure(err);
18909
+ dispatch({
18910
+ type: DISABLE_SUBMIT,
18911
+ payload: false
18912
+ });
18913
+ dispatch({
18914
+ type: LOADING,
18915
+ payload: false
18916
+ });
18917
+ return dispatch({
18918
+ type: SHOW_ALERT,
18919
+ payload: {
18920
+ type: "error",
18921
+ content: getErrorMessages(err)
18922
+ }
18923
+ });
18768
18924
  } else {
18769
- var _res$data7;
18770
- if (err) {
18771
- onFailure(err);
18772
- dispatch({
18773
- type: DISABLE_SUBMIT,
18774
- payload: false
18775
- });
18776
- dispatch({
18777
- type: LOADING,
18778
- payload: false
18779
- });
18780
- return dispatch({
18781
- type: SHOW_ALERT,
18782
- payload: {
18783
- type: "error",
18784
- content: getErrorMessages(err)
18785
- }
18786
- });
18925
+ var _res$data12, _res$data12$setup_int, _res$data13, _res$data13$setup_int;
18926
+ if (((_res$data12 = res.data) === null || _res$data12 === void 0 ? void 0 : (_res$data12$setup_int = _res$data12.setup_intent) === null || _res$data12$setup_int === void 0 ? void 0 : _res$data12$setup_int.status) === "requires_action" || ((_res$data13 = res.data) === null || _res$data13 === void 0 ? void 0 : (_res$data13$setup_int = _res$data13.setup_intent) === null || _res$data13$setup_int === void 0 ? void 0 : _res$data13$setup_int.status) === "requires_confirmation") {
18927
+ confirmStripeIntentSetup(res);
18928
+ } else {
18929
+ var _res$data14;
18930
+ return handlePayment((_res$data14 = res.data) === null || _res$data14 === void 0 ? void 0 : _res$data14.source);
18787
18931
  }
18788
- return handlePayment((_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.source);
18789
18932
  }
18790
18933
  }));
18791
18934
  }).catch(error => {
@@ -18815,12 +18958,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18815
18958
  coupon_code: state === null || state === void 0 ? void 0 : state.couponCode,
18816
18959
  address_id: selectedAddressId
18817
18960
  }, (error, res) => {
18818
- var _res$data8, _res$data9;
18961
+ var _res$data15, _res$data16;
18819
18962
  if (error) {
18820
18963
  return reject(error);
18821
18964
  }
18822
- const taxAmount = (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.taxes;
18823
- const totalAmountWithTax = (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : _res$data9.total;
18965
+ const taxAmount = (_res$data15 = res.data) === null || _res$data15 === void 0 ? void 0 : _res$data15.taxes;
18966
+ const totalAmountWithTax = (_res$data16 = res.data) === null || _res$data16 === void 0 ? void 0 : _res$data16.total;
18824
18967
  resolve({
18825
18968
  totalAmountWithTax,
18826
18969
  taxAmount
@@ -18864,13 +19007,13 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18864
19007
  }
18865
19008
  });
18866
19009
  };
18867
- const handlePayment = stripeSource => {
18868
- if (stripeSource && type === "createPayment") {
18869
- subscribe(stripeSource, state, dispatch);
18870
- } else if (stripeSource && type === "orderCreate") {
18871
- purchase(new StripeGateway(), stripeSource.id, state, dispatch);
18872
- } else if (stripeSource && type === "invoicePayment") {
18873
- payInvoice(new StripeGateway(), stripeSource.id, dispatch);
19010
+ const handlePayment = backendSource => {
19011
+ if (backendSource && type === "createPayment") {
19012
+ subscribe(backendSource, state, dispatch);
19013
+ } else if (backendSource && type === "orderCreate") {
19014
+ purchase(new StripeGateway(), backendSource.id, state, dispatch);
19015
+ } else if (backendSource && type === "invoicePayment") {
19016
+ payInvoice(new StripeGateway(), backendSource.id, dispatch);
18874
19017
  }
18875
19018
  };
18876
19019
  const handlePaymentError = error => {
@@ -20276,13 +20419,11 @@ const SubscriptionRenewView = _ref => {
20276
20419
  }));
20277
20420
  };
20278
20421
 
20279
- var _window$6, _window$Pelcro$6, _window$Pelcro$uiSett$6;
20280
- const ReactGA$6 = (_window$6 = window) !== null && _window$6 !== void 0 && (_window$Pelcro$6 = _window$6.Pelcro) !== null && _window$Pelcro$6 !== void 0 && (_window$Pelcro$uiSett$6 = _window$Pelcro$6.uiSettings) !== null && _window$Pelcro$uiSett$6 !== void 0 && _window$Pelcro$uiSett$6.enableReactGA4 ? ReactGA4 : ReactGA1;
20281
-
20282
20422
  /**
20283
20423
  *
20284
20424
  */
20285
20425
  function SubscriptionRenewModal(_ref) {
20426
+ var _window, _window$Pelcro, _window$Pelcro$uiSett;
20286
20427
  let {
20287
20428
  onDisplay,
20288
20429
  onClose,
@@ -20291,24 +20432,39 @@ function SubscriptionRenewModal(_ref) {
20291
20432
  const {
20292
20433
  switchView
20293
20434
  } = usePelcro();
20435
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
20294
20436
  const onSuccess = res => {
20295
- var _otherProps$onSuccess, _ReactGA$event;
20437
+ var _otherProps$onSuccess;
20296
20438
  (_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, res);
20297
- ReactGA$6 === null || ReactGA$6 === void 0 ? void 0 : (_ReactGA$event = ReactGA$6.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$6, {
20298
- category: "ACTIONS",
20299
- action: "Renewed",
20300
- nonInteraction: true
20301
- });
20439
+ if (enableReactGA4) {
20440
+ ReactGA4.event("Renewed", {
20441
+ nonInteraction: true
20442
+ });
20443
+ } else {
20444
+ var _ReactGA$event;
20445
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
20446
+ category: "ACTIONS",
20447
+ action: "Renewed",
20448
+ nonInteraction: true
20449
+ });
20450
+ }
20302
20451
  return switchView("subscription-success");
20303
20452
  };
20304
20453
  const onGiftRenewalSuccess = () => {
20305
- var _otherProps$onGiftRen, _ReactGA$event2;
20454
+ var _otherProps$onGiftRen;
20306
20455
  (_otherProps$onGiftRen = otherProps.onGiftRenewalSuccess) === null || _otherProps$onGiftRen === void 0 ? void 0 : _otherProps$onGiftRen.call(otherProps);
20307
- ReactGA$6 === null || ReactGA$6 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$6.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$6, {
20308
- category: "ACTIONS",
20309
- action: "Renewed Gift",
20310
- nonInteraction: true
20311
- });
20456
+ if (enableReactGA4) {
20457
+ ReactGA4.event("Renewed Gift", {
20458
+ nonInteraction: true
20459
+ });
20460
+ } else {
20461
+ var _ReactGA$event2;
20462
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
20463
+ category: "ACTIONS",
20464
+ action: "Renewed Gift",
20465
+ nonInteraction: true
20466
+ });
20467
+ }
20312
20468
  return switchView("subscription-success");
20313
20469
  };
20314
20470
  return /*#__PURE__*/React__default['default'].createElement(Modal, {
@@ -20323,7 +20479,8 @@ function SubscriptionRenewModal(_ref) {
20323
20479
  SubscriptionRenewModal.viewId = "subscription-renew";
20324
20480
 
20325
20481
  const initialState$j = {
20326
- cancelationReason: ""
20482
+ cancelationReason: "",
20483
+ cancelationOption: ""
20327
20484
  };
20328
20485
  const store$j = /*#__PURE__*/React.createContext(initialState$j);
20329
20486
  const {
@@ -20338,7 +20495,6 @@ const SubscriptionCancelContainer = _ref => {
20338
20495
  children,
20339
20496
  ...props
20340
20497
  } = _ref;
20341
- useTranslation("verifyEmail");
20342
20498
  const [state, dispatch] = useReducerWithSideEffects((state, action) => {
20343
20499
  switch (action.type) {
20344
20500
  case SET_CANCEL_SUBSCRIPTION_REASON:
@@ -20346,6 +20502,11 @@ const SubscriptionCancelContainer = _ref => {
20346
20502
  ...state,
20347
20503
  cancelationReason: action.payload
20348
20504
  });
20505
+ case SET_CANCEL_SUBSCRIPTION_OPTION:
20506
+ return lib_7({
20507
+ ...state,
20508
+ cancelationOption: action.payload
20509
+ });
20349
20510
  default:
20350
20511
  return state;
20351
20512
  }
@@ -20445,8 +20606,7 @@ const SubscriptionCancelReason = props => {
20445
20606
  t
20446
20607
  } = useTranslation("subscriptionCancel");
20447
20608
  const {
20448
- dispatch,
20449
- state
20609
+ dispatch
20450
20610
  } = React.useContext(store$j);
20451
20611
  const handleOnTextAreaBlur = e => {
20452
20612
  dispatch({
@@ -20478,9 +20638,7 @@ function SvgSubscription(props) {
20478
20638
  }))))));
20479
20639
  }
20480
20640
 
20481
- var _window$5, _window$Pelcro$5, _window$Pelcro$uiSett$5;
20482
- const ReactGA$5 = (_window$5 = window) !== null && _window$5 !== void 0 && (_window$Pelcro$5 = _window$5.Pelcro) !== null && _window$Pelcro$5 !== void 0 && (_window$Pelcro$uiSett$5 = _window$Pelcro$5.uiSettings) !== null && _window$Pelcro$uiSett$5 !== void 0 && _window$Pelcro$uiSett$5.enableReactGA4 ? ReactGA4 : ReactGA1;
20483
- const SubscriptionCancelNowButton = _ref => {
20641
+ const SubscriptionCancelButton = _ref => {
20484
20642
  let {
20485
20643
  subscription,
20486
20644
  onClick,
@@ -20491,14 +20649,16 @@ const SubscriptionCancelNowButton = _ref => {
20491
20649
  } = usePelcro();
20492
20650
  const {
20493
20651
  state: {
20494
- cancelationReason
20495
- },
20496
- dispatch
20652
+ cancelationReason,
20653
+ cancelationOption
20654
+ }
20497
20655
  } = React.useContext(store$j);
20498
20656
  const {
20499
20657
  t
20500
20658
  } = useTranslation("subscriptionCancel");
20501
20659
  const cancelSubscription = (payload, onSuccess, onFailure) => {
20660
+ var _window, _window$Pelcro, _window$Pelcro$uiSett;
20661
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
20502
20662
  window.Pelcro.subscription.cancel({
20503
20663
  auth_token: window.Pelcro.user.read().auth_token,
20504
20664
  subscription_id: payload.subscription_id,
@@ -20507,36 +20667,42 @@ const SubscriptionCancelNowButton = _ref => {
20507
20667
  reason: payload.reason
20508
20668
  })
20509
20669
  }, (err, res) => {
20510
- var _ReactGA$event;
20511
20670
  if (err) {
20512
20671
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
20513
20672
  }
20514
- ReactGA$5 === null || ReactGA$5 === void 0 ? void 0 : (_ReactGA$event = ReactGA$5.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$5, {
20515
- category: "ACTIONS",
20516
- action: "Canceled",
20517
- nonInteraction: true
20518
- });
20673
+ if (enableReactGA4) {
20674
+ ReactGA4.event("Canceled", {
20675
+ nonInteraction: true
20676
+ });
20677
+ } else {
20678
+ var _ReactGA$event;
20679
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
20680
+ category: "ACTIONS",
20681
+ action: "Canceled",
20682
+ nonInteraction: true
20683
+ });
20684
+ }
20519
20685
  onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
20520
20686
  });
20521
20687
  };
20522
- const handleCancelNowClick = () => {
20688
+ const handleCancelClick = () => {
20523
20689
  const payload = {
20524
20690
  subscription_id: subscription.id,
20525
- mode: "now",
20691
+ mode: cancelationOption,
20526
20692
  ...(cancelationReason && {
20527
20693
  reason: cancelationReason
20528
20694
  })
20529
20695
  };
20530
20696
  onClick === null || onClick === void 0 ? void 0 : onClick();
20531
20697
 
20532
- //Close the modal
20698
+ // Close the modal
20533
20699
  switchView(null);
20534
20700
 
20535
- //Show confirmation alert after closing the modal
20701
+ // Show confirmation alert after closing the modal
20536
20702
  notify$1.confirm((onSuccess, onFailure) => {
20537
20703
  cancelSubscription(payload, onSuccess, onFailure);
20538
20704
  }, {
20539
- confirmMessage: t("messages.subCancellation.isSureToCancelNow"),
20705
+ confirmMessage: cancelationOption === "now" ? t("messages.subCancellation.isSureToCancelNow") : t("messages.subCancellation.isSureToCancel"),
20540
20706
  loadingMessage: t("messages.subCancellation.loading"),
20541
20707
  successMessage: t("messages.subCancellation.success"),
20542
20708
  errorMessage: t("messages.subCancellation.error")
@@ -20545,90 +20711,85 @@ const SubscriptionCancelNowButton = _ref => {
20545
20711
  });
20546
20712
  };
20547
20713
  return /*#__PURE__*/React__default['default'].createElement(Button, {
20548
- onClick: handleCancelNowClick,
20549
- className: `${className}`
20550
- }, t("messages.cancelNow"));
20714
+ onClick: handleCancelClick,
20715
+ className: `${className}`,
20716
+ disabled: !cancelationOption
20717
+ }, t("labels.cancel"));
20551
20718
  };
20552
20719
 
20553
- var _window$4, _window$Pelcro$4, _window$Pelcro$uiSett$4;
20554
- const ReactGA$4 = (_window$4 = window) !== null && _window$4 !== void 0 && (_window$Pelcro$4 = _window$4.Pelcro) !== null && _window$Pelcro$4 !== void 0 && (_window$Pelcro$uiSett$4 = _window$Pelcro$4.uiSettings) !== null && _window$Pelcro$uiSett$4 !== void 0 && _window$Pelcro$uiSett$4.enableReactGA4 ? ReactGA4 : ReactGA1;
20555
- const SubscriptionCancelLaterButton = _ref => {
20720
+ const SubscriptionCancelOptions = _ref => {
20556
20721
  let {
20557
20722
  subscription,
20723
+ hasPhases,
20558
20724
  onClick,
20559
20725
  className
20560
20726
  } = _ref;
20561
- const {
20562
- switchView
20563
- } = usePelcro();
20564
20727
  const {
20565
20728
  state: {
20566
- cancelationReason
20729
+ cancelationOption
20567
20730
  },
20568
20731
  dispatch
20569
20732
  } = React.useContext(store$j);
20570
20733
  const {
20571
20734
  t
20572
20735
  } = useTranslation("subscriptionCancel");
20573
- const cancelSubscription = (payload, onSuccess, onFailure) => {
20574
- window.Pelcro.subscription.cancel({
20575
- auth_token: window.Pelcro.user.read().auth_token,
20576
- subscription_id: payload.subscription_id,
20577
- mode: payload.mode,
20578
- ...(payload.reason && {
20579
- reason: payload.reason
20580
- })
20581
- }, (err, res) => {
20582
- var _ReactGA$event;
20583
- if (err) {
20584
- return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
20585
- }
20586
- ReactGA$4 === null || ReactGA$4 === void 0 ? void 0 : (_ReactGA$event = ReactGA$4.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$4, {
20587
- category: "ACTIONS",
20588
- action: "Canceled",
20589
- nonInteraction: true
20590
- });
20591
- onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
20592
- });
20593
- };
20594
- const handleCancelNowClick = () => {
20595
- const payload = {
20596
- subscription_id: subscription.id,
20597
- mode: "period_end",
20598
- ...(cancelationReason && {
20599
- reason: cancelationReason
20600
- })
20601
- };
20602
- onClick === null || onClick === void 0 ? void 0 : onClick();
20603
-
20604
- //Close the modal
20605
- switchView(null);
20606
-
20607
- //Show confirmation alert after closing the modal
20608
- notify$1.confirm((onSuccess, onFailure) => {
20609
- cancelSubscription(payload, onSuccess, onFailure);
20610
- }, {
20611
- confirmMessage: t("messages.subCancellation.isSureToCancel"),
20612
- loadingMessage: t("messages.subCancellation.loading"),
20613
- successMessage: t("messages.subCancellation.success"),
20614
- errorMessage: t("messages.subCancellation.error")
20615
- }, {
20616
- closeButtonLabel: t("labels.subCancellation.goBack")
20736
+ const phases = subscription.schedule.phases;
20737
+ const lastPhase = phases[phases.length - 1];
20738
+ const handleOptionSelect = event => {
20739
+ dispatch({
20740
+ type: SET_CANCEL_SUBSCRIPTION_OPTION,
20741
+ payload: event.target.value
20617
20742
  });
20618
20743
  };
20619
- return /*#__PURE__*/React__default['default'].createElement(Button, {
20620
- onClick: handleCancelNowClick,
20621
- className: `${className}`
20622
- }, t("messages.cancelLater"));
20744
+ return /*#__PURE__*/React__default['default'].createElement("div", {
20745
+ className: "plc-text-left plc-mr-auto plc-mb-6"
20746
+ }, /*#__PURE__*/React__default['default'].createElement("p", {
20747
+ className: "plc-mb-3"
20748
+ }, t("messages.cancelWhen")), hasPhases && /*#__PURE__*/React__default['default'].createElement(Radio, {
20749
+ onChange: handleOptionSelect,
20750
+ checked: cancelationOption === "period_end",
20751
+ value: "period_end"
20752
+ }, t("labels.endOn"), " ", new Date(Number(`${lastPhase.end_date}000`)).toLocaleDateString("en-CA", {
20753
+ year: "numeric",
20754
+ month: "short",
20755
+ day: "numeric"
20756
+ })), /*#__PURE__*/React__default['default'].createElement(Radio, {
20757
+ onChange: handleOptionSelect,
20758
+ checked: cancelationOption === "current_period_end",
20759
+ value: "current_period_end"
20760
+ }, t("labels.endOn"), " ", new Date(subscription === null || subscription === void 0 ? void 0 : subscription.current_period_end).toLocaleDateString("en-CA", {
20761
+ year: "numeric",
20762
+ month: "short",
20763
+ day: "numeric"
20764
+ })), /*#__PURE__*/React__default['default'].createElement(Radio, {
20765
+ onChange: handleOptionSelect,
20766
+ checked: cancelationOption === "now",
20767
+ value: "now"
20768
+ }, t("labels.endImmediately")));
20623
20769
  };
20624
20770
 
20625
20771
  const SubscriptionCancelView = props => {
20626
20772
  const {
20627
- subscriptionToCancel
20773
+ subscriptionToCancel,
20774
+ switchView
20628
20775
  } = usePelcro();
20629
20776
  const {
20630
20777
  t
20631
20778
  } = useTranslation("subscriptionCancel");
20779
+ const getPhases = () => {
20780
+ if (!subscriptionToCancel.schedule) return [];
20781
+ const currentPhaseStartDate = subscriptionToCancel.schedule.current_phase.start_date;
20782
+ const currentPhase = subscriptionToCancel.schedule.phases.find(phase => {
20783
+ return phase.start_date === currentPhaseStartDate;
20784
+ });
20785
+ const futurePhases = subscriptionToCancel.schedule.phases.filter(phase => {
20786
+ return phase.start_date > currentPhaseStartDate;
20787
+ });
20788
+ return [currentPhase, ...futurePhases];
20789
+ };
20790
+ const hasPhases = getPhases().length > 0;
20791
+ const phases = subscriptionToCancel.schedule.phases;
20792
+ const lastPhase = phases[phases.length - 1];
20632
20793
  return /*#__PURE__*/React__default['default'].createElement("div", {
20633
20794
  id: "pelcro-subscription-cancel-view"
20634
20795
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -20642,17 +20803,30 @@ const SubscriptionCancelView = props => {
20642
20803
  }, /*#__PURE__*/React__default['default'].createElement(SvgSubscription, {
20643
20804
  className: "plc-w-32 plc-h-32"
20644
20805
  }), /*#__PURE__*/React__default['default'].createElement("p", {
20645
- className: "plc-mb-3 plc-text-gray-900 plc-text-center plc-whitespace-pre-line"
20646
- }, t("messages.subscriptionEnd"), " ", new Date(subscriptionToCancel === null || subscriptionToCancel === void 0 ? void 0 : subscriptionToCancel.current_period_end).toLocaleDateString("en-CA", {
20806
+ className: "plc-mb-3 plc-text-gray-900 plc-text-left plc-mr-auto plc-whitespace-pre-line"
20807
+ }, t("messages.subscriptionEnd"), " ", hasPhases ? new Date(Number(`${lastPhase.end_date}000`)).toLocaleDateString("en-CA", {
20647
20808
  year: "numeric",
20648
20809
  month: "short",
20649
20810
  day: "numeric"
20650
- }), "."), /*#__PURE__*/React__default['default'].createElement(SubscriptionCancelReason, null), /*#__PURE__*/React__default['default'].createElement(SubscriptionCancelNowButton, {
20651
- className: "plc-mb-2",
20652
- subscription: subscriptionToCancel
20653
- }), subscriptionToCancel.cancel_at_period_end === 0 && /*#__PURE__*/React__default['default'].createElement(SubscriptionCancelLaterButton, {
20811
+ }) : new Date(subscriptionToCancel === null || subscriptionToCancel === void 0 ? void 0 : subscriptionToCancel.current_period_end).toLocaleDateString("en-CA", {
20812
+ year: "numeric",
20813
+ month: "short",
20814
+ day: "numeric"
20815
+ }), "."), /*#__PURE__*/React__default['default'].createElement(SubscriptionCancelOptions, {
20816
+ subscription: subscriptionToCancel,
20817
+ hasPhases: hasPhases
20818
+ }), /*#__PURE__*/React__default['default'].createElement(SubscriptionCancelReason, null), /*#__PURE__*/React__default['default'].createElement("div", {
20819
+ className: "plc-space-x-0 plc-space-y-3 md:plc-space-x-3 md:plc-space-y-0 plc-w-full plc-flex plc-flex-col md:plc-flex-row plc-items-center plc-justify-center"
20820
+ }, /*#__PURE__*/React__default['default'].createElement(SubscriptionCancelButton, {
20821
+ className: "plc-w-3/4 md:plc-w-2/5",
20654
20822
  subscription: subscriptionToCancel
20655
- }))));
20823
+ }), /*#__PURE__*/React__default['default'].createElement(Button, {
20824
+ variant: "outline",
20825
+ className: "plc-w-3/4 md:plc-w-2/5",
20826
+ onClick: () => {
20827
+ switchView("dashboard");
20828
+ }
20829
+ }, t("labels.subCancellation.goBack"))))));
20656
20830
  };
20657
20831
 
20658
20832
  const SubscriptionCancelModal = _ref => {
@@ -20792,9 +20966,8 @@ const SubscriptionSuspendDate = props => {
20792
20966
  }, props));
20793
20967
  };
20794
20968
 
20795
- var _window$3, _window$Pelcro$3, _window$Pelcro$uiSett$3;
20796
- const ReactGA$3 = (_window$3 = window) !== null && _window$3 !== void 0 && (_window$Pelcro$3 = _window$3.Pelcro) !== null && _window$Pelcro$3 !== void 0 && (_window$Pelcro$uiSett$3 = _window$Pelcro$3.uiSettings) !== null && _window$Pelcro$uiSett$3 !== void 0 && _window$Pelcro$uiSett$3.enableReactGA4 ? ReactGA4 : ReactGA1;
20797
20969
  const SubscriptionSuspendButton = _ref => {
20970
+ var _window, _window$Pelcro, _window$Pelcro$uiSett;
20798
20971
  let {
20799
20972
  subscription,
20800
20973
  onClick,
@@ -20813,6 +20986,7 @@ const SubscriptionSuspendButton = _ref => {
20813
20986
  const {
20814
20987
  t
20815
20988
  } = useTranslation("subscriptionSuspend");
20989
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
20816
20990
  const suspendSubscription = (payload, onSuccess, onFailure) => {
20817
20991
  window.Pelcro.subscription.update({
20818
20992
  auth_token: window.Pelcro.user.read().auth_token,
@@ -20820,15 +20994,21 @@ const SubscriptionSuspendButton = _ref => {
20820
20994
  suspend: 1,
20821
20995
  shipments_suspended_until: suspendDate
20822
20996
  }, (err, res) => {
20823
- var _ReactGA$event;
20824
20997
  if (err) {
20825
20998
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
20826
20999
  }
20827
- ReactGA$3 === null || ReactGA$3 === void 0 ? void 0 : (_ReactGA$event = ReactGA$3.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$3, {
20828
- category: "ACTIONS",
20829
- action: "Suspended",
20830
- nonInteraction: true
20831
- });
21000
+ if (enableReactGA4) {
21001
+ ReactGA4.event("Suspended", {
21002
+ nonInteraction: true
21003
+ });
21004
+ } else {
21005
+ var _ReactGA$event;
21006
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
21007
+ category: "ACTIONS",
21008
+ action: "Suspended",
21009
+ nonInteraction: true
21010
+ });
21011
+ }
20832
21012
  onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
20833
21013
  });
20834
21014
  };
@@ -20838,10 +21018,10 @@ const SubscriptionSuspendButton = _ref => {
20838
21018
  };
20839
21019
  onClick === null || onClick === void 0 ? void 0 : onClick();
20840
21020
 
20841
- //Close the modal
21021
+ // Close the modal
20842
21022
  switchView(null);
20843
21023
 
20844
- //Show confirmation alert after closing the modal
21024
+ // Show confirmation alert after closing the modal
20845
21025
  notify$1.confirm((onSuccess, onFailure) => {
20846
21026
  suspendSubscription(payload, onSuccess, onFailure);
20847
21027
  }, {
@@ -22042,7 +22222,7 @@ function SubscriptionManageMembersView(props) {
22042
22222
  className: "plc-font-semibold plc-text-center plc-text-gray-900 pelcro-title-wrapper"
22043
22223
  }, /*#__PURE__*/React__default['default'].createElement("h4", {
22044
22224
  className: "plc-text-2xl"
22045
- }, t("labels.inviteMembers")), /*#__PURE__*/React__default['default'].createElement("p", null, "Comma-separated list e.g. 'john@example.com,jane@example.com'")), /*#__PURE__*/React__default['default'].createElement("form", {
22225
+ }, t("labels.inviteMembers")), /*#__PURE__*/React__default['default'].createElement("p", null, t("labels.listNote"), " 'john@example.com,jane@example.com'")), /*#__PURE__*/React__default['default'].createElement("form", {
22046
22226
  action: "javascript:void(0);",
22047
22227
  className: "plc-mt-2 pelcro-form"
22048
22228
  }, /*#__PURE__*/React__default['default'].createElement(SubscriptionManageMembersContainer, props, /*#__PURE__*/React__default['default'].createElement(AlertWithContext, null), /*#__PURE__*/React__default['default'].createElement(SubscriptionManageMembersEmails, {
@@ -23570,7 +23750,7 @@ const {
23570
23750
  Provider: Provider$d
23571
23751
  } = store$d;
23572
23752
  const AddressUpdateContainer = _ref => {
23573
- var _props$addressId;
23753
+ var _props$addressId, _window, _window$Pelcro, _window$Pelcro$uiSett;
23574
23754
  let {
23575
23755
  style,
23576
23756
  className = "",
@@ -23584,6 +23764,7 @@ const AddressUpdateContainer = _ref => {
23584
23764
  addressIdToEdit
23585
23765
  } = usePelcro();
23586
23766
  const addressId = (_props$addressId = props === null || props === void 0 ? void 0 : props.addressId) !== null && _props$addressId !== void 0 ? _props$addressId : addressIdToEdit;
23767
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
23587
23768
  const [t] = useTranslation("address");
23588
23769
  React.useEffect(() => {
23589
23770
  const getCountries = () => {
@@ -23674,7 +23855,6 @@ const AddressUpdateContainer = _ref => {
23674
23855
  });
23675
23856
  onFailure(err);
23676
23857
  } else {
23677
- var _ReactGA$event;
23678
23858
  dispatch({
23679
23859
  type: SHOW_ALERT,
23680
23860
  payload: {
@@ -23683,11 +23863,18 @@ const AddressUpdateContainer = _ref => {
23683
23863
  }
23684
23864
  });
23685
23865
  onSuccess(res);
23686
- ReactGA1 === null || ReactGA1 === void 0 ? void 0 : (_ReactGA$event = ReactGA1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA1, {
23687
- category: "ACTIONS",
23688
- action: "Updated address",
23689
- nonInteraction: true
23690
- });
23866
+ if (enableReactGA4) {
23867
+ ReactGA4.event("Updated address", {
23868
+ nonInteraction: true
23869
+ });
23870
+ } else {
23871
+ var _ReactGA$event;
23872
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
23873
+ category: "ACTIONS",
23874
+ action: "Updated address",
23875
+ nonInteraction: true
23876
+ });
23877
+ }
23691
23878
  }
23692
23879
  });
23693
23880
  };
@@ -24211,17 +24398,24 @@ function PaymentMethodUpdateView(props) {
24211
24398
  }));
24212
24399
  }
24213
24400
 
24214
- var _window$2, _window$Pelcro$2, _window$Pelcro$uiSett$2;
24215
- const ReactGA$2 = (_window$2 = window) !== null && _window$2 !== void 0 && (_window$Pelcro$2 = _window$2.Pelcro) !== null && _window$Pelcro$2 !== void 0 && (_window$Pelcro$uiSett$2 = _window$Pelcro$2.uiSettings) !== null && _window$Pelcro$uiSett$2 !== void 0 && _window$Pelcro$uiSett$2.enableReactGA4 ? ReactGA4 : ReactGA1;
24216
24401
  const PaymentMethodUpdateModal = props => {
24402
+ var _window, _window$Pelcro, _window$Pelcro$uiSett;
24403
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
24217
24404
  const onSuccess = res => {
24218
- var _props$onSuccess, _ReactGA$event;
24405
+ var _props$onSuccess;
24219
24406
  (_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
24220
- ReactGA$2 === null || ReactGA$2 === void 0 ? void 0 : (_ReactGA$event = ReactGA$2.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$2, {
24221
- category: "ACTIONS",
24222
- action: "Updated payment card",
24223
- nonInteraction: true
24224
- });
24407
+ if (enableReactGA4) {
24408
+ ReactGA4.event("Updated payment card", {
24409
+ nonInteraction: true
24410
+ });
24411
+ } else {
24412
+ var _ReactGA$event;
24413
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
24414
+ category: "ACTIONS",
24415
+ action: "Updated payment card",
24416
+ nonInteraction: true
24417
+ });
24418
+ }
24225
24419
  };
24226
24420
  return /*#__PURE__*/React__default['default'].createElement(Modal, {
24227
24421
  id: "pelcro-payment-method-update-modal",
@@ -28098,8 +28292,6 @@ const OrderItems = _ref => {
28098
28292
  });
28099
28293
  };
28100
28294
 
28101
- var _window$1, _window$Pelcro$1, _window$Pelcro$uiSett$1;
28102
- const ReactGA$1 = (_window$1 = window) !== null && _window$1 !== void 0 && (_window$Pelcro$1 = _window$1.Pelcro) !== null && _window$Pelcro$1 !== void 0 && (_window$Pelcro$uiSett$1 = _window$Pelcro$1.uiSettings) !== null && _window$Pelcro$uiSett$1 !== void 0 && _window$Pelcro$uiSett$1.enableReactGA4 ? ReactGA4 : ReactGA1;
28103
28295
  const SavedItemsMenu = () => {
28104
28296
  const {
28105
28297
  t
@@ -28148,8 +28340,10 @@ const SavedItems = _ref3 => {
28148
28340
  isAuthenticated
28149
28341
  } = usePelcro();
28150
28342
  const removeItemFromMetadata = (category, title) => {
28343
+ var _window, _window$Pelcro, _window$Pelcro$uiSett;
28151
28344
  const user = window.Pelcro.user.read();
28152
28345
  const oldValue = user.metadata[`metadata_saved_${category}`];
28346
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
28153
28347
  const newMetadataValue = oldValue.filter(metadata => !((metadata === null || metadata === void 0 ? void 0 : metadata.title) === title));
28154
28348
  if (isAuthenticated()) {
28155
28349
  setLoading(true);
@@ -28158,17 +28352,24 @@ const SavedItems = _ref3 => {
28158
28352
  value: newMetadataValue,
28159
28353
  auth_token: window.Pelcro.user.read().auth_token
28160
28354
  }, (error, response) => {
28161
- var _response$data, _ReactGA$event;
28355
+ var _response$data;
28162
28356
  setLoading(false);
28163
28357
  if (error) {
28164
28358
  return;
28165
28359
  }
28166
28360
  setItems(response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.metadata);
28167
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
28168
- category: "ACTIONS",
28169
- action: "Unsave/Unfollow",
28170
- label: title
28171
- });
28361
+ if (enableReactGA4) {
28362
+ ReactGA4.event("Unsave/Unfollow", {
28363
+ event_label: title
28364
+ });
28365
+ } else {
28366
+ var _ReactGA$event;
28367
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
28368
+ category: "ACTIONS",
28369
+ action: "Unsave/Unfollow",
28370
+ label: title
28371
+ });
28372
+ }
28172
28373
  });
28173
28374
  }
28174
28375
  };
@@ -29111,8 +29312,6 @@ function getMemberShipStatus(status) {
29111
29312
  };
29112
29313
  }
29113
29314
 
29114
- var _window, _window$Pelcro, _window$Pelcro$uiSett;
29115
- const ReactGA = (_window = window) !== null && _window !== void 0 && (_window$Pelcro = _window.Pelcro) !== null && _window$Pelcro !== void 0 && (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) !== null && _window$Pelcro$uiSett !== void 0 && _window$Pelcro$uiSett.enableReactGA4 ? ReactGA4 : ReactGA1;
29116
29315
  const SUB_MENUS = {
29117
29316
  PROFILE: "profile",
29118
29317
  SUBSCRIPTIONS: "subscriptions",
@@ -29167,21 +29366,27 @@ function DashboardWithHook(props) {
29167
29366
  DashboardWithHook.viewId = "dashboard";
29168
29367
  class Dashboard extends React.Component {
29169
29368
  constructor(props) {
29170
- var _window$Pelcro$user$r, _window$Pelcro$user$r2;
29369
+ var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window, _window$Pelcro, _window$Pelcro$uiSett;
29171
29370
  super(props);
29172
29371
  _defineProperty$3(this, "componentDidMount", () => {
29173
- var _ReactGA$event;
29174
29372
  this.setState({
29175
29373
  isOpen: true
29176
29374
  });
29177
29375
  window.Pelcro.insight.track("Modal Displayed", {
29178
29376
  name: "dashboard"
29179
29377
  });
29180
- ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
29181
- category: "VIEWS",
29182
- action: "Dashboard Modal Viewed",
29183
- nonInteraction: true
29184
- });
29378
+ if (this.enableReactGA4) {
29379
+ ReactGA4.event("Dashboard Modal Viewed", {
29380
+ nonInteraction: true
29381
+ });
29382
+ } else {
29383
+ var _ReactGA$event;
29384
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
29385
+ category: "VIEWS",
29386
+ action: "Dashboard Modal Viewed",
29387
+ nonInteraction: true
29388
+ });
29389
+ }
29185
29390
  const {
29186
29391
  addresses
29187
29392
  } = window.Pelcro.user.read();
@@ -29209,15 +29414,21 @@ class Dashboard extends React.Component {
29209
29414
  auth_token: window.Pelcro.user.read().auth_token,
29210
29415
  subscription_id: subscription_id
29211
29416
  }, (err, res) => {
29212
- var _ReactGA$event2;
29213
29417
  if (err) {
29214
29418
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
29215
29419
  }
29216
- ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
29217
- category: "ACTIONS",
29218
- action: "Canceled",
29219
- nonInteraction: true
29220
- });
29420
+ if (this.enableReactGA4) {
29421
+ ReactGA4.event("Canceled", {
29422
+ nonInteraction: true
29423
+ });
29424
+ } else {
29425
+ var _ReactGA$event2;
29426
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
29427
+ category: "ACTIONS",
29428
+ action: "Canceled",
29429
+ nonInteraction: true
29430
+ });
29431
+ }
29221
29432
  onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
29222
29433
  });
29223
29434
  });
@@ -29227,15 +29438,21 @@ class Dashboard extends React.Component {
29227
29438
  subscription_id: subscription_id,
29228
29439
  suspend: 0
29229
29440
  }, (err, res) => {
29230
- var _ReactGA$event3;
29231
29441
  if (err) {
29232
29442
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
29233
29443
  }
29234
- ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event3 = ReactGA.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA, {
29235
- category: "ACTIONS",
29236
- action: "UnSuspended",
29237
- nonInteraction: true
29238
- });
29444
+ if (this.enableReactGA4) {
29445
+ ReactGA4.event("UnSuspended", {
29446
+ nonInteraction: true
29447
+ });
29448
+ } else {
29449
+ var _ReactGA$event3;
29450
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event3 = ReactGA.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA, {
29451
+ category: "ACTIONS",
29452
+ action: "UnSuspended",
29453
+ nonInteraction: true
29454
+ });
29455
+ }
29239
29456
  onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
29240
29457
  });
29241
29458
  });
@@ -29512,6 +29729,7 @@ class Dashboard extends React.Component {
29512
29729
  this.locale = this.props.t;
29513
29730
  this.user = window.Pelcro.user.read();
29514
29731
  this.menuRef = /*#__PURE__*/React__default['default'].createRef();
29732
+ this.enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_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.enableReactGA4;
29515
29733
  }
29516
29734
  render() {
29517
29735
  var _window$Pelcro$user$r3, _window$Pelcro2, _window$Pelcro2$uiSet, _this$user$source, _this$user$source$pro, _this$user$source2, _this$user$source2$pr;
@@ -33545,6 +33763,8 @@ const QrCodeModal = _ref => {
33545
33763
  };
33546
33764
  QrCodeModal.viewId = "qrcode";
33547
33765
 
33766
+ console.log("test");
33767
+
33548
33768
  exports.AddressCreateCity = AddressCreateCity;
33549
33769
  exports.AddressCreateContainer = AddressCreateContainer;
33550
33770
  exports.AddressCreateCountrySelect = AddressCreateCountrySelect;