@pelcro/react-pelcro-js 4.0.0-alpha.34 → 4.0.0-alpha.36

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
@@ -3423,7 +3423,8 @@ var labels$10 = {
3423
3423
  removeCoupon: "REMOVE",
3424
3424
  firstName: "First name",
3425
3425
  lastName: "Last name",
3426
- phone: "Phone"
3426
+ phone: "Phone",
3427
+ freeItems: "Free Items"
3427
3428
  };
3428
3429
  var checkoutForm_en = {
3429
3430
  messages: messages$14,
@@ -4367,7 +4368,8 @@ var labels$H = {
4367
4368
  removeCoupon: "RETIRER",
4368
4369
  firstName: "Prénom",
4369
4370
  lastName: "Nom de famille",
4370
- phone: "Téléphoner"
4371
+ phone: "Téléphoner",
4372
+ freeItems: "Articles gratuits"
4371
4373
  };
4372
4374
  var checkoutForm_fr = {
4373
4375
  messages: messages$M,
@@ -5258,7 +5260,8 @@ var labels$s = {
5258
5260
  removeCoupon: "제거",
5259
5261
  firstName: "이름",
5260
5262
  lastName: "성",
5261
- phone: "핸드폰"
5263
+ phone: "핸드폰",
5264
+ freeItems: "무료 아이템"
5262
5265
  };
5263
5266
  var checkoutForm_ko = {
5264
5267
  messages: messages$v,
@@ -6198,7 +6201,8 @@ var labels$d = {
6198
6201
  removeCoupon: "ELIMINAR",
6199
6202
  firstName: "Nombre",
6200
6203
  lastName: "Apellido",
6201
- phone: "Teléfono"
6204
+ phone: "Teléfono",
6205
+ freeItems: "Artículos gratis"
6202
6206
  };
6203
6207
  var checkoutForm_es = {
6204
6208
  messages: messages$e,
@@ -8835,7 +8839,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
8835
8839
  let totalWithoutDividingBy100 = 0;
8836
8840
 
8837
8841
  for (const item of items) {
8838
- totalWithoutDividingBy100 += parseFloat(item.price ? isCurrencyZeroDecimal(currency) ? item.price * item.quantity : (item.price * item.quantity).toFixed(2) : isCurrencyZeroDecimal(currency) ? item.amount : item.amount.toFixed(2));
8842
+ 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));
8839
8843
  }
8840
8844
 
8841
8845
  return getFormattedPriceByLocal(totalWithoutDividingBy100, currency, getPageOrDefaultLanguage());
@@ -11448,6 +11452,10 @@ const initViewFromURL = () => {
11448
11452
  return showSubscriptionManageMembersFromUrl();
11449
11453
  }
11450
11454
 
11455
+ if (view === "payment-method-update") {
11456
+ return showPaymentMethodUpdateFromUrl();
11457
+ }
11458
+
11451
11459
  switchView(view);
11452
11460
  });
11453
11461
  }
@@ -11683,6 +11691,47 @@ const showPasswordlessRequestFromUrl = () => {
11683
11691
  return switchView("passwordless-request");
11684
11692
  };
11685
11693
 
