@pelcro/react-pelcro-js 3.2.0-beta.15 → 3.2.0-beta.19

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.esm.js CHANGED
@@ -3436,7 +3436,7 @@ var paymentMethod_fr = {
3436
3436
  var title$f = "Enter your email to subscribe to our newsletter";
3437
3437
  var updateTitle$1 = "Update newsletter selections";
3438
3438
  var subtitle$7 = "We may use your email for other marketing communication";
3439
- var labels$p = {
3439
+ var labels$r = {
3440
3440
  submit: "Submit",
3441
3441
  firstName: "First name",
3442
3442
  lastName: "Last name",
@@ -3444,7 +3444,7 @@ var labels$p = {
3444
3444
  postalCode: "Postal code",
3445
3445
  required: "required"
3446
3446
  };
3447
- var messages$r = {
3447
+ var messages$t = {
3448
3448
  alreadyHaveAccount: "Already have an account?",
3449
3449
  success: "Newsletters were successfully updated",
3450
3450
  loginHere: "Login here.",
@@ -3455,14 +3455,14 @@ var newsletter_en = {
3455
3455
  title: title$f,
3456
3456
  updateTitle: updateTitle$1,
3457
3457
  subtitle: subtitle$7,
3458
- labels: labels$p,
3459
- messages: messages$r
3458
+ labels: labels$r,
3459
+ messages: messages$t
3460
3460
  };
3461
3461
 
3462
3462
  var title$e = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
3463
3463
  var updateTitle = "Mettre à jour son choix d'infolettres";
3464
3464
  var subtitle$6 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
3465
- var labels$o = {
3465
+ var labels$q = {
3466
3466
  submit: "Lire l’article !",
3467
3467
  firstName: "Prénom",
3468
3468
  lastName: "Nom de famille",
@@ -3470,7 +3470,7 @@ var labels$o = {
3470
3470
  postalCode: "Code postal",
3471
3471
  required: "Champs obligatoires"
3472
3472
  };
3473
- var messages$q = {
3473
+ var messages$s = {
3474
3474
  alreadyHaveAccount: "Vous avez déjà un compte ?",
3475
3475
  success: "Votre choix d'infolettres à été mis à jour",
3476
3476
  loginHere: "Connectez-vous ici",
@@ -3481,14 +3481,14 @@ var newsletter_fr = {
3481
3481
  title: title$e,
3482
3482
  updateTitle: updateTitle,
3483
3483
  subtitle: subtitle$6,
3484
- labels: labels$o,
3485
- messages: messages$q
3484
+ labels: labels$q,
3485
+ messages: messages$s
3486
3486
  };
3487
3487
 
3488
- var labels$n = {
3488
+ var labels$p = {
3489
3489
  "continue": "Continue to content"
3490
3490
  };
3491
- var messages$p = {
3491
+ var messages$r = {
3492
3492
  yourFreeTrial: "Subscription successful!",
3493
3493
  youHaveAccess: "Hope you enjoy the subscription. Please contact us if you have any questions or concerns.",
3494
3494
  clickToLearn: {
@@ -3514,15 +3514,15 @@ var errors$9 = {
3514
3514
  "": ""
3515
3515
  };
3516
3516
  var success_en = {
3517
- labels: labels$n,
3518
- messages: messages$p,
3517
+ labels: labels$p,
3518
+ messages: messages$r,
3519
3519
  errors: errors$9
3520
3520
  };
3521
3521
 
3522
- var labels$m = {
3522
+ var labels$o = {
3523
3523
  "continue": "Abonnement réussi !"
3524
3524
  };
3525
- var messages$o = {
3525
+ var messages$q = {
3526
3526
  yourFreeTrial: "Votre essai gratuit vient de débuter",
3527
3527
  youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
3528
3528
  clickToLearn: {
@@ -3548,12 +3548,12 @@ var errors$8 = {
3548
3548
  "": ""
3549
3549
  };
3550
3550
  var success_fr = {
3551
- labels: labels$m,
3552
- messages: messages$o,
3551
+ labels: labels$o,
3552
+ messages: messages$q,
3553
3553
  errors: errors$8
3554
3554
  };
3555
3555
 
3556
- var messages$n = {
3556
+ var messages$p = {
3557
3557
  freeVisits: "Free visits left:",
3558
3558
  subscribeNow: "Subscribe",
3559
3559
  alreadyHaveAccount: "Already have an account?",
@@ -3563,11 +3563,11 @@ var errors$7 = {
3563
3563
  "": ""
3564
3564
  };
3565
3565
  var meter_en = {
3566
- messages: messages$n,
3566
+ messages: messages$p,
3567
3567
  errors: errors$7
3568
3568
  };
3569
3569
 
3570
- var messages$m = {
3570
+ var messages$o = {
3571
3571
  freeVisits: "Visites gratuites restantes:",
3572
3572
  subscribeNow: "Abonnez-vous maintenant !",
3573
3573
  alreadyHaveAccount: "Vous avez déjà un compte ?",
@@ -3577,15 +3577,15 @@ var errors$6 = {
3577
3577
  "": ""
3578
3578
  };
3579
3579
  var meter_fr = {
3580
- messages: messages$m,
3580
+ messages: messages$o,
3581
3581
  errors: errors$6
3582
3582
  };
3583
3583
 
3584
- var messages$l = {
3584
+ var messages$n = {
3585
3585
  youAreSafe: "You're safe - PCI compliant 128 SSL by",
3586
3586
  bankRedirection: "Please hold, redirecting you to your bank."
3587
3587
  };
3588
- var labels$l = {
3588
+ var labels$n = {
3589
3589
  card: "Enter card number",
3590
3590
  date: "Expiration date",
3591
3591
  CVC: "CVC",
@@ -3604,15 +3604,15 @@ var labels$l = {
3604
3604
  removeCoupon: "REMOVE"
3605
3605
  };
3606
3606
  var checkoutForm_en = {
3607
- messages: messages$l,
3608
- labels: labels$l
3607
+ messages: messages$n,
3608
+ labels: labels$n
3609
3609
  };
3610
3610
 
3611
- var messages$k = {
3611
+ var messages$m = {
3612
3612
  youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
3613
3613
  bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque."
3614
3614
  };
3615
- var labels$k = {
3615
+ var labels$m = {
3616
3616
  card: "Entrez le numéro de carte",
3617
3617
  date: "Date d’expiration",
3618
3618
  CVC: "CVC",
@@ -3631,8 +3631,8 @@ var labels$k = {
3631
3631
  removeCoupon: "RETIRER"
3632
3632
  };
3633
3633
  var checkoutForm_fr = {
3634
- messages: messages$k,
3635
- labels: labels$k
3634
+ messages: messages$m,
3635
+ labels: labels$m
3636
3636
  };
3637
3637
 
3638
3638
  var youAreSafe$1 = "You're safe - PCI compliant 128 SSL by";
@@ -3673,7 +3673,7 @@ var messages_fr = {
3673
3673
  zeroTotalInvoice: zeroTotalInvoice
3674
3674
  };
3675
3675
 
3676
- var labels$j = {
3676
+ var labels$l = {
3677
3677
  email: "Enter email",
3678
3678
  password: "Enter password",
3679
3679
  required: "required",
@@ -3681,7 +3681,7 @@ var labels$j = {
3681
3681
  passwordPlaceholder: "Password",
3682
3682
  login: "Login"
3683
3683
  };
3684
- var messages$j = {
3684
+ var messages$l = {
3685
3685
  loginTo: "Login to your account",
3686
3686
  welcome: "Welcome back, sign in with your existing account.",
3687
3687
  dontHaveAccount: "Don't have an account yet?",
@@ -3700,12 +3700,12 @@ var errors$5 = {
3700
3700
  "": ""
3701
3701
  };
3702
3702
  var login_en = {
3703
- labels: labels$j,
3704
- messages: messages$j,
3703
+ labels: labels$l,
3704
+ messages: messages$l,
3705
3705
  errors: errors$5
3706
3706
  };
3707
3707
 
3708
- var labels$i = {
3708
+ var labels$k = {
3709
3709
  email: "Entrez votre adresse courriel",
3710
3710
  password: "Entrez votre mot de passe",
3711
3711
  required: "Champs obligatoires",
@@ -3713,7 +3713,7 @@ var labels$i = {
3713
3713
  passwordPlaceholder: "Mot de passe",
3714
3714
  login: "Connexion"
3715
3715
  };
3716
- var messages$i = {
3716
+ var messages$k = {
3717
3717
  loginTo: "Connectez-vous à votre compte",
3718
3718
  welcome: "Bienvenue, connectez-vous avec votre compte existant.",
3719
3719
  dontHaveAccount: "Vous n’avez pas encore de compte ?",
@@ -3732,11 +3732,39 @@ var errors$4 = {
3732
3732
  "": ""
3733
3733
  };
3734
3734
  var login_fr = {
3735
- labels: labels$i,
3736
- messages: messages$i,
3735
+ labels: labels$k,
3736
+ messages: messages$k,
3737
3737
  errors: errors$4
3738
3738
  };
3739
3739
 
3740
+ var labels$j = {
3741
+ title: "Verifying Magin Link",
3742
+ instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
3743
+ resend: "Resend email"
3744
+ };
3745
+ var messages$j = {
3746
+ resent: "Resent successfully",
3747
+ success: "Link verified successfully!"
3748
+ };
3749
+ var verifyLinkToken_en = {
3750
+ labels: labels$j,
3751
+ messages: messages$j
3752
+ };
3753
+
3754
+ var labels$i = {
3755
+ title: "Confirmez votre courriel",
3756
+ instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
3757
+ resend: "Renvoyer le courriel"
3758
+ };
3759
+ var messages$i = {
3760
+ resent: "Renvoyé avec succès",
3761
+ success: "Lien vérifiée avec succès"
3762
+ };
3763
+ var verifyLinkToken_fr = {
3764
+ labels: labels$i,
3765
+ messages: messages$i
3766
+ };
3767
+
3740
3768
  var title$d = "Create an account";
3741
3769
  var subtitle$5 = "Enter your email and password below";
3742
3770
  var labels$h = {
@@ -6023,7 +6051,7 @@ class PelcroActions {
6023
6051
  view,
6024
6052
  cartItems,
6025
6053
  ...otherStateFields
6026
- } = initialState$i;
6054
+ } = initialState$j;
6027
6055
  this.set(otherStateFields);
6028
6056
  });
6029
6057
 
@@ -6342,7 +6370,7 @@ class PelcroCallbacks {
6342
6370
 
6343
6371
  }
6344
6372
 
6345
- const initialState$i = {
6373
+ const initialState$j = {
6346
6374
  // View
6347
6375
  view: null,
6348
6376
  // Plans
@@ -6372,7 +6400,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
6372
6400
  return {
6373
6401
  // Store setter
6374
6402
  set,
6375
- ...initialState$i,
6403
+ ...initialState$j,
6376
6404
  // State actions
6377
6405
  ...actions,
6378
6406
  // Callbacks
@@ -6536,7 +6564,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
6536
6564
  */
6537
6565
 
6538
6566
  const isValidViewFromURL = viewID => {
6539
- if (["login", "register", "plan-select", "gift-redeem", "password-forgot", "password-reset", "password-change", "payment-method-update", "user-edit", "newsletter", "address-create", "order-create", "cart", "email-verify", "invoice-details"].includes(viewID) || hasValidNewsletterUpdateUrl()) {
6567
+ if (["login", "register", "plan-select", "gift-redeem", "password-forgot", "password-reset", "password-change", "passwordless-login", "payment-method-update", "user-edit", "newsletter", "address-create", "order-create", "cart", "email-verify", "invoice-details"].includes(viewID) || hasValidNewsletterUpdateUrl()) {
6540
6568
  return true;
6541
6569
  }
6542
6570
 
@@ -6752,6 +6780,7 @@ const resources = {
6752
6780
  checkoutForm: checkoutForm_en,
6753
6781
  messages: messages_en,
6754
6782
  login: login_en,
6783
+ verifyLinkToken: verifyLinkToken_en,
6755
6784
  register: register_en,
6756
6785
  userEdit: userEdit_en,
6757
6786
  address: address_en,
@@ -6776,6 +6805,7 @@ const resources = {
6776
6805
  checkoutForm: checkoutForm_fr,
6777
6806
  messages: messages_fr,
6778
6807
  login: login_fr,
6808
+ verifyLinkToken: verifyLinkToken_fr,
6779
6809
  register: register_fr,
6780
6810
  userEdit: userEdit_fr,
6781
6811
  address: address_fr,
@@ -8948,6 +8978,10 @@ const initViewFromURL = () => {
8948
8978
  return verifyEmailTokenFromUrl();
8949
8979
  }
8950
8980
 
8981
+ if (view === "passwordless-login") {
8982
+ return verifyLinkTokenFromUrl();
8983
+ }
8984
+
8951
8985
  if (view === "invoice-details") {
8952
8986
  return showInvoiceDetailsFromUrl();
8953
8987
  }
@@ -9128,6 +9162,18 @@ const verifyEmailTokenFromUrl = () => {
9128
9162
  });
9129
9163
  };
9130
9164
 
9165
+ const verifyLinkTokenFromUrl = () => {
9166
+ var _window$Pelcro$user$i, _window$Pelcro$user;
9167
+
9168
+ const isAlreadyLoggedIn = (_window$Pelcro$user$i = (_window$Pelcro$user = window.Pelcro.user) === null || _window$Pelcro$user === void 0 ? void 0 : _window$Pelcro$user.isAuthenticated()) !== null && _window$Pelcro$user$i !== void 0 ? _window$Pelcro$user$i : false;
9169
+ const loginToken = window.Pelcro.helpers.getURLParameter("token");
9170
+ if (isAlreadyLoggedIn || !loginToken) return;
9171
+ const {
9172
+ switchView
9173
+ } = usePelcro.getStore();
9174
+ return switchView("passwordless-login");
9175
+ };
9176
+
9131
9177
  const showInvoiceDetailsFromUrl = () => {
9132
9178
  const {
9133
9179
  isAuthenticated,
@@ -9503,8 +9549,9 @@ const LOAD_PAYMENT_METHODS = "LOAD_PAYMENT_METHODS";
9503
9549
  const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
9504
9550
  const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
9505
9551
  const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
9552
+ const LINK_TOKEN_VERIFY = "LINK_TOKEN_VERIFY";
9506
9553
 
9507
- const initialState$h = {
9554
+ const initialState$i = {
9508
9555
  email: "",
9509
9556
  password: "",
9510
9557
  emailError: null,
@@ -9515,10 +9562,10 @@ const initialState$h = {
9515
9562
  content: ""
9516
9563
  }
9517
9564
  };
9518
- const store$h = /*#__PURE__*/createContext(initialState$h);
9565
+ const store$i = /*#__PURE__*/createContext(initialState$i);
9519
9566
  const {
9520
- Provider: Provider$h
9521
- } = store$h;
9567
+ Provider: Provider$i
9568
+ } = store$i;
9522
9569
 
9523
9570
  const LoginContainer = ({
9524
9571
  style,
@@ -9625,7 +9672,7 @@ const LoginContainer = ({
9625
9672
  });
9626
9673
 
9627
9674
  case RESET_LOGIN_FORM:
9628
- return initialState$h;
9675
+ return initialState$i;
9629
9676
 
9630
9677
  case DISABLE_LOGIN_BUTTON:
9631
9678
  return lib_7({ ...state,
@@ -9643,12 +9690,12 @@ const LoginContainer = ({
9643
9690
  default:
9644
9691
  return state;
9645
9692
  }
9646
- }, initialState$h);
9693
+ }, initialState$i);
9647
9694
  return /*#__PURE__*/React__default.createElement("div", {
9648
9695
  style: { ...style
9649
9696
  },
9650
9697
  className: `pelcro-container pelcro-login-container ${className}`
9651
- }, /*#__PURE__*/React__default.createElement(Provider$h, {
9698
+ }, /*#__PURE__*/React__default.createElement(Provider$i, {
9652
9699
  value: {
9653
9700
  state,
9654
9701
  dispatch
@@ -9656,12 +9703,12 @@ const LoginContainer = ({
9656
9703
  }, children.length ? children.map((child, i) => {
9657
9704
  if (child) {
9658
9705
  return /*#__PURE__*/React__default.cloneElement(child, {
9659
- store: store$h,
9706
+ store: store$i,
9660
9707
  key: i
9661
9708
  });
9662
9709
  }
9663
9710
  }) : /*#__PURE__*/React__default.cloneElement(children, {
9664
- store: store$h
9711
+ store: store$i
9665
9712
  })));
9666
9713
  };
9667
9714
 
@@ -9909,7 +9956,7 @@ const LoginButton = ({
9909
9956
  buttonDisabled
9910
9957
  },
9911
9958
  dispatch
9912
- } = useContext(store$h);
9959
+ } = useContext(store$i);
9913
9960
  const {
9914
9961
  t
9915
9962
  } = useTranslation("login");
@@ -9930,11 +9977,11 @@ const LoginButton = ({
9930
9977
  };
9931
9978
 
9932
9979
  const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
9933
- store: store$h
9980
+ store: store$i
9934
9981
  }, props));
9935
9982
 
9936
9983
  const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
9937
- store: store$h
9984
+ store: store$i
9938
9985
  }, props));
9939
9986
 
9940
9987
  var _path$r;
@@ -10011,7 +10058,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
10011
10058
  var FacebookLogin = unwrapExports(facebookLoginRenderProps);
10012
10059
  facebookLoginRenderProps.FacebookLogin;
10013
10060
 
10014
- const initialState$g = {
10061
+ const initialState$h = {
10015
10062
  email: "",
10016
10063
  password: "",
10017
10064
  emailError: null,
@@ -10028,10 +10075,10 @@ const initialState$g = {
10028
10075
  content: ""
10029
10076
  }
10030
10077
  };
10031
- const store$g = /*#__PURE__*/createContext(initialState$g);
10078
+ const store$h = /*#__PURE__*/createContext(initialState$h);
10032
10079
  const {
10033
- Provider: Provider$g
10034
- } = store$g;
10080
+ Provider: Provider$h
10081
+ } = store$h;
10035
10082
 
10036
10083
  const RegisterContainer = ({
10037
10084
  style,
@@ -10214,7 +10261,7 @@ const RegisterContainer = ({
10214
10261
  });
10215
10262
 
10216
10263
  case RESET_LOGIN_FORM:
10217
- return initialState$g;
10264
+ return initialState$h;
10218
10265
 
10219
10266
  case DISABLE_REGISTRATION_BUTTON:
10220
10267
  return lib_7({ ...state,
@@ -10232,12 +10279,12 @@ const RegisterContainer = ({
10232
10279
  default:
10233
10280
  return state;
10234
10281
  }
10235
- }, initialState$g);
10282
+ }, initialState$h);
10236
10283
  return /*#__PURE__*/React__default.createElement("div", {
10237
10284
  style: { ...style
10238
10285
  },
10239
10286
  className: `pelcro-container pelcro-register-container ${className}`
10240
- }, /*#__PURE__*/React__default.createElement(Provider$g, {
10287
+ }, /*#__PURE__*/React__default.createElement(Provider$h, {
10241
10288
  value: {
10242
10289
  state,
10243
10290
  dispatch
@@ -10245,12 +10292,12 @@ const RegisterContainer = ({
10245
10292
  }, children.length ? children.map((child, i) => {
10246
10293
  if (child) {
10247
10294
  return /*#__PURE__*/React__default.cloneElement(child, {
10248
- store: store$g,
10295
+ store: store$h,
10249
10296
  key: i
10250
10297
  });
10251
10298
  }
10252
10299
  }) : /*#__PURE__*/React__default.cloneElement(children, {
10253
- store: store$g
10300
+ store: store$h
10254
10301
  })));
10255
10302
  };
10256
10303
  /**
@@ -10290,10 +10337,10 @@ const FacebookLoginButton = ({
10290
10337
  const facebookLoginEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.facebook_app_id;
10291
10338
  const {
10292
10339
  dispatch: loginDispatch
10293
- } = useContext(store$h);
10340
+ } = useContext(store$i);
10294
10341
  const {
10295
10342
  dispatch: registerDispatch
10296
- } = useContext(store$g);
10343
+ } = useContext(store$h);
10297
10344
 
10298
10345
  const onSuccess = facebookUser => {
10299
10346
  loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
@@ -10380,10 +10427,10 @@ const GoogleLoginButton = ({
10380
10427
  const googleLoginEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.google_app_id;
10381
10428
  const {
10382
10429
  dispatch: loginDispatch
10383
- } = useContext(store$h);
10430
+ } = useContext(store$i);
10384
10431
  const {
10385
10432
  dispatch: registerDispatch
10386
- } = useContext(store$g);
10433
+ } = useContext(store$h);
10387
10434
 
10388
10435
  const onSuccess = response => {
10389
10436
  var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
@@ -10479,10 +10526,10 @@ const Auth0LoginButton = ({
10479
10526
  }, [auth0Enabled, auth0Loaded]);
10480
10527
  const {
10481
10528
  dispatch: loginDispatch
10482
- } = useContext(store$h);
10529
+ } = useContext(store$i);
10483
10530
  const {
10484
10531
  dispatch: registerDispatch
10485
- } = useContext(store$g);
10532
+ } = useContext(store$h);
10486
10533
 
10487
10534
  function handleClick() {
10488
10535
  var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
@@ -10770,11 +10817,11 @@ function LoginModal({
10770
10817
  LoginModal.viewId = "login";
10771
10818
 
10772
10819
  const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
10773
- store: store$g
10820
+ store: store$h
10774
10821
  }, props));
10775
10822
 
10776
10823
  const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
10777
- store: store$g
10824
+ store: store$h
10778
10825
  }, props));
10779
10826
 
10780
10827
  const RegisterButton = ({
@@ -10794,7 +10841,7 @@ const RegisterButton = ({
10794
10841
  buttonDisabled
10795
10842
  },
10796
10843
  dispatch
10797
- } = useContext(store$g);
10844
+ } = useContext(store$h);
10798
10845
  const {
10799
10846
  t
10800
10847
  } = useTranslation("register");
@@ -10932,7 +10979,7 @@ function FirstName({
10932
10979
  }
10933
10980
 
10934
10981
  const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
10935
- store: store$g
10982
+ store: store$h
10936
10983
  }, props));
10937
10984
 
10938
10985
  function LastName({
@@ -10963,7 +11010,7 @@ function LastName({
10963
11010
  }
10964
11011
 
10965
11012
  const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
10966
- store: store$g
11013
+ store: store$h
10967
11014
  }, props));
10968
11015
 
10969
11016
  /**
@@ -11087,7 +11134,7 @@ function TextInput({
11087
11134
 
11088
11135
  const RegisterTextInput = props => {
11089
11136
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
11090
- store: store$g
11137
+ store: store$h
11091
11138
  }));
11092
11139
  };
11093
11140
 
@@ -13431,7 +13478,7 @@ class VantivGateway {
13431
13478
 
13432
13479
  /** @type {PaymentStateType} */
13433
13480
 
13434
- const initialState$f = {
13481
+ const initialState$g = {
13435
13482
  disableSubmit: false,
13436
13483
  isLoading: false,
13437
13484
  disableCouponButton: false,
@@ -13450,10 +13497,10 @@ const initialState$f = {
13450
13497
  content: ""
13451
13498
  }
13452
13499
  };
13453
- const store$f = /*#__PURE__*/createContext(initialState$f);
13500
+ const store$g = /*#__PURE__*/createContext(initialState$g);
13454
13501
  const {
13455
- Provider: Provider$f
13456
- } = store$f;
13502
+ Provider: Provider$g
13503
+ } = store$g;
13457
13504
 
13458
13505
  const PaymentMethodContainerWithoutStripe = ({
13459
13506
  style,
@@ -14705,21 +14752,21 @@ const PaymentMethodContainerWithoutStripe = ({
14705
14752
  default:
14706
14753
  return state;
14707
14754
  }
14708
- }, initialState$f);
14755
+ }, initialState$g);
14709
14756
  return /*#__PURE__*/React__default.createElement("div", {
14710
14757
  style: { ...style
14711
14758
  },
14712
14759
  className: `pelcro-container pelcro-payment-container ${className}`
14713
- }, /*#__PURE__*/React__default.createElement(Provider$f, {
14760
+ }, /*#__PURE__*/React__default.createElement(Provider$g, {
14714
14761
  value: {
14715
14762
  state,
14716
14763
  dispatch
14717
14764
  }
14718
14765
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
14719
- store: store$f,
14766
+ store: store$g,
14720
14767
  key: i
14721
14768
  })) : /*#__PURE__*/React__default.cloneElement(children, {
14722
- store: store$f
14769
+ store: store$g
14723
14770
  })));
14724
14771
  };
14725
14772
 
@@ -14741,7 +14788,7 @@ const PaymentMethodContainer = props => {
14741
14788
  stripeAccount: window.Pelcro.site.read().account_id,
14742
14789
  locale: getPageOrDefaultLanguage()
14743
14790
  }, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
14744
- store: store$f
14791
+ store: store$g
14745
14792
  }, props))));
14746
14793
  }
14747
14794
 
@@ -14794,7 +14841,7 @@ const PelcroPaymentRequestButton = props => {
14794
14841
  currentPlan,
14795
14842
  updatedPrice
14796
14843
  }
14797
- } = useContext(store$f);
14844
+ } = useContext(store$g);
14798
14845
 
14799
14846
  const updatePaymentRequest = () => {
14800
14847
  // Make sure payment request is up to date, eg. user added a coupon code.
@@ -14870,7 +14917,7 @@ const DiscountedPrice = props => {
14870
14917
  taxAmount,
14871
14918
  percentOff
14872
14919
  }
14873
- } = useContext(store$f);
14920
+ } = useContext(store$g);
14874
14921
  const {
14875
14922
  order,
14876
14923
  plan
@@ -14920,7 +14967,7 @@ const SubmitPaymentMethod = ({
14920
14967
  isLoading,
14921
14968
  updatedPrice
14922
14969
  }
14923
- } = useContext(store$f);
14970
+ } = useContext(store$g);
14924
14971
  const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
14925
14972
  const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
14926
14973
  const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
@@ -14970,7 +15017,7 @@ const ApplyCouponButton = ({
14970
15017
  disableCouponButton
14971
15018
  },
14972
15019
  dispatch
14973
- } = useContext(store$f);
15020
+ } = useContext(store$g);
14974
15021
  const {
14975
15022
  t
14976
15023
  } = useTranslation("checkoutForm");
@@ -15004,7 +15051,7 @@ const CouponCodeField = props => {
15004
15051
  couponCode,
15005
15052
  couponError
15006
15053
  }
15007
- } = useContext(store$f);
15054
+ } = useContext(store$g);
15008
15055
 
15009
15056
  const onCouponCodeChange = e => {
15010
15057
  dispatch({
@@ -15060,7 +15107,7 @@ const CouponCode = ({
15060
15107
  state: {
15061
15108
  enableCouponField
15062
15109
  }
15063
- } = useContext(store$f);
15110
+ } = useContext(store$g);
15064
15111
  const {
15065
15112
  t
15066
15113
  } = useTranslation("checkoutForm");
@@ -15317,7 +15364,7 @@ const PaypalSubscribeButton = props => {
15317
15364
  const {
15318
15365
  dispatch,
15319
15366
  state
15320
- } = useContext(store$f);
15367
+ } = useContext(store$g);
15321
15368
  const {
15322
15369
  product,
15323
15370
  plan,
@@ -15450,7 +15497,7 @@ const SelectedPaymentMethod = () => {
15450
15497
  state: {
15451
15498
  isLoading
15452
15499
  }
15453
- } = useContext(store$f);
15500
+ } = useContext(store$g);
15454
15501
  const {
15455
15502
  switchView,
15456
15503
  selectedPaymentMethodId
@@ -15492,7 +15539,7 @@ const TaxAmount = () => {
15492
15539
  state: {
15493
15540
  taxAmount
15494
15541
  }
15495
- } = useContext(store$f);
15542
+ } = useContext(store$g);
15496
15543
  const {
15497
15544
  plan
15498
15545
  } = usePelcro();
@@ -16011,7 +16058,7 @@ class DefaultNewsLetter extends Component {
16011
16058
 
16012
16059
  const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
16013
16060
 
16014
- const initialState$e = {
16061
+ const initialState$f = {
16015
16062
  didSubToNewslettersBefore: false,
16016
16063
  newsletters: [],
16017
16064
  isListLoading: true,
@@ -16021,10 +16068,10 @@ const initialState$e = {
16021
16068
  content: ""
16022
16069
  }
16023
16070
  };
16024
- const store$e = /*#__PURE__*/createContext(initialState$e);
16071
+ const store$f = /*#__PURE__*/createContext(initialState$f);
16025
16072
  const {
16026
- Provider: Provider$e
16027
- } = store$e;
16073
+ Provider: Provider$f
16074
+ } = store$f;
16028
16075
 
16029
16076
  const NewsletterUpdateContainer = ({
16030
16077
  style,
@@ -16137,7 +16184,7 @@ const NewsletterUpdateContainer = ({
16137
16184
  default:
16138
16185
  return state;
16139
16186
  }
16140
- }, initialState$e);
16187
+ }, initialState$f);
16141
16188
  useEffect(() => {
16142
16189
  const getUserNewsletters = () => {
16143
16190
  var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
@@ -16181,7 +16228,7 @@ const NewsletterUpdateContainer = ({
16181
16228
  style: { ...style
16182
16229
  },
16183
16230
  className: `pelcro-container pelcro-newsletter-update-container ${className}`
16184
- }, /*#__PURE__*/React__default.createElement(Provider$e, {
16231
+ }, /*#__PURE__*/React__default.createElement(Provider$f, {
16185
16232
  value: {
16186
16233
  state,
16187
16234
  dispatch
@@ -16189,12 +16236,12 @@ const NewsletterUpdateContainer = ({
16189
16236
  }, children.length ? children.map((child, i) => {
16190
16237
  if (child) {
16191
16238
  return /*#__PURE__*/React__default.cloneElement(child, {
16192
- store: store$e,
16239
+ store: store$f,
16193
16240
  key: i
16194
16241
  });
16195
16242
  }
16196
16243
  }) : /*#__PURE__*/React__default.cloneElement(children, {
16197
- store: store$e
16244
+ store: store$f
16198
16245
  })));
16199
16246
  };
16200
16247
 
@@ -16209,7 +16256,7 @@ const NewsletterUpdateButton = ({
16209
16256
  isSubmitting,
16210
16257
  isListLoading
16211
16258
  }
16212
- } = useContext(store$e);
16259
+ } = useContext(store$f);
16213
16260
  const {
16214
16261
  t
16215
16262
  } = useTranslation("newsletter");
@@ -16239,7 +16286,7 @@ const NewsletterUpdateList = () => {
16239
16286
  newsletters,
16240
16287
  isListLoading
16241
16288
  }
16242
- } = useContext(store$e);
16289
+ } = useContext(store$f);
16243
16290
 
16244
16291
  if (isListLoading) {
16245
16292
  return /*#__PURE__*/React__default.createElement(Loader, {
@@ -16443,7 +16490,7 @@ function SubscriptionCreateModal({
16443
16490
  SubscriptionCreateModal.viewId = "subscription-create";
16444
16491
 
16445
16492
  var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
16446
- const initialState$d = {
16493
+ const initialState$e = {
16447
16494
  email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
16448
16495
  firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
16449
16496
  lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
@@ -16456,10 +16503,10 @@ const initialState$d = {
16456
16503
  content: ""
16457
16504
  }
16458
16505
  };
16459
- const store$d = /*#__PURE__*/createContext(initialState$d);
16506
+ const store$e = /*#__PURE__*/createContext(initialState$e);
16460
16507
  const {
16461
- Provider: Provider$d
16462
- } = store$d;
16508
+ Provider: Provider$e
16509
+ } = store$e;
16463
16510
 
16464
16511
  const UserUpdateContainer = ({
16465
16512
  style,
@@ -16479,20 +16526,23 @@ const UserUpdateContainer = ({
16479
16526
  }, []);
16480
16527
 
16481
16528
  const loadUserDataIntoFields = () => {
16482
- var _window$Pelcro$user$r6, _window$Pelcro$user$r7, _window$Pelcro$user$r8, _window$Pelcro$user$r9;
16529
+ var _window$Pelcro$user$r6, _window$Pelcro$user$r7, _window$Pelcro$user$r8, _window$Pelcro$user$r9, _window$Pelcro$user$r10;
16483
16530
 
16484
16531
  const fields = [{
16532
+ type: SET_EMAIL,
16533
+ payload: (_window$Pelcro$user$r6 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r6 === void 0 ? void 0 : _window$Pelcro$user$r6.email
16534
+ }, {
16485
16535
  type: SET_FIRST_NAME,
16486
- payload: (_window$Pelcro$user$r6 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r6 === void 0 ? void 0 : _window$Pelcro$user$r6.first_name
16536
+ payload: (_window$Pelcro$user$r7 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r7 === void 0 ? void 0 : _window$Pelcro$user$r7.first_name
16487
16537
  }, {
16488
16538
  type: SET_LAST_NAME,
16489
- payload: (_window$Pelcro$user$r7 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r7 === void 0 ? void 0 : _window$Pelcro$user$r7.last_name
16539
+ payload: (_window$Pelcro$user$r8 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r8 === void 0 ? void 0 : _window$Pelcro$user$r8.last_name
16490
16540
  }, {
16491
16541
  type: SET_DISPLAY_NAME,
16492
- payload: (_window$Pelcro$user$r8 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r8 === void 0 ? void 0 : _window$Pelcro$user$r8.display_name
16542
+ payload: (_window$Pelcro$user$r9 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r9 === void 0 ? void 0 : _window$Pelcro$user$r9.display_name
16493
16543
  }, {
16494
16544
  type: SET_PHONE,
16495
- payload: (_window$Pelcro$user$r9 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r9 === void 0 ? void 0 : _window$Pelcro$user$r9.phone
16545
+ payload: (_window$Pelcro$user$r10 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r10 === void 0 ? void 0 : _window$Pelcro$user$r10.phone
16496
16546
  }];
16497
16547
  fields.filter(field => Boolean(field.payload)).forEach(field => {
16498
16548
  dispatch(field);
@@ -16500,6 +16550,7 @@ const UserUpdateContainer = ({
16500
16550
  };
16501
16551
 
16502
16552
  const handleUpdateUser = ({
16553
+ email,
16503
16554
  firstName,
16504
16555
  lastName,
16505
16556
  phone,
@@ -16508,6 +16559,7 @@ const UserUpdateContainer = ({
16508
16559
  }, dispatch) => {
16509
16560
  window.Pelcro.user.update({
16510
16561
  auth_token: window.Pelcro.user.read().auth_token,
16562
+ email: email,
16511
16563
  first_name: firstName,
16512
16564
  last_name: lastName,
16513
16565
  display_name: displayName,
@@ -16553,6 +16605,11 @@ const UserUpdateContainer = ({
16553
16605
  }
16554
16606
  });
16555
16607
 
16608
+ case SET_EMAIL:
16609
+ return lib_7({ ...state,
16610
+ email: action.payload
16611
+ });
16612
+
16556
16613
  case SET_FIRST_NAME:
16557
16614
  return lib_7({ ...state,
16558
16615
  firstName: action.payload
@@ -16591,27 +16648,26 @@ const UserUpdateContainer = ({
16591
16648
  default:
16592
16649
  return state;
16593
16650
  }
16594
- }, initialState$d);
16651
+ }, initialState$e);
16595
16652
  return /*#__PURE__*/React__default.createElement("div", {
16596
16653
  style: { ...style
16597
16654
  },
16598
16655
  className: `pelcro-container pelcro-user-update-container ${className}`
16599
- }, /*#__PURE__*/React__default.createElement(Provider$d, {
16656
+ }, /*#__PURE__*/React__default.createElement(Provider$e, {
16600
16657
  value: {
16601
16658
  state,
16602
16659
  dispatch
16603
16660
  }
16604
16661
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
16605
- store: store$d,
16662
+ store: store$e,
16606
16663
  key: i
16607
16664
  })) : /*#__PURE__*/React__default.cloneElement(children, {
16608
- store: store$d
16665
+ store: store$e
16609
16666
  })));
16610
16667
  };
16611
16668
 
16612
16669
  const UserUpdateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
16613
- disabled: true,
16614
- store: store$d
16670
+ store: store$e
16615
16671
  }, props));
16616
16672
 
16617
16673
  const UserUpdateButton = ({
@@ -16624,7 +16680,7 @@ const UserUpdateButton = ({
16624
16680
  buttonDisabled
16625
16681
  },
16626
16682
  dispatch
16627
- } = useContext(store$d);
16683
+ } = useContext(store$e);
16628
16684
  const {
16629
16685
  t
16630
16686
  } = useTranslation("userEdit");
@@ -16641,11 +16697,11 @@ const UserUpdateButton = ({
16641
16697
  };
16642
16698
 
16643
16699
  const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
16644
- store: store$d
16700
+ store: store$e
16645
16701
  }, props));
16646
16702
 
16647
16703
  const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
16648
- store: store$d
16704
+ store: store$e
16649
16705
  }, props));
16650
16706
 
16651
16707
  function Phone({
@@ -16674,7 +16730,7 @@ function Phone({
16674
16730
  }
16675
16731
 
16676
16732
  const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
16677
- store: store$d
16733
+ store: store$e
16678
16734
  }, props));
16679
16735
 
16680
16736
  var userSolidIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20class%3D%22plc-h-5%20plc-w-5%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22white%22%3E%20%20%3Cpath%20transform%3D%22translate%280%2C2%29%22%20fill-rule%3D%22evenodd%22%20d%3D%22M10%209a3%203%200%20100-6%203%203%200%20000%206zm-7%209a7%207%200%201114%200H3z%22%20clip-rule%3D%22evenodd%22%20%2F%3E%3C%2Fsvg%3E";
@@ -16712,7 +16768,7 @@ const UserUpdateProfilePic = ({
16712
16768
  onClick: onClick
16713
16769
  }, otherProps)), /*#__PURE__*/React__default.createElement(Button, {
16714
16770
  variant: "icon",
16715
- className: "plc-absolute plc-bg-gray-500 plc-text-white plc-w-10 plc-h-10 plc-top-24 plc-right-2 hover:plc-bg-gray-600",
16771
+ className: "plc-absolute plc-bg-gray-500 plc-text-white plc-w-10 plc-h-10 plc-top-24 plc-right-2 hover:plc-bg-gray-600 hover:plc-text-white",
16716
16772
  icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
16717
16773
  id: "pelcro-user-update-picture-button",
16718
16774
  onClick: onClick
@@ -16737,15 +16793,15 @@ const UserUpdateView = props => {
16737
16793
  }), /*#__PURE__*/React__default.createElement("div", {
16738
16794
  className: "plc-flex plc-items-start"
16739
16795
  }, /*#__PURE__*/React__default.createElement(UserUpdateEmail, {
16740
- label: t("labels.email")
16796
+ label: t("labels.email"),
16797
+ autoFocus: true
16741
16798
  })), /*#__PURE__*/React__default.createElement("div", {
16742
16799
  className: "plc-flex plc-items-start"
16743
16800
  }, /*#__PURE__*/React__default.createElement(UserUpdateFirstName, {
16744
16801
  autoComplete: "first-name",
16745
16802
  id: "pelcro-input-first-name",
16746
16803
  errorId: "pelcro-input-first-name-error",
16747
- label: t("labels.firstName"),
16748
- autoFocus: true
16804
+ label: t("labels.firstName")
16749
16805
  }), /*#__PURE__*/React__default.createElement(UserUpdateLastName, {
16750
16806
  wrapperClassName: "plc-ml-3",
16751
16807
  autoComplete: "last-name",
@@ -16821,16 +16877,16 @@ function DisplayName({
16821
16877
  }
16822
16878
 
16823
16879
  const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
16824
- store: store$d
16880
+ store: store$e
16825
16881
  }, props));
16826
16882
 
16827
16883
  const UserUpdateTextInput = props => {
16828
16884
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
16829
- store: store$d
16885
+ store: store$e
16830
16886
  }));
16831
16887
  };
16832
16888
 
16833
- const initialState$c = {
16889
+ const initialState$d = {
16834
16890
  isSubmitting: false,
16835
16891
  firstName: "",
16836
16892
  firstNameError: "",
@@ -16855,10 +16911,10 @@ const initialState$c = {
16855
16911
  content: ""
16856
16912
  }
16857
16913
  };
16858
- const store$c = /*#__PURE__*/createContext(initialState$c);
16914
+ const store$d = /*#__PURE__*/createContext(initialState$d);
16859
16915
  const {
16860
- Provider: Provider$c
16861
- } = store$c;
16916
+ Provider: Provider$d
16917
+ } = store$d;
16862
16918
 
16863
16919
  const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
16864
16920
 
@@ -17065,7 +17121,7 @@ const AddressCreateContainer = ({
17065
17121
  default:
17066
17122
  return state;
17067
17123
  }
17068
- }, initialState$c);
17124
+ }, initialState$d);
17069
17125
  useEffect(() => {
17070
17126
  const getStates = () => {
17071
17127
  dispatch({
@@ -17097,16 +17153,16 @@ const AddressCreateContainer = ({
17097
17153
  style: { ...style
17098
17154
  },
17099
17155
  className: `pelcro-container pelcro-address-create-container ${className}`
17100
- }, /*#__PURE__*/React__default.createElement(Provider$c, {
17156
+ }, /*#__PURE__*/React__default.createElement(Provider$d, {
17101
17157
  value: {
17102
17158
  state,
17103
17159
  dispatch
17104
17160
  }
17105
17161
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17106
- store: store$c,
17162
+ store: store$d,
17107
17163
  key: i
17108
17164
  })) : /*#__PURE__*/React__default.cloneElement(children, {
17109
- store: store$c
17165
+ store: store$d
17110
17166
  })));
17111
17167
  };
17112
17168
 
@@ -17117,7 +17173,7 @@ function AddressCreateFirstName(props) {
17117
17173
  firstName,
17118
17174
  firstNameError
17119
17175
  }
17120
- } = useContext(store$c);
17176
+ } = useContext(store$d);
17121
17177
 
17122
17178
  const handleBlur = () => {
17123
17179
  return dispatch({
@@ -17160,7 +17216,7 @@ function AddressCreateLastName(props) {
17160
17216
  lastName,
17161
17217
  lastNameError
17162
17218
  }
17163
- } = useContext(store$c);
17219
+ } = useContext(store$d);
17164
17220
 
17165
17221
  const handleBlur = () => {
17166
17222
  return dispatch({
@@ -17203,7 +17259,7 @@ function AddressCreateLine1(props) {
17203
17259
  line1,
17204
17260
  line1Error
17205
17261
  }
17206
- } = useContext(store$c);
17262
+ } = useContext(store$d);
17207
17263
 
17208
17264
  const handleBlur = () => {
17209
17265
  return dispatch({
@@ -17246,7 +17302,7 @@ function AddressCreateCity(props) {
17246
17302
  city,
17247
17303
  cityError
17248
17304
  }
17249
- } = useContext(store$c);
17305
+ } = useContext(store$d);
17250
17306
 
17251
17307
  const handleBlur = () => {
17252
17308
  return dispatch({
@@ -17289,7 +17345,7 @@ function AddressCreatePostalCode(props) {
17289
17345
  postalCode,
17290
17346
  postalCodeError
17291
17347
  }
17292
- } = useContext(store$c);
17348
+ } = useContext(store$d);
17293
17349
 
17294
17350
  const handleBlur = () => {
17295
17351
  return dispatch({
@@ -17335,7 +17391,7 @@ const AddressCreateSubmit = ({
17335
17391
  state: {
17336
17392
  isSubmitting
17337
17393
  }
17338
- } = useContext(store$c);
17394
+ } = useContext(store$d);
17339
17395
  const {
17340
17396
  t
17341
17397
  } = useTranslation("address");
@@ -17446,7 +17502,7 @@ function CountrySelect({
17446
17502
  }
17447
17503
 
17448
17504
  const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
17449
- store: store$c
17505
+ store: store$d
17450
17506
  }, props));
17451
17507
 
17452
17508
  function StateSelect({
@@ -17534,7 +17590,7 @@ function StateSelect({
17534
17590
  }
17535
17591
 
17536
17592
  const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
17537
- store: store$c
17593
+ store: store$d
17538
17594
  }, props));
17539
17595
 
17540
17596
  const AddressCreateView = props => {
@@ -17639,18 +17695,18 @@ AddressCreateModal.viewId = "address-create";
17639
17695
 
17640
17696
  const AddressCreateTextInput = props => {
17641
17697
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
17642
- store: store$c
17698
+ store: store$d
17643
17699
  }));
17644
17700
  };
17645
17701
 
17646
17702
  const AddressCreateLine2 = props => {
17647
17703
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
17648
17704
  fieldName: "line2",
17649
- store: store$c
17705
+ store: store$d
17650
17706
  }, props));
17651
17707
  };
17652
17708
 
17653
- const initialState$b = {
17709
+ const initialState$c = {
17654
17710
  isSubmitting: false,
17655
17711
  firstName: "",
17656
17712
  firstNameError: "",
@@ -17675,10 +17731,10 @@ const initialState$b = {
17675
17731
  content: ""
17676
17732
  }
17677
17733
  };
17678
- const store$b = /*#__PURE__*/createContext(initialState$b);
17734
+ const store$c = /*#__PURE__*/createContext(initialState$c);
17679
17735
  const {
17680
- Provider: Provider$b
17681
- } = store$b;
17736
+ Provider: Provider$c
17737
+ } = store$c;
17682
17738
 
17683
17739
  const AddressUpdateContainer = ({
17684
17740
  style,
@@ -17730,7 +17786,7 @@ const AddressUpdateContainer = ({
17730
17786
  const thisAddress = addresses[address];
17731
17787
 
17732
17788
  if (+thisAddress.id === +addressId) {
17733
- const newState = { ...initialState$b,
17789
+ const newState = { ...initialState$c,
17734
17790
  firstName: thisAddress.first_name,
17735
17791
  lastName: thisAddress.last_name,
17736
17792
  line1: thisAddress.line1,
@@ -17863,7 +17919,7 @@ const AddressUpdateContainer = ({
17863
17919
  default:
17864
17920
  return state;
17865
17921
  }
17866
- }, initialState$b);
17922
+ }, initialState$c);
17867
17923
  useEffect(() => {
17868
17924
  const getStates = () => {
17869
17925
  dispatch({
@@ -17895,21 +17951,21 @@ const AddressUpdateContainer = ({
17895
17951
  style: { ...style
17896
17952
  },
17897
17953
  className: `pelcro-container pelcro-address-update-container ${className}`
17898
- }, /*#__PURE__*/React__default.createElement(Provider$b, {
17954
+ }, /*#__PURE__*/React__default.createElement(Provider$c, {
17899
17955
  value: {
17900
17956
  state,
17901
17957
  dispatch
17902
17958
  }
17903
17959
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17904
- store: store$b,
17960
+ store: store$c,
17905
17961
  key: i
17906
17962
  })) : /*#__PURE__*/React__default.cloneElement(children, {
17907
- store: store$b
17963
+ store: store$c
17908
17964
  })));
17909
17965
  };
17910
17966
 
17911
17967
  const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
17912
- store: store$b
17968
+ store: store$c
17913
17969
  }, props));
17914
17970
 
17915
17971
  function AddressUpdateFirstName(props) {
@@ -17919,7 +17975,7 @@ function AddressUpdateFirstName(props) {
17919
17975
  firstName,
17920
17976
  firstNameError
17921
17977
  }
17922
- } = useContext(store$b);
17978
+ } = useContext(store$c);
17923
17979
 
17924
17980
  const handleBlur = () => {
17925
17981
  return dispatch({
@@ -17962,7 +18018,7 @@ function AddressUpdateLastName(props) {
17962
18018
  lastName,
17963
18019
  lastNameError
17964
18020
  }
17965
- } = useContext(store$b);
18021
+ } = useContext(store$c);
17966
18022
 
17967
18023
  const handleBlur = () => {
17968
18024
  return dispatch({
@@ -18005,7 +18061,7 @@ function AddressUpdateLine1(props) {
18005
18061
  line1,
18006
18062
  line1Error
18007
18063
  }
18008
- } = useContext(store$b);
18064
+ } = useContext(store$c);
18009
18065
 
18010
18066
  const handleBlur = () => {
18011
18067
  return dispatch({
@@ -18045,7 +18101,7 @@ const AddressUpdateLine2 = props => {
18045
18101
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
18046
18102
  fieldName: "line2"
18047
18103
  }, props, {
18048
- store: store$b
18104
+ store: store$c
18049
18105
  }));
18050
18106
  };
18051
18107
 
@@ -18056,7 +18112,7 @@ function AddressUpdateCity(props) {
18056
18112
  city,
18057
18113
  cityError
18058
18114
  }
18059
- } = useContext(store$b);
18115
+ } = useContext(store$c);
18060
18116
 
18061
18117
  const handleBlur = () => {
18062
18118
  return dispatch({
@@ -18099,7 +18155,7 @@ function AddressUpdatePostalCode(props) {
18099
18155
  postalCode,
18100
18156
  postalCodeError
18101
18157
  }
18102
- } = useContext(store$b);
18158
+ } = useContext(store$c);
18103
18159
 
18104
18160
  const handleBlur = () => {
18105
18161
  return dispatch({
@@ -18145,7 +18201,7 @@ const AddressUpdateSubmit = ({
18145
18201
  state: {
18146
18202
  isSubmitting
18147
18203
  }
18148
- } = useContext(store$b);
18204
+ } = useContext(store$c);
18149
18205
  const {
18150
18206
  t
18151
18207
  } = useTranslation("address");
@@ -18161,7 +18217,7 @@ const AddressUpdateSubmit = ({
18161
18217
  };
18162
18218
 
18163
18219
  const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
18164
- store: store$b
18220
+ store: store$c
18165
18221
  }, props));
18166
18222
 
18167
18223
  const AddressUpdateView = props => {
@@ -18244,7 +18300,7 @@ AddressUpdateModal.viewId = "address-edit";
18244
18300
 
18245
18301
  const AddressUpdateTextInput = props => {
18246
18302
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
18247
- store: store$b
18303
+ store: store$c
18248
18304
  }));
18249
18305
  };
18250
18306
 
@@ -18327,7 +18383,7 @@ const PaymentMethodUpdateModal = props => {
18327
18383
  };
18328
18384
  PaymentMethodUpdateModal.viewId = "payment-method-update";
18329
18385
 
18330
- const initialState$a = {
18386
+ const initialState$b = {
18331
18387
  email: "",
18332
18388
  password: "",
18333
18389
  passwordError: null,
@@ -18340,10 +18396,10 @@ const initialState$a = {
18340
18396
  content: ""
18341
18397
  }
18342
18398
  };
18343
- const store$a = /*#__PURE__*/createContext(initialState$a);
18399
+ const store$b = /*#__PURE__*/createContext(initialState$b);
18344
18400
  const {
18345
- Provider: Provider$a
18346
- } = store$a;
18401
+ Provider: Provider$b
18402
+ } = store$b;
18347
18403
 
18348
18404
  const PasswordResetContainer = ({
18349
18405
  style,
@@ -18400,7 +18456,7 @@ const PasswordResetContainer = ({
18400
18456
  type: SET_EMAIL,
18401
18457
  payload: window.Pelcro.helpers.getURLParameter("email")
18402
18458
  });
18403
- initialState$a.email = window.Pelcro.helpers.getURLParameter("email");
18459
+ initialState$b.email = window.Pelcro.helpers.getURLParameter("email");
18404
18460
  dispatch({
18405
18461
  type: SET_TOKEN,
18406
18462
  payload: window.Pelcro.helpers.getURLParameter("token")
@@ -18460,26 +18516,26 @@ const PasswordResetContainer = ({
18460
18516
  default:
18461
18517
  return state;
18462
18518
  }
18463
- }, initialState$a);
18519
+ }, initialState$b);
18464
18520
  return /*#__PURE__*/React__default.createElement("div", {
18465
18521
  style: { ...style
18466
18522
  },
18467
18523
  className: `pelcro-container pelcro-password-reset-container ${className}`
18468
- }, /*#__PURE__*/React__default.createElement(Provider$a, {
18524
+ }, /*#__PURE__*/React__default.createElement(Provider$b, {
18469
18525
  value: {
18470
18526
  state,
18471
18527
  dispatch
18472
18528
  }
18473
18529
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18474
- store: store$a,
18530
+ store: store$b,
18475
18531
  key: i
18476
18532
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18477
- store: store$a
18533
+ store: store$b
18478
18534
  })));
18479
18535
  };
18480
18536
 
18481
18537
  const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
18482
- store: store$a
18538
+ store: store$b
18483
18539
  }, props));
18484
18540
 
18485
18541
  const PasswordResetButton = ({
@@ -18492,7 +18548,7 @@ const PasswordResetButton = ({
18492
18548
  buttonDisabled
18493
18549
  },
18494
18550
  dispatch
18495
- } = useContext(store$a);
18551
+ } = useContext(store$b);
18496
18552
  const {
18497
18553
  t
18498
18554
  } = useTranslation("passwordReset");
@@ -18509,14 +18565,14 @@ const PasswordResetButton = ({
18509
18565
  };
18510
18566
 
18511
18567
  const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
18512
- store: store$a
18568
+ store: store$b
18513
18569
  }, props, {
18514
18570
  value: window.Pelcro.helpers.getURLParameter("email"),
18515
18571
  disabled: true
18516
18572
  }));
18517
18573
 
18518
18574
  const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
18519
- store: store$a
18575
+ store: store$b
18520
18576
  }, props));
18521
18577
 
18522
18578
  const PasswordResetView = props => {
@@ -18568,7 +18624,7 @@ const PasswordResetModal = ({
18568
18624
  };
18569
18625
  PasswordResetModal.viewId = "password-reset";
18570
18626
 
18571
- const initialState$9 = {
18627
+ const initialState$a = {
18572
18628
  email: "",
18573
18629
  emailError: null,
18574
18630
  buttonDisabled: false,
@@ -18577,10 +18633,10 @@ const initialState$9 = {
18577
18633
  content: ""
18578
18634
  }
18579
18635
  };
18580
- const store$9 = /*#__PURE__*/createContext(initialState$9);
18636
+ const store$a = /*#__PURE__*/createContext(initialState$a);
18581
18637
  const {
18582
- Provider: Provider$9
18583
- } = store$9;
18638
+ Provider: Provider$a
18639
+ } = store$a;
18584
18640
 
18585
18641
  const PasswordForgotContainer = ({
18586
18642
  style,
@@ -18658,21 +18714,21 @@ const PasswordForgotContainer = ({
18658
18714
  default:
18659
18715
  return state;
18660
18716
  }
18661
- }, initialState$9);
18717
+ }, initialState$a);
18662
18718
  return /*#__PURE__*/React__default.createElement("div", {
18663
18719
  style: { ...style
18664
18720
  },
18665
18721
  className: `pelcro-container pelcro-password-forgot-container ${className}`
18666
- }, /*#__PURE__*/React__default.createElement(Provider$9, {
18722
+ }, /*#__PURE__*/React__default.createElement(Provider$a, {
18667
18723
  value: {
18668
18724
  state,
18669
18725
  dispatch
18670
18726
  }
18671
18727
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18672
- store: store$9,
18728
+ store: store$a,
18673
18729
  key: i
18674
18730
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18675
- store: store$9
18731
+ store: store$a
18676
18732
  })));
18677
18733
  };
18678
18734
 
@@ -18688,7 +18744,7 @@ const PasswordForgotButton = ({
18688
18744
  emailError
18689
18745
  },
18690
18746
  dispatch
18691
- } = useContext(store$9);
18747
+ } = useContext(store$a);
18692
18748
  const {
18693
18749
  t
18694
18750
  } = useTranslation("passwordForgot");
@@ -18709,7 +18765,7 @@ const PasswordForgotButton = ({
18709
18765
  };
18710
18766
 
18711
18767
  const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
18712
- store: store$9
18768
+ store: store$a
18713
18769
  }, props));
18714
18770
 
18715
18771
  const PasswordForgotView = props => {
@@ -18759,7 +18815,7 @@ const PasswordForgotModal = ({
18759
18815
  };
18760
18816
  PasswordForgotModal.viewId = "password-forgot";
18761
18817
 
18762
- const initialState$8 = {
18818
+ const initialState$9 = {
18763
18819
  currentPassword: "",
18764
18820
  newPassword: "",
18765
18821
  confirmNewPassword: "",
@@ -18773,10 +18829,10 @@ const initialState$8 = {
18773
18829
  content: ""
18774
18830
  }
18775
18831
  };
18776
- const store$8 = /*#__PURE__*/createContext(initialState$8);
18832
+ const store$9 = /*#__PURE__*/createContext(initialState$9);
18777
18833
  const {
18778
- Provider: Provider$8
18779
- } = store$8;
18834
+ Provider: Provider$9
18835
+ } = store$9;
18780
18836
  const PasswordChangeContainer = ({
18781
18837
  style,
18782
18838
  className = "",
@@ -18928,21 +18984,21 @@ const PasswordChangeContainer = ({
18928
18984
  default:
18929
18985
  return state;
18930
18986
  }
18931
- }, initialState$8);
18987
+ }, initialState$9);
18932
18988
  return /*#__PURE__*/React__default.createElement("div", {
18933
18989
  style: { ...style
18934
18990
  },
18935
18991
  className: `pelcro-container pelcro-password-change-container ${className}`
18936
- }, /*#__PURE__*/React__default.createElement(Provider$8, {
18992
+ }, /*#__PURE__*/React__default.createElement(Provider$9, {
18937
18993
  value: {
18938
18994
  state,
18939
18995
  dispatch
18940
18996
  }
18941
18997
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18942
- store: store$8,
18998
+ store: store$9,
18943
18999
  key: i
18944
19000
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18945
- store: store$8
19001
+ store: store$9
18946
19002
  })));
18947
19003
  };
18948
19004
 
@@ -18953,7 +19009,7 @@ function PasswordChangeCurrentPassword(props) {
18953
19009
  currentPassword,
18954
19010
  currentPasswordError
18955
19011
  }
18956
- } = useContext(store$8);
19012
+ } = useContext(store$9);
18957
19013
  const handleBlur = useCallback(() => {
18958
19014
  return dispatch({
18959
19015
  type: VALIDATE_PASSWORD
@@ -18987,7 +19043,7 @@ function PasswordChangeNewPassword(props) {
18987
19043
  newPassword,
18988
19044
  newPasswordError
18989
19045
  }
18990
- } = useContext(store$8);
19046
+ } = useContext(store$9);
18991
19047
  const handleBlur = useCallback(() => {
18992
19048
  return dispatch({
18993
19049
  type: VALIDATE_NEW_PASSWORD
@@ -19021,7 +19077,7 @@ function PasswordChangeConfirmNewPassword(props) {
19021
19077
  confirmNewPassword,
19022
19078
  confirmNewPasswordError
19023
19079
  }
19024
- } = useContext(store$8);
19080
+ } = useContext(store$9);
19025
19081
  const handleBlur = useCallback(() => {
19026
19082
  return dispatch({
19027
19083
  type: VALIDATE_CONFIRM_NEW_PASSWORD
@@ -19062,7 +19118,7 @@ const PasswordChangeButton = ({
19062
19118
  confirmNewPasswordError
19063
19119
  },
19064
19120
  dispatch
19065
- } = useContext(store$8);
19121
+ } = useContext(store$9);
19066
19122
  const {
19067
19123
  t
19068
19124
  } = useTranslation("passwordChange");
@@ -19128,17 +19184,17 @@ const PasswordChangeModal = ({
19128
19184
  };
19129
19185
  PasswordChangeModal.viewId = "password-change";
19130
19186
 
19131
- const initialState$7 = {
19187
+ const initialState$8 = {
19132
19188
  buttonDisabled: false,
19133
19189
  alert: {
19134
19190
  type: "error",
19135
19191
  content: ""
19136
19192
  }
19137
19193
  };
19138
- const store$7 = /*#__PURE__*/createContext(initialState$7);
19194
+ const store$8 = /*#__PURE__*/createContext(initialState$8);
19139
19195
  const {
19140
- Provider: Provider$7
19141
- } = store$7;
19196
+ Provider: Provider$8
19197
+ } = store$8;
19142
19198
 
19143
19199
  const CartContainer = ({
19144
19200
  style,
@@ -19229,21 +19285,21 @@ const CartContainer = ({
19229
19285
  default:
19230
19286
  return state;
19231
19287
  }
19232
- }, initialState$7);
19288
+ }, initialState$8);
19233
19289
  return /*#__PURE__*/React__default.createElement("div", {
19234
19290
  style: { ...style
19235
19291
  },
19236
19292
  className: `pelcro-container pelcro-cart-container ${className}`
19237
- }, /*#__PURE__*/React__default.createElement(Provider$7, {
19293
+ }, /*#__PURE__*/React__default.createElement(Provider$8, {
19238
19294
  value: {
19239
19295
  state,
19240
19296
  dispatch
19241
19297
  }
19242
19298
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19243
- store: store$7,
19299
+ store: store$8,
19244
19300
  key: i
19245
19301
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19246
- store: store$7
19302
+ store: store$8
19247
19303
  })));
19248
19304
  };
19249
19305
 
@@ -19280,7 +19336,7 @@ const CartSubmit = ({
19280
19336
  buttonDisabled
19281
19337
  },
19282
19338
  dispatch
19283
- } = useContext(store$7);
19339
+ } = useContext(store$8);
19284
19340
  const {
19285
19341
  t
19286
19342
  } = useTranslation("cart");
@@ -19311,7 +19367,7 @@ const CartTotalPrice = () => {
19311
19367
  state: {
19312
19368
  alert
19313
19369
  }
19314
- } = useContext(store$7);
19370
+ } = useContext(store$8);
19315
19371
  const {
19316
19372
  cartItems
19317
19373
  } = usePelcro();
@@ -19624,7 +19680,7 @@ const OrderConfirmModal = props => {
19624
19680
  };
19625
19681
  OrderConfirmModal.viewId = "order-confirm";
19626
19682
 
19627
- const initialState$6 = {
19683
+ const initialState$7 = {
19628
19684
  email: "",
19629
19685
  firstName: "",
19630
19686
  lastName: "",
@@ -19636,10 +19692,10 @@ const initialState$6 = {
19636
19692
  content: ""
19637
19693
  }
19638
19694
  };
19639
- const store$6 = /*#__PURE__*/createContext(initialState$6);
19695
+ const store$7 = /*#__PURE__*/createContext(initialState$7);
19640
19696
  const {
19641
- Provider: Provider$6
19642
- } = store$6;
19697
+ Provider: Provider$7
19698
+ } = store$7;
19643
19699
 
19644
19700
  const GiftCreateContainer = ({
19645
19701
  style,
@@ -19743,21 +19799,21 @@ const GiftCreateContainer = ({
19743
19799
  default:
19744
19800
  return state;
19745
19801
  }
19746
- }, initialState$6);
19802
+ }, initialState$7);
19747
19803
  return /*#__PURE__*/React__default.createElement("div", {
19748
19804
  style: { ...style
19749
19805
  },
19750
19806
  className: `pelcro-container pelcro-gift-create-container ${className}`
19751
- }, /*#__PURE__*/React__default.createElement(Provider$6, {
19807
+ }, /*#__PURE__*/React__default.createElement(Provider$7, {
19752
19808
  value: {
19753
19809
  state,
19754
19810
  dispatch
19755
19811
  }
19756
19812
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19757
- store: store$6,
19813
+ store: store$7,
19758
19814
  key: i
19759
19815
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19760
- store: store$6
19816
+ store: store$7
19761
19817
  })));
19762
19818
  };
19763
19819
 
@@ -19771,7 +19827,7 @@ const GiftCreateSubmitButton = ({
19771
19827
  state: {
19772
19828
  disableSubmit
19773
19829
  }
19774
- } = useContext(store$6);
19830
+ } = useContext(store$7);
19775
19831
  const {
19776
19832
  t
19777
19833
  } = useTranslation("register");
@@ -19788,15 +19844,15 @@ const GiftCreateSubmitButton = ({
19788
19844
 
19789
19845
  const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
19790
19846
  initWithUserEmail: false,
19791
- store: store$6
19847
+ store: store$7
19792
19848
  }, props));
19793
19849
 
19794
19850
  const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
19795
- store: store$6
19851
+ store: store$7
19796
19852
  }, props));
19797
19853
 
19798
19854
  const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
19799
- store: store$6
19855
+ store: store$7
19800
19856
  }, props));
19801
19857
 
19802
19858
  var _path$h;
@@ -19881,7 +19937,7 @@ const GiftCreateStartDate = props => {
19881
19937
  const {
19882
19938
  dispatch,
19883
19939
  state
19884
- } = useContext(store$6);
19940
+ } = useContext(store$7);
19885
19941
 
19886
19942
  const handleInputChange = value => {
19887
19943
  dispatch({
@@ -19954,7 +20010,7 @@ function GiftCreateMessage(props) {
19954
20010
  const {
19955
20011
  dispatch,
19956
20012
  state
19957
- } = useContext(store$6);
20013
+ } = useContext(store$7);
19958
20014
  const MAX_CHARS_COUNT = 200;
19959
20015
  const remainingCharsCount = (_ref = MAX_CHARS_COUNT - ((_state$giftMessage = state.giftMessage) === null || _state$giftMessage === void 0 ? void 0 : _state$giftMessage.length)) !== null && _ref !== void 0 ? _ref : 0;
19960
20016
 
@@ -20078,7 +20134,7 @@ const GiftCreateModal = ({
20078
20134
  };
20079
20135
  GiftCreateModal.viewId = "gift-create";
20080
20136
 
20081
- const initialState$5 = {
20137
+ const initialState$6 = {
20082
20138
  giftCode: "",
20083
20139
  buttonDisabled: true,
20084
20140
  alert: {
@@ -20086,10 +20142,10 @@ const initialState$5 = {
20086
20142
  content: ""
20087
20143
  }
20088
20144
  };
20089
- const store$5 = /*#__PURE__*/createContext(initialState$5);
20145
+ const store$6 = /*#__PURE__*/createContext(initialState$6);
20090
20146
  const {
20091
- Provider: Provider$5
20092
- } = store$5;
20147
+ Provider: Provider$6
20148
+ } = store$6;
20093
20149
 
20094
20150
  const GiftRedeemContainer = ({
20095
20151
  style,
@@ -20154,21 +20210,21 @@ const GiftRedeemContainer = ({
20154
20210
  default:
20155
20211
  return state;
20156
20212
  }
20157
- }, initialState$5);
20213
+ }, initialState$6);
20158
20214
  return /*#__PURE__*/React__default.createElement("div", {
20159
20215
  style: { ...style
20160
20216
  },
20161
20217
  className: `pelcro-container pelcro-gift-redeem-container ${className}`
20162
- }, /*#__PURE__*/React__default.createElement(Provider$5, {
20218
+ }, /*#__PURE__*/React__default.createElement(Provider$6, {
20163
20219
  value: {
20164
20220
  state,
20165
20221
  dispatch
20166
20222
  }
20167
20223
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
20168
- store: store$5,
20224
+ store: store$6,
20169
20225
  key: i
20170
20226
  })) : /*#__PURE__*/React__default.cloneElement(children, {
20171
- store: store$5
20227
+ store: store$6
20172
20228
  })));
20173
20229
  };
20174
20230
 
@@ -20205,7 +20261,7 @@ function GiftCode({
20205
20261
  }
20206
20262
 
20207
20263
  const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
20208
- store: store$5
20264
+ store: store$6
20209
20265
  }, props));
20210
20266
 
20211
20267
  const GiftRedeemSubmitButton = ({
@@ -20218,7 +20274,7 @@ const GiftRedeemSubmitButton = ({
20218
20274
  state: {
20219
20275
  disableSubmit
20220
20276
  }
20221
- } = useContext(store$5);
20277
+ } = useContext(store$6);
20222
20278
  const {
20223
20279
  t
20224
20280
  } = useTranslation("register");
@@ -20311,7 +20367,7 @@ const moveDefaultAddressToStart = addresses => {
20311
20367
  return [defaultAddress, ...addressesWithoutDefault];
20312
20368
  };
20313
20369
 
20314
- const initialState$4 = {
20370
+ const initialState$5 = {
20315
20371
  addresses: [],
20316
20372
  selectedAddressId: null,
20317
20373
  isSubmitting: false,
@@ -20320,10 +20376,10 @@ const initialState$4 = {
20320
20376
  content: ""
20321
20377
  }
20322
20378
  };
20323
- const store$4 = /*#__PURE__*/createContext(initialState$4);
20379
+ const store$5 = /*#__PURE__*/createContext(initialState$5);
20324
20380
  const {
20325
- Provider: Provider$4
20326
- } = store$4;
20381
+ Provider: Provider$5
20382
+ } = store$5;
20327
20383
 
20328
20384
  const AddressSelectContainer = ({
20329
20385
  style,
@@ -20418,7 +20474,7 @@ const AddressSelectContainer = ({
20418
20474
  default:
20419
20475
  return state;
20420
20476
  }
20421
- }, initialState$4);
20477
+ }, initialState$5);
20422
20478
  useEffect(() => {
20423
20479
  var _window$Pelcro$user$r;
20424
20480
 
@@ -20431,16 +20487,16 @@ const AddressSelectContainer = ({
20431
20487
  style: { ...style
20432
20488
  },
20433
20489
  className: `pelcro-container pelcro-address-select-container ${className}`
20434
- }, /*#__PURE__*/React__default.createElement(Provider$4, {
20490
+ }, /*#__PURE__*/React__default.createElement(Provider$5, {
20435
20491
  value: {
20436
20492
  state,
20437
20493
  dispatch
20438
20494
  }
20439
20495
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
20440
- store: store$4,
20496
+ store: store$5,
20441
20497
  key: i
20442
20498
  })) : /*#__PURE__*/React__default.cloneElement(children, {
20443
- store: store$4
20499
+ store: store$5
20444
20500
  })));
20445
20501
  };
20446
20502
 
@@ -20451,7 +20507,7 @@ const AddressSelectList = () => {
20451
20507
  addresses,
20452
20508
  selectedAddressId
20453
20509
  }
20454
- } = useContext(store$4);
20510
+ } = useContext(store$5);
20455
20511
 
20456
20512
  const handleAddressSelect = event => {
20457
20513
  dispatch({
@@ -20495,7 +20551,7 @@ const AddressSelectSubmit = ({
20495
20551
  selectedAddressId,
20496
20552
  isSubmitting
20497
20553
  }
20498
- } = useContext(store$4);
20554
+ } = useContext(store$5);
20499
20555
  const {
20500
20556
  t
20501
20557
  } = useTranslation("address");
@@ -20591,7 +20647,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
20591
20647
  return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
20592
20648
  };
20593
20649
 
20594
- const initialState$3 = {
20650
+ const initialState$4 = {
20595
20651
  paymentMethods: [],
20596
20652
  selectedPaymentMethodId: null,
20597
20653
  isSubmitting: false,
@@ -20600,10 +20656,10 @@ const initialState$3 = {
20600
20656
  content: ""
20601
20657
  }
20602
20658
  };
20603
- const store$3 = /*#__PURE__*/createContext(initialState$3);
20659
+ const store$4 = /*#__PURE__*/createContext(initialState$4);
20604
20660
  const {
20605
- Provider: Provider$3
20606
- } = store$3;
20661
+ Provider: Provider$4
20662
+ } = store$4;
20607
20663
 
20608
20664
  const PaymentMethodSelectContainer = ({
20609
20665
  style,
@@ -20662,7 +20718,7 @@ const PaymentMethodSelectContainer = ({
20662
20718
  default:
20663
20719
  return state;
20664
20720
  }
20665
- }, initialState$3);
20721
+ }, initialState$4);
20666
20722
  useEffect(() => {
20667
20723
  var _window$Pelcro$user$r3;
20668
20724
 
@@ -20675,16 +20731,16 @@ const PaymentMethodSelectContainer = ({
20675
20731
  style: { ...style
20676
20732
  },
20677
20733
  className: `pelcro-container pelcro-payment-select-container ${className}`
20678
- }, /*#__PURE__*/React__default.createElement(Provider$3, {
20734
+ }, /*#__PURE__*/React__default.createElement(Provider$4, {
20679
20735
  value: {
20680
20736
  state,
20681
20737
  dispatch
20682
20738
  }
20683
20739
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
20684
- store: store$3,
20740
+ store: store$4,
20685
20741
  key: i
20686
20742
  })) : /*#__PURE__*/React__default.cloneElement(children, {
20687
- store: store$3
20743
+ store: store$4
20688
20744
  })));
20689
20745
  };
20690
20746
 
@@ -20698,7 +20754,7 @@ const PaymentMethodSelectList = () => {
20698
20754
  paymentMethods,
20699
20755
  selectedPaymentMethodId
20700
20756
  }
20701
- } = useContext(store$3);
20757
+ } = useContext(store$4);
20702
20758
 
20703
20759
  const handlePaymentMethodSelect = event => {
20704
20760
  dispatch({
@@ -20748,7 +20804,7 @@ const PaymentMethodSelectSubmit = ({
20748
20804
  selectedPaymentMethodId,
20749
20805
  isSubmitting
20750
20806
  }
20751
- } = useContext(store$3);
20807
+ } = useContext(store$4);
20752
20808
  return /*#__PURE__*/React__default.createElement(Button, Object.assign({
20753
20809
  onClick: () => {
20754
20810
  dispatch({
@@ -23540,7 +23596,7 @@ const DashboardOpenButton = () => {
23540
23596
  };
23541
23597
  DashboardOpenButton.viewId = "dashboard-open";
23542
23598
 
23543
- const initialState$2 = {
23599
+ const initialState$3 = {
23544
23600
  imageSrc: null,
23545
23601
  crop: {
23546
23602
  x: 0,
@@ -23554,10 +23610,10 @@ const initialState$2 = {
23554
23610
  content: ""
23555
23611
  }
23556
23612
  };
23557
- const store$2 = /*#__PURE__*/createContext(initialState$2);
23613
+ const store$3 = /*#__PURE__*/createContext(initialState$3);
23558
23614
  const {
23559
- Provider: Provider$2
23560
- } = store$2;
23615
+ Provider: Provider$3
23616
+ } = store$3;
23561
23617
 
23562
23618
  const ProfilePicChangeContainer = ({
23563
23619
  style,
@@ -23691,21 +23747,21 @@ const ProfilePicChangeContainer = ({
23691
23747
  default:
23692
23748
  return state;
23693
23749
  }
23694
- }, initialState$2);
23750
+ }, initialState$3);
23695
23751
  return /*#__PURE__*/React__default.createElement("div", {
23696
23752
  style: { ...style
23697
23753
  },
23698
23754
  className: `pelcro-container pelcro-profile-picture-container ${className}`
23699
- }, /*#__PURE__*/React__default.createElement(Provider$2, {
23755
+ }, /*#__PURE__*/React__default.createElement(Provider$3, {
23700
23756
  value: {
23701
23757
  state,
23702
23758
  dispatch
23703
23759
  }
23704
23760
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
23705
- store: store$2,
23761
+ store: store$3,
23706
23762
  key: i
23707
23763
  })) : /*#__PURE__*/React__default.cloneElement(children, {
23708
- store: store$2
23764
+ store: store$3
23709
23765
  })));
23710
23766
  };
23711
23767
  /**
@@ -23767,7 +23823,7 @@ const ProfilePicChangeButton = ({
23767
23823
  isSubmitting
23768
23824
  },
23769
23825
  dispatch
23770
- } = useContext(store$2);
23826
+ } = useContext(store$3);
23771
23827
  const {
23772
23828
  t
23773
23829
  } = useTranslation("userEdit");
@@ -25135,7 +25191,7 @@ const ProfilePicChangeCropper = ({
25135
25191
  zoom
25136
25192
  },
25137
25193
  dispatch
25138
- } = useContext(store$2);
25194
+ } = useContext(store$3);
25139
25195
  return /*#__PURE__*/React__default.createElement("div", {
25140
25196
  className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
25141
25197
  }, /*#__PURE__*/React__default.createElement(Cropper, Object.assign({
@@ -25177,7 +25233,7 @@ const ProfilePicChangeZoom = ({
25177
25233
  zoom
25178
25234
  },
25179
25235
  dispatch
25180
- } = useContext(store$2);
25236
+ } = useContext(store$3);
25181
25237
  const {
25182
25238
  t
25183
25239
  } = useTranslation("userEdit");
@@ -25229,7 +25285,7 @@ const ProfilePicChangeSelectButton = ({
25229
25285
  state: {
25230
25286
  isSubmitting
25231
25287
  }
25232
- } = useContext(store$2);
25288
+ } = useContext(store$3);
25233
25289
  const {
25234
25290
  t
25235
25291
  } = useTranslation("userEdit");
@@ -25271,7 +25327,7 @@ const ProfilePicChangeRemoveButton = ({
25271
25327
  state: {
25272
25328
  isSubmitting
25273
25329
  }
25274
- } = useContext(store$2);
25330
+ } = useContext(store$3);
25275
25331
  const {
25276
25332
  t
25277
25333
  } = useTranslation("userEdit");
@@ -25294,7 +25350,7 @@ const ProfilePicChangeWrapper = () => {
25294
25350
  state: {
25295
25351
  imageSrc
25296
25352
  }
25297
- } = useContext(store$2);
25353
+ } = useContext(store$3);
25298
25354
  const {
25299
25355
  t
25300
25356
  } = useTranslation("userEdit");
@@ -25356,17 +25412,17 @@ function ProfilePicChangeModal({
25356
25412
  }
25357
25413
  ProfilePicChangeModal.viewId = "profile-picture";
25358
25414
 
25359
- const initialState$1 = {
25415
+ const initialState$2 = {
25360
25416
  isSubmitting: false,
25361
25417
  alert: {
25362
25418
  type: "error",
25363
25419
  content: ""
25364
25420
  }
25365
25421
  };
25366
- const store$1 = /*#__PURE__*/createContext(initialState$1);
25422
+ const store$2 = /*#__PURE__*/createContext(initialState$2);
25367
25423
  const {
25368
- Provider: Provider$1
25369
- } = store$1;
25424
+ Provider: Provider$2
25425
+ } = store$2;
25370
25426
 
25371
25427
  const EmailVerifyContainer = ({
25372
25428
  style,
@@ -25429,21 +25485,21 @@ const EmailVerifyContainer = ({
25429
25485
  default:
25430
25486
  return state;
25431
25487
  }
25432
- }, initialState$1);
25488
+ }, initialState$2);
25433
25489
  return /*#__PURE__*/React__default.createElement("div", {
25434
25490
  style: { ...style
25435
25491
  },
25436
25492
  className: `pelcro-container pelcro-email-verify-container ${className}`
25437
- }, /*#__PURE__*/React__default.createElement(Provider$1, {
25493
+ }, /*#__PURE__*/React__default.createElement(Provider$2, {
25438
25494
  value: {
25439
25495
  state,
25440
25496
  dispatch
25441
25497
  }
25442
25498
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
25443
- store: store$1,
25499
+ store: store$2,
25444
25500
  key: i
25445
25501
  })) : /*#__PURE__*/React__default.cloneElement(children, {
25446
- store: store$1
25502
+ store: store$2
25447
25503
  })));
25448
25504
  };
25449
25505
 
@@ -25457,7 +25513,7 @@ const EmailVerifyResendButton = ({
25457
25513
  state: {
25458
25514
  isSubmitting
25459
25515
  }
25460
- } = useContext(store$1);
25516
+ } = useContext(store$2);
25461
25517
  const {
25462
25518
  t
25463
25519
  } = useTranslation("verifyEmail");
@@ -25532,6 +25588,167 @@ const EmailVerifyModal = ({
25532
25588
  };
25533
25589
  EmailVerifyModal.viewId = "email-verify";
25534
25590
 
25591
+ const initialState$1 = {
25592
+ isLoading: true,
25593
+ isTokenValid: false,
25594
+ alert: {
25595
+ type: "error",
25596
+ content: ""
25597
+ }
25598
+ };
25599
+ const store$1 = /*#__PURE__*/createContext(initialState$1);
25600
+ const {
25601
+ Provider: Provider$1
25602
+ } = store$1;
25603
+
25604
+ const VerifyLinkTokenContainer = ({
25605
+ style,
25606
+ className = "",
25607
+ onSuccess = () => {},
25608
+ onFailure = () => {},
25609
+ children
25610
+ }) => {
25611
+ const handleVerifyLinkToken = ({}, dispatch) => {
25612
+ const token = window.Pelcro.helpers.getURLParameter("token");
25613
+ window.Pelcro.user.verifyLoginToken({
25614
+ token
25615
+ }, (err, res) => {
25616
+ dispatch({
25617
+ type: LOADING,
25618
+ payload: false
25619
+ });
25620
+
25621
+ if (err) {
25622
+ dispatch({
25623
+ type: SHOW_ALERT,
25624
+ payload: {
25625
+ type: "error",
25626
+ content: getErrorMessages(err)
25627
+ }
25628
+ });
25629
+ onFailure(err);
25630
+ } else {
25631
+ onSuccess(res);
25632
+ }
25633
+ });
25634
+ };
25635
+
25636
+ const [state, dispatch] = useReducerWithSideEffects((state, action) => {
25637
+ switch (action.type) {
25638
+ case SHOW_ALERT:
25639
+ return lib_7({ ...state,
25640
+ alert: action.payload
25641
+ });
25642
+
25643
+ case LOADING:
25644
+ return lib_7({ ...state,
25645
+ isLoading: action.payload
25646
+ });
25647
+
25648
+ case LINK_TOKEN_VERIFY:
25649
+ return lib_5({ ...state,
25650
+ isLoading: true
25651
+ }, (state, dispatch) => handleVerifyLinkToken(state, dispatch));
25652
+
25653
+ default:
25654
+ return state;
25655
+ }
25656
+ }, initialState$1);
25657
+ return /*#__PURE__*/React__default.createElement("div", {
25658
+ style: { ...style
25659
+ },
25660
+ className: `pelcro-container pelcro-login-container ${className}`
25661
+ }, /*#__PURE__*/React__default.createElement(Provider$1, {
25662
+ value: {
25663
+ state,
25664
+ dispatch
25665
+ }
25666
+ }, children.length ? children.map((child, i) => {
25667
+ if (child) {
25668
+ return /*#__PURE__*/React__default.cloneElement(child, {
25669
+ store: store$1,
25670
+ key: i
25671
+ });
25672
+ }
25673
+ }) : /*#__PURE__*/React__default.cloneElement(children, {
25674
+ store: store$1
25675
+ })));
25676
+ };
25677
+
25678
+ const VerifyLinkTokenLoader = () => {
25679
+ useEffect(() => {
25680
+ dispatch({
25681
+ type: LINK_TOKEN_VERIFY
25682
+ });
25683
+ }, []);
25684
+ const {
25685
+ dispatch,
25686
+ state: {
25687
+ isLoading
25688
+ }
25689
+ } = useContext(store$1);
25690
+
25691
+ if (isLoading) {
25692
+ return /*#__PURE__*/React__default.createElement(Loader, {
25693
+ width: 60,
25694
+ height: 100
25695
+ });
25696
+ }
25697
+
25698
+ return /*#__PURE__*/React__default.createElement("div", {
25699
+ className: "plc-max-h-80 plc-overflow-y-auto pelcro-newsletters-wrapper"
25700
+ });
25701
+ };
25702
+
25703
+ /**
25704
+ *
25705
+ */
25706
+
25707
+ function VerifyLinkTokenView(props) {
25708
+ const {
25709
+ t
25710
+ } = useTranslation("verifyLinkToken");
25711
+ return /*#__PURE__*/React__default.createElement("div", {
25712
+ id: "pelcro-login-view"
25713
+ }, /*#__PURE__*/React__default.createElement("div", {
25714
+ className: "plc-mb-6 plc-text-2xl plc-font-semibold plc-text-center plc-text-gray-900 pelcro-title-wrapper"
25715
+ }, /*#__PURE__*/React__default.createElement("h4", null, t("labels.title"))), /*#__PURE__*/React__default.createElement("form", {
25716
+ action: "javascript:void(0);",
25717
+ className: "plc-mt-2 pelcro-form"
25718
+ }, /*#__PURE__*/React__default.createElement(VerifyLinkTokenContainer, props, /*#__PURE__*/React__default.createElement(VerifyLinkTokenLoader, null), /*#__PURE__*/React__default.createElement(AlertWithContext, null))));
25719
+ }
25720
+
25721
+ /**
25722
+ *
25723
+ */
25724
+
25725
+ function VerifyLinkTokenModal({
25726
+ onDisplay,
25727
+ onClose,
25728
+ ...props
25729
+ }) {
25730
+ useTranslation("verifyLinkToken");
25731
+ const {
25732
+ resetView
25733
+ } = usePelcro();
25734
+
25735
+ const onSuccess = res => {
25736
+ var _props$onSuccess;
25737
+
25738
+ (_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
25739
+ resetView();
25740
+ };
25741
+
25742
+ return /*#__PURE__*/React__default.createElement(Modal, {
25743
+ id: "pelcro-login-modal",
25744
+ onDisplay: onDisplay,
25745
+ onClose: onClose
25746
+ }, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(VerifyLinkTokenView, Object.assign({}, props, {
25747
+ onSuccess: onSuccess
25748
+ }))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
25749
+ }
25750
+ VerifyLinkTokenModal.viewId = "passwordless-login";
25751
+
25535
25752
  const InvoicePaymentContainer = props => /*#__PURE__*/React__default.createElement(PaymentMethodContainer, Object.assign({
25536
25753
  type: "invoicePayment",
25537
25754
  className: "pelcro-invoice-payment-container"
@@ -25763,4 +25980,4 @@ const InvoiceDetailsModal = ({
25763
25980
  };
25764
25981
  InvoiceDetailsModal.viewId = "invoice-details";
25765
25982
 
25766
- export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
25983
+ export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };