@pelcro/react-pelcro-js 3.21.3 → 3.22.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -8707,7 +8707,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
8707
8707
  if (!Array.isArray(items)) return;
8708
8708
  let totalWithoutDividingBy100 = 0;
8709
8709
  for (const item of items) {
8710
- totalWithoutDividingBy100 += parseFloat(item.price ? isCurrencyZeroDecimal(currency) ? item.price * item.quantity : (item.price * item.quantity).toFixed(2) : isCurrencyZeroDecimal(currency) ? item.amount : item.amount.toFixed(2));
8710
+ totalWithoutDividingBy100 += parseFloat(item !== null && item !== void 0 && item.price || (item === null || item === void 0 ? void 0 : item.price) === 0 ? isCurrencyZeroDecimal(currency) ? item.price * item.quantity : (item.price * item.quantity).toFixed(2) : isCurrencyZeroDecimal(currency) ? item.amount : item.amount.toFixed(2));
8711
8711
  }
8712
8712
  return getFormattedPriceByLocal(totalWithoutDividingBy100, currency, getPageOrDefaultLanguage());
8713
8713
  };
@@ -11141,6 +11141,9 @@ const initViewFromURL = () => {
11141
11141
  if (view === "manage-members") {
11142
11142
  return showSubscriptionManageMembersFromUrl();
11143
11143
  }
11144
+ if (view === "payment-method-update") {
11145
+ return showPaymentMethodUpdateFromUrl();
11146
+ }
11144
11147
  switchView(view);
11145
11148
  });
11146
11149
  }
@@ -11349,6 +11352,43 @@ const showPasswordlessRequestFromUrl = () => {
11349
11352
  } = usePelcro.getStore();
11350
11353
  return switchView("passwordless-request");
11351
11354
  };
11355
+ const showPaymentMethodUpdateFromUrl = () => {
11356
+ const {
11357
+ isAuthenticated,
11358
+ whenSiteReady,
11359
+ whenUserReady,
11360
+ switchView
11361
+ } = usePelcro.getStore();
11362
+ whenSiteReady(() => {
11363
+ if (!isAuthenticated()) {
11364
+ return switchView("login");
11365
+ }
11366
+ whenUserReady(() => {
11367
+ const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
11368
+ const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
11369
+ if (!window.Stripe && !supportsVantiv && !supportsTap) {
11370
+ document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
11371
+ return switchView("payment-method-update");
11372
+ });
11373
+ return;
11374
+ }
11375
+
11376
+ //vantiv
11377
+ if (supportsVantiv) {
11378
+ document.querySelector("#vantiv-eprotect-sdk").addEventListener("load", () => {
11379
+ return switchView("payment-method-update");
11380
+ });
11381
+ return;
11382
+ }
11383
+
11384
+ //Tap
11385
+ if (supportsTap && document.querySelector("#tap-sdk")) {
11386
+ return switchView("payment-method-update");
11387
+ }
11388
+ return switchView("payment-method-update");
11389
+ });
11390
+ });
11391
+ };
11352
11392
  const showInvoiceDetailsFromUrl = () => {
11353
11393
  const {
11354
11394
  isAuthenticated,
@@ -13261,7 +13301,7 @@ function LoginModal(_ref) {
13261
13301
  }
13262
13302
  resetView();
13263
13303
  const viewFromURL = getStableViewID(window.Pelcro.helpers.getURLParameter("view"));
13264
- const viewsURLs = ["invoice-details", "gift-redeem", "plan-select"];
13304
+ const viewsURLs = ["invoice-details", "gift-redeem", "plan-select", "payment-method-update"];
13265
13305
  if (viewsURLs.includes(viewFromURL)) {
13266
13306
  initViewFromURL();
13267
13307
  }
@@ -14039,7 +14079,6 @@ class SelectModal extends React.Component {
14039
14079
  });
14040
14080
  });
14041
14081
  });
14042
- console.log("bugsnag Triggered");
14043
14082
  }
14044
14083
  });
14045
14084
  _defineProperty$3(this, "componentWillUnmount", () => {
@@ -16802,7 +16841,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16802
16841
  const tapInstanceRef = React__default['default'].useRef(null);
16803
16842
  const tapInstanceCard = React__default['default'].useRef(null);
16804
16843
  React.useEffect(() => {
16805
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16844
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16806
16845
  if (cardProcessor === "vantiv" && !selectedPaymentMethodId) {
16807
16846
  var _window$Pelcro$site$r2, _window$Pelcro$site$r3;
16808
16847
  const payPageId = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.vantiv_gateway_settings.pay_page_id;
@@ -16838,7 +16877,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16838
16877
  }, [vantivPaymentRequest]);
16839
16878
  React.useEffect(() => {
16840
16879
  whenUserReady(() => {
16841
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16880
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16842
16881
  if (cardProcessor === "tap" && !window.Tapjsli) {
16843
16882
  window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
16844
16883
  window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
@@ -16852,7 +16891,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16852
16891
  });
16853
16892
  }, [selectedPaymentMethodId]);
16854
16893
  const initPaymentRequest = (state, dispatch) => {
16855
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16894
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16856
16895
  try {
16857
16896
  const paymentRequest = stripe.paymentRequest({
16858
16897
  country: window.Pelcro.user.location.countryCode || "US",
@@ -16921,7 +16960,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16921
16960
  */
16922
16961
  const updateTotalAmountWithTax = () => {
16923
16962
  var _window$Pelcro$site$r4;
16924
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16963
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16925
16964
  const taxesEnabled = (_window$Pelcro$site$r4 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r4 === void 0 ? void 0 : _window$Pelcro$site$r4.taxes_enabled;
16926
16965
  if (taxesEnabled && type === "createPayment") {
16927
16966
  dispatch({
@@ -17525,6 +17564,29 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17525
17564
  });
17526
17565
  };
17527
17566
  const submitPayment = (state, dispatch) => {
17567
+ if (skipPayment && (order === null || order === void 0 ? void 0 : order.price) === 0) {
17568
+ const isQuickPurchase = !Array.isArray(order);
17569
+ const mappedOrderItems = isQuickPurchase ? [{
17570
+ sku_id: order.id,
17571
+ quantity: order.quantity
17572
+ }] : order.map(item => ({
17573
+ sku_id: item.id,
17574
+ quantity: item.quantity
17575
+ }));
17576
+ window.Pelcro.ecommerce.order.create({
17577
+ items: mappedOrderItems,
17578
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
17579
+ ...(selectedAddressId && {
17580
+ address_id: selectedAddressId
17581
+ })
17582
+ }, (err, res) => {
17583
+ if (err) {
17584
+ return handlePaymentError(err);
17585
+ }
17586
+ return onSuccess(res);
17587
+ });
17588
+ return;
17589
+ }
17528
17590
  stripe.createSource({
17529
17591
  type: "card"
17530
17592
  }).then(_ref8 => {
@@ -17758,6 +17820,9 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17758
17820
  disableSubmit: true,
17759
17821
  isLoading: true
17760
17822
  }, (state, dispatch) => {
17823
+ if (skipPayment && (order === null || order === void 0 ? void 0 : order.price) === 0) {
17824
+ return submitPayment(state);
17825
+ }
17761
17826
  if (getSiteCardProcessor() === "vantiv") {
17762
17827
  return submitUsingVantiv();
17763
17828
  }
@@ -17886,10 +17951,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17886
17951
  state,
17887
17952
  dispatch
17888
17953
  }
17889
- }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
17890
- store: store$k,
17891
- key: i
17892
- })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
17954
+ }, children.length ? children.map((child, i) => {
17955
+ if (child) {
17956
+ return /*#__PURE__*/React__default['default'].cloneElement(child, {
17957
+ store: store$k,
17958
+ key: i
17959
+ });
17960
+ }
17961
+ }) : /*#__PURE__*/React__default['default'].cloneElement(children, {
17893
17962
  store: store$k
17894
17963
  })));
17895
17964
  };
@@ -18711,6 +18780,42 @@ const SubscriptionCreateFreePlanButton = _ref => {
18711
18780
  }, otherProps), t("buttons.subscribe"));
18712
18781
  };
18713
18782
 
18783
+ const OrderCreateFreeButton = _ref => {
18784
+ let {
18785
+ name,
18786
+ onClick,
18787
+ ...otherProps
18788
+ } = _ref;
18789
+ const {
18790
+ state: {
18791
+ disableSubmit
18792
+ },
18793
+ dispatch
18794
+ } = React.useContext(store$k);
18795
+ const {
18796
+ t
18797
+ } = useTranslation("checkoutForm");
18798
+ const [isDisabled, setDisabled] = React.useState(true);
18799
+ React.useEffect(() => {
18800
+ setDisabled(disableSubmit);
18801
+ }, [disableSubmit]);
18802
+ return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
18803
+ className: "plc-w-full",
18804
+ onClick: () => {
18805
+ dispatch({
18806
+ type: DISABLE_SUBMIT,
18807
+ payload: true
18808
+ });
18809
+ dispatch({
18810
+ type: SUBMIT_PAYMENT
18811
+ });
18812
+ onClick === null || onClick === void 0 ? void 0 : onClick();
18813
+ },
18814
+ disabled: isDisabled,
18815
+ isLoading: disableSubmit
18816
+ }, otherProps), t("labels.submit"));
18817
+ };
18818
+
18714
18819
  /**
18715
18820
  *
18716
18821
  */