11694
+ const showPaymentMethodUpdateFromUrl = () => {
11695
+ const {
11696
+ isAuthenticated,
11697
+ whenSiteReady,
11698
+ whenUserReady,
11699
+ switchView
11700
+ } = usePelcro.getStore();
11701
+ whenSiteReady(() => {
11702
+ if (!isAuthenticated()) {
11703
+ return switchView("login");
11704
+ }
11705
+
11706
+ whenUserReady(() => {
11707
+ const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
11708
+ const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
11709
+
11710
+ if (!window.Stripe && !supportsVantiv && !supportsTap) {
11711
+ document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
11712
+ return switchView("payment-method-update");
11713
+ });
11714
+ return;
11715
+ } //vantiv
11716
+
11717
+
11718
+ if (supportsVantiv) {
11719
+ document.querySelector("#vantiv-eprotect-sdk").addEventListener("load", () => {
11720
+ return switchView("payment-method-update");
11721
+ });
11722
+ return;
11723
+ } //Tap
11724
+
11725
+
11726
+ if (supportsTap && document.querySelector("#tap-sdk")) {
11727
+ return switchView("payment-method-update");
11728
+ }
11729
+
11730
+ return switchView("payment-method-update");
11731
+ });
11732
+ });
11733
+ };
11734
+
11686
11735
  const showInvoiceDetailsFromUrl = () => {
11687
11736
  const {
11688
11737
  isAuthenticated,
@@ -13640,7 +13689,7 @@ function LoginModal({
13640
13689
 
13641
13690
  resetView();
13642
13691
  const viewFromURL = getStableViewID(window.Pelcro.helpers.getURLParameter("view"));
13643
- const viewsURLs = ["invoice-details", "gift-redeem", "plan-select"];
13692
+ const viewsURLs = ["invoice-details", "gift-redeem", "plan-select", "payment-method-update"];
13644
13693
 
13645
13694
  if (viewsURLs.includes(viewFromURL)) {
13646
13695
  initViewFromURL();
@@ -18955,6 +19004,29 @@ function SelectModalWithHook(props) {
18955
19004
  matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
18956
19005
  });
18957
19006
  }
19007
+
19008
+ function productsWithMatchedTaggedFirst() {
19009
+ var _window$Pelcro$produc;
19010
+
19011
+ const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
19012
+ const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
19013
+ const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
19014
+ return [productsThatMatchArticleTag, allProductsMinusMatched];
19015
+ }
19016
+
19017
+ function productMatchPageLanguage(product) {
19018
+ if (!product) {
19019
+ return false;
19020
+ }
19021
+
19022
+ if (product.language === null) {
19023
+ return true;
19024
+ }
19025
+
19026
+ const siteLanguage = window.Pelcro.helpers.getHtmlLanguageAttribute();
19027
+ return product.language === siteLanguage;
19028
+ }
19029
+
18958
19030
  SelectModalWithHook.viewId = "plan-select";
18959
19031
 
18960
19032
  class SelectModal extends Component {
@@ -18999,19 +19071,50 @@ class SelectModal extends Component {
18999
19071
  document.addEventListener("keydown", this.handleSubmit);
19000
19072
 
19001
19073
  if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
19074
+ var _window$Pelcro, _window$Pelcro$user, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$site;
19075
+
19076
+ const userCurrency = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$user = _window$Pelcro.user) === null || _window$Pelcro$user === void 0 ? void 0 : _window$Pelcro$user.read().currency;
19077
+ const userCountry = (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$user = _window$Pelcro2.user) === null || _window$Pelcro2$user === void 0 ? void 0 : _window$Pelcro2$user.location.countryCode;
19078
+ const userLanguage = (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$user = _window$Pelcro3.user) === null || _window$Pelcro3$user === void 0 ? void 0 : _window$Pelcro3$user.read().language;
19079
+ const productsMatchingUserCurrency = (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : (_window$Pelcro4$site = _window$Pelcro4.site) === null || _window$Pelcro4$site === void 0 ? void 0 : _window$Pelcro4$site.read().products.filter(product => {
19080
+ const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
19081
+ if (filteredPlans.length) return filteredPlans;
19082
+ });
19083
+ const productsMatchingUserCountry = productsMatchingUserCurrency.filter(product => {
19084
+ const filteredPlans = product.plans.filter(plan => {
19085
+ var _plan$countries;
19086
+
19087
+ return plan.countries && ((_plan$countries = plan.countries) === null || _plan$countries === void 0 ? void 0 : _plan$countries.includes(userCountry)) || !plan.countries || !plan.countries.length;
19088
+ });
19089
+ if (filteredPlans.length) return filteredPlans;
19090
+ });
19002
19091
  notifyBugsnag(() => {
19003
19092
  Bugsnag.notify("SelectModal - No data viewed", event => {
19004
- var _window$Pelcro, _window$Pelcro$site, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$uiSet, _window$Pelcro4;
19093
+ var _window$Pelcro5, _window$Pelcro5$site, _window$Pelcro6, _window$Pelcro6$user, _window$Pelcro7, _window$Pelcro7$uiSet, _window$Pelcro8, _this$props, _window$Pelcro9, _window$Pelcro9$helpe, _window$Pelcro10, _window$Pelcro10$site;
19005
19094
 
19006
19095
  event.addMetadata("MetaData", {
19007
- site: (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$site = _window$Pelcro.site) === null || _window$Pelcro$site === void 0 ? void 0 : _window$Pelcro$site.read(),
19008
- user: (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$user = _window$Pelcro2.user) === null || _window$Pelcro2$user === void 0 ? void 0 : _window$Pelcro2$user.read(),
19009
- uiVersion: (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$uiSet = _window$Pelcro3.uiSettings) === null || _window$Pelcro3$uiSet === void 0 ? void 0 : _window$Pelcro3$uiSet.uiVersion,
19010
- environment: (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : _window$Pelcro4.environment
19096
+ site: (_window$Pelcro5 = window.Pelcro) === null || _window$Pelcro5 === void 0 ? void 0 : (_window$Pelcro5$site = _window$Pelcro5.site) === null || _window$Pelcro5$site === void 0 ? void 0 : _window$Pelcro5$site.read(),
19097
+ user: (_window$Pelcro6 = window.Pelcro) === null || _window$Pelcro6 === void 0 ? void 0 : (_window$Pelcro6$user = _window$Pelcro6.user) === null || _window$Pelcro6$user === void 0 ? void 0 : _window$Pelcro6$user.read(),
19098
+ uiVersion: (_window$Pelcro7 = window.Pelcro) === null || _window$Pelcro7 === void 0 ? void 0 : (_window$Pelcro7$uiSet = _window$Pelcro7.uiSettings) === null || _window$Pelcro7$uiSet === void 0 ? void 0 : _window$Pelcro7$uiSet.uiVersion,
19099
+ environment: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : _window$Pelcro8.environment,
19100
+ matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
19101
+ productListState: this.state.productList,
19102
+ methods: {
19103
+ productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst(),
19104
+ pelcroSDKProductsListMethod: window.Pelcro.product.list(),
19105
+ pelcroSDKGetByEntitlements: this.props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(this.props.matchingEntitlements) : null
19106
+ },
19107
+ userCurrency: userCurrency,
19108
+ userCountry: userCountry,
19109
+ userLanguage: userLanguage,
19110
+ siteLanguage: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : (_window$Pelcro9$helpe = _window$Pelcro9.helpers) === null || _window$Pelcro9$helpe === void 0 ? void 0 : _window$Pelcro9$helpe.getHtmlLanguageAttribute(),
19111
+ products: (_window$Pelcro10 = window.Pelcro) === null || _window$Pelcro10 === void 0 ? void 0 : (_window$Pelcro10$site = _window$Pelcro10.site) === null || _window$Pelcro10$site === void 0 ? void 0 : _window$Pelcro10$site.read().products.length,
19112
+ currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
19113
+ country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
19114
+ language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
19011
19115
  });
19012
19116
  });
19013
19117
  });
19014
- console.log("bugsnag Triggered");
19015
19118
  }
19016
19119
  });
19017
19120
 
@@ -19169,15 +19272,6 @@ class SelectModal extends Component {
19169
19272
  }), /*#__PURE__*/React__default.createElement("h3", {
19170
19273
  className: "plc-text-sm plc-font-semibold"
19171
19274
  }, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
19172
-
19173
- function productsWithMatchedTaggedFirst() {
19174
- var _window$Pelcro$produc;
19175
-
19176
- const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
19177
- const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
19178
- const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
19179
- return [productsThatMatchArticleTag, allProductsMinusMatched];
19180
- }
19181
19275
  });
19182
19276
 
19183
19277
  _defineProperty$3(this, "renderPlans", () => {
@@ -21511,6 +21605,8 @@ const PaymentMethodContainerWithoutStripe = ({
21511
21605
  }) => {
21512
21606
  var _props$product, _props$plan, _props$subscriptionId, _props$selectedAddres, _props$giftRecipient, _props$isGift, _props$isRenewingGift, _props$invoice, _window$Pelcro, _window$Pelcro$uiSett;
21513
21607
 
21608
+ const [vantivPaymentRequest, setVantivPaymentRequest] = useState(null);
21609
+ const [updatedCouponCode, setUpdatedCouponCode] = useState("");
21514
21610
  const {
21515
21611
  t
21516
21612
  } = useTranslation("payment");
@@ -21554,7 +21650,7 @@ const PaymentMethodContainerWithoutStripe = ({
21554
21650
  }, []);
21555
21651
  /*====== Start Tap integration ========*/
21556
21652
 
21557
- const submitUsingTap = () => {
21653
+ const submitUsingTap = state => {
21558
21654
  var _ref, _ref2, _ref3, _state$updatedPrice;
21559
21655
 
21560
21656
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
@@ -21609,7 +21705,7 @@ const PaymentMethodContainerWithoutStripe = ({
21609
21705
  }
21610
21706
  });
21611
21707
  } else {
21612
- window.Pelcro.payment.authorize({
21708
+ window.Pelcro.payment.verify({
21613
21709
  auth_token: window.Pelcro.user.read().auth_token,
21614
21710
  first_name: window.Pelcro.user.read().first_name || state.firstName,
21615
21711
  last_name: window.Pelcro.user.read().last_name || state.lastName,
@@ -21618,7 +21714,8 @@ const PaymentMethodContainerWithoutStripe = ({
21618
21714
  amount: totalAmount,
21619
21715
  currency: (plan === null || plan === void 0 ? void 0 : plan.currency) || (invoice === null || invoice === void 0 ? void 0 : invoice.currency) || window.Pelcro.site.read().default_currency,
21620
21716
  tap_token: result.id,
21621
- redirect_url: `${window.Pelcro.environment.domain}/webhook/tap/callback/3dsecure?auth_token=${window.Pelcro.user.read().auth_token}`
21717
+ funding: result.card.funding,
21718
+ redirect_url: `${window.Pelcro.environment.domain}/webhook/tap/callback/3dsecure?auth_token=${window.Pelcro.user.read().auth_token}&type=verify_card&site_id=${window.Pelcro.siteid}`
21622
21719
  }, (err, res) => {
21623
21720
  if (err) {
21624
21721
  // Inform the user if there was an error
@@ -21659,7 +21756,7 @@ const PaymentMethodContainerWithoutStripe = ({
21659
21756
  content: null
21660
21757
  }
21661
21758
  });
21662
- handleTapPayment(tapID);
21759
+ handleTapPayment(tapID, state);
21663
21760
  }
21664
21761
  }; // listen to injected iframe for authentication complete message
21665
21762
 
@@ -21674,7 +21771,7 @@ const PaymentMethodContainerWithoutStripe = ({
21674
21771
  });
21675
21772
  };
21676
21773
 
21677
- function handleTapPayment(paymentRequest) {
21774
+ function handleTapPayment(paymentRequest, state) {
21678
21775
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
21679
21776
 
21680
21777
  if (type === "createPayment") {
@@ -21701,6 +21798,7 @@ const PaymentMethodContainerWithoutStripe = ({
21701
21798
  type: LOADING,
21702
21799
  payload: false
21703
21800
  });
21801
+ toggleAuthenticationSuccessPendingView(false);
21704
21802
 
21705
21803
  if (err) {
21706
21804
  onFailure(err);
@@ -21721,7 +21819,8 @@ const PaymentMethodContainerWithoutStripe = ({
21721
21819
  }
21722
21820
  });
21723
21821
  onSuccess(res);
21724
- });
21822
+ } //
21823
+ );
21725
21824
  }
21726
21825
 
21727
21826
  function handleTapSubscription() {
@@ -21856,7 +21955,7 @@ const PaymentMethodContainerWithoutStripe = ({
21856
21955
  /*====== End Tap integration ========*/
21857
21956
 
21858
21957
 
21859
- const submitUsingVantiv = () => {
21958
+ const submitUsingVantiv = state => {
21860
21959
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
21861
21960
 
21862
21961
  if (isUsingExistingPaymentMethod) {
@@ -21879,7 +21978,7 @@ const PaymentMethodContainerWithoutStripe = ({
21879
21978
  });
21880
21979
  };
21881
21980
 
21882
- function handleVantivPayment(paymentRequest) {
21981
+ function handleVantivPayment(paymentRequest, couponCode) {
21883
21982
  if (paymentRequest) {
21884
21983
  const SUCCESS_STATUS = "870";
21885
21984
 
@@ -21953,9 +22052,6 @@ const PaymentMethodContainerWithoutStripe = ({
21953
22052
  const renewSubscription = !isGift && subscriptionIdToRenew;
21954
22053
  const giftSubscriprition = isGift && !subscriptionIdToRenew;
21955
22054
  const renewGift = isRenewingGift;
21956
- const {
21957
- couponCode
21958
- } = state;
21959
22055
 
21960
22056
  if (renewGift) {
21961
22057
  return payment.execute({
@@ -22035,6 +22131,8 @@ const PaymentMethodContainerWithoutStripe = ({
22035
22131
  const tapInstanceRef = React__default.useRef(null);
22036
22132
  const tapInstanceCard = React__default.useRef(null);
22037
22133
  useEffect(() => {
22134
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
22135
+
22038
22136
  if (cardProcessor === "vantiv" && !selectedPaymentMethodId) {
22039
22137
  var _window$Pelcro$site$r2, _window$Pelcro$site$r3;
22040
22138
 
@@ -22047,7 +22145,7 @@ const PaymentMethodContainerWithoutStripe = ({
22047
22145
  height: "245",
22048
22146
  timeout: 50000,
22049
22147
  div: "eProtectiframe",
22050
- callback: handleVantivPayment,
22148
+ callback: paymentRequest => setVantivPaymentRequest(paymentRequest),
22051
22149
  showCvv: true,
22052
22150
  numYears: 8,
22053
22151
  placeholderText: {
@@ -22061,9 +22159,17 @@ const PaymentMethodContainerWithoutStripe = ({
22061
22159
  }
22062
22160
  });
22063
22161
  }
22064
- }, [selectedPaymentMethodId]);
22162
+ }, [selectedPaymentMethodId]); //Trigger the handleVantivPayment method when a vantivePaymentRequest is present
22163
+
22164
+ useEffect(() => {
22165
+ if (vantivPaymentRequest) {
22166
+ handleVantivPayment(vantivPaymentRequest, updatedCouponCode);
22167
+ }
22168
+ }, [vantivPaymentRequest]);
22065
22169
  useEffect(() => {
22066
22170
  whenUserReady(() => {
22171
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
22172
+
22067
22173
  if (cardProcessor === "tap" && !window.Tapjsli) {
22068
22174
  window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
22069
22175
  window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
@@ -22079,7 +22185,7 @@ const PaymentMethodContainerWithoutStripe = ({
22079
22185
  }, [selectedPaymentMethodId]);
22080
22186
 
22081
22187
  const initPaymentRequest = (state, dispatch) => {
22082
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
22188
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
22083
22189
 
22084
22190
  try {
22085
22191
  const paymentRequest = stripe.paymentRequest({
@@ -22152,7 +22258,7 @@ const PaymentMethodContainerWithoutStripe = ({
22152
22258
  const updateTotalAmountWithTax = () => {
22153
22259
  var _window$Pelcro$site$r4;
22154
22260
 
22155
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
22261
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
22156
22262
  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;
22157
22263
 
22158
22264
  if (taxesEnabled && type === "createPayment") {
@@ -22199,7 +22305,9 @@ const PaymentMethodContainerWithoutStripe = ({
22199
22305
  });
22200
22306
 
22201
22307
  if (err) {
22202
- onFailure(err);
22308
+ onFailure(err); //reset the coupon code in local state
22309
+
22310
+ setUpdatedCouponCode("");
22203
22311
  dispatch({
22204
22312
  type: SET_COUPON_ERROR,
22205
22313
  payload: getErrorMessages(err)
@@ -22259,7 +22367,9 @@ const PaymentMethodContainerWithoutStripe = ({
22259
22367
  dispatch({
22260
22368
  type: SET_COUPON,
22261
22369
  payload: res.data.coupon
22262
- });
22370
+ }); //set the coupon code in local state to be able to use with Vantiv
22371
+
22372
+ setUpdatedCouponCode(res.data.coupon.code);
22263
22373
  dispatch({
22264
22374
  type: SET_PERCENT_OFF,
22265
22375
  payload: `${(_res$data$coupon = res.data.coupon) === null || _res$data$coupon === void 0 ? void 0 : _res$data$coupon.percent_off}%`
@@ -22334,7 +22444,9 @@ const PaymentMethodContainerWithoutStripe = ({
22334
22444
  const debouncedApplyCouponCode = useRef(debounce$1(onApplyCouponCode, 1000)).current;
22335
22445
 
22336
22446
  const removeAppliedCoupon = state => {
22337
- state.couponCode = "";
22447
+ state.couponCode = ""; //reset the coupon code in local state
22448
+
22449
+ setUpdatedCouponCode("");
22338
22450
  dispatch({
22339
22451
  type: SET_COUPON_ERROR,
22340
22452
  payload: ""
@@ -22791,6 +22903,31 @@ const PaymentMethodContainerWithoutStripe = ({
22791
22903
  };
22792
22904
 
22793
22905
  const submitPayment = (state, dispatch) => {
22906
+ if (skipPayment && props !== null && props !== void 0 && props.freeOrders) {
22907
+ const isQuickPurchase = !Array.isArray(order);
22908
+ const mappedOrderItems = isQuickPurchase ? [{
22909
+ sku_id: order.id,
22910
+ quantity: order.quantity
22911
+ }] : order.map(item => ({
22912
+ sku_id: item.id,
22913
+ quantity: item.quantity
22914
+ }));
22915
+ window.Pelcro.ecommerce.order.create({
22916
+ items: mappedOrderItems,
22917
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
22918
+ ...(selectedAddressId && {
22919
+ address_id: selectedAddressId
22920
+ })
22921
+ }, (err, res) => {
22922
+ if (err) {
22923
+ return handlePaymentError(err);
22924
+ }
22925
+
22926
+ return onSuccess(res);
22927
+ });
22928
+ return;
22929
+ }
22930
+
22794
22931
  stripe.createSource({
22795
22932
  type: "card"
22796
22933
  }).then(({
@@ -23055,12 +23192,16 @@ const PaymentMethodContainerWithoutStripe = ({
23055
23192
  disableSubmit: true,
23056
23193
  isLoading: true
23057
23194
  }, (state, dispatch) => {
23195
+ if (skipPayment && props !== null && props !== void 0 && props.freeOrders) {
23196
+ return submitPayment(state);
23197
+ }
23198
+
23058
23199
  if (getSiteCardProcessor() === "vantiv") {
23059
23200
  return submitUsingVantiv();
23060
23201
  }
23061
23202
 
23062
23203
  if (getSiteCardProcessor() === "tap") {
23063
- return submitUsingTap();
23204
+ return submitUsingTap(state);
23064
23205
  }
23065
23206
 
23066
23207
  if (selectedPaymentMethodId) {
@@ -23189,10 +23330,14 @@ const PaymentMethodContainerWithoutStripe = ({
23189
23330
  state,
23190
23331
  dispatch
23191
23332
  }
23192
- }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
23193
- store: store$l,
23194
- key: i
23195
- })) : /*#__PURE__*/React__default.cloneElement(children, {
23333
+ }, children.length ? children.map((child, i) => {
23334
+ if (child) {
23335
+ return /*#__PURE__*/React__default.cloneElement(child, {
23336
+ store: store$l,
23337
+ key: i
23338
+ });
23339
+ }
23340
+ }) : /*#__PURE__*/React__default.cloneElement(children, {
23196
23341
  store: store$l
23197
23342
  })));
23198
23343
  };
@@ -23223,11 +23368,13 @@ const PaymentMethodContainer = props => {
23223
23368
  }, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
23224
23369
  store: store$l
23225
23370
  }, props))));
23226
- } else {
23371
+ } else if (cardProcessor !== "stripe") {
23227
23372
  return /*#__PURE__*/React__default.createElement(PaymentMethodContainerWithoutStripe, Object.assign({
23228
23373
  store: store$l
23229
23374
  }, props));
23230
23375
  }
23376
+
23377
+ return null;
23231
23378
  };
23232
23379
 
23233
23380
  const StripeInputStyle = {
@@ -24063,6 +24210,41 @@ const BankAuthenticationSuccess = () => {
24063
24210
  }));
24064
24211
  };
24065
24212
 
24213
+ const OrderCreateFreeButton = ({
24214
+ name,
24215
+ onClick,
24216
+ ...otherProps
24217
+ }) => {
24218
+ const {
24219
+ state: {
24220
+ disableSubmit
24221
+ },
24222
+ dispatch
24223
+ } = useContext(store$l);
24224
+ const {
24225
+ t
24226
+ } = useTranslation("checkoutForm");
24227
+ const [isDisabled, setDisabled] = useState(true);
24228
+ useEffect(() => {
24229
+ setDisabled(disableSubmit);
24230
+ }, [disableSubmit]);
24231
+ return /*#__PURE__*/React__default.createElement(Button, Object.assign({
24232
+ className: "plc-w-full",
24233
+ onClick: () => {
24234
+ dispatch({
24235
+ type: DISABLE_SUBMIT,
24236
+ payload: true
24237
+ });
24238
+ dispatch({
24239
+ type: SUBMIT_PAYMENT
24240
+ });
24241
+ onClick === null || onClick === void 0 ? void 0 : onClick();
24242
+ },
24243
+ disabled: isDisabled,
24244
+ isLoading: disableSubmit
24245
+ }, otherProps), t("labels.submit"));
24246
+ };
24247
+
24066
24248
  /**
24067
24249
  *
24068
24250
  */
@@ -24074,9 +24256,11 @@ function PaymentMethodView({
24074
24256
  type,
24075
24257
  showCoupon,
24076
24258
  showExternalPaymentMethods,
24077
- showSubscriptionButton
24259
+ showSubscriptionButton,
24260
+ showOrderButton,
24261
+ order
24078
24262
  }) {
24079
- var _window$Pelcro$site$r, _window$Pelcro$site$r2;
24263
+ var _window$Pelcro$site$r, _window$Pelcro$site$r2, _calcAndFormatItemsTo, _order$;
24080
24264
 
24081
24265
  const {
24082
24266
  t
@@ -24089,7 +24273,17 @@ function PaymentMethodView({
24089
24273
  const isUserPhone = Boolean(window.Pelcro.user.read().phone);
24090
24274
  return /*#__PURE__*/React__default.createElement("div", {
24091
24275
  className: "plc-flex plc-flex-col plc-items-center plc-mt-4 sm:plc-px-8 pelcro-payment-block"
24092
- }, cardProcessor === "stripe" && !showSubscriptionButton && /*#__PURE__*/React__default.createElement("div", {
24276
+ }, order && /*#__PURE__*/React__default.createElement("div", {
24277
+ 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"
24278
+ }, /*#__PURE__*/React__default.createElement("p", {
24279
+ className: "plc-text-gray-600"
24280
+ }, !Array.isArray(order) ? /*#__PURE__*/React__default.createElement("span", {
24281
+ className: "plc-tracking-wider plc-uppercase"
24282
+ }, order === null || order === void 0 ? void 0 : order.name) : /*#__PURE__*/React__default.createElement("span", {
24283
+ className: "plc-tracking-wider plc-uppercase"
24284
+ }, t("labels.freeItems")), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("span", {
24285
+ className: "plc-text-xl plc-font-semibold plc-text-primary-600"
24286
+ }, (_calcAndFormatItemsTo = calcAndFormatItemsTotal(order, (_order$ = order[0]) === null || _order$ === void 0 ? void 0 : _order$.currency)) !== null && _calcAndFormatItemsTo !== void 0 ? _calcAndFormatItemsTo : 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", {
24093
24287
  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"
24094
24288
  }, /*#__PURE__*/React__default.createElement(SvgLock, {
24095
24289
  className: "plc-w-5 plc-h-5 plc-mr-1"
@@ -24105,10 +24299,11 @@ function PaymentMethodView({
24105
24299
  type: type,
24106
24300
  onSuccess: onSuccess,
24107
24301
  onGiftRenewalSuccess: onGiftRenewalSuccess,
24108
- onFailure: onFailure
24302
+ onFailure: onFailure,
24303
+ freeOrders: showOrderButton
24109
24304
  }, /*#__PURE__*/React__default.createElement(AlertWithContext, {
24110
24305
  className: "plc-mb-2"
24111
- }), 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", {
24306
+ }), 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", {
24112
24307
  className: "plc-flex plc-items-start"
24113
24308
  }, /*#__PURE__*/React__default.createElement(IncludeFirstName, {
24114
24309
  id: "pelcro-input-first-name",
@@ -25984,6 +26179,19 @@ function SubscriptionManageMembersList(props) {
25984
26179
  icon: /*#__PURE__*/React__default.createElement(SvgCheckMark, null)
25985
26180
  };
25986
26181
  }, []);
26182
+ const showMemberData = useCallback(member => {
26183
+ var _member$customer, _member$customer2, _member$customer3, _member$customer4;
26184
+
26185
+ let data;
26186
+
26187
+ if ((member === null || member === void 0 ? void 0 : member.status) !== "active") {
26188
+ data = member === null || member === void 0 ? void 0 : member.invitation_email;
26189
+ return data;
26190
+ }
26191
+
26192
+ 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) || "-----";
26193
+ return data;
26194
+ }, []);
25987
26195
 
25988
26196
  if (loading) {
25989
26197
  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", {
@@ -26028,10 +26236,10 @@ function SubscriptionManageMembersList(props) {
26028
26236
  className: `plc-w-full plc-align-middle plc-cursor-pointer accordion-header hover:plc-bg-gray-50 plc-text-center`
26029
26237
  }, /*#__PURE__*/React__default.createElement("td", {
26030
26238
  className: "plc-truncate plc-text-left",
26031
- title: member === null || member === void 0 ? void 0 : member.invitation_email
26239
+ title: showMemberData(member)
26032
26240
  }, /*#__PURE__*/React__default.createElement("span", {
26033
26241
  className: "plc-font-semibold plc-text-gray-500"
26034
- }, member === null || member === void 0 ? void 0 : member.invitation_email)), /*#__PURE__*/React__default.createElement("td", {
26242
+ }, showMemberData(member))), /*#__PURE__*/React__default.createElement("td", {
26035
26243
  className: "plc-py-2"
26036
26244
  }, /*#__PURE__*/React__default.createElement("span", {
26037
26245
  className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold ${getMemberStatus(member).bgColor} plc-uppercase ${getMemberStatus(member).textColor} plc-rounded-lg`
@@ -29708,6 +29916,14 @@ const OrderCreateContainer = props => /*#__PURE__*/React__default.createElement(
29708
29916
  }, props));
29709
29917
 
29710
29918
  const OrderCreateView = props => {
29919
+ var _window$Pelcro, _window$Pelcro$uiSett;
29920
+
29921
+ useTranslation("payment");
29922
+ const {
29923
+ order
29924
+ } = usePelcro();
29925
+ 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;
29926
+ const showOrderButton = skipPayment && ((order === null || order === void 0 ? void 0 : order.price) === 0 || (order === null || order === void 0 ? void 0 : order.length) > 0 && order.every(item => (item === null || item === void 0 ? void 0 : item.price) === 0));
29711
29927
  return /*#__PURE__*/React__default.createElement("div", {
29712
29928
  id: "pelcro-order-create-view"
29713
29929
  }, /*#__PURE__*/React__default.createElement("form", {
@@ -29716,7 +29932,9 @@ const OrderCreateView = props => {
29716
29932
  }, /*#__PURE__*/React__default.createElement(PaymentMethodView, Object.assign({
29717
29933
  type: "orderCreate",
29718
29934
  showCoupon: true,
29719
- showExternalPaymentMethods: false
29935
+ showExternalPaymentMethods: false,
29936
+ showOrderButton: showOrderButton,
29937
+ order: order
29720
29938
  }, props))));
29721
29939
  };
29722
29940
 
@@ -30999,17 +31217,18 @@ const PaymentMethodSelectModal = ({
30999
31217
  }) => {
31000
31218
  var _window$Pelcro, _window$Pelcro$uiSett;
31001
31219
 
31220
+ const {
31221
+ t
31222
+ } = useTranslation("paymentMethod");
31002
31223
  const {
31003
31224
  switchToCheckoutForm,
31004
31225
  set,
31005
- plan
31226
+ plan,
31227
+ order
31006
31228
  } = usePelcro();
31007
- const {
31008
- t
31009
- } = useTranslation("paymentMethod");
31010
31229
  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;
31011
31230
  useEffect(() => {
31012
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) {
31231
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) {
31013
31232
  switchToCheckoutForm();
31014
31233
  }
31015
31234
  }, []);
@@ -32367,254 +32586,14 @@ var _path$f;
32367
32586
 
32368
32587
  function _extends$f() { _extends$f = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
32369
32588
 
32370
- function SvgUser(props) {
32371
- return /*#__PURE__*/React.createElement("svg", _extends$f({
32372
- xmlns: "http://www.w3.org/2000/svg",
32373
- fill: "none",
32374
- viewBox: "0 0 24 24",
32375
- stroke: "currentColor"
32376
- }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
32377
- strokeLinecap: "round",
32378
- strokeLinejoin: "round",
32379
- strokeWidth: 2,
32380
- d: "M16 7a4 4 0 11-8 0 4 4 0 018 0zm-4 7a7 7 0 00-7 7h14a7 7 0 00-7-7z"
32381
- })));
32382
- }
32383
-
32384
- var _path$e;
32385
-
32386
- function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
32387
-
32388
- function SvgNewsletter(props) {
32389
- return /*#__PURE__*/React.createElement("svg", _extends$e({
32390
- xmlns: "http://www.w3.org/2000/svg",
32391
- className: "plc-h-5 plc-w-5",
32392
- fill: "none",
32393
- viewBox: "0 0 24 24",
32394
- stroke: "currentColor"
32395
- }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
32396
- strokeLinecap: "round",
32397
- strokeLinejoin: "round",
32398
- strokeWidth: 2,
32399
- d: "M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"
32400
- })));
32401
- }
32402
-
32403
- var _path$d;
32404
-
32405
- function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
32406
-
32407
- function SvgRefresh(props) {
32408
- return /*#__PURE__*/React.createElement("svg", _extends$d({
32409
- className: "plc-w-4 plc-h-4 plc-mr-1",
32410
- xmlns: "http://www.w3.org/2000/svg",
32411
- fill: "none",
32412
- viewBox: "0 0 24 24",
32413
- stroke: "currentColor"
32414
- }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
32415
- strokeLinecap: "round",
32416
- strokeLinejoin: "round",
32417
- strokeWidth: 2,
32418
- d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
32419
- })));
32420
- }
32421
-
32422
- var _path$c;
32423
-
32424
- function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
32425
-
32426
- function SvgDocument(props) {
32427
- return /*#__PURE__*/React.createElement("svg", _extends$c({
32428
- xmlns: "http://www.w3.org/2000/svg",
32429
- className: "plc-h-6 plc-w-6 plc-mr-2",
32430
- fill: "none",
32431
- viewBox: "0 0 24 24",
32432
- stroke: "currentColor"
32433
- }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
32434
- strokeLinecap: "round",
32435
- strokeLinejoin: "round",
32436
- strokeWidth: 2,
32437
- d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
32438
- })));
32439
- }
32440
-
32441
- var _path$b;
32442
-
32443
- function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
32444
-
32445
- function SvgPaymentCard(props) {
32446
- return /*#__PURE__*/React.createElement("svg", _extends$b({
32447
- className: "plc-w-6 plc-h-6 plc-mr-2",
32448
- xmlns: "http://www.w3.org/2000/svg",
32449
- fill: "none",
32450
- viewBox: "0 0 24 24",
32451
- stroke: "currentColor"
32452
- }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
32453
- strokeLinecap: "round",
32454
- strokeLinejoin: "round",
32455
- strokeWidth: 2,
32456
- d: "M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"
32457
- })));
32458
- }
32459
-
32460
- var _path$a, _path2;
32461
-
32462
- function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
32463
-
32464
- function SvgLocationPin(props) {
32465
- return /*#__PURE__*/React.createElement("svg", _extends$a({
32466
- className: "plc-w-6 plc-h-6 plc-mr-2",
32467
- xmlns: "http://www.w3.org/2000/svg",
32468
- fill: "none",
32469
- viewBox: "0 0 24 24",
32470
- stroke: "currentColor"
32471
- }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
32472
- strokeLinecap: "round",
32473
- strokeLinejoin: "round",
32474
- strokeWidth: 2,
32475
- d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"
32476
- })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
32477
- strokeLinecap: "round",
32478
- strokeLinejoin: "round",
32479
- strokeWidth: 2,
32480
- d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z"
32481
- })));
32482
- }
32483
-
32484
- var _path$9;
32485
-
32486
- function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
32487
-
32488
- function SvgShopping(props) {
32489
- return /*#__PURE__*/React.createElement("svg", _extends$9({
32490
- className: "plc-w-6 plc-h-6 plc-mr-2",
32491
- xmlns: "http://www.w3.org/2000/svg",
32492
- fill: "none",
32493
- viewBox: "0 0 24 24",
32494
- stroke: "currentColor"
32495
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
32496
- strokeLinecap: "round",
32497
- strokeLinejoin: "round",
32498
- strokeWidth: 2,
32499
- d: "M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"
32500
- })));
32501
- }
32502
-
32503
- var _path$8;
32504
-
32505
- function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
32506
-
32507
- function SvgBookmark(props) {
32508
- return /*#__PURE__*/React.createElement("svg", _extends$8({
32509
- className: "plc-w-6 plc-h-6 plc-mr-2",
32510
- xmlns: "http://www.w3.org/2000/svg",
32511
- fill: "none",
32512
- viewBox: "0 0 24 24",
32513
- stroke: "currentColor"
32514
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
32515
- strokeLinecap: "round",
32516
- strokeLinejoin: "round",
32517
- strokeWidth: 2,
32518
- d: "M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"
32519
- })));
32520
- }
32521
-
32522
- var _path$7;
32523
-
32524
- function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
32525
-
32526
- function SvgPlus(props) {
32527
- return /*#__PURE__*/React.createElement("svg", _extends$7({
32528
- className: "plc-w-5 plc-h-5",
32529
- xmlns: "http://www.w3.org/2000/svg",
32530
- fill: "none",
32531
- viewBox: "0 0 24 24",
32532
- stroke: "currentColor"
32533
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
32534
- strokeLinecap: "round",
32535
- strokeLinejoin: "round",
32536
- strokeWidth: 2,
32537
- d: "M12 6v6m0 0v6m0-6h6m-6 0H6"
32538
- })));
32539
- }
32540
-
32541
- var _path$6;
32542
-
32543
- function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
32544
-
32545
- function SvgKey(props) {
32546
- return /*#__PURE__*/React.createElement("svg", _extends$6({
32547
- xmlns: "http://www.w3.org/2000/svg",
32548
- viewBox: "0 0 20 20",
32549
- fill: "currentColor"
32550
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
32551
- fillRule: "evenodd",
32552
- d: "M18 8a6 6 0 01-7.743 5.743L10 14l-1 1-1 1H6v2H2v-4l4.257-4.257A6 6 0 1118 8zm-6-4a1 1 0 100 2 2 2 0 012 2 1 1 0 102 0 4 4 0 00-4-4z",
32553
- clipRule: "evenodd"
32554
- })));
32555
- }
32556
-
32557
- var _path$5;
32558
-
32559
- function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
32560
-
32561
- function SvgDonate(props) {
32562
- return /*#__PURE__*/React.createElement("svg", _extends$5({
32563
- width: 24,
32564
- height: 24,
32565
- fill: "currentColor",
32566
- xmlns: "http://www.w3.org/2000/svg"
32567
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
32568
- d: "M4 21h9.62a3.995 3.995 0 003.037-1.397l5.102-5.952a1 1 0 00-.442-1.6l-1.968-.656a3.043 3.043 0 00-2.823.503l-3.185 2.547-.617-1.235A3.98 3.98 0 009.146 11H4c-1.103 0-2 .897-2 2v6c0 1.103.897 2 2 2zm0-8h5.146c.763 0 1.448.423 1.789 1.105l.447.895H7v2h6.014a.996.996 0 00.442-.11l.003-.001.004-.002h.003l.002-.001h.004l.001-.001c.009.003.003-.001.003-.001.01 0 .002-.001.002-.001h.001l.002-.001.003-.001.002-.001.002-.001.003-.001.002-.001c.003 0 .001-.001.002-.001l.003-.002.002-.001.002-.001.003-.001.002-.001h.001l.002-.001h.001l.002-.001.002-.001c.009-.001.003-.001.003-.001l.002-.001a.915.915 0 00.11-.078l4.146-3.317c.262-.208.623-.273.94-.167l.557.186-4.133 4.823a2.029 2.029 0 01-1.52.688H4v-6zM16 2h-.017c-.163.002-1.006.039-1.983.705-.951-.648-1.774-.7-1.968-.704L12.002 2h-.004c-.801 0-1.555.313-2.119.878C9.313 3.445 9 4.198 9 5s.313 1.555.861 2.104l3.414 3.586a1.006 1.006 0 001.45-.001l3.396-3.568C18.688 6.555 19 5.802 19 5s-.313-1.555-.878-2.121A2.978 2.978 0 0016.002 2H16zm1 3c0 .267-.104.518-.311.725L14 8.55l-2.707-2.843C11.104 5.518 11 5.267 11 5s.104-.518.294-.708A.977.977 0 0111.979 4c.025.001.502.032 1.067.485.081.065.163.139.247.222l.707.707.707-.707c.084-.083.166-.157.247-.222.529-.425.976-.478 1.052-.484a.987.987 0 01.701.292c.189.189.293.44.293.707z"
32569
- })));
32570
- }
32571
-
32572
- var _path$4;
32573
-
32574
- function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
32575
-
32576
- function SvgMemberships(props) {
32577
- return /*#__PURE__*/React.createElement("svg", _extends$4({
32578
- xmlns: "http://www.w3.org/2000/svg",
32579
- fill: "none",
32580
- strokeWidth: 1.5,
32581
- stroke: "currentColor",
32582
- width: 24,
32583
- height: 24
32584
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
32585
- strokeLinecap: "round",
32586
- strokeLinejoin: "round",
32587
- d: "M15 9h3.75M15 12h3.75M15 15h3.75M4.5 19.5h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5zm6-10.125a1.875 1.875 0 11-3.75 0 1.875 1.875 0 013.75 0zm1.294 6.336a6.721 6.721 0 01-3.17.789 6.721 6.721 0 01-3.168-.789 3.376 3.376 0 016.338 0z"
32588
- })));
32589
- }
32590
-
32591
- var _path$3;
32592
-
32593
- function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
32594
-
32595
- function SvgQrcode(props) {
32596
- return /*#__PURE__*/React.createElement("svg", _extends$3({
32597
- xmlns: "http://www.w3.org/2000/svg",
32598
- width: 682.667,
32599
- height: 682.667,
32600
- viewBox: "0 0 512 512"
32601
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
32602
- d: "M93.5 62.4c-15.7 3.9-28 16.6-31.4 32.4-.7 3.3-1.1 17.2-1.1 36.4 0 29.1.1 31.4 2 35.3 5.3 11 21.2 11.1 26.4.1 1.4-2.9 1.6-7.9 1.6-34.6 0-34.4.1-35.3 6.3-39 3-1.9 5.2-2 34.5-2 26.9 0 31.9-.2 34.8-1.6 11-5.2 10.9-21.1-.1-26.4-3.9-1.9-6.1-2-36.1-1.9-21.8 0-33.5.5-36.9 1.3zM345.4 63c-10.9 5.4-10.9 21.2 0 26.4 2.9 1.4 7.9 1.6 34.8 1.6 29.3 0 31.5.1 34.5 2 6.2 3.7 6.3 4.6 6.3 39 0 26.7.2 31.7 1.6 34.6 5.2 11 21.1 10.9 26.4-.1 1.9-3.9 2-6.2 2-35.3 0-19.2-.4-33.1-1.1-36.4-3.5-16.2-16.5-29.2-32.7-32.7-3.3-.7-17.2-1.1-36.5-1.1-29.3 0-31.5.1-35.3 2zM146 128.9c-6.9 2.1-12.1 6.5-15.6 13.1-1.8 3.2-1.9 6.3-1.9 38.5 0 34.2 0 35.1 2.2 39.1 2.8 5.3 9.1 10.7 14.2 12.2 2.5.8 14.4 1.2 35.8 1.2 36.3 0 38.3-.3 45.2-7.2 6.8-6.9 7.1-8.9 7.1-45.1 0-22.2-.4-33.2-1.2-36.1-1.8-6-10-13.9-16-15.4-5.3-1.3-65.5-1.6-69.8-.3zm57 51.6V203h-45v-45h45v22.5zM297 128.9c-8 2.5-14.9 9.2-16.9 16.4-.9 2.9-1.1 14.3-.9 37.7.3 37.2.2 36.2 7.4 43.3 6.6 6.4 8.8 6.7 45 6.7 35.6 0 38-.3 44.2-6.3 1.9-1.8 4.3-5 5.5-7.2 2.1-3.9 2.2-5 2.2-39s-.1-35.1-2.2-39c-2.5-4.7-6.4-8.5-11.3-11.1-3.2-1.7-6.4-1.9-37-2.1-18.4-.1-34.6.2-36 .6zm57 51.6V203h-45v-45h45v22.5zM144.1 280.3c-4.8 1.8-10.8 7.2-13.4 12-2.2 4.1-2.2 4.9-2.2 39.2 0 34 .1 35.1 2.2 39 2.5 4.7 6.4 8.5 11.3 11.1 3.2 1.7 6.6 1.9 35.5 2.2 38.9.4 40.7.2 48-7.2 3.2-3.2 5.5-6.6 6.3-9.2.8-2.9 1.2-13.9 1.2-36.1 0-35.8-.4-38.3-6.6-44.7-7-7.2-6-7.1-44.4-7.3-25.4-.1-35.4.1-37.9 1zm58.9 51.2V354h-45v-45h45v22.5zM294.8 280.4c-6.8 2.4-12.9 8.9-14.8 15.7-1.5 5-1.3 66.2.2 71 1.5 5.1 6.9 11.4 12.2 14.2 4 2.2 4.9 2.2 39.1 2.2 32.2 0 35.3-.1 38.5-1.9 4.9-2.6 8.8-6.4 11.3-11.1 2.1-3.9 2.2-5 2.2-39s-.1-35.1-2.2-39c-3-5.6-8-10.1-13.2-12-5.9-2-67.5-2.2-73.3-.1zm59.2 51.1V354h-45v-45h45v22.5zM68.7 339.2c-2.2 1.3-4.5 3.8-5.7 6.3-1.9 3.9-2 6.2-2 35.3 0 19.2.4 33.1 1.1 36.4 3.4 16.1 16.6 29.3 32.7 32.7 3.3.7 17.2 1.1 36.4 1.1 29.1 0 31.4-.1 35.3-2 11-5.3 11.1-21.2.1-26.4-2.9-1.4-7.9-1.6-34.6-1.6-34.4 0-35.3-.1-39-6.3-1.9-3-2-5.2-2-34.5 0-26.9-.2-31.9-1.6-34.8-3.6-7.5-13.5-10.5-20.7-6.2zM429.2 338.7c-1.8.9-4.3 3-5.5 4.7-2.1 3-2.2 4-2.7 36.1-.5 35.8-.6 36.1-6.3 39.5-3 1.9-5.3 2-34.5 2-34.5 0-36.1.2-40.2 6-5.4 7.5-2.8 18 5.5 22 3.9 1.9 6.2 2 35.3 2 19.2 0 33.1-.4 36.4-1.1 16.2-3.5 29.2-16.5 32.7-32.7.7-3.3 1.1-17.2 1.1-36.4 0-29.1-.1-31.4-2-35.3-3.6-7.4-12.5-10.4-19.8-6.8z"
32603
- })));
32604
- }
32605
-
32606
- var _path$2;
32607
-
32608
- function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
32609
-
32610
32589
  function SvgChevronRight(props) {
32611
- return /*#__PURE__*/React.createElement("svg", _extends$2({
32590
+ return /*#__PURE__*/React.createElement("svg", _extends$f({
32612
32591
  className: "plc-w-6 plc-h-6",
32613
32592
  xmlns: "http://www.w3.org/2000/svg",
32614
32593
  fill: "none",
32615
32594
  viewBox: "0 0 24 24",
32616
32595
  stroke: "currentColor"
32617
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
32596
+ }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
32618
32597
  strokeLinecap: "round",
32619
32598
  strokeLinejoin: "round",
32620
32599
  strokeWidth: 2,
@@ -32743,23 +32722,61 @@ const SavedItems = ({
32743
32722
  });
32744
32723
  };
32745
32724
 
32746
- var _path$1;
32725
+ var _path$e;
32747
32726
 
32748
- function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
32727
+ function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
32728
+
32729
+ function SvgRefresh(props) {
32730
+ return /*#__PURE__*/React.createElement("svg", _extends$e({
32731
+ className: "plc-w-4 plc-h-4 plc-mr-1",
32732
+ xmlns: "http://www.w3.org/2000/svg",
32733
+ fill: "none",
32734
+ viewBox: "0 0 24 24",
32735
+ stroke: "currentColor"
32736
+ }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
32737
+ strokeLinecap: "round",
32738
+ strokeLinejoin: "round",
32739
+ strokeWidth: 2,
32740
+ d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
32741
+ })));
32742
+ }
32743
+
32744
+ var _path$d;
32745
+
32746
+ function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
32749
32747
 
32750
32748
  function SvgCalendar(props) {
32751
- return /*#__PURE__*/React.createElement("svg", _extends$1({
32749
+ return /*#__PURE__*/React.createElement("svg", _extends$d({
32752
32750
  xmlns: "http://www.w3.org/2000/svg",
32753
32751
  className: "plc-h-4 plc-w-4 plc-mr-1",
32754
32752
  viewBox: "0 0 20 20",
32755
32753
  fill: "currentColor"
32756
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
32754
+ }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
32757
32755
  fillRule: "evenodd",
32758
32756
  d: "M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",
32759
32757
  clipRule: "evenodd"
32760
32758
  })));
32761
32759
  }
32762
32760
 
32761
+ var _path$c;
32762
+
32763
+ function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
32764
+
32765
+ function SvgPlus(props) {
32766
+ return /*#__PURE__*/React.createElement("svg", _extends$c({
32767
+ className: "plc-w-5 plc-h-5",
32768
+ xmlns: "http://www.w3.org/2000/svg",
32769
+ fill: "none",
32770
+ viewBox: "0 0 24 24",
32771
+ stroke: "currentColor"
32772
+ }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
32773
+ strokeLinecap: "round",
32774
+ strokeLinejoin: "round",
32775
+ strokeWidth: 2,
32776
+ d: "M12 6v6m0 0v6m0-6h6m-6 0H6"
32777
+ })));
32778
+ }
32779
+
32763
32780
  const AddNew = ({
32764
32781
  title,
32765
32782
  onClick
@@ -33418,6 +33435,25 @@ function formatStartDate(date) {
33418
33435
  return new Intl.DateTimeFormat("en-CA").format(startDate);
33419
33436
  }
33420
33437
 
33438
+ var _path$b;
33439
+
33440
+ function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
33441
+
33442
+ function SvgDocument(props) {
33443
+ return /*#__PURE__*/React.createElement("svg", _extends$b({
33444
+ xmlns: "http://www.w3.org/2000/svg",
33445
+ className: "plc-h-6 plc-w-6 plc-mr-2",
33446
+ fill: "none",
33447
+ viewBox: "0 0 24 24",
33448
+ stroke: "currentColor"
33449
+ }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
33450
+ strokeLinecap: "round",
33451
+ strokeLinejoin: "round",
33452
+ strokeWidth: 2,
33453
+ d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
33454
+ })));
33455
+ }
33456
+
33421
33457
  const InvoicesMenu = props => {
33422
33458
  const {
33423
33459
  t
@@ -33899,6 +33935,22 @@ const AddressesItems = props => {
33899
33935
  })));
33900
33936
  };
33901
33937
 
33938
+ const SUB_MENUS = {
33939
+ PROFILE: "profile",
33940
+ QRCODE: "qr-code",
33941
+ PASSWORDCHANGE: "passwordChange",
33942
+ SUBSCRIPTIONS: "subscriptions",
33943
+ DONATIONS: "donations",
33944
+ MEMBERSHIPS: "memberships",
33945
+ NEWSLETTERS: "Newsletters",
33946
+ PAYMENT_CARDS: "payment-cards",
33947
+ ADDRESSES: "addresses",
33948
+ GIFTS: "gifts",
33949
+ ORDERS: "orders",
33950
+ INVOICES: "invoices",
33951
+ LOGOUT: "logout",
33952
+ SAVED_ITEMS: "saved-items"
33953
+ };
33902
33954
  const getPaymentCardIcon = name => {
33903
33955
  var _icons$name$toLowerCa;
33904
33956
 
@@ -35605,24 +35657,8 @@ const PasswordChangeMenu = () => {
35605
35657
  }, /*#__PURE__*/React__default.createElement(PasswordChangeView, null));
35606
35658
  };
35607
35659
 
35608
- const SUB_MENUS = {
35609
- PROFILE: "profile",
35610
- QRCODE: "qr-code",
35611
- PASSWORDCHANGE: "passwordChange",
35612
- SUBSCRIPTIONS: "subscriptions",
35613
- DONATIONS: "donations",
35614
- MEMBERSHIPS: "memberships",
35615
- NEWSLETTERS: "Newsletters",
35616
- PAYMENT_CARDS: "payment-cards",
35617
- ADDRESSES: "addresses",
35618
- GIFTS: "gifts",
35619
- ORDERS: "orders",
35620
- INVOICES: "invoices",
35621
- LOGOUT: "logout",
35622
- SAVED_ITEMS: "saved-items"
35623
- };
35624
35660
  const DashboardContent = props => {
35625
- var _window$Pelcro$user$r, _window$Pelcro, _window$Pelcro$uiSett;
35661
+ var _window$Pelcro$user$r, _window$Pelcro, _window$Pelcro$uiSett, _props$children;
35626
35662
 
35627
35663
  const {
35628
35664
  state: {
@@ -35848,147 +35884,656 @@ const DashboardContent = props => {
35848
35884
  className: "plc-fill-current"
35849
35885
  }))))), /*#__PURE__*/React__default.createElement("section", {
35850
35886
  className: "plc-mt-6 plc-shadow-sm"
35851
- }, /*#__PURE__*/React__default.createElement("header", {
35852
- className: "plc-pl-4 plc-mb-2 sm:plc-pl-8"
35887
+ }, props !== null && props !== void 0 && (_props$children = props.children) !== null && _props$children !== void 0 && _props$children.length ? props === null || props === void 0 ? void 0 : props.children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
35888
+ store: store$4,
35889
+ key: i
35890
+ })) : /*#__PURE__*/React__default.cloneElement(props === null || props === void 0 ? void 0 : props.children, {
35891
+ store: store$4
35892
+ })), /*#__PURE__*/React__default.createElement(DashboardLink, {
35893
+ name: SUB_MENUS.LOGOUT,
35894
+ icon: /*#__PURE__*/React__default.createElement(SvgExit, null),
35895
+ title: t("labels.logout"),
35896
+ setActiveDashboardLink: setActiveDashboardLink,
35897
+ activeDashboardLink: activeDashboardLink
35898
+ }))), activeDashboardLink && isOpen && /*#__PURE__*/React__default.createElement("div", {
35899
+ id: "pelcro-view-dashboard-submenus",
35900
+ className: "plc-fixed plc-inset-y-0 plc-right-0 plc-h-full lg:plc-w-9/12 plc-w-full plc-bg-gray-100 plc-z-max plc-overflow-auto"
35901
+ }, activeDashboardLink === SUB_MENUS.PROFILE && /*#__PURE__*/React__default.createElement(ProfileMenu, null), activeDashboardLink === SUB_MENUS.QRCODE && /*#__PURE__*/React__default.createElement(QRCodeMenu, null), activeDashboardLink === SUB_MENUS.PASSWORDCHANGE && /*#__PURE__*/React__default.createElement(PasswordChangeMenu, null), activeDashboardLink === SUB_MENUS.SAVED_ITEMS && /*#__PURE__*/React__default.createElement(SavedItemsMenu, null), activeDashboardLink === SUB_MENUS.PAYMENT_CARDS && /*#__PURE__*/React__default.createElement(PaymentCardsMenu, null), activeDashboardLink === SUB_MENUS.ADDRESSES && /*#__PURE__*/React__default.createElement(AddressesMenu, null), activeDashboardLink === SUB_MENUS.SUBSCRIPTIONS && /*#__PURE__*/React__default.createElement(SubscriptionsMenu, {
35902
+ displayProductSelect: displayProductSelect,
35903
+ setProductAndPlan: setProductAndPlan,
35904
+ setSubscriptionIdToRenew: setSubscriptionIdToRenew,
35905
+ getSubscriptionStatus: getSubscriptionStatus
35906
+ }), activeDashboardLink === SUB_MENUS.MEMBERSHIPS && /*#__PURE__*/React__default.createElement(MembershipsMenu, {
35907
+ getSubscriptionStatus: getSubscriptionStatus
35908
+ }), activeDashboardLink === SUB_MENUS.NEWSLETTERS && /*#__PURE__*/React__default.createElement(NewslettersMenu, null), activeDashboardLink === SUB_MENUS.DONATIONS && /*#__PURE__*/React__default.createElement(DonationsMenu, {
35909
+ getSubscriptionStatus: getSubscriptionStatus
35910
+ }), activeDashboardLink === SUB_MENUS.GIFTS && /*#__PURE__*/React__default.createElement(GiftsMenu, {
35911
+ getSubscriptionStatus: getSubscriptionStatus,
35912
+ displayProductSelect: displayProductSelect,
35913
+ setProductAndPlan: setProductAndPlan,
35914
+ setSubscriptionIdToRenew: setSubscriptionIdToRenew,
35915
+ disableSubmit: disableSubmit
35916
+ }), activeDashboardLink === SUB_MENUS.ORDERS && /*#__PURE__*/React__default.createElement(OrdersMenu, null), activeDashboardLink === SUB_MENUS.INVOICES && /*#__PURE__*/React__default.createElement(InvoicesMenu, null), activeDashboardLink === SUB_MENUS.LOGOUT && logout(), /*#__PURE__*/React__default.createElement(Button, {
35917
+ variant: "ghost",
35918
+ type: "button",
35919
+ className: "plc-text-gray-500 plc-rounded-2xl plc-absolute plc-z-max plc-top-2 plc-right-2 md:plc-top-5 md:plc-right-10",
35920
+ onClick: closeDashboard
35921
+ }, /*#__PURE__*/React__default.createElement(SvgXIcon, {
35922
+ className: "plc-fill-current"
35923
+ }))));
35924
+ };
35925
+
35926
+ const DashboardHeading = ({
35927
+ title
35928
+ }) => {
35929
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, title && /*#__PURE__*/React__default.createElement("header", {
35930
+ className: "plc-pl-4 plc-my-2 sm:plc-pl-8"
35853
35931
  }, /*#__PURE__*/React__default.createElement("p", {
35854
35932
  className: "plc-font-bold plc-tracking-widest plc-text-gray-500"
35855
- }, t("labels.mySettings"))), /*#__PURE__*/React__default.createElement(DashboardLink, {
35933
+ }, title)));
35934
+ };
35935
+
35936
+ var _path$a;
35937
+
35938
+ function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
35939
+
35940
+ function SvgUser(props) {
35941
+ return /*#__PURE__*/React.createElement("svg", _extends$a({
35942
+ xmlns: "http://www.w3.org/2000/svg",
35943
+ fill: "none",
35944
+ viewBox: "0 0 24 24",
35945
+ stroke: "currentColor"
35946
+ }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
35947
+ strokeLinecap: "round",
35948
+ strokeLinejoin: "round",
35949
+ strokeWidth: 2,
35950
+ d: "M16 7a4 4 0 11-8 0 4 4 0 018 0zm-4 7a7 7 0 00-7 7h14a7 7 0 00-7-7z"
35951
+ })));
35952
+ }
35953
+
35954
+ const DashboardProfile = ({
35955
+ title,
35956
+ icon,
35957
+ store
35958
+ }) => {
35959
+ const {
35960
+ state: {
35961
+ activeDashboardLink
35962
+ },
35963
+ dispatch
35964
+ } = useContext(store);
35965
+ const {
35966
+ t
35967
+ } = useTranslation("dashboard");
35968
+
35969
+ const setActiveDashboardLink = submenuName => {
35970
+ dispatch({
35971
+ type: SET_ACTIVE_DASHBOARD_LINK,
35972
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
35973
+ });
35974
+ };
35975
+
35976
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35856
35977
  name: SUB_MENUS.PROFILE,
35857
- icon: /*#__PURE__*/React__default.createElement(SvgUser, {
35978
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgUser, {
35858
35979
  className: "plc-w-6 plc-h-6 plc-mr-2"
35859
35980
  }),
35860
- title: t("labels.profile"),
35981
+ title: title !== null && title !== void 0 ? title : t("labels.profile"),
35861
35982
  setActiveDashboardLink: setActiveDashboardLink,
35862
35983
  activeDashboardLink: activeDashboardLink
35863
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
35984
+ });
35985
+ };
35986
+
35987
+ var _path$9;
35988
+
35989
+ function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
35990
+
35991
+ function SvgQrcode(props) {
35992
+ return /*#__PURE__*/React.createElement("svg", _extends$9({
35993
+ xmlns: "http://www.w3.org/2000/svg",
35994
+ width: 682.667,
35995
+ height: 682.667,
35996
+ viewBox: "0 0 512 512"
35997
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
35998
+ d: "M93.5 62.4c-15.7 3.9-28 16.6-31.4 32.4-.7 3.3-1.1 17.2-1.1 36.4 0 29.1.1 31.4 2 35.3 5.3 11 21.2 11.1 26.4.1 1.4-2.9 1.6-7.9 1.6-34.6 0-34.4.1-35.3 6.3-39 3-1.9 5.2-2 34.5-2 26.9 0 31.9-.2 34.8-1.6 11-5.2 10.9-21.1-.1-26.4-3.9-1.9-6.1-2-36.1-1.9-21.8 0-33.5.5-36.9 1.3zM345.4 63c-10.9 5.4-10.9 21.2 0 26.4 2.9 1.4 7.9 1.6 34.8 1.6 29.3 0 31.5.1 34.5 2 6.2 3.7 6.3 4.6 6.3 39 0 26.7.2 31.7 1.6 34.6 5.2 11 21.1 10.9 26.4-.1 1.9-3.9 2-6.2 2-35.3 0-19.2-.4-33.1-1.1-36.4-3.5-16.2-16.5-29.2-32.7-32.7-3.3-.7-17.2-1.1-36.5-1.1-29.3 0-31.5.1-35.3 2zM146 128.9c-6.9 2.1-12.1 6.5-15.6 13.1-1.8 3.2-1.9 6.3-1.9 38.5 0 34.2 0 35.1 2.2 39.1 2.8 5.3 9.1 10.7 14.2 12.2 2.5.8 14.4 1.2 35.8 1.2 36.3 0 38.3-.3 45.2-7.2 6.8-6.9 7.1-8.9 7.1-45.1 0-22.2-.4-33.2-1.2-36.1-1.8-6-10-13.9-16-15.4-5.3-1.3-65.5-1.6-69.8-.3zm57 51.6V203h-45v-45h45v22.5zM297 128.9c-8 2.5-14.9 9.2-16.9 16.4-.9 2.9-1.1 14.3-.9 37.7.3 37.2.2 36.2 7.4 43.3 6.6 6.4 8.8 6.7 45 6.7 35.6 0 38-.3 44.2-6.3 1.9-1.8 4.3-5 5.5-7.2 2.1-3.9 2.2-5 2.2-39s-.1-35.1-2.2-39c-2.5-4.7-6.4-8.5-11.3-11.1-3.2-1.7-6.4-1.9-37-2.1-18.4-.1-34.6.2-36 .6zm57 51.6V203h-45v-45h45v22.5zM144.1 280.3c-4.8 1.8-10.8 7.2-13.4 12-2.2 4.1-2.2 4.9-2.2 39.2 0 34 .1 35.1 2.2 39 2.5 4.7 6.4 8.5 11.3 11.1 3.2 1.7 6.6 1.9 35.5 2.2 38.9.4 40.7.2 48-7.2 3.2-3.2 5.5-6.6 6.3-9.2.8-2.9 1.2-13.9 1.2-36.1 0-35.8-.4-38.3-6.6-44.7-7-7.2-6-7.1-44.4-7.3-25.4-.1-35.4.1-37.9 1zm58.9 51.2V354h-45v-45h45v22.5zM294.8 280.4c-6.8 2.4-12.9 8.9-14.8 15.7-1.5 5-1.3 66.2.2 71 1.5 5.1 6.9 11.4 12.2 14.2 4 2.2 4.9 2.2 39.1 2.2 32.2 0 35.3-.1 38.5-1.9 4.9-2.6 8.8-6.4 11.3-11.1 2.1-3.9 2.2-5 2.2-39s-.1-35.1-2.2-39c-3-5.6-8-10.1-13.2-12-5.9-2-67.5-2.2-73.3-.1zm59.2 51.1V354h-45v-45h45v22.5zM68.7 339.2c-2.2 1.3-4.5 3.8-5.7 6.3-1.9 3.9-2 6.2-2 35.3 0 19.2.4 33.1 1.1 36.4 3.4 16.1 16.6 29.3 32.7 32.7 3.3.7 17.2 1.1 36.4 1.1 29.1 0 31.4-.1 35.3-2 11-5.3 11.1-21.2.1-26.4-2.9-1.4-7.9-1.6-34.6-1.6-34.4 0-35.3-.1-39-6.3-1.9-3-2-5.2-2-34.5 0-26.9-.2-31.9-1.6-34.8-3.6-7.5-13.5-10.5-20.7-6.2zM429.2 338.7c-1.8.9-4.3 3-5.5 4.7-2.1 3-2.2 4-2.7 36.1-.5 35.8-.6 36.1-6.3 39.5-3 1.9-5.3 2-34.5 2-34.5 0-36.1.2-40.2 6-5.4 7.5-2.8 18 5.5 22 3.9 1.9 6.2 2 35.3 2 19.2 0 33.1-.4 36.4-1.1 16.2-3.5 29.2-16.5 32.7-32.7.7-3.3 1.1-17.2 1.1-36.4 0-29.1-.1-31.4-2-35.3-3.6-7.4-12.5-10.4-19.8-6.8z"
35999
+ })));
36000
+ }
36001
+
36002
+ const DashboardQRCode = ({
36003
+ title,
36004
+ icon,
36005
+ store
36006
+ }) => {
36007
+ const {
36008
+ state: {
36009
+ activeDashboardLink
36010
+ },
36011
+ dispatch
36012
+ } = useContext(store);
36013
+ useTranslation("dashboard");
36014
+
36015
+ const setActiveDashboardLink = submenuName => {
36016
+ dispatch({
36017
+ type: SET_ACTIVE_DASHBOARD_LINK,
36018
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36019
+ });
36020
+ };
36021
+
36022
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35864
36023
  name: SUB_MENUS.QRCODE,
35865
- icon: /*#__PURE__*/React__default.createElement(SvgQrcode, {
36024
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgQrcode, {
35866
36025
  className: "plc-w-6 plc-h-6 plc-mr-2"
35867
36026
  }),
35868
- title: "My QR code",
36027
+ title: title !== null && title !== void 0 ? title : "My QR code",
35869
36028
  setActiveDashboardLink: setActiveDashboardLink,
35870
36029
  activeDashboardLink: activeDashboardLink
35871
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
36030
+ });
36031
+ };
36032
+
36033
+ var _path$8;
36034
+
36035
+ function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
36036
+
36037
+ function SvgKey(props) {
36038
+ return /*#__PURE__*/React.createElement("svg", _extends$8({
36039
+ xmlns: "http://www.w3.org/2000/svg",
36040
+ viewBox: "0 0 20 20",
36041
+ fill: "currentColor"
36042
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
36043
+ fillRule: "evenodd",
36044
+ d: "M18 8a6 6 0 01-7.743 5.743L10 14l-1 1-1 1H6v2H2v-4l4.257-4.257A6 6 0 1118 8zm-6-4a1 1 0 100 2 2 2 0 012 2 1 1 0 102 0 4 4 0 00-4-4z",
36045
+ clipRule: "evenodd"
36046
+ })));
36047
+ }
36048
+
36049
+ const DashboardPasswordChange = ({
36050
+ title,
36051
+ icon,
36052
+ store
36053
+ }) => {
36054
+ const {
36055
+ state: {
36056
+ activeDashboardLink
36057
+ },
36058
+ dispatch
36059
+ } = useContext(store);
36060
+ const {
36061
+ t
36062
+ } = useTranslation("dashboard");
36063
+
36064
+ const setActiveDashboardLink = submenuName => {
36065
+ dispatch({
36066
+ type: SET_ACTIVE_DASHBOARD_LINK,
36067
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36068
+ });
36069
+ };
36070
+
36071
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35872
36072
  name: SUB_MENUS.PASSWORDCHANGE,
35873
- icon: /*#__PURE__*/React__default.createElement(SvgKey, {
36073
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgKey, {
35874
36074
  className: "plc-w-6 plc-h-6 plc-mr-2"
35875
36075
  }),
35876
- title: t("labels.changePassword"),
36076
+ title: title !== null && title !== void 0 ? title : t("labels.changePassword"),
35877
36077
  setActiveDashboardLink: setActiveDashboardLink,
35878
36078
  activeDashboardLink: activeDashboardLink
35879
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
36079
+ });
36080
+ };
36081
+
36082
+ var _path$7;
36083
+
36084
+ function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
36085
+
36086
+ function SvgBookmark(props) {
36087
+ return /*#__PURE__*/React.createElement("svg", _extends$7({
36088
+ className: "plc-w-6 plc-h-6 plc-mr-2",
36089
+ xmlns: "http://www.w3.org/2000/svg",
36090
+ fill: "none",
36091
+ viewBox: "0 0 24 24",
36092
+ stroke: "currentColor"
36093
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
36094
+ strokeLinecap: "round",
36095
+ strokeLinejoin: "round",
36096
+ strokeWidth: 2,
36097
+ d: "M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"
36098
+ })));
36099
+ }
36100
+
36101
+ const DashboardSavedItems = ({
36102
+ title,
36103
+ icon,
36104
+ store
36105
+ }) => {
36106
+ const {
36107
+ state: {
36108
+ activeDashboardLink
36109
+ },
36110
+ dispatch
36111
+ } = useContext(store);
36112
+ const {
36113
+ t
36114
+ } = useTranslation("dashboard");
36115
+
36116
+ const setActiveDashboardLink = submenuName => {
36117
+ dispatch({
36118
+ type: SET_ACTIVE_DASHBOARD_LINK,
36119
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36120
+ });
36121
+ };
36122
+
36123
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35880
36124
  name: SUB_MENUS.SAVED_ITEMS,
35881
- icon: /*#__PURE__*/React__default.createElement(SvgBookmark, null),
35882
- title: t("labels.savedItems.label"),
36125
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgBookmark, null),
36126
+ title: title !== null && title !== void 0 ? title : t("labels.savedItems.label"),
35883
36127
  setActiveDashboardLink: setActiveDashboardLink,
35884
36128
  activeDashboardLink: activeDashboardLink
35885
- }), /*#__PURE__*/React__default.createElement("header", {
35886
- className: "plc-pl-4 plc-mb-2 sm:plc-pl-8"
35887
- }, /*#__PURE__*/React__default.createElement("p", {
35888
- className: "plc-font-bold plc-tracking-widest plc-text-gray-500"
35889
- }, t("labels.accountSettings"))), /*#__PURE__*/React__default.createElement(DashboardLink, {
36129
+ });
36130
+ };
36131
+
36132
+ var _path$6;
36133
+
36134
+ function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
36135
+
36136
+ function SvgPaymentCard(props) {
36137
+ return /*#__PURE__*/React.createElement("svg", _extends$6({
36138
+ className: "plc-w-6 plc-h-6 plc-mr-2",
36139
+ xmlns: "http://www.w3.org/2000/svg",
36140
+ fill: "none",
36141
+ viewBox: "0 0 24 24",
36142
+ stroke: "currentColor"
36143
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
36144
+ strokeLinecap: "round",
36145
+ strokeLinejoin: "round",
36146
+ strokeWidth: 2,
36147
+ d: "M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"
36148
+ })));
36149
+ }
36150
+
36151
+ const DashboardPaymentCards = ({
36152
+ title,
36153
+ icon,
36154
+ store
36155
+ }) => {
36156
+ const {
36157
+ state: {
36158
+ activeDashboardLink
36159
+ },
36160
+ dispatch
36161
+ } = useContext(store);
36162
+ const {
36163
+ t
36164
+ } = useTranslation("dashboard");
36165
+
36166
+ const setActiveDashboardLink = submenuName => {
36167
+ dispatch({
36168
+ type: SET_ACTIVE_DASHBOARD_LINK,
36169
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36170
+ });
36171
+ };
36172
+
36173
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35890
36174
  name: SUB_MENUS.PAYMENT_CARDS,
35891
- icon: /*#__PURE__*/React__default.createElement(SvgPaymentCard, null),
35892
- title: t("labels.paymentSource"),
36175
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgPaymentCard, null),
36176
+ title: title !== null && title !== void 0 ? title : t("labels.paymentSource"),
35893
36177
  setActiveDashboardLink: setActiveDashboardLink,
35894
36178
  activeDashboardLink: activeDashboardLink
35895
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
36179
+ });
36180
+ };
36181
+
36182
+ var _path$5, _path2;
36183
+
36184
+ function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
36185
+
36186
+ function SvgLocationPin(props) {
36187
+ return /*#__PURE__*/React.createElement("svg", _extends$5({
36188
+ className: "plc-w-6 plc-h-6 plc-mr-2",
36189
+ xmlns: "http://www.w3.org/2000/svg",
36190
+ fill: "none",
36191
+ viewBox: "0 0 24 24",
36192
+ stroke: "currentColor"
36193
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
36194
+ strokeLinecap: "round",
36195
+ strokeLinejoin: "round",
36196
+ strokeWidth: 2,
36197
+ d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"
36198
+ })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
36199
+ strokeLinecap: "round",
36200
+ strokeLinejoin: "round",
36201
+ strokeWidth: 2,
36202
+ d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z"
36203
+ })));
36204
+ }
36205
+
36206
+ const DashboardAddresses = ({
36207
+ title,
36208
+ icon,
36209
+ store
36210
+ }) => {
36211
+ const {
36212
+ state: {
36213
+ activeDashboardLink
36214
+ },
36215
+ dispatch
36216
+ } = useContext(store);
36217
+ const {
36218
+ t
36219
+ } = useTranslation("dashboard");
36220
+
36221
+ const setActiveDashboardLink = submenuName => {
36222
+ dispatch({
36223
+ type: SET_ACTIVE_DASHBOARD_LINK,
36224
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36225
+ });
36226
+ };
36227
+
36228
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35896
36229
  name: SUB_MENUS.ADDRESSES,
35897
- icon: /*#__PURE__*/React__default.createElement(SvgLocationPin, null),
35898
- title: t("labels.addresses"),
36230
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgLocationPin, null),
36231
+ title: title !== null && title !== void 0 ? title : t("labels.addresses"),
35899
36232
  setActiveDashboardLink: setActiveDashboardLink,
35900
36233
  activeDashboardLink: activeDashboardLink
35901
- }), /*#__PURE__*/React__default.createElement("header", {
35902
- className: "plc-pl-4 plc-my-2 sm:plc-pl-8"
35903
- }, /*#__PURE__*/React__default.createElement("p", {
35904
- className: "plc-font-bold plc-tracking-widest plc-text-gray-500"
35905
- }, t("labels.purchases"))), /*#__PURE__*/React__default.createElement(DashboardLink, {
36234
+ });
36235
+ };
36236
+
36237
+ const DashboardSubscriptions = ({
36238
+ title,
36239
+ icon,
36240
+ store
36241
+ }) => {
36242
+ const {
36243
+ state: {
36244
+ activeDashboardLink
36245
+ },
36246
+ dispatch
36247
+ } = useContext(store);
36248
+ const {
36249
+ t
36250
+ } = useTranslation("dashboard");
36251
+
36252
+ const setActiveDashboardLink = submenuName => {
36253
+ dispatch({
36254
+ type: SET_ACTIVE_DASHBOARD_LINK,
36255
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36256
+ });
36257
+ };
36258
+
36259
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35906
36260
  name: SUB_MENUS.SUBSCRIPTIONS,
35907
- icon: /*#__PURE__*/React__default.createElement(SvgSubscription, {
36261
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgSubscription, {
35908
36262
  className: "plc-w-10 plc-h-10 plc-pt-2 plc-pr-1 plc--ml-2"
35909
36263
  }),
35910
- title: t("labels.subscriptions"),
36264
+ title: title !== null && title !== void 0 ? title : t("labels.subscriptions"),
35911
36265
  setActiveDashboardLink: setActiveDashboardLink,
35912
36266
  activeDashboardLink: activeDashboardLink
35913
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
36267
+ });
36268
+ };
36269
+
36270
+ var _path$4;
36271
+
36272
+ function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
36273
+
36274
+ function SvgNewsletter(props) {
36275
+ return /*#__PURE__*/React.createElement("svg", _extends$4({
36276
+ xmlns: "http://www.w3.org/2000/svg",
36277
+ className: "plc-h-5 plc-w-5",
36278
+ fill: "none",
36279
+ viewBox: "0 0 24 24",
36280
+ stroke: "currentColor"
36281
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
36282
+ strokeLinecap: "round",
36283
+ strokeLinejoin: "round",
36284
+ strokeWidth: 2,
36285
+ d: "M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"
36286
+ })));
36287
+ }
36288
+
36289
+ const DashboardNewsletters = ({
36290
+ title,
36291
+ icon,
36292
+ store
36293
+ }) => {
36294
+ const {
36295
+ state: {
36296
+ activeDashboardLink
36297
+ },
36298
+ dispatch
36299
+ } = useContext(store);
36300
+ const {
36301
+ t
36302
+ } = useTranslation("dashboard");
36303
+
36304
+ const setActiveDashboardLink = submenuName => {
36305
+ dispatch({
36306
+ type: SET_ACTIVE_DASHBOARD_LINK,
36307
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36308
+ });
36309
+ };
36310
+
36311
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35914
36312
  show: showNewsletters(),
35915
36313
  name: SUB_MENUS.NEWSLETTERS,
35916
- icon: /*#__PURE__*/React__default.createElement(SvgNewsletter, {
36314
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgNewsletter, {
35917
36315
  className: "plc-transform plc--translate-x-1 plc-scale-105 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
35918
36316
  }),
35919
- title: t("labels.Newsletters"),
36317
+ title: title !== null && title !== void 0 ? title : t("labels.Newsletters"),
35920
36318
  setActiveDashboardLink: setActiveDashboardLink,
35921
36319
  activeDashboardLink: activeDashboardLink
35922
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
36320
+ });
36321
+ };
36322
+
36323
+ var _path$3;
36324
+
36325
+ function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
36326
+
36327
+ function SvgMemberships(props) {
36328
+ return /*#__PURE__*/React.createElement("svg", _extends$3({
36329
+ xmlns: "http://www.w3.org/2000/svg",
36330
+ fill: "none",
36331
+ strokeWidth: 1.5,
36332
+ stroke: "currentColor",
36333
+ width: 24,
36334
+ height: 24
36335
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
36336
+ strokeLinecap: "round",
36337
+ strokeLinejoin: "round",
36338
+ d: "M15 9h3.75M15 12h3.75M15 15h3.75M4.5 19.5h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5zm6-10.125a1.875 1.875 0 11-3.75 0 1.875 1.875 0 013.75 0zm1.294 6.336a6.721 6.721 0 01-3.17.789 6.721 6.721 0 01-3.168-.789 3.376 3.376 0 016.338 0z"
36339
+ })));
36340
+ }
36341
+
36342
+ const DashboardMemberships = ({
36343
+ title,
36344
+ icon,
36345
+ store
36346
+ }) => {
36347
+ const {
36348
+ state: {
36349
+ activeDashboardLink
36350
+ },
36351
+ dispatch
36352
+ } = useContext(store);
36353
+ const {
36354
+ t
36355
+ } = useTranslation("dashboard");
36356
+
36357
+ const setActiveDashboardLink = submenuName => {
36358
+ dispatch({
36359
+ type: SET_ACTIVE_DASHBOARD_LINK,
36360
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36361
+ });
36362
+ };
36363
+
36364
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35923
36365
  show: hasActiveMemberships(),
35924
36366
  name: SUB_MENUS.MEMBERSHIPS,
35925
- icon: /*#__PURE__*/React__default.createElement(SvgMemberships, {
36367
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgMemberships, {
35926
36368
  className: "plc-transform plc-scale-120 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
35927
36369
  }),
35928
- title: t("labels.memberships"),
36370
+ title: title !== null && title !== void 0 ? title : t("labels.memberships"),
35929
36371
  setActiveDashboardLink: setActiveDashboardLink,
35930
36372
  activeDashboardLink: activeDashboardLink
35931
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
36373
+ });
36374
+ };
36375
+
36376
+ var _path$2;
36377
+
36378
+ function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
36379
+
36380
+ function SvgDonate(props) {
36381
+ return /*#__PURE__*/React.createElement("svg", _extends$2({
36382
+ width: 24,
36383
+ height: 24,
36384
+ fill: "currentColor",
36385
+ xmlns: "http://www.w3.org/2000/svg"
36386
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
36387
+ d: "M4 21h9.62a3.995 3.995 0 003.037-1.397l5.102-5.952a1 1 0 00-.442-1.6l-1.968-.656a3.043 3.043 0 00-2.823.503l-3.185 2.547-.617-1.235A3.98 3.98 0 009.146 11H4c-1.103 0-2 .897-2 2v6c0 1.103.897 2 2 2zm0-8h5.146c.763 0 1.448.423 1.789 1.105l.447.895H7v2h6.014a.996.996 0 00.442-.11l.003-.001.004-.002h.003l.002-.001h.004l.001-.001c.009.003.003-.001.003-.001.01 0 .002-.001.002-.001h.001l.002-.001.003-.001.002-.001.002-.001.003-.001.002-.001c.003 0 .001-.001.002-.001l.003-.002.002-.001.002-.001.003-.001.002-.001h.001l.002-.001h.001l.002-.001.002-.001c.009-.001.003-.001.003-.001l.002-.001a.915.915 0 00.11-.078l4.146-3.317c.262-.208.623-.273.94-.167l.557.186-4.133 4.823a2.029 2.029 0 01-1.52.688H4v-6zM16 2h-.017c-.163.002-1.006.039-1.983.705-.951-.648-1.774-.7-1.968-.704L12.002 2h-.004c-.801 0-1.555.313-2.119.878C9.313 3.445 9 4.198 9 5s.313 1.555.861 2.104l3.414 3.586a1.006 1.006 0 001.45-.001l3.396-3.568C18.688 6.555 19 5.802 19 5s-.313-1.555-.878-2.121A2.978 2.978 0 0016.002 2H16zm1 3c0 .267-.104.518-.311.725L14 8.55l-2.707-2.843C11.104 5.518 11 5.267 11 5s.104-.518.294-.708A.977.977 0 0111.979 4c.025.001.502.032 1.067.485.081.065.163.139.247.222l.707.707.707-.707c.084-.083.166-.157.247-.222.529-.425.976-.478 1.052-.484a.987.987 0 01.701.292c.189.189.293.44.293.707z"
36388
+ })));
36389
+ }
36390
+
36391
+ const DashboardDonations = ({
36392
+ title,
36393
+ icon,
36394
+ store
36395
+ }) => {
36396
+ const {
36397
+ state: {
36398
+ activeDashboardLink
36399
+ },
36400
+ dispatch
36401
+ } = useContext(store);
36402
+ const {
36403
+ t
36404
+ } = useTranslation("dashboard");
36405
+
36406
+ const setActiveDashboardLink = submenuName => {
36407
+ dispatch({
36408
+ type: SET_ACTIVE_DASHBOARD_LINK,
36409
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36410
+ });
36411
+ };
36412
+
36413
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35932
36414
  show: hasDonationSubs(),
35933
36415
  name: SUB_MENUS.DONATIONS,
35934
- icon: /*#__PURE__*/React__default.createElement(SvgDonate, {
36416
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgDonate, {
35935
36417
  className: "plc-transform plc-scale-120 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
35936
36418
  }),
35937
- title: t("labels.donations"),
36419
+ title: title !== null && title !== void 0 ? title : t("labels.donations"),
35938
36420
  setActiveDashboardLink: setActiveDashboardLink,
35939
36421
  activeDashboardLink: activeDashboardLink
35940
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
36422
+ });
36423
+ };
36424
+
36425
+ const DashboardGifts = ({
36426
+ title,
36427
+ icon,
36428
+ store
36429
+ }) => {
36430
+ const {
36431
+ state: {
36432
+ activeDashboardLink
36433
+ },
36434
+ dispatch
36435
+ } = useContext(store);
36436
+ const {
36437
+ t
36438
+ } = useTranslation("dashboard");
36439
+
36440
+ const setActiveDashboardLink = submenuName => {
36441
+ dispatch({
36442
+ type: SET_ACTIVE_DASHBOARD_LINK,
36443
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36444
+ });
36445
+ };
36446
+
36447
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35941
36448
  name: SUB_MENUS.GIFTS,
35942
- icon: /*#__PURE__*/React__default.createElement(SvgGift, null),
35943
- title: t("labels.gifts"),
36449
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgGift, null),
36450
+ title: title !== null && title !== void 0 ? title : t("labels.gifts"),
35944
36451
  setActiveDashboardLink: setActiveDashboardLink,
35945
36452
  activeDashboardLink: activeDashboardLink
35946
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
36453
+ });
36454
+ };
36455
+
36456
+ var _path$1;
36457
+
36458
+ function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
36459
+
36460
+ function SvgShopping(props) {
36461
+ return /*#__PURE__*/React.createElement("svg", _extends$1({
36462
+ className: "plc-w-6 plc-h-6 plc-mr-2",
36463
+ xmlns: "http://www.w3.org/2000/svg",
36464
+ fill: "none",
36465
+ viewBox: "0 0 24 24",
36466
+ stroke: "currentColor"
36467
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
36468
+ strokeLinecap: "round",
36469
+ strokeLinejoin: "round",
36470
+ strokeWidth: 2,
36471
+ d: "M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"
36472
+ })));
36473
+ }
36474
+
36475
+ const DashboardOrders = ({
36476
+ title,
36477
+ icon,
36478
+ store
36479
+ }) => {
36480
+ const {
36481
+ state: {
36482
+ activeDashboardLink
36483
+ },
36484
+ dispatch
36485
+ } = useContext(store);
36486
+ const {
36487
+ t
36488
+ } = useTranslation("dashboard");
36489
+
36490
+ const setActiveDashboardLink = submenuName => {
36491
+ dispatch({
36492
+ type: SET_ACTIVE_DASHBOARD_LINK,
36493
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36494
+ });
36495
+ };
36496
+
36497
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35947
36498
  show: window.Pelcro.site.read().ecommerce_enabled,
35948
36499
  name: SUB_MENUS.ORDERS,
35949
- icon: /*#__PURE__*/React__default.createElement(SvgShopping, null),
35950
- title: t("labels.orders.label"),
36500
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgShopping, null),
36501
+ title: title !== null && title !== void 0 ? title : t("labels.orders.label"),
35951
36502
  setActiveDashboardLink: setActiveDashboardLink,
35952
36503
  activeDashboardLink: activeDashboardLink
35953
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
36504
+ });
36505
+ };
36506
+
36507
+ const DashboardInvoices = ({
36508
+ title,
36509
+ icon,
36510
+ store
36511
+ }) => {
36512
+ const {
36513
+ state: {
36514
+ activeDashboardLink
36515
+ },
36516
+ dispatch
36517
+ } = useContext(store);
36518
+ const {
36519
+ t
36520
+ } = useTranslation("dashboard");
36521
+
36522
+ const setActiveDashboardLink = submenuName => {
36523
+ dispatch({
36524
+ type: SET_ACTIVE_DASHBOARD_LINK,
36525
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36526
+ });
36527
+ };
36528
+
36529
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35954
36530
  show: hasInvoices(),
35955
36531
  name: SUB_MENUS.INVOICES,
35956
- icon: /*#__PURE__*/React__default.createElement(SvgDocument, null),
35957
- title: t("labels.invoices"),
35958
- setActiveDashboardLink: setActiveDashboardLink,
35959
- activeDashboardLink: activeDashboardLink
35960
- })), /*#__PURE__*/React__default.createElement(DashboardLink, {
35961
- name: SUB_MENUS.LOGOUT,
35962
- icon: /*#__PURE__*/React__default.createElement(SvgExit, null),
35963
- title: t("labels.logout"),
36532
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgDocument, null),
36533
+ title: title !== null && title !== void 0 ? title : t("labels.invoices"),
35964
36534
  setActiveDashboardLink: setActiveDashboardLink,
35965
36535
  activeDashboardLink: activeDashboardLink
35966
- }))), activeDashboardLink && isOpen && /*#__PURE__*/React__default.createElement("div", {
35967
- id: "pelcro-view-dashboard-submenus",
35968
- className: "plc-fixed plc-inset-y-0 plc-right-0 plc-h-full lg:plc-w-9/12 plc-w-full plc-bg-gray-100 plc-z-max plc-overflow-auto"
35969
- }, activeDashboardLink === SUB_MENUS.PROFILE && /*#__PURE__*/React__default.createElement(ProfileMenu, null), activeDashboardLink === SUB_MENUS.QRCODE && /*#__PURE__*/React__default.createElement(QRCodeMenu, null), activeDashboardLink === SUB_MENUS.PASSWORDCHANGE && /*#__PURE__*/React__default.createElement(PasswordChangeMenu, null), activeDashboardLink === SUB_MENUS.SAVED_ITEMS && /*#__PURE__*/React__default.createElement(SavedItemsMenu, null), activeDashboardLink === SUB_MENUS.PAYMENT_CARDS && /*#__PURE__*/React__default.createElement(PaymentCardsMenu, null), activeDashboardLink === SUB_MENUS.ADDRESSES && /*#__PURE__*/React__default.createElement(AddressesMenu, null), activeDashboardLink === SUB_MENUS.SUBSCRIPTIONS && /*#__PURE__*/React__default.createElement(SubscriptionsMenu, {
35970
- displayProductSelect: displayProductSelect,
35971
- setProductAndPlan: setProductAndPlan,
35972
- setSubscriptionIdToRenew: setSubscriptionIdToRenew,
35973
- getSubscriptionStatus: getSubscriptionStatus
35974
- }), activeDashboardLink === SUB_MENUS.MEMBERSHIPS && /*#__PURE__*/React__default.createElement(MembershipsMenu, {
35975
- getSubscriptionStatus: getSubscriptionStatus
35976
- }), activeDashboardLink === SUB_MENUS.NEWSLETTERS && /*#__PURE__*/React__default.createElement(NewslettersMenu, null), activeDashboardLink === SUB_MENUS.DONATIONS && /*#__PURE__*/React__default.createElement(DonationsMenu, {
35977
- getSubscriptionStatus: getSubscriptionStatus
35978
- }), activeDashboardLink === SUB_MENUS.GIFTS && /*#__PURE__*/React__default.createElement(GiftsMenu, {
35979
- getSubscriptionStatus: getSubscriptionStatus,
35980
- displayProductSelect: displayProductSelect,
35981
- setProductAndPlan: setProductAndPlan,
35982
- setSubscriptionIdToRenew: setSubscriptionIdToRenew,
35983
- disableSubmit: disableSubmit
35984
- }), activeDashboardLink === SUB_MENUS.ORDERS && /*#__PURE__*/React__default.createElement(OrdersMenu, null), activeDashboardLink === SUB_MENUS.INVOICES && /*#__PURE__*/React__default.createElement(InvoicesMenu, null), activeDashboardLink === SUB_MENUS.LOGOUT && logout(), /*#__PURE__*/React__default.createElement(Button, {
35985
- variant: "ghost",
35986
- type: "button",
35987
- className: "plc-text-gray-500 plc-rounded-2xl plc-absolute plc-z-max plc-top-2 plc-right-2 md:plc-top-5 md:plc-right-10",
35988
- onClick: closeDashboard
35989
- }, /*#__PURE__*/React__default.createElement(SvgXIcon, {
35990
- className: "plc-fill-current"
35991
- }))));
36536
+ });
35992
36537
  };
35993
36538
 
35994
36539
  /**
@@ -36004,6 +36549,9 @@ function Dashboard(props) {
36004
36549
  const {
36005
36550
  resetView
36006
36551
  } = usePelcro();
36552
+ const {
36553
+ t
36554
+ } = useTranslation("dashboard");
36007
36555
  return /*#__PURE__*/React__default.createElement(DashboardContainer, props, /*#__PURE__*/React__default.createElement(DashboardContent, Object.assign({
36008
36556
  onClose: () => {
36009
36557
  var _props$onClose;
@@ -36011,7 +36559,13 @@ function Dashboard(props) {
36011
36559
  (_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
36012
36560
  resetView();
36013
36561
  }
36014
- }, props)));
36562
+ }, props), /*#__PURE__*/React__default.createElement(DashboardHeading, {
36563
+ title: t("labels.mySettings")
36564
+ }), /*#__PURE__*/React__default.createElement(DashboardProfile, null), /*#__PURE__*/React__default.createElement(DashboardQRCode, null), /*#__PURE__*/React__default.createElement(DashboardPasswordChange, null), /*#__PURE__*/React__default.createElement(DashboardSavedItems, null), /*#__PURE__*/React__default.createElement(DashboardHeading, {
36565
+ title: t("labels.accountSettings")
36566
+ }), /*#__PURE__*/React__default.createElement(DashboardPaymentCards, null), /*#__PURE__*/React__default.createElement(DashboardAddresses, null), /*#__PURE__*/React__default.createElement(DashboardHeading, {
36567
+ title: t("labels.purchases")
36568
+ }), /*#__PURE__*/React__default.createElement(DashboardSubscriptions, null), /*#__PURE__*/React__default.createElement(DashboardNewsletters, null), /*#__PURE__*/React__default.createElement(DashboardMemberships, null), /*#__PURE__*/React__default.createElement(DashboardDonations, null), /*#__PURE__*/React__default.createElement(DashboardGifts, null), /*#__PURE__*/React__default.createElement(DashboardOrders, null), /*#__PURE__*/React__default.createElement(DashboardInvoices, null)));
36015
36569
  }
36016
36570
  Dashboard.viewId = "dashboard";
36017
36571
 
@@ -38470,4 +39024,4 @@ const QrCodeModal = ({
38470
39024
  };
38471
39025
  QrCodeModal.viewId = "qrcode";
38472
39026
 
38473
- export { AddNew, 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, AddressesMenu, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, Card, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, Dashboard, DashboardContainer, DashboardContent, DashboardLink, DashboardOpenButton, DatePicker, DiscountedPrice, DonationsMenu, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GiftsMenu, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, InvoicesMenu, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MembershipsMenu, MeterModal, MeterView, Modal, ModalBody, ModalFooter, ModalHeader, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, NewslettersMenu, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, OrderItems, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeMenu, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, PaymentCardsMenu, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfileMenu, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, QRCodeMenu, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, SavedItems, 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, SubscriptionsItems, 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 };
39027
+ export { AddNew, 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, BankRedirection, Button, Card, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, Dashboard, DashboardAddresses, DashboardContainer, DashboardContent, DashboardDonations, DashboardGifts, DashboardHeading, DashboardInvoices, DashboardLink, DashboardMemberships, DashboardNewsletters, DashboardOpenButton, DashboardOrders, DashboardPasswordChange, DashboardPaymentCards, DashboardProfile, DashboardQRCode, DashboardSavedItems, DashboardSubscriptions, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, ModalHeader, 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, unauthenticatedButtons, usePelcro };