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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -8583,7 +8583,7 @@ const createPelcroHook = store => {
8583
8583
 
8584
8584
  pelcroHook.override = fn => {
8585
8585
  const partialState = fn(store.setState, store.getState);
8586
- usePelcro.setState(partialState);
8586
+ usePelcro$1.setState(partialState);
8587
8587
  };
8588
8588
 
8589
8589
  pelcroHook.getStore = pelcroHook.getState;
@@ -8591,11 +8591,11 @@ const createPelcroHook = store => {
8591
8591
  };
8592
8592
 
8593
8593
  const pelcroStore = createPelcroStore();
8594
- const usePelcro = createPelcroHook(pelcroStore);
8594
+ const usePelcro$1 = createPelcroHook(pelcroStore);
8595
8595
  /* istanbul ignore next */
8596
8596
 
8597
8597
  if (process.env.NODE_ENV === "development") {
8598
- c$1("Pelcro Store", usePelcro);
8598
+ c$1("Pelcro Store", usePelcro$1);
8599
8599
  }
8600
8600
 
8601
8601
  /**
@@ -8800,7 +8800,7 @@ const trackSubscriptionOnGA = () => {
8800
8800
  product,
8801
8801
  plan,
8802
8802
  couponCode
8803
- } = usePelcro.getStore();
8803
+ } = usePelcro$1.getStore();
8804
8804
  /*
8805
8805
  getting the latest subscription id from invoices instead of subscriptions
8806
8806
  to handle gifted subs which are not added to subs list
@@ -9120,7 +9120,7 @@ class SaveToMetadataButtonClass {
9120
9120
  _defineProperty$3(this, "unauthenticated", () => {
9121
9121
  const {
9122
9122
  switchView
9123
- } = usePelcro.getStore();
9123
+ } = usePelcro$1.getStore();
9124
9124
 
9125
9125
  _classPrivateFieldGet(this, _onClick).call(this, () => switchView("login"));
9126
9126
 
@@ -9203,7 +9203,7 @@ class SaveToMetadataButtonClass {
9203
9203
  const user = window.Pelcro.user.read();
9204
9204
  const {
9205
9205
  switchView
9206
- } = usePelcro.getStore();
9206
+ } = usePelcro$1.getStore();
9207
9207
  const {
9208
9208
  key,
9209
9209
  ...buttonMetadata
@@ -10339,7 +10339,7 @@ const init$1 = () => {
10339
10339
  addToCart,
10340
10340
  purchaseItem,
10341
10341
  setSubscriptionToManageMembers
10342
- } = usePelcro.getStore();
10342
+ } = usePelcro$1.getStore();
10343
10343
  const pelcroDashboardButtonsByClass = document.getElementsByClassName("pelcro-dashboard-button");
10344
10344
 
10345
10345
  if (pelcroDashboardButtonsByClass.length !== 0) {
@@ -10642,7 +10642,7 @@ const init = () => {
10642
10642
  const {
10643
10643
  switchView,
10644
10644
  set
10645
- } = usePelcro.getStore();
10645
+ } = usePelcro$1.getStore();
10646
10646
  const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
10647
10647
 
10648
10648
  if (entitlementsProtectedElements.length === 0) {
@@ -10731,7 +10731,7 @@ function unblurElemWhenUserSubscribes(elem, entitlements) {
10731
10731
  document.addEventListener("PelcroSubscriptionCreate", event => {
10732
10732
  const {
10733
10733
  isGift
10734
- } = usePelcro.getStore();
10734
+ } = usePelcro$1.getStore();
10735
10735
  if (isGift) return;
10736
10736
  const latestSub = event.detail.data.subscriptions[event.detail.data.subscriptions.length - 1];
10737
10737
  const shouldUnblurContent = entitlements.some(ent => {
@@ -11053,7 +11053,7 @@ const initPaywalls = () => {
11053
11053
 
11054
11054
  const {
11055
11055
  switchView
11056
- } = usePelcro.getStore();
11056
+ } = usePelcro$1.getStore();
11057
11057
 
11058
11058
  if (paywallMethods !== null && paywallMethods !== void 0 && paywallMethods.displayMeterPaywall()) {
11059
11059
  /*
@@ -11075,7 +11075,7 @@ const loadPaymentSDKs = () => {
11075
11075
  // Lazy load stripe's SDK
11076
11076
  const {
11077
11077
  whenUserReady
11078
- } = usePelcro.getStore();
11078
+ } = usePelcro$1.getStore();
11079
11079
  whenUserReady(() => {
11080
11080
  if (!window.Stripe) {
11081
11081
  pure_1(window.Pelcro.environment.stripe);
@@ -11123,7 +11123,7 @@ const loadAuth0SDK = () => {
11123
11123
  const initSecuritySdk = () => {
11124
11124
  const {
11125
11125
  whenSiteReady
11126
- } = usePelcro.getStore();
11126
+ } = usePelcro$1.getStore();
11127
11127
  whenSiteReady(() => {
11128
11128
  var _window$Pelcro$site$r2;
11129
11129
 
@@ -11159,7 +11159,7 @@ const dispatchModalDisplayEvents = modalName => {
11159
11159
  const {
11160
11160
  whenSiteReady,
11161
11161
  whenEcommerceLoaded
11162
- } = usePelcro.getStore();
11162
+ } = usePelcro$1.getStore();
11163
11163
  const renderShopView = shopComponent => {
11164
11164
  whenEcommerceLoaded(() => {
11165
11165
  const shopElement = document.getElementById("pelcro-shop");
@@ -11241,7 +11241,7 @@ const initViewFromURL = () => {
11241
11241
  const {
11242
11242
  switchView,
11243
11243
  whenSiteReady
11244
- } = usePelcro.getStore();
11244
+ } = usePelcro$1.getStore();
11245
11245
 
11246
11246
  if (isValidViewFromURL(view)) {
11247
11247
  whenSiteReady(() => {
@@ -11299,7 +11299,7 @@ const initSubscriptionFromURL = () => {
11299
11299
  switchView,
11300
11300
  whenSiteReady,
11301
11301
  set
11302
- } = usePelcro.getStore();
11302
+ } = usePelcro$1.getStore();
11303
11303
  whenSiteReady(() => {
11304
11304
  var _selectedProduct$plan;
11305
11305
 
@@ -11323,7 +11323,7 @@ const initSubscriptionFromURL = () => {
11323
11323
  isAuthenticated,
11324
11324
  switchToAddressView,
11325
11325
  switchToPaymentView
11326
- } = usePelcro.getStore();
11326
+ } = usePelcro$1.getStore();
11327
11327
 
11328
11328
  if (!isAuthenticated()) {
11329
11329
  return switchView("register");
@@ -11355,7 +11355,7 @@ const initOfflineSubscriptionFromURL = offlinePlanId => {
11355
11355
  switchToPaymentView,
11356
11356
  switchToAddressView,
11357
11357
  set
11358
- } = usePelcro.getStore();
11358
+ } = usePelcro$1.getStore();
11359
11359
  whenSiteReady(() => {
11360
11360
  window.Pelcro.plan.getPlan({
11361
11361
  plan_id: offlinePlanId
@@ -11402,7 +11402,7 @@ const initPurchaseFromUrl = () => {
11402
11402
  const {
11403
11403
  whenEcommerceLoaded,
11404
11404
  purchaseItem
11405
- } = usePelcro.getStore();
11405
+ } = usePelcro$1.getStore();
11406
11406
  whenEcommerceLoaded(() => {
11407
11407
  const skuId = window.Pelcro.helpers.getURLParameter("sku_id");
11408
11408
  purchaseItem(skuId);
@@ -11418,7 +11418,7 @@ const initCartFromUrl = () => {
11418
11418
  whenEcommerceLoaded,
11419
11419
  addToCart,
11420
11420
  switchView
11421
- } = usePelcro.getStore();
11421
+ } = usePelcro$1.getStore();
11422
11422
  whenEcommerceLoaded(() => {
11423
11423
  const skusIdsParam = window.Pelcro.helpers.getURLParameter("sku_id");
11424
11424
  const skusIds = skusIdsParam === null || skusIdsParam === void 0 ? void 0 : skusIdsParam.split(",");
@@ -11439,7 +11439,7 @@ const verifyEmailTokenFromUrl = () => {
11439
11439
 
11440
11440
  const {
11441
11441
  whenSiteReady
11442
- } = usePelcro.getStore();
11442
+ } = usePelcro$1.getStore();
11443
11443
  const translations = i18next.t("verifyEmail:messages", {
11444
11444
  returnObjects: true
11445
11445
  });
@@ -11468,7 +11468,7 @@ const verifyLinkTokenFromUrl = () => {
11468
11468
  whenSiteReady,
11469
11469
  resetView,
11470
11470
  isAuthenticated
11471
- } = usePelcro.getStore();
11471
+ } = usePelcro$1.getStore();
11472
11472
  const translations = i18next.t("verifyLinkToken:messages", {
11473
11473
  returnObjects: true
11474
11474
  });
@@ -11507,12 +11507,12 @@ const showPasswordlessRequestFromUrl = () => {
11507
11507
 
11508
11508
  const {
11509
11509
  isAuthenticated
11510
- } = usePelcro.getStore();
11510
+ } = usePelcro$1.getStore();
11511
11511
  const passwordlessEnabled = (_window$Pelcro$site$r8 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r8 === void 0 ? void 0 : _window$Pelcro$site$r8.passwordless_enabled;
11512
11512
  if (!passwordlessEnabled || isAuthenticated()) return;
11513
11513
  const {
11514
11514
  switchView
11515
- } = usePelcro.getStore();
11515
+ } = usePelcro$1.getStore();
11516
11516
  return switchView("passwordless-request");
11517
11517
  };
11518
11518
 
@@ -11523,7 +11523,7 @@ const showInvoiceDetailsFromUrl = () => {
11523
11523
  whenUserReady,
11524
11524
  whenSiteReady,
11525
11525
  switchView
11526
- } = usePelcro.getStore();
11526
+ } = usePelcro$1.getStore();
11527
11527
  whenSiteReady(() => {
11528
11528
  if (!isAuthenticated()) {
11529
11529
  return switchView("login");
@@ -11542,7 +11542,7 @@ const showInvoiceDetailsFromUrl = () => {
11542
11542
 
11543
11543
  const {
11544
11544
  invoice
11545
- } = usePelcro.getStore();
11545
+ } = usePelcro$1.getStore();
11546
11546
 
11547
11547
  if (invoice.total === 0) {
11548
11548
  const errorMessage = i18next.t("messages:zeroTotalInvoice", {
@@ -11563,7 +11563,7 @@ const showSubscriptionManageMembersFromUrl = () => {
11563
11563
  whenUserReady,
11564
11564
  whenSiteReady,
11565
11565
  switchView
11566
- } = usePelcro.getStore();
11566
+ } = usePelcro$1.getStore();
11567
11567
  whenSiteReady(() => {
11568
11568
  if (!isAuthenticated()) {
11569
11569
  return switchView("login");
@@ -11603,7 +11603,7 @@ const PelcroModalController = ({
11603
11603
  view,
11604
11604
  isAuthenticated,
11605
11605
  whenSiteReady
11606
- } = usePelcro();
11606
+ } = usePelcro$1();
11607
11607
  React__default.useEffect(() => {
11608
11608
  init$1();
11609
11609
  renderShopView(React__default.Children.map(children, child => child).find(({
@@ -13364,7 +13364,7 @@ function Modal({
13364
13364
  }) {
13365
13365
  var _window$Pelcro, _window$Pelcro$site$r;
13366
13366
 
13367
- const resetView = usePelcro(state => state.resetView);
13367
+ const resetView = usePelcro$1(state => state.resetView);
13368
13368
  useEffect(() => {
13369
13369
  onDisplay === null || onDisplay === void 0 ? void 0 : onDisplay();
13370
13370
  dispatchModalDisplayEvents(id);
@@ -13437,8 +13437,11 @@ function LoginModal({
13437
13437
  const {
13438
13438
  switchView,
13439
13439
  resetView,
13440
- invoice
13441
- } = usePelcro();
13440
+ product,
13441
+ plan,
13442
+ switchToAddressView,
13443
+ switchToPaymentView
13444
+ } = usePelcro$1();
13442
13445
 
13443
13446
  const onSuccess = res => {
13444
13447
  var _props$onSuccess;
@@ -13449,10 +13452,19 @@ function LoginModal({
13449
13452
  initPaywalls();
13450
13453
  }
13451
13454
 
13455
+ if (product && plan) {
13456
+ if (product.address_required) {
13457
+ return switchToAddressView();
13458
+ } else {
13459
+ return switchToPaymentView();
13460
+ }
13461
+ }
13462
+
13452
13463
  resetView();
13453
13464
  const viewFromURL = getStableViewID(window.Pelcro.helpers.getURLParameter("view"));
13465
+ const viewsURLs = ["invoice-details", "gift-redeem", "plan-select"];
13454
13466
 
13455
- if (viewFromURL === "invoice-details" || viewFromURL === "gift-redeem") {
13467
+ if (viewsURLs.includes(viewFromURL)) {
13456
13468
  initViewFromURL();
13457
13469
  }
13458
13470
  };
@@ -13775,7 +13787,7 @@ function RegisterView(props) {
13775
13787
  } = useTranslation("register");
13776
13788
  const {
13777
13789
  product
13778
- } = usePelcro();
13790
+ } = usePelcro$1();
13779
13791
  const title = (_product$paywall$regi = product === null || product === void 0 ? void 0 : (_product$paywall = product.paywall) === null || _product$paywall === void 0 ? void 0 : _product$paywall.register_title) !== null && _product$paywall$regi !== void 0 ? _product$paywall$regi : t("title");
13780
13792
  const subtitle = (_product$paywall$regi2 = product === null || product === void 0 ? void 0 : (_product$paywall2 = product.paywall) === null || _product$paywall2 === void 0 ? void 0 : _product$paywall2.register_subtitle) !== null && _product$paywall$regi2 !== void 0 ? _product$paywall$regi2 : t("subtitle");
13781
13793
  const socialLoginEnabled = ((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.facebook_app_id) || ((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.google_app_id) || ((_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.auth0_client_id);
@@ -14006,7 +14018,7 @@ function RegisterModal(props) {
14006
14018
  order,
14007
14019
  giftCode,
14008
14020
  isGift
14009
- } = usePelcro();
14021
+ } = usePelcro$1();
14010
14022
 
14011
14023
  const onSuccess = res => {
14012
14024
  var _props$onSuccess;
@@ -14128,7 +14140,7 @@ function SelectModalWithHook(props) {
14128
14140
  resetView,
14129
14141
  view,
14130
14142
  set
14131
- } = usePelcro();
14143
+ } = usePelcro$1();
14132
14144
  const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
14133
14145
  const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
14134
14146
  return /*#__PURE__*/React__default.createElement(SelectModalWithTrans, {
@@ -14400,7 +14412,7 @@ class SelectModal extends Component {
14400
14412
  const {
14401
14413
  switchToAddressView,
14402
14414
  switchToPaymentView
14403
- } = usePelcro.getStore();
14415
+ } = usePelcro$1.getStore();
14404
14416
 
14405
14417
  if (!isAuthenticated) {
14406
14418
  return setView("register");
@@ -16603,16 +16615,16 @@ const PaymentMethodContainerWithoutStripe = ({
16603
16615
  const {
16604
16616
  t
16605
16617
  } = useTranslation("payment");
16606
- const pelcroStore = usePelcro();
16618
+ const pelcroStore = usePelcro$1();
16607
16619
  const {
16608
16620
  set,
16609
16621
  order,
16610
16622
  selectedPaymentMethodId,
16611
16623
  couponCode
16612
- } = usePelcro();
16624
+ } = usePelcro$1();
16613
16625
  const {
16614
16626
  whenUserReady
16615
- } = usePelcro.getStore();
16627
+ } = usePelcro$1.getStore();
16616
16628
  const product = (_props$product = props.product) !== null && _props$product !== void 0 ? _props$product : pelcroStore.product;
16617
16629
  const plan = (_props$plan = props.plan) !== null && _props$plan !== void 0 ? _props$plan : pelcroStore.plan;
16618
16630
  const subscriptionIdToRenew = (_props$subscriptionId = props.subscriptionIdToRenew) !== null && _props$subscriptionId !== void 0 ? _props$subscriptionId : pelcroStore.subscriptionIdToRenew;
@@ -18292,7 +18304,7 @@ const PaymentMethodContainer = props => {
18292
18304
  const [isStripeLoaded, setIsStripeLoaded] = useState(Boolean(window.Stripe));
18293
18305
  const {
18294
18306
  whenUserReady
18295
- } = usePelcro.getStore();
18307
+ } = usePelcro$1.getStore();
18296
18308
  useEffect(() => {
18297
18309
  whenUserReady(() => {
18298
18310
  if (!window.Stripe) {
@@ -18393,7 +18405,7 @@ const PelcroPaymentRequestButton = props => {
18393
18405
  const CheckoutForm = () => {
18394
18406
  const {
18395
18407
  selectedPaymentMethodId
18396
- } = usePelcro();
18408
+ } = usePelcro$1();
18397
18409
  const cardProcessor = getSiteCardProcessor();
18398
18410
 
18399
18411
  if (selectedPaymentMethodId) {
@@ -18448,7 +18460,7 @@ const DiscountedPrice = props => {
18448
18460
  const {
18449
18461
  order,
18450
18462
  plan
18451
- } = usePelcro();
18463
+ } = usePelcro$1();
18452
18464
  const isTaxInclusive = (_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$r.tax_inclusive;
18453
18465
  const ecommOrderCurrency = (_order$currency = order === null || order === void 0 ? void 0 : order.currency) !== null && _order$currency !== void 0 ? _order$currency : order === null || order === void 0 ? void 0 : (_order$ = order[0]) === null || _order$ === void 0 ? void 0 : _order$.currency;
18454
18466
  const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
@@ -18484,7 +18496,7 @@ const SubmitPaymentMethod = ({
18484
18496
 
18485
18497
  const {
18486
18498
  plan
18487
- } = usePelcro();
18499
+ } = usePelcro$1();
18488
18500
  const {
18489
18501
  t
18490
18502
  } = useTranslation("checkoutForm");
@@ -18916,7 +18928,7 @@ const PaypalSubscribeButton = props => {
18916
18928
  plan,
18917
18929
  invoice,
18918
18930
  selectedAddressId
18919
- } = usePelcro();
18931
+ } = usePelcro$1();
18920
18932
  useEffect(() => {
18921
18933
  var _ref, _ref2, _state$updatedPrice, _props$plan, _props$selectedAddres;
18922
18934
 
@@ -19058,7 +19070,7 @@ const SelectedPaymentMethod = () => {
19058
19070
  const {
19059
19071
  switchView,
19060
19072
  selectedPaymentMethodId
19061
- } = usePelcro();
19073
+ } = usePelcro$1();
19062
19074
  const paymentMethod = (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : (_window$Pelcro$user$r2 = _window$Pelcro$user$r.sources) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : (_window$Pelcro$user$r3 = _window$Pelcro$user$r2.find) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.call(_window$Pelcro$user$r2, source => {
19063
19075
  return source.id == selectedPaymentMethodId;
19064
19076
  });
@@ -19099,7 +19111,7 @@ const TaxAmount = () => {
19099
19111
  } = useContext(store$k);
19100
19112
  const {
19101
19113
  plan
19102
- } = usePelcro();
19114
+ } = usePelcro$1();
19103
19115
  const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
19104
19116
  const priceFormatted = getFormattedPriceByLocal(taxAmount * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
19105
19117
  const isTaxInclusive = (_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$r.tax_inclusive;
@@ -19245,7 +19257,7 @@ const SubscriptionRenewView = ({
19245
19257
  const {
19246
19258
  product,
19247
19259
  plan
19248
- } = usePelcro();
19260
+ } = usePelcro$1();
19249
19261
  const skipPayment = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.skipPaymentForFreePlans;
19250
19262
  const showSubscriptionButton = skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0;
19251
19263
 
@@ -19300,7 +19312,7 @@ function SubscriptionRenewModal({
19300
19312
  }) {
19301
19313
  const {
19302
19314
  switchView
19303
- } = usePelcro();
19315
+ } = usePelcro$1();
19304
19316
 
19305
19317
  const onSuccess = res => {
19306
19318
  var _otherProps$onSuccess, _ReactGA$event;
@@ -19505,7 +19517,7 @@ const SubscriptionCancelNowButton = ({
19505
19517
  }) => {
19506
19518
  const {
19507
19519
  switchView
19508
- } = usePelcro();
19520
+ } = usePelcro$1();
19509
19521
  const {
19510
19522
  state: {
19511
19523
  cancelationReason
@@ -19577,7 +19589,7 @@ const SubscriptionCancelLaterButton = ({
19577
19589
  }) => {
19578
19590
  const {
19579
19591
  switchView
19580
- } = usePelcro();
19592
+ } = usePelcro$1();
19581
19593
  const {
19582
19594
  state: {
19583
19595
  cancelationReason
@@ -19645,7 +19657,7 @@ const SubscriptionCancelLaterButton = ({
19645
19657
  const SubscriptionCancelView = props => {
19646
19658
  const {
19647
19659
  subscriptionToCancel
19648
- } = usePelcro();
19660
+ } = usePelcro$1();
19649
19661
  const {
19650
19662
  t
19651
19663
  } = useTranslation("subscriptionCancel");
@@ -19819,7 +19831,7 @@ const SubscriptionSuspendButton = ({
19819
19831
  }) => {
19820
19832
  const {
19821
19833
  switchView
19822
- } = usePelcro();
19834
+ } = usePelcro$1();
19823
19835
  const {
19824
19836
  state: {
19825
19837
  suspendDate,
@@ -19883,7 +19895,7 @@ const SubscriptionSuspendButton = ({
19883
19895
  const SubscriptionSuspendView = props => {
19884
19896
  const {
19885
19897
  subscriptionToSuspend
19886
- } = usePelcro();
19898
+ } = usePelcro$1();
19887
19899
  const {
19888
19900
  t
19889
19901
  } = useTranslation("subscriptionSuspend");
@@ -19976,7 +19988,7 @@ const getCurrentFlow = () => {
19976
19988
  giftRecipient,
19977
19989
  giftCode,
19978
19990
  invoice
19979
- } = usePelcro.getStore();
19991
+ } = usePelcro$1.getStore();
19980
19992
 
19981
19993
  if (invoice) {
19982
19994
  return "invoicePayment";
@@ -19995,7 +20007,7 @@ const getSuccessContent = i18n => {
19995
20007
  const flow = getCurrentFlow();
19996
20008
  const {
19997
20009
  product
19998
- } = usePelcro.getStore();
20010
+ } = usePelcro$1.getStore();
19999
20011
  const wordingDictionary = {
20000
20012
  subscriptionSuccess: {
20001
20013
  successIcon: /*#__PURE__*/React__default.createElement(SvgCheckSolid, {
@@ -20039,7 +20051,7 @@ function PaymentSuccessModal({
20039
20051
  }) {
20040
20052
  const {
20041
20053
  resetView
20042
- } = usePelcro();
20054
+ } = usePelcro$1();
20043
20055
 
20044
20056
  const onClose = () => {
20045
20057
  var _props$onClose;
@@ -20072,7 +20084,7 @@ function NewsletterWithHook(props) {
20072
20084
  switchView,
20073
20085
  resetView,
20074
20086
  product
20075
- } = usePelcro();
20087
+ } = usePelcro$1();
20076
20088
  return /*#__PURE__*/React__default.createElement(NewsLetter, {
20077
20089
  onClose: () => {
20078
20090
  var _props$onClose;
@@ -20571,7 +20583,7 @@ const MeterView = () => {
20571
20583
  switchView,
20572
20584
  product,
20573
20585
  isAuthenticated
20574
- } = usePelcro();
20586
+ } = usePelcro$1();
20575
20587
  const paywallProduct = product !== null && product !== void 0 ? product : window.Pelcro.paywall.getProduct();
20576
20588
  const visitsLeft = window.Pelcro.paywall.freeVisitsLeft();
20577
20589
  const title = `${paywallProduct === null || paywallProduct === void 0 ? void 0 : (_paywallProduct$paywa = paywallProduct.paywall) === null || _paywallProduct$paywa === void 0 ? void 0 : _paywallProduct$paywa.meter_title}: ${visitsLeft}`;
@@ -20593,7 +20605,7 @@ const MeterView = () => {
20593
20605
  const MeterModal = props => {
20594
20606
  const {
20595
20607
  resetView
20596
- } = usePelcro();
20608
+ } = usePelcro$1();
20597
20609
  useEffect(() => {
20598
20610
  var _props$onDisplay;
20599
20611
 
@@ -20631,7 +20643,7 @@ const SubscriptionCreateView = ({
20631
20643
  const {
20632
20644
  product,
20633
20645
  plan
20634
- } = usePelcro();
20646
+ } = usePelcro$1();
20635
20647
  const skipPayment = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.skipPaymentForFreePlans;
20636
20648
  const showSubscriptionButton = skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0;
20637
20649
 
@@ -20689,7 +20701,7 @@ function SubscriptionCreateModal({
20689
20701
  useTranslation("common");
20690
20702
  const {
20691
20703
  switchView
20692
- } = usePelcro();
20704
+ } = usePelcro$1();
20693
20705
 
20694
20706
  const onSuccess = res => {
20695
20707
  var _otherProps$onSuccess;
@@ -20735,7 +20747,7 @@ const SubscriptionManageMembersContainer = ({
20735
20747
  }) => {
20736
20748
  const {
20737
20749
  subscriptionToManageMembers
20738
- } = usePelcro();
20750
+ } = usePelcro$1();
20739
20751
  const subscription_id = subscriptionToManageMembers === null || subscriptionToManageMembers === void 0 ? void 0 : subscriptionToManageMembers.id;
20740
20752
 
20741
20753
  const handleListMembers = ({}, dispatch) => {
@@ -21779,7 +21791,7 @@ function UserUpdateModal({
21779
21791
  }) {
21780
21792
  const {
21781
21793
  switchView
21782
- } = usePelcro();
21794
+ } = usePelcro$1();
21783
21795
 
21784
21796
  const onPictureClick = () => {
21785
21797
  switchView("profile-picture");
@@ -21888,7 +21900,7 @@ const AddressCreateContainer = ({
21888
21900
  order,
21889
21901
  set,
21890
21902
  selectedMembership
21891
- } = usePelcro();
21903
+ } = usePelcro$1();
21892
21904
  const giftCode = (_props$giftCode = props.giftCode) !== null && _props$giftCode !== void 0 ? _props$giftCode : giftCodeFromStore;
21893
21905
  const subscriptionIdToRenew = (_ref = (_props$subscriptionId = props.subscriptionIdToRenew) !== null && _props$subscriptionId !== void 0 ? _props$subscriptionId : subscriptionIdToRenewFromStore) !== null && _ref !== void 0 ? _ref : undefined;
21894
21906
  useEffect(() => {
@@ -22645,7 +22657,7 @@ const AddressCreateModal = ({
22645
22657
  switchView,
22646
22658
  switchToPaymentView,
22647
22659
  resetView
22648
- } = usePelcro();
22660
+ } = usePelcro$1();
22649
22661
 
22650
22662
  const onSuccess = newAddressId => {
22651
22663
  var _otherProps$onSuccess;
@@ -22738,7 +22750,7 @@ const AddressUpdateContainer = ({
22738
22750
 
22739
22751
  const {
22740
22752
  addressIdToEdit
22741
- } = usePelcro();
22753
+ } = usePelcro$1();
22742
22754
  const addressId = (_props$addressId = props === null || props === void 0 ? void 0 : props.addressId) !== null && _props$addressId !== void 0 ? _props$addressId : addressIdToEdit;
22743
22755
  const [t] = useTranslation("address");
22744
22756
  useEffect(() => {
@@ -23829,7 +23841,7 @@ const PasswordForgotModal = ({
23829
23841
  } = useTranslation("passwordForgot");
23830
23842
  const {
23831
23843
  switchView
23832
- } = usePelcro();
23844
+ } = usePelcro$1();
23833
23845
  return /*#__PURE__*/React__default.createElement(Modal, {
23834
23846
  id: "pelcro-password-forgot-modal",
23835
23847
  onDisplay: onDisplay,
@@ -24414,7 +24426,7 @@ const CartContainer = ({
24414
24426
  const {
24415
24427
  cartItems,
24416
24428
  set
24417
- } = usePelcro();
24429
+ } = usePelcro$1();
24418
24430
  const {
24419
24431
  t
24420
24432
  } = useTranslation("shop");
@@ -24519,7 +24531,7 @@ const CartRemoveItemButton = ({
24519
24531
  }) => {
24520
24532
  const {
24521
24533
  removeFromCart
24522
- } = usePelcro();
24534
+ } = usePelcro$1();
24523
24535
  return /*#__PURE__*/React__default.createElement(Button, Object.assign({
24524
24536
  variant: "icon",
24525
24537
  "data-key": itemId,
@@ -24582,7 +24594,7 @@ const CartTotalPrice = () => {
24582
24594
  } = useContext(store$8);
24583
24595
  const {
24584
24596
  cartItems
24585
- } = usePelcro();
24597
+ } = usePelcro$1();
24586
24598
  const totalPriceCurrency = cartItems[0].currency;
24587
24599
  const {
24588
24600
  t
@@ -24602,7 +24614,7 @@ const CartTotalPrice = () => {
24602
24614
  const CartView = props => {
24603
24615
  const {
24604
24616
  cartItems
24605
- } = usePelcro();
24617
+ } = usePelcro$1();
24606
24618
  const {
24607
24619
  t
24608
24620
  } = useTranslation("cart");
@@ -24663,7 +24675,7 @@ const CartModal = ({
24663
24675
  switchView,
24664
24676
  switchToAddressView,
24665
24677
  isAuthenticated
24666
- } = usePelcro();
24678
+ } = usePelcro$1();
24667
24679
 
24668
24680
  const onSuccess = items => {
24669
24681
  var _otherProps$onSuccess;
@@ -24695,7 +24707,7 @@ const ShopSelectProductButton = ({
24695
24707
  }) => {
24696
24708
  const {
24697
24709
  addToCart
24698
- } = usePelcro();
24710
+ } = usePelcro$1();
24699
24711
  const {
24700
24712
  t
24701
24713
  } = useTranslation("shop");
@@ -24727,7 +24739,7 @@ const ShopPurchaseButton = ({
24727
24739
  }) => {
24728
24740
  const {
24729
24741
  purchaseItem
24730
- } = usePelcro();
24742
+ } = usePelcro$1();
24731
24743
  const {
24732
24744
  t
24733
24745
  } = useTranslation("shop");
@@ -24803,7 +24815,7 @@ const OrderCreateModal = ({
24803
24815
  }) => {
24804
24816
  const {
24805
24817
  switchView
24806
- } = usePelcro();
24818
+ } = usePelcro$1();
24807
24819
 
24808
24820
  const onSuccess = () => {
24809
24821
  var _otherProps$onSuccess;
@@ -24833,7 +24845,7 @@ const OrderConfirmModal = props => {
24833
24845
  } = useTranslation("shop");
24834
24846
  const {
24835
24847
  resetView
24836
- } = usePelcro();
24848
+ } = usePelcro$1();
24837
24849
 
24838
24850
  const onClose = () => {
24839
24851
  var _props$onClose;
@@ -24925,7 +24937,7 @@ const GiftCreateContainer = ({
24925
24937
  } = useTranslation("register");
24926
24938
  const {
24927
24939
  set
24928
- } = usePelcro();
24940
+ } = usePelcro$1();
24929
24941
 
24930
24942
  const handleSubmit = (state, dispatch) => {
24931
24943
  const giftRecipient = {
@@ -25217,7 +25229,7 @@ const GiftCreateModal = ({
25217
25229
  switchToAddressView,
25218
25230
  switchToPaymentView,
25219
25231
  product
25220
- } = usePelcro();
25232
+ } = usePelcro$1();
25221
25233
 
25222
25234
  const onSuccess = giftRecipient => {
25223
25235
  var _otherProps$onSuccess;
@@ -25274,13 +25286,13 @@ const GiftRedeemContainer = ({
25274
25286
  } = useTranslation("register");
25275
25287
  const {
25276
25288
  set
25277
- } = usePelcro();
25289
+ } = usePelcro$1();
25278
25290
  const {
25279
25291
  switchView,
25280
25292
  switchToAddressView,
25281
25293
  isAuthenticated,
25282
25294
  subscriptionIdToRenew: subscriptionIdToRenewFromStore
25283
- } = usePelcro();
25295
+ } = usePelcro$1();
25284
25296
  const subscriptionIdToRenew = (_ref = (_props$subscriptionId = props.subscriptionIdToRenew) !== null && _props$subscriptionId !== void 0 ? _props$subscriptionId : subscriptionIdToRenewFromStore) !== null && _ref !== void 0 ? _ref : undefined;
25285
25297
  useEffect(() => {
25286
25298
  onDisplay();
@@ -25493,7 +25505,7 @@ const GiftRedeemModal = ({
25493
25505
  switchView,
25494
25506
  switchToAddressView,
25495
25507
  isAuthenticated
25496
- } = usePelcro();
25508
+ } = usePelcro$1();
25497
25509
 
25498
25510
  const onSuccess = giftCode => {
25499
25511
  var _otherProps$onSuccess;
@@ -25560,7 +25572,7 @@ const AddressSelectContainer = ({
25560
25572
  subscriptionIdToRenew: subscriptionIdToRenewFromStore,
25561
25573
  set,
25562
25574
  selectedMembership
25563
- } = usePelcro();
25575
+ } = usePelcro$1();
25564
25576
  const giftCode = (_props$giftCode = props.giftCode) !== null && _props$giftCode !== void 0 ? _props$giftCode : giftCodeFromStore;
25565
25577
  const subscriptionIdToRenew = (_ref = (_props$subscriptionId = props.subscriptionIdToRenew) !== null && _props$subscriptionId !== void 0 ? _props$subscriptionId : subscriptionIdToRenewFromStore) !== null && _ref !== void 0 ? _ref : undefined;
25566
25578
 
@@ -25802,7 +25814,7 @@ const AddressSelectModal = ({
25802
25814
  switchView,
25803
25815
  switchToPaymentView,
25804
25816
  resetView
25805
- } = usePelcro();
25817
+ } = usePelcro$1();
25806
25818
 
25807
25819
  const onSuccess = selectedAddressId => {
25808
25820
  var _otherProps$onSuccess;
@@ -25880,7 +25892,7 @@ const PaymentMethodSelectContainer = ({
25880
25892
  const {
25881
25893
  set,
25882
25894
  selectedPaymentMethodId: selectedPaymentMethodIdFromStore
25883
- } = usePelcro();
25895
+ } = usePelcro$1();
25884
25896
 
25885
25897
  const submitPaymentMethod = ({
25886
25898
  selectedPaymentMethodId
@@ -26063,7 +26075,7 @@ const PaymentMethodSelectModal = ({
26063
26075
  switchToCheckoutForm,
26064
26076
  set,
26065
26077
  plan
26066
- } = usePelcro();
26078
+ } = usePelcro$1();
26067
26079
  const skipPayment = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.skipPaymentForFreePlans;
26068
26080
  useEffect(() => {
26069
26081
  if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) {
@@ -27371,7 +27383,7 @@ const SavedItems = ({
27371
27383
  const [isLoading, setLoading] = useState(false);
27372
27384
  const {
27373
27385
  isAuthenticated
27374
- } = usePelcro();
27386
+ } = usePelcro$1();
27375
27387
 
27376
27388
  const removeItemFromMetadata = (category, title) => {
27377
27389
  const user = window.Pelcro.user.read();
@@ -27570,7 +27582,7 @@ const SubscriptionsItems = ({
27570
27582
  setSubscriptionToCancel,
27571
27583
  setSubscriptionToSuspend,
27572
27584
  set
27573
- } = usePelcro();
27585
+ } = usePelcro$1();
27574
27586
  const subs = getNonDonationSubs();
27575
27587
  if (subs.length === 0) return null;
27576
27588
  return subs.sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
@@ -28167,7 +28179,7 @@ const InvoicesItems = () => {
28167
28179
  const {
28168
28180
  setInvoice,
28169
28181
  switchView
28170
- } = usePelcro();
28182
+ } = usePelcro$1();
28171
28183
  const invoices = (_window$Pelcro$invoic = (_window$Pelcro$invoic2 = window.Pelcro.invoice.list()) === null || _window$Pelcro$invoic2 === void 0 ? void 0 : _window$Pelcro$invoic2.filter(invoice => invoice.total > 0)) !== null && _window$Pelcro$invoic !== void 0 ? _window$Pelcro$invoic : [];
28172
28184
 
28173
28185
  const showInvoiceDetails = event => {
@@ -28298,7 +28310,7 @@ const MembershipsItems = () => {
28298
28310
  switchView,
28299
28311
  setSelectedMembership,
28300
28312
  switchToAddressView
28301
- } = usePelcro();
28313
+ } = usePelcro$1();
28302
28314
  const memberships = getActiveMemberships();
28303
28315
 
28304
28316
  const onChangeAddressClick = membershipId => {
@@ -28378,7 +28390,7 @@ function DashboardWithHook(props) {
28378
28390
  resetView,
28379
28391
  logout,
28380
28392
  set
28381
- } = usePelcro();
28393
+ } = usePelcro$1();
28382
28394
  return /*#__PURE__*/React__default.createElement(DashboardWithTrans, {
28383
28395
  setAddress: addressIdToEdit => set({
28384
28396
  addressIdToEdit
@@ -29014,7 +29026,7 @@ const DashboardWithTrans = withTranslation("dashboard")(Dashboard);
29014
29026
  const DashboardOpenButton = () => {
29015
29027
  const {
29016
29028
  switchView
29017
- } = usePelcro();
29029
+ } = usePelcro$1();
29018
29030
  return /*#__PURE__*/React__default.createElement("div", {
29019
29031
  className: "plc-fixed plc-right-4 plc-bottom-4 pelcro-open-dashboard-btn"
29020
29032
  }, /*#__PURE__*/React__default.createElement("button", {
@@ -31003,11 +31015,34 @@ const EmailVerifyModal = ({
31003
31015
  onClose,
31004
31016
  ...otherProps
31005
31017
  }) => {
31018
+ const {
31019
+ product,
31020
+ plan,
31021
+ switchToAddressView,
31022
+ switchToPaymentView
31023
+ } = usePelcro();
31024
+
31025
+ const onSuccess = res => {
31026
+ var _props$onSuccess, _props;
31027
+
31028
+ (_props$onSuccess = (_props = props).onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(_props, res);
31029
+
31030
+ if (product && plan) {
31031
+ if (product.address_required) {
31032
+ return switchToAddressView();
31033
+ } else {
31034
+ return switchToPaymentView();
31035
+ }
31036
+ }
31037
+ };
31038
+
31006
31039
  return /*#__PURE__*/React__default.createElement(Modal, {
31007
31040
  onDisplay: onDisplay,
31008
31041
  onClose: onClose,
31009
31042
  id: "pelcro-email-verify-modal"
31010
- }, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(EmailVerifyView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
31043
+ }, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(EmailVerifyView, Object.assign({
31044
+ onSuccess: onSuccess
31045
+ }, otherProps))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
31011
31046
  };
31012
31047
  EmailVerifyModal.viewId = "email-verify";
31013
31048
 
@@ -31155,7 +31190,7 @@ function VerifyLinkTokenModal({
31155
31190
  } = useTranslation("verifyLinkToken");
31156
31191
  const {
31157
31192
  resetView
31158
- } = usePelcro();
31193
+ } = usePelcro$1();
31159
31194
 
31160
31195
  const onSuccess = res => {
31161
31196
  var _props$onSuccess;
@@ -31205,7 +31240,7 @@ const InvoicePaymentModal = ({
31205
31240
  }) => {
31206
31241
  const {
31207
31242
  switchView
31208
- } = usePelcro();
31243
+ } = usePelcro$1();
31209
31244
 
31210
31245
  const onSuccess = () => {
31211
31246
  var _otherProps$onSuccess;
@@ -31282,7 +31317,7 @@ const InvoiceDetailsDownloadButton = ({
31282
31317
  } = useTranslation("invoiceDetails");
31283
31318
  const {
31284
31319
  invoice
31285
- } = usePelcro();
31320
+ } = usePelcro$1();
31286
31321
  return /*#__PURE__*/React__default.createElement(Link, Object.assign({
31287
31322
  className: `plc-px-6 plc-py-2 plc-uppercase plc-bg-transparent plc-text-primary-500 plc-border plc-border-primary-500 plc-rounded focus:plc-outline-none focus:plc-ring-2 focus:plc-ring-primary-300 plc-tracking-wider hover:plc-bg-primary-600 focus:plc-bg-primary-600 hover:plc-text-white focus:plc-text-white hover:plc-shadow-none plc-no-underline ${className}`,
31288
31323
  id: "pelcro-download-invoice-link",
@@ -31319,7 +31354,7 @@ const InvoiceDetailsView = props => {
31319
31354
  } = useTranslation("invoiceDetails");
31320
31355
  const {
31321
31356
  invoice
31322
- } = usePelcro();
31357
+ } = usePelcro$1();
31323
31358
  const showPayButton = canPayInvoice(invoice);
31324
31359
  const showDownloadButton = Boolean(invoice === null || invoice === void 0 ? void 0 : invoice.invoice_pdf);
31325
31360
  const hasPlanDetails = Boolean(invoice.plan);
@@ -31387,7 +31422,7 @@ const InvoiceDetailsModal = ({
31387
31422
  }) => {
31388
31423
  const {
31389
31424
  switchToPaymentView
31390
- } = usePelcro();
31425
+ } = usePelcro$1();
31391
31426
 
31392
31427
  const onSuccess = () => {
31393
31428
  var _otherProps$onSuccess;
@@ -32824,4 +32859,4 @@ const QrCodeModal = ({
32824
32859
  };
32825
32860
  QrCodeModal.viewId = "qrcode";
32826
32861
 
32827
- export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankAuthenticationSuccess, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, IncludeFirstName, IncludeLastName, IncludePhone, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserNameInput, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateTin, UserUpdateUsername, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
32862
+ export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankAuthenticationSuccess, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, IncludeFirstName, IncludeLastName, IncludePhone, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserNameInput, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateTin, UserUpdateUsername, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro$1 as usePelcro };