@@ -18723,7 +18828,9 @@ function PaymentMethodView(_ref) {
18723
18828
  type,
18724
18829
  showCoupon,
18725
18830
  showExternalPaymentMethods,
18726
- showSubscriptionButton
18831
+ showSubscriptionButton,
18832
+ showOrderButton,
18833
+ order
18727
18834
  } = _ref;
18728
18835
  const {
18729
18836
  t
@@ -18736,7 +18843,15 @@ function PaymentMethodView(_ref) {
18736
18843
  const isUserPhone = Boolean(window.Pelcro.user.read().phone);
18737
18844
  return /*#__PURE__*/React__default['default'].createElement("div", {
18738
18845
  className: "plc-flex plc-flex-col plc-items-center plc-mt-4 sm:plc-px-8 pelcro-payment-block"
18739
- }, cardProcessor === "stripe" && !showSubscriptionButton && /*#__PURE__*/React__default['default'].createElement("div", {
18846
+ }, order && !Array.isArray(order) && /*#__PURE__*/React__default['default'].createElement("div", {
18847
+ className: "plc-w-full plc-p-2 plc-mb-4 plc-font-semibold plc-text-center plc-text-gray-900 plc-bg-gray-100 plc-border plc-border-gray-200"
18848
+ }, /*#__PURE__*/React__default['default'].createElement("p", {
18849
+ className: "plc-text-gray-600"
18850
+ }, /*#__PURE__*/React__default['default'].createElement("span", {
18851
+ className: "plc-tracking-wider plc-uppercase"
18852
+ }, order === null || order === void 0 ? void 0 : order.name), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", {
18853
+ className: "plc-text-xl plc-font-semibold plc-text-primary-600"
18854
+ }, getFormattedPriceByLocal(order === null || order === void 0 ? void 0 : order.price, order === null || order === void 0 ? void 0 : order.currency, getPageOrDefaultLanguage())))), cardProcessor === "stripe" && !showSubscriptionButton && !showOrderButton && /*#__PURE__*/React__default['default'].createElement("div", {
18740
18855
  className: "plc-flex plc-items-center plc-w-full plc-px-4 plc-py-2 plc-text-center plc-text-green-600 plc-border plc-border-green-400 plc-rounded plc-bg-green-50"
18741
18856
  }, /*#__PURE__*/React__default['default'].createElement(SvgLock, {
18742
18857
  className: "plc-w-5 plc-h-5 plc-mr-1"
@@ -18755,7 +18870,7 @@ function PaymentMethodView(_ref) {
18755
18870
  onFailure: onFailure
18756
18871
  }, /*#__PURE__*/React__default['default'].createElement(AlertWithContext, {
18757
18872
  className: "plc-mb-2"
18758
- }), showSubscriptionButton ? /*#__PURE__*/React__default['default'].createElement(SubscriptionCreateFreePlanButton, null) : /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(BankRedirection, null), /*#__PURE__*/React__default['default'].createElement(BankAuthenticationSuccess, null), /*#__PURE__*/React__default['default'].createElement(SelectedPaymentMethod, null), supportsTap && (!isUserFirstName || !isUserLastName || !isUserPhone) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
18873
+ }), showSubscriptionButton && /*#__PURE__*/React__default['default'].createElement(SubscriptionCreateFreePlanButton, null), showOrderButton && /*#__PURE__*/React__default['default'].createElement(OrderCreateFreeButton, null), !showSubscriptionButton && !showOrderButton && /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(BankRedirection, null), /*#__PURE__*/React__default['default'].createElement(BankAuthenticationSuccess, null), /*#__PURE__*/React__default['default'].createElement(SelectedPaymentMethod, null), supportsTap && (!isUserFirstName || !isUserLastName || !isUserPhone) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
18759
18874
  className: "plc-flex plc-items-start"
18760
18875
  }, /*#__PURE__*/React__default['default'].createElement(IncludeFirstName, {
18761
18876
  id: "pelcro-input-first-name",
@@ -20510,6 +20625,16 @@ function SubscriptionManageMembersList(props) {
20510
20625
  icon: /*#__PURE__*/React__default['default'].createElement(SvgCheckMark, null)
20511
20626
  };
20512
20627
  }, []);
20628
+ const showMemberData = React.useCallback(member => {
20629
+ var _member$customer, _member$customer2, _member$customer3, _member$customer4;
20630
+ let data;
20631
+ if ((member === null || member === void 0 ? void 0 : member.status) !== "active") {
20632
+ data = member === null || member === void 0 ? void 0 : member.invitation_email;
20633
+ return data;
20634
+ }
20635
+ data = (member === null || member === void 0 ? void 0 : (_member$customer = member.customer) === null || _member$customer === void 0 ? void 0 : _member$customer.email) || (member === null || member === void 0 ? void 0 : (_member$customer2 = member.customer) === null || _member$customer2 === void 0 ? void 0 : _member$customer2.first_name) + " " + (member === null || member === void 0 ? void 0 : (_member$customer3 = member.customer) === null || _member$customer3 === void 0 ? void 0 : _member$customer3.last_name) || (member === null || member === void 0 ? void 0 : (_member$customer4 = member.customer) === null || _member$customer4 === void 0 ? void 0 : _member$customer4.username) || "-----";
20636
+ return data;
20637
+ }, []);
20513
20638
  if (loading) {
20514
20639
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("tr", null, /*#__PURE__*/React__default['default'].createElement("td", null, /*#__PURE__*/React__default['default'].createElement("div", {
20515
20640
  className: "plc-animate-pulse"
@@ -20551,10 +20676,10 @@ function SubscriptionManageMembersList(props) {
20551
20676
  className: `plc-w-full plc-align-middle plc-cursor-pointer accordion-header hover:plc-bg-gray-50 plc-text-center`
20552
20677
  }, /*#__PURE__*/React__default['default'].createElement("td", {
20553
20678
  className: "plc-truncate plc-text-left",
20554
- title: member === null || member === void 0 ? void 0 : member.invitation_email
20679
+ title: showMemberData(member)
20555
20680
  }, /*#__PURE__*/React__default['default'].createElement("span", {
20556
20681
  className: "plc-font-semibold plc-text-gray-500"
20557
- }, member === null || member === void 0 ? void 0 : member.invitation_email)), /*#__PURE__*/React__default['default'].createElement("td", {
20682
+ }, showMemberData(member))), /*#__PURE__*/React__default['default'].createElement("td", {
20558
20683
  className: "plc-py-2"
20559
20684
  }, /*#__PURE__*/React__default['default'].createElement("span", {
20560
20685
  className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold ${getMemberStatus(member).bgColor} plc-uppercase ${getMemberStatus(member).textColor} plc-rounded-lg`
@@ -24160,9 +24285,15 @@ const OrderCreateContainer = props => /*#__PURE__*/React__default['default'].cre
24160
24285
  }, props));
24161
24286
 
24162
24287
  const OrderCreateView = props => {
24288
+ var _window$Pelcro, _window$Pelcro$uiSett;
24163
24289
  const {
24164
24290
  t
24165
24291
  } = useTranslation("payment");
24292
+ const {
24293
+ order
24294
+ } = usePelcro();
24295
+ 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;
24296
+ const showOrderButton = skipPayment && (order === null || order === void 0 ? void 0 : order.price) === 0;
24166
24297
  return /*#__PURE__*/React__default['default'].createElement("div", {
24167
24298
  id: "pelcro-order-create-view"
24168
24299
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -24173,7 +24304,9 @@ const OrderCreateView = props => {
24173
24304
  }, /*#__PURE__*/React__default['default'].createElement(PaymentMethodView, Object.assign({
24174
24305
  type: "orderCreate",
24175
24306
  showCoupon: true,
24176
- showExternalPaymentMethods: false
24307
+ showExternalPaymentMethods: false,
24308
+ showOrderButton: showOrderButton,
24309
+ order: order
24177
24310
  }, props))));
24178
24311
  };
24179
24312
 
@@ -25381,11 +25514,12 @@ const PaymentMethodSelectModal = _ref => {
25381
25514
  const {
25382
25515
  switchToCheckoutForm,
25383
25516
  set,
25384
- plan
25517
+ plan,
25518
+ order
25385
25519
  } = usePelcro();
25386
25520
  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;
25387
25521
  React.useEffect(() => {
25388
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) {
25522
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) {
25389
25523
  switchToCheckoutForm();
25390
25524
  }
25391
25525
  }, []);
@@ -32203,6 +32337,7 @@ exports.NewsletterUpdateView = NewsletterUpdateView;
32203
32337
  exports.Notification = Notification;
32204
32338
  exports.OrderConfirmModal = OrderConfirmModal;
32205
32339
  exports.OrderCreateContainer = OrderCreateContainer;
32340
+ exports.OrderCreateFreeButton = OrderCreateFreeButton;
32206
32341
  exports.OrderCreateModal = OrderCreateModal;
32207
32342
  exports.OrderCreateSubmitButton = OrderCreateSubmitButton;
32208
32343
  exports.OrderCreateView = OrderCreateView;
package/dist/index.esm.js CHANGED
@@ -8677,7 +8677,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
8677
8677
  if (!Array.isArray(items)) return;
8678
8678
  let totalWithoutDividingBy100 = 0;
8679
8679
  for (const item of items) {
8680
- totalWithoutDividingBy100 += parseFloat(item.price ? isCurrencyZeroDecimal(currency) ? item.price * item.quantity : (item.price * item.quantity).toFixed(2) : isCurrencyZeroDecimal(currency) ? item.amount : item.amount.toFixed(2));
8680
+ totalWithoutDividingBy100 += parseFloat(item !== null && item !== void 0 && item.price || (item === null || item === void 0 ? void 0 : item.price) === 0 ? isCurrencyZeroDecimal(currency) ? item.price * item.quantity : (item.price * item.quantity).toFixed(2) : isCurrencyZeroDecimal(currency) ? item.amount : item.amount.toFixed(2));
8681
8681
  }
8682
8682
  return getFormattedPriceByLocal(totalWithoutDividingBy100, currency, getPageOrDefaultLanguage());
8683
8683
  };
@@ -11111,6 +11111,9 @@ const initViewFromURL = () => {
11111
11111
  if (view === "manage-members") {
11112
11112
  return showSubscriptionManageMembersFromUrl();
11113
11113
  }
11114
+ if (view === "payment-method-update") {
11115
+ return showPaymentMethodUpdateFromUrl();
11116
+ }
11114
11117
  switchView(view);
11115
11118
  });
11116
11119
  }
@@ -11319,6 +11322,43 @@ const showPasswordlessRequestFromUrl = () => {
11319
11322
  } = usePelcro.getStore();
11320
11323
  return switchView("passwordless-request");
11321
11324
  };
11325
+ const showPaymentMethodUpdateFromUrl = () => {
11326
+ const {
11327
+ isAuthenticated,
11328
+ whenSiteReady,
11329
+ whenUserReady,
11330
+ switchView
11331
+ } = usePelcro.getStore();
11332
+ whenSiteReady(() => {
11333
+ if (!isAuthenticated()) {
11334
+ return switchView("login");
11335
+ }
11336
+ whenUserReady(() => {
11337
+ const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
11338
+ const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
11339
+ if (!window.Stripe && !supportsVantiv && !supportsTap) {
11340
+ document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
11341
+ return switchView("payment-method-update");
11342
+ });
11343
+ return;
11344
+ }
11345
+
11346
+ //vantiv
11347
+ if (supportsVantiv) {
11348
+ document.querySelector("#vantiv-eprotect-sdk").addEventListener("load", () => {
11349
+ return switchView("payment-method-update");
11350
+ });
11351
+ return;
11352
+ }
11353
+
11354
+ //Tap
11355
+ if (supportsTap && document.querySelector("#tap-sdk")) {
11356
+ return switchView("payment-method-update");
11357
+ }
11358
+ return switchView("payment-method-update");
11359
+ });
11360
+ });
11361
+ };
11322
11362
  const showInvoiceDetailsFromUrl = () => {
11323
11363
  const {
11324
11364
  isAuthenticated,
@@ -13231,7 +13271,7 @@ function LoginModal(_ref) {
13231
13271
  }
13232
13272
  resetView();
13233
13273
  const viewFromURL = getStableViewID(window.Pelcro.helpers.getURLParameter("view"));
13234
- const viewsURLs = ["invoice-details", "gift-redeem", "plan-select"];
13274
+ const viewsURLs = ["invoice-details", "gift-redeem", "plan-select", "payment-method-update"];
13235
13275
  if (viewsURLs.includes(viewFromURL)) {
13236
13276
  initViewFromURL();
13237
13277
  }
@@ -14009,7 +14049,6 @@ class SelectModal extends Component {
14009
14049
  });
14010
14050
  });
14011
14051
  });
14012
- console.log("bugsnag Triggered");
14013
14052
  }
14014
14053
  });
14015
14054
  _defineProperty$3(this, "componentWillUnmount", () => {
@@ -16772,7 +16811,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16772
16811
  const tapInstanceRef = React__default.useRef(null);
16773
16812
  const tapInstanceCard = React__default.useRef(null);
16774
16813
  useEffect(() => {
16775
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16814
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16776
16815
  if (cardProcessor === "vantiv" && !selectedPaymentMethodId) {
16777
16816
  var _window$Pelcro$site$r2, _window$Pelcro$site$r3;
16778
16817
  const payPageId = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.vantiv_gateway_settings.pay_page_id;
@@ -16808,7 +16847,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16808
16847
  }, [vantivPaymentRequest]);
16809
16848
  useEffect(() => {
16810
16849
  whenUserReady(() => {
16811
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16850
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16812
16851
  if (cardProcessor === "tap" && !window.Tapjsli) {
16813
16852
  window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
16814
16853
  window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
@@ -16822,7 +16861,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16822
16861
  });
16823
16862
  }, [selectedPaymentMethodId]);
16824
16863
  const initPaymentRequest = (state, dispatch) => {
16825
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16864
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16826
16865
  try {
16827
16866
  const paymentRequest = stripe.paymentRequest({
16828
16867
  country: window.Pelcro.user.location.countryCode || "US",
@@ -16891,7 +16930,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16891
16930
  */
16892
16931
  const updateTotalAmountWithTax = () => {
16893
16932
  var _window$Pelcro$site$r4;
16894
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16933
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16895
16934
  const taxesEnabled = (_window$Pelcro$site$r4 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r4 === void 0 ? void 0 : _window$Pelcro$site$r4.taxes_enabled;
16896
16935
  if (taxesEnabled && type === "createPayment") {
16897
16936
  dispatch({
@@ -17495,6 +17534,29 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17495
17534
  });
17496
17535
  };
17497
17536
  const submitPayment = (state, dispatch) => {
17537
+ if (skipPayment && (order === null || order === void 0 ? void 0 : order.price) === 0) {
17538
+ const isQuickPurchase = !Array.isArray(order);
17539
+ const mappedOrderItems = isQuickPurchase ? [{
17540
+ sku_id: order.id,
17541
+ quantity: order.quantity
17542
+ }] : order.map(item => ({
17543
+ sku_id: item.id,
17544
+ quantity: item.quantity
17545
+ }));
17546
+ window.Pelcro.ecommerce.order.create({
17547
+ items: mappedOrderItems,
17548
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
17549
+ ...(selectedAddressId && {
17550
+ address_id: selectedAddressId
17551
+ })
17552
+ }, (err, res) => {
17553
+ if (err) {
17554
+ return handlePaymentError(err);
17555
+ }
17556
+ return onSuccess(res);
17557
+ });
17558
+ return;
17559
+ }
17498
17560
  stripe.createSource({
17499
17561
  type: "card"
17500
17562
  }).then(_ref8 => {
@@ -17728,6 +17790,9 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17728
17790
  disableSubmit: true,
17729
17791
  isLoading: true
17730
17792
  }, (state, dispatch) => {
17793
+ if (skipPayment && (order === null || order === void 0 ? void 0 : order.price) === 0) {
17794
+ return submitPayment(state);
17795
+ }
17731
17796
  if (getSiteCardProcessor() === "vantiv") {
17732
17797
  return submitUsingVantiv();
17733
17798
  }
@@ -17856,10 +17921,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17856
17921
  state,
17857
17922
  dispatch
17858
17923
  }
17859
- }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17860
- store: store$k,
17861
- key: i
17862
- })) : /*#__PURE__*/React__default.cloneElement(children, {
17924
+ }, children.length ? children.map((child, i) => {
17925
+ if (child) {
17926
+ return /*#__PURE__*/React__default.cloneElement(child, {
17927
+ store: store$k,
17928
+ key: i
17929
+ });
17930
+ }
17931
+ }) : /*#__PURE__*/React__default.cloneElement(children, {
17863
17932
  store: store$k
17864
17933
  })));
17865
17934
  };
@@ -18681,6 +18750,42 @@ const SubscriptionCreateFreePlanButton = _ref => {
18681
18750
  }, otherProps), t("buttons.subscribe"));
18682
18751
  };
18683
18752
 
18753
+ const OrderCreateFreeButton = _ref => {
18754
+ let {
18755
+ name,
18756
+ onClick,
18757
+ ...otherProps
18758
+ } = _ref;
18759
+ const {
18760
+ state: {
18761
+ disableSubmit
18762
+ },
18763
+ dispatch
18764
+ } = useContext(store$k);
18765
+ const {
18766
+ t
18767
+ } = useTranslation("checkoutForm");
18768
+ const [isDisabled, setDisabled] = useState(true);
18769
+ useEffect(() => {
18770
+ setDisabled(disableSubmit);
18771
+ }, [disableSubmit]);
18772
+ return /*#__PURE__*/React__default.createElement(Button, Object.assign({
18773
+ className: "plc-w-full",
18774
+ onClick: () => {
18775
+ dispatch({
18776
+ type: DISABLE_SUBMIT,
18777
+ payload: true
18778
+ });
18779
+ dispatch({
18780
+ type: SUBMIT_PAYMENT
18781
+ });
18782
+ onClick === null || onClick === void 0 ? void 0 : onClick();
18783
+ },
18784
+ disabled: isDisabled,
18785
+ isLoading: disableSubmit
18786
+ }, otherProps), t("labels.submit"));
18787
+ };
18788
+
18684
18789
  /**
18685
18790
  *
18686
18791
  */
@@ -18693,7 +18798,9 @@ function PaymentMethodView(_ref) {
18693
18798
  type,
18694
18799
  showCoupon,
18695
18800
  showExternalPaymentMethods,
18696
- showSubscriptionButton
18801
+ showSubscriptionButton,
18802
+ showOrderButton,
18803
+ order
18697
18804
  } = _ref;
18698
18805
  const {
18699
18806
  t
@@ -18706,7 +18813,15 @@ function PaymentMethodView(_ref) {
18706
18813
  const isUserPhone = Boolean(window.Pelcro.user.read().phone);
18707
18814
  return /*#__PURE__*/React__default.createElement("div", {
18708
18815
  className: "plc-flex plc-flex-col plc-items-center plc-mt-4 sm:plc-px-8 pelcro-payment-block"
18709
- }, cardProcessor === "stripe" && !showSubscriptionButton && /*#__PURE__*/React__default.createElement("div", {
18816
+ }, order && !Array.isArray(order) && /*#__PURE__*/React__default.createElement("div", {
18817
+ className: "plc-w-full plc-p-2 plc-mb-4 plc-font-semibold plc-text-center plc-text-gray-900 plc-bg-gray-100 plc-border plc-border-gray-200"
18818
+ }, /*#__PURE__*/React__default.createElement("p", {
18819
+ className: "plc-text-gray-600"
18820
+ }, /*#__PURE__*/React__default.createElement("span", {
18821
+ className: "plc-tracking-wider plc-uppercase"
18822
+ }, order === null || order === void 0 ? void 0 : order.name), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("span", {
18823
+ className: "plc-text-xl plc-font-semibold plc-text-primary-600"
18824
+ }, getFormattedPriceByLocal(order === null || order === void 0 ? void 0 : order.price, order === null || order === void 0 ? void 0 : order.currency, getPageOrDefaultLanguage())))), cardProcessor === "stripe" && !showSubscriptionButton && !showOrderButton && /*#__PURE__*/React__default.createElement("div", {
18710
18825
  className: "plc-flex plc-items-center plc-w-full plc-px-4 plc-py-2 plc-text-center plc-text-green-600 plc-border plc-border-green-400 plc-rounded plc-bg-green-50"
18711
18826
  }, /*#__PURE__*/React__default.createElement(SvgLock, {
18712
18827
  className: "plc-w-5 plc-h-5 plc-mr-1"
@@ -18725,7 +18840,7 @@ function PaymentMethodView(_ref) {
18725
18840
  onFailure: onFailure
18726
18841
  }, /*#__PURE__*/React__default.createElement(AlertWithContext, {
18727
18842
  className: "plc-mb-2"
18728
- }), showSubscriptionButton ? /*#__PURE__*/React__default.createElement(SubscriptionCreateFreePlanButton, null) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(BankRedirection, null), /*#__PURE__*/React__default.createElement(BankAuthenticationSuccess, null), /*#__PURE__*/React__default.createElement(SelectedPaymentMethod, null), supportsTap && (!isUserFirstName || !isUserLastName || !isUserPhone) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
18843
+ }), showSubscriptionButton && /*#__PURE__*/React__default.createElement(SubscriptionCreateFreePlanButton, null), showOrderButton && /*#__PURE__*/React__default.createElement(OrderCreateFreeButton, null), !showSubscriptionButton && !showOrderButton && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(BankRedirection, null), /*#__PURE__*/React__default.createElement(BankAuthenticationSuccess, null), /*#__PURE__*/React__default.createElement(SelectedPaymentMethod, null), supportsTap && (!isUserFirstName || !isUserLastName || !isUserPhone) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
18729
18844
  className: "plc-flex plc-items-start"
18730
18845
  }, /*#__PURE__*/React__default.createElement(IncludeFirstName, {
18731
18846
  id: "pelcro-input-first-name",
@@ -20480,6 +20595,16 @@ function SubscriptionManageMembersList(props) {
20480
20595
  icon: /*#__PURE__*/React__default.createElement(SvgCheckMark, null)
20481
20596
  };
20482
20597
  }, []);
20598
+ const showMemberData = useCallback(member => {
20599
+ var _member$customer, _member$customer2, _member$customer3, _member$customer4;
20600
+ let data;
20601
+ if ((member === null || member === void 0 ? void 0 : member.status) !== "active") {
20602
+ data = member === null || member === void 0 ? void 0 : member.invitation_email;
20603
+ return data;
20604
+ }
20605
+ data = (member === null || member === void 0 ? void 0 : (_member$customer = member.customer) === null || _member$customer === void 0 ? void 0 : _member$customer.email) || (member === null || member === void 0 ? void 0 : (_member$customer2 = member.customer) === null || _member$customer2 === void 0 ? void 0 : _member$customer2.first_name) + " " + (member === null || member === void 0 ? void 0 : (_member$customer3 = member.customer) === null || _member$customer3 === void 0 ? void 0 : _member$customer3.last_name) || (member === null || member === void 0 ? void 0 : (_member$customer4 = member.customer) === null || _member$customer4 === void 0 ? void 0 : _member$customer4.username) || "-----";
20606
+ return data;
20607
+ }, []);
20483
20608
  if (loading) {
20484
20609
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement("div", {
20485
20610
  className: "plc-animate-pulse"
@@ -20521,10 +20646,10 @@ function SubscriptionManageMembersList(props) {
20521
20646
  className: `plc-w-full plc-align-middle plc-cursor-pointer accordion-header hover:plc-bg-gray-50 plc-text-center`
20522
20647
  }, /*#__PURE__*/React__default.createElement("td", {
20523
20648
  className: "plc-truncate plc-text-left",
20524
- title: member === null || member === void 0 ? void 0 : member.invitation_email
20649
+ title: showMemberData(member)
20525
20650
  }, /*#__PURE__*/React__default.createElement("span", {
20526
20651
  className: "plc-font-semibold plc-text-gray-500"
20527
- }, member === null || member === void 0 ? void 0 : member.invitation_email)), /*#__PURE__*/React__default.createElement("td", {
20652
+ }, showMemberData(member))), /*#__PURE__*/React__default.createElement("td", {
20528
20653
  className: "plc-py-2"
20529
20654
  }, /*#__PURE__*/React__default.createElement("span", {
20530
20655
  className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold ${getMemberStatus(member).bgColor} plc-uppercase ${getMemberStatus(member).textColor} plc-rounded-lg`
@@ -24130,9 +24255,15 @@ const OrderCreateContainer = props => /*#__PURE__*/React__default.createElement(
24130
24255
  }, props));
24131
24256
 
24132
24257
  const OrderCreateView = props => {
24258
+ var _window$Pelcro, _window$Pelcro$uiSett;
24133
24259
  const {
24134
24260
  t
24135
24261
  } = useTranslation("payment");
24262
+ const {
24263
+ order
24264
+ } = usePelcro();
24265
+ 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;
24266
+ const showOrderButton = skipPayment && (order === null || order === void 0 ? void 0 : order.price) === 0;
24136
24267
  return /*#__PURE__*/React__default.createElement("div", {
24137
24268
  id: "pelcro-order-create-view"
24138
24269
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -24143,7 +24274,9 @@ const OrderCreateView = props => {
24143
24274
  }, /*#__PURE__*/React__default.createElement(PaymentMethodView, Object.assign({
24144
24275
  type: "orderCreate",
24145
24276
  showCoupon: true,
24146
- showExternalPaymentMethods: false
24277
+ showExternalPaymentMethods: false,
24278
+ showOrderButton: showOrderButton,
24279
+ order: order
24147
24280
  }, props))));
24148
24281
  };
24149
24282
 
@@ -25351,11 +25484,12 @@ const PaymentMethodSelectModal = _ref => {
25351
25484
  const {
25352
25485
  switchToCheckoutForm,
25353
25486
  set,
25354
- plan
25487
+ plan,
25488
+ order
25355
25489
  } = usePelcro();
25356
25490
  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;
25357
25491
  useEffect(() => {
25358
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) {
25492
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) {
25359
25493
  switchToCheckoutForm();
25360
25494
  }
25361
25495
  }, []);
@@ -32060,4 +32194,4 @@ const QrCodeModal = _ref => {
32060
32194
  };
32061
32195
  QrCodeModal.viewId = "qrcode";
32062
32196
 
32063
- 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$1 as notify, unauthenticatedButtons, usePelcro };
32197
+ 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, OrderCreateFreeButton, 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$1 as notify, unauthenticatedButtons, usePelcro };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "3.21.3",
4
+ "version": "3.22.0-beta.10",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",