@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.cjs.js +972 -416
- package/dist/index.esm.js +958 -404
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3453,7 +3453,8 @@ var labels$10 = {
|
|
|
3453
3453
|
removeCoupon: "REMOVE",
|
|
3454
3454
|
firstName: "First name",
|
|
3455
3455
|
lastName: "Last name",
|
|
3456
|
-
phone: "Phone"
|
|
3456
|
+
phone: "Phone",
|
|
3457
|
+
freeItems: "Free Items"
|
|
3457
3458
|
};
|
|
3458
3459
|
var checkoutForm_en = {
|
|
3459
3460
|
messages: messages$14,
|
|
@@ -4397,7 +4398,8 @@ var labels$H = {
|
|
|
4397
4398
|
removeCoupon: "RETIRER",
|
|
4398
4399
|
firstName: "Prénom",
|
|
4399
4400
|
lastName: "Nom de famille",
|
|
4400
|
-
phone: "Téléphoner"
|
|
4401
|
+
phone: "Téléphoner",
|
|
4402
|
+
freeItems: "Articles gratuits"
|
|
4401
4403
|
};
|
|
4402
4404
|
var checkoutForm_fr = {
|
|
4403
4405
|
messages: messages$M,
|
|
@@ -5288,7 +5290,8 @@ var labels$s = {
|
|
|
5288
5290
|
removeCoupon: "제거",
|
|
5289
5291
|
firstName: "이름",
|
|
5290
5292
|
lastName: "성",
|
|
5291
|
-
phone: "핸드폰"
|
|
5293
|
+
phone: "핸드폰",
|
|
5294
|
+
freeItems: "무료 아이템"
|
|
5292
5295
|
};
|
|
5293
5296
|
var checkoutForm_ko = {
|
|
5294
5297
|
messages: messages$v,
|
|
@@ -6228,7 +6231,8 @@ var labels$d = {
|
|
|
6228
6231
|
removeCoupon: "ELIMINAR",
|
|
6229
6232
|
firstName: "Nombre",
|
|
6230
6233
|
lastName: "Apellido",
|
|
6231
|
-
phone: "Teléfono"
|
|
6234
|
+
phone: "Teléfono",
|
|
6235
|
+
freeItems: "Artículos gratis"
|
|
6232
6236
|
};
|
|
6233
6237
|
var checkoutForm_es = {
|
|
6234
6238
|
messages: messages$e,
|
|
@@ -8865,7 +8869,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
|
|
|
8865
8869
|
let totalWithoutDividingBy100 = 0;
|
|
8866
8870
|
|
|
8867
8871
|
for (const item of items) {
|
|
8868
|
-
totalWithoutDividingBy100 += parseFloat(item.price ? isCurrencyZeroDecimal(currency) ? item.price * item.quantity : (item.price * item.quantity).toFixed(2) : isCurrencyZeroDecimal(currency) ? item.amount : item.amount.toFixed(2));
|
|
8872
|
+
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));
|
|
8869
8873
|
}
|
|
8870
8874
|
|
|
8871
8875
|
return getFormattedPriceByLocal(totalWithoutDividingBy100, currency, getPageOrDefaultLanguage());
|
|
@@ -11478,6 +11482,10 @@ const initViewFromURL = () => {
|
|
|
11478
11482
|
return showSubscriptionManageMembersFromUrl();
|
|
11479
11483
|
}
|
|
11480
11484
|
|
|
11485
|
+
if (view === "payment-method-update") {
|
|
11486
|
+
return showPaymentMethodUpdateFromUrl();
|
|
11487
|
+
}
|
|
11488
|
+
|
|
11481
11489
|
switchView(view);
|
|
11482
11490
|
});
|
|
11483
11491
|
}
|
|
@@ -11713,6 +11721,47 @@ const showPasswordlessRequestFromUrl = () => {
|
|
|
11713
11721
|
return switchView("passwordless-request");
|
|
11714
11722
|
};
|
|
11715
11723
|
|
|
11724
|
+
const showPaymentMethodUpdateFromUrl = () => {
|
|
11725
|
+
const {
|
|
11726
|
+
isAuthenticated,
|
|
11727
|
+
whenSiteReady,
|
|
11728
|
+
whenUserReady,
|
|
11729
|
+
switchView
|
|
11730
|
+
} = usePelcro.getStore();
|
|
11731
|
+
whenSiteReady(() => {
|
|
11732
|
+
if (!isAuthenticated()) {
|
|
11733
|
+
return switchView("login");
|
|
11734
|
+
}
|
|
11735
|
+
|
|
11736
|
+
whenUserReady(() => {
|
|
11737
|
+
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
11738
|
+
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
11739
|
+
|
|
11740
|
+
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
11741
|
+
document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
|
|
11742
|
+
return switchView("payment-method-update");
|
|
11743
|
+
});
|
|
11744
|
+
return;
|
|
11745
|
+
} //vantiv
|
|
11746
|
+
|
|
11747
|
+
|
|
11748
|
+
if (supportsVantiv) {
|
|
11749
|
+
document.querySelector("#vantiv-eprotect-sdk").addEventListener("load", () => {
|
|
11750
|
+
return switchView("payment-method-update");
|
|
11751
|
+
});
|
|
11752
|
+
return;
|
|
11753
|
+
} //Tap
|
|
11754
|
+
|
|
11755
|
+
|
|
11756
|
+
if (supportsTap && document.querySelector("#tap-sdk")) {
|
|
11757
|
+
return switchView("payment-method-update");
|
|
11758
|
+
}
|
|
11759
|
+
|
|
11760
|
+
return switchView("payment-method-update");
|
|
11761
|
+
});
|
|
11762
|
+
});
|
|
11763
|
+
};
|
|
11764
|
+
|
|
11716
11765
|
const showInvoiceDetailsFromUrl = () => {
|
|
11717
11766
|
const {
|
|
11718
11767
|
isAuthenticated,
|
|
@@ -13670,7 +13719,7 @@ function LoginModal({
|
|
|
13670
13719
|
|
|
13671
13720
|
resetView();
|
|
13672
13721
|
const viewFromURL = getStableViewID(window.Pelcro.helpers.getURLParameter("view"));
|
|
13673
|
-
const viewsURLs = ["invoice-details", "gift-redeem", "plan-select"];
|
|
13722
|
+
const viewsURLs = ["invoice-details", "gift-redeem", "plan-select", "payment-method-update"];
|
|
13674
13723
|
|
|
13675
13724
|
if (viewsURLs.includes(viewFromURL)) {
|
|
13676
13725
|
initViewFromURL();
|
|
@@ -18985,6 +19034,29 @@ function SelectModalWithHook(props) {
|
|
|
18985
19034
|
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
18986
19035
|
});
|
|
18987
19036
|
}
|
|
19037
|
+
|
|
19038
|
+
function productsWithMatchedTaggedFirst() {
|
|
19039
|
+
var _window$Pelcro$produc;
|
|
19040
|
+
|
|
19041
|
+
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
19042
|
+
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
19043
|
+
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
19044
|
+
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
19045
|
+
}
|
|
19046
|
+
|
|
19047
|
+
function productMatchPageLanguage(product) {
|
|
19048
|
+
if (!product) {
|
|
19049
|
+
return false;
|
|
19050
|
+
}
|
|
19051
|
+
|
|
19052
|
+
if (product.language === null) {
|
|
19053
|
+
return true;
|
|
19054
|
+
}
|
|
19055
|
+
|
|
19056
|
+
const siteLanguage = window.Pelcro.helpers.getHtmlLanguageAttribute();
|
|
19057
|
+
return product.language === siteLanguage;
|
|
19058
|
+
}
|
|
19059
|
+
|
|
18988
19060
|
SelectModalWithHook.viewId = "plan-select";
|
|
18989
19061
|
|
|
18990
19062
|
class SelectModal extends React.Component {
|
|
@@ -19029,19 +19101,50 @@ class SelectModal extends React.Component {
|
|
|
19029
19101
|
document.addEventListener("keydown", this.handleSubmit);
|
|
19030
19102
|
|
|
19031
19103
|
if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
|
|
19104
|
+
var _window$Pelcro, _window$Pelcro$user, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$site;
|
|
19105
|
+
|
|
19106
|
+
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;
|
|
19107
|
+
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;
|
|
19108
|
+
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;
|
|
19109
|
+
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 => {
|
|
19110
|
+
const filteredPlans = product.plans.filter(plan => plan.currency === userCurrency || !userCurrency);
|
|
19111
|
+
if (filteredPlans.length) return filteredPlans;
|
|
19112
|
+
});
|
|
19113
|
+
const productsMatchingUserCountry = productsMatchingUserCurrency.filter(product => {
|
|
19114
|
+
const filteredPlans = product.plans.filter(plan => {
|
|
19115
|
+
var _plan$countries;
|
|
19116
|
+
|
|
19117
|
+
return plan.countries && ((_plan$countries = plan.countries) === null || _plan$countries === void 0 ? void 0 : _plan$countries.includes(userCountry)) || !plan.countries || !plan.countries.length;
|
|
19118
|
+
});
|
|
19119
|
+
if (filteredPlans.length) return filteredPlans;
|
|
19120
|
+
});
|
|
19032
19121
|
notifyBugsnag(() => {
|
|
19033
19122
|
Bugsnag.notify("SelectModal - No data viewed", event => {
|
|
19034
|
-
var _window$
|
|
19123
|
+
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;
|
|
19035
19124
|
|
|
19036
19125
|
event.addMetadata("MetaData", {
|
|
19037
|
-
site: (_window$
|
|
19038
|
-
user: (_window$
|
|
19039
|
-
uiVersion: (_window$
|
|
19040
|
-
environment: (_window$
|
|
19126
|
+
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(),
|
|
19127
|
+
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(),
|
|
19128
|
+
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,
|
|
19129
|
+
environment: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : _window$Pelcro8.environment,
|
|
19130
|
+
matchingEntitlementsProps: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.matchingEntitlements,
|
|
19131
|
+
productListState: this.state.productList,
|
|
19132
|
+
methods: {
|
|
19133
|
+
productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst(),
|
|
19134
|
+
pelcroSDKProductsListMethod: window.Pelcro.product.list(),
|
|
19135
|
+
pelcroSDKGetByEntitlements: this.props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(this.props.matchingEntitlements) : null
|
|
19136
|
+
},
|
|
19137
|
+
userCurrency: userCurrency,
|
|
19138
|
+
userCountry: userCountry,
|
|
19139
|
+
userLanguage: userLanguage,
|
|
19140
|
+
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(),
|
|
19141
|
+
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,
|
|
19142
|
+
currency_matching_filter: `${productsMatchingUserCurrency.length} Products Passed`,
|
|
19143
|
+
country_matching_filter: `${productsMatchingUserCountry.length} Products Passed`,
|
|
19144
|
+
language_matching_filter: `${productsMatchingUserCountry.filter(productMatchPageLanguage).length} Products Passed`
|
|
19041
19145
|
});
|
|
19042
19146
|
});
|
|
19043
19147
|
});
|
|
19044
|
-
console.log("bugsnag Triggered");
|
|
19045
19148
|
}
|
|
19046
19149
|
});
|
|
19047
19150
|
|
|
@@ -19199,15 +19302,6 @@ class SelectModal extends React.Component {
|
|
|
19199
19302
|
}), /*#__PURE__*/React__default['default'].createElement("h3", {
|
|
19200
19303
|
className: "plc-text-sm plc-font-semibold"
|
|
19201
19304
|
}, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
|
|
19202
|
-
|
|
19203
|
-
function productsWithMatchedTaggedFirst() {
|
|
19204
|
-
var _window$Pelcro$produc;
|
|
19205
|
-
|
|
19206
|
-
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
19207
|
-
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
19208
|
-
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
19209
|
-
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
19210
|
-
}
|
|
19211
19305
|
});
|
|
19212
19306
|
|
|
19213
19307
|
_defineProperty$3(this, "renderPlans", () => {
|
|
@@ -21541,6 +21635,8 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21541
21635
|
}) => {
|
|
21542
21636
|
var _props$product, _props$plan, _props$subscriptionId, _props$selectedAddres, _props$giftRecipient, _props$isGift, _props$isRenewingGift, _props$invoice, _window$Pelcro, _window$Pelcro$uiSett;
|
|
21543
21637
|
|
|
21638
|
+
const [vantivPaymentRequest, setVantivPaymentRequest] = React.useState(null);
|
|
21639
|
+
const [updatedCouponCode, setUpdatedCouponCode] = React.useState("");
|
|
21544
21640
|
const {
|
|
21545
21641
|
t
|
|
21546
21642
|
} = useTranslation("payment");
|
|
@@ -21584,7 +21680,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21584
21680
|
}, []);
|
|
21585
21681
|
/*====== Start Tap integration ========*/
|
|
21586
21682
|
|
|
21587
|
-
const submitUsingTap =
|
|
21683
|
+
const submitUsingTap = state => {
|
|
21588
21684
|
var _ref, _ref2, _ref3, _state$updatedPrice;
|
|
21589
21685
|
|
|
21590
21686
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
@@ -21639,7 +21735,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21639
21735
|
}
|
|
21640
21736
|
});
|
|
21641
21737
|
} else {
|
|
21642
|
-
window.Pelcro.payment.
|
|
21738
|
+
window.Pelcro.payment.verify({
|
|
21643
21739
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
21644
21740
|
first_name: window.Pelcro.user.read().first_name || state.firstName,
|
|
21645
21741
|
last_name: window.Pelcro.user.read().last_name || state.lastName,
|
|
@@ -21648,7 +21744,8 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21648
21744
|
amount: totalAmount,
|
|
21649
21745
|
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,
|
|
21650
21746
|
tap_token: result.id,
|
|
21651
|
-
|
|
21747
|
+
funding: result.card.funding,
|
|
21748
|
+
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}`
|
|
21652
21749
|
}, (err, res) => {
|
|
21653
21750
|
if (err) {
|
|
21654
21751
|
// Inform the user if there was an error
|
|
@@ -21689,7 +21786,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21689
21786
|
content: null
|
|
21690
21787
|
}
|
|
21691
21788
|
});
|
|
21692
|
-
handleTapPayment(tapID);
|
|
21789
|
+
handleTapPayment(tapID, state);
|
|
21693
21790
|
}
|
|
21694
21791
|
}; // listen to injected iframe for authentication complete message
|
|
21695
21792
|
|
|
@@ -21704,7 +21801,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21704
21801
|
});
|
|
21705
21802
|
};
|
|
21706
21803
|
|
|
21707
|
-
function handleTapPayment(paymentRequest) {
|
|
21804
|
+
function handleTapPayment(paymentRequest, state) {
|
|
21708
21805
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
21709
21806
|
|
|
21710
21807
|
if (type === "createPayment") {
|
|
@@ -21731,6 +21828,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21731
21828
|
type: LOADING,
|
|
21732
21829
|
payload: false
|
|
21733
21830
|
});
|
|
21831
|
+
toggleAuthenticationSuccessPendingView(false);
|
|
21734
21832
|
|
|
21735
21833
|
if (err) {
|
|
21736
21834
|
onFailure(err);
|
|
@@ -21751,7 +21849,8 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21751
21849
|
}
|
|
21752
21850
|
});
|
|
21753
21851
|
onSuccess(res);
|
|
21754
|
-
}
|
|
21852
|
+
} //
|
|
21853
|
+
);
|
|
21755
21854
|
}
|
|
21756
21855
|
|
|
21757
21856
|
function handleTapSubscription() {
|
|
@@ -21886,7 +21985,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21886
21985
|
/*====== End Tap integration ========*/
|
|
21887
21986
|
|
|
21888
21987
|
|
|
21889
|
-
const submitUsingVantiv =
|
|
21988
|
+
const submitUsingVantiv = state => {
|
|
21890
21989
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
21891
21990
|
|
|
21892
21991
|
if (isUsingExistingPaymentMethod) {
|
|
@@ -21909,7 +22008,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21909
22008
|
});
|
|
21910
22009
|
};
|
|
21911
22010
|
|
|
21912
|
-
function handleVantivPayment(paymentRequest) {
|
|
22011
|
+
function handleVantivPayment(paymentRequest, couponCode) {
|
|
21913
22012
|
if (paymentRequest) {
|
|
21914
22013
|
const SUCCESS_STATUS = "870";
|
|
21915
22014
|
|
|
@@ -21983,9 +22082,6 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21983
22082
|
const renewSubscription = !isGift && subscriptionIdToRenew;
|
|
21984
22083
|
const giftSubscriprition = isGift && !subscriptionIdToRenew;
|
|
21985
22084
|
const renewGift = isRenewingGift;
|
|
21986
|
-
const {
|
|
21987
|
-
couponCode
|
|
21988
|
-
} = state;
|
|
21989
22085
|
|
|
21990
22086
|
if (renewGift) {
|
|
21991
22087
|
return payment.execute({
|
|
@@ -22065,6 +22161,8 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22065
22161
|
const tapInstanceRef = React__default['default'].useRef(null);
|
|
22066
22162
|
const tapInstanceCard = React__default['default'].useRef(null);
|
|
22067
22163
|
React.useEffect(() => {
|
|
22164
|
+
if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
|
|
22165
|
+
|
|
22068
22166
|
if (cardProcessor === "vantiv" && !selectedPaymentMethodId) {
|
|
22069
22167
|
var _window$Pelcro$site$r2, _window$Pelcro$site$r3;
|
|
22070
22168
|
|
|
@@ -22077,7 +22175,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22077
22175
|
height: "245",
|
|
22078
22176
|
timeout: 50000,
|
|
22079
22177
|
div: "eProtectiframe",
|
|
22080
|
-
callback:
|
|
22178
|
+
callback: paymentRequest => setVantivPaymentRequest(paymentRequest),
|
|
22081
22179
|
showCvv: true,
|
|
22082
22180
|
numYears: 8,
|
|
22083
22181
|
placeholderText: {
|
|
@@ -22091,9 +22189,17 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22091
22189
|
}
|
|
22092
22190
|
});
|
|
22093
22191
|
}
|
|
22094
|
-
}, [selectedPaymentMethodId]);
|
|
22192
|
+
}, [selectedPaymentMethodId]); //Trigger the handleVantivPayment method when a vantivePaymentRequest is present
|
|
22193
|
+
|
|
22194
|
+
React.useEffect(() => {
|
|
22195
|
+
if (vantivPaymentRequest) {
|
|
22196
|
+
handleVantivPayment(vantivPaymentRequest, updatedCouponCode);
|
|
22197
|
+
}
|
|
22198
|
+
}, [vantivPaymentRequest]);
|
|
22095
22199
|
React.useEffect(() => {
|
|
22096
22200
|
whenUserReady(() => {
|
|
22201
|
+
if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
|
|
22202
|
+
|
|
22097
22203
|
if (cardProcessor === "tap" && !window.Tapjsli) {
|
|
22098
22204
|
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
22099
22205
|
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
@@ -22109,7 +22215,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22109
22215
|
}, [selectedPaymentMethodId]);
|
|
22110
22216
|
|
|
22111
22217
|
const initPaymentRequest = (state, dispatch) => {
|
|
22112
|
-
if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
|
|
22218
|
+
if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
|
|
22113
22219
|
|
|
22114
22220
|
try {
|
|
22115
22221
|
const paymentRequest = stripe.paymentRequest({
|
|
@@ -22182,7 +22288,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22182
22288
|
const updateTotalAmountWithTax = () => {
|
|
22183
22289
|
var _window$Pelcro$site$r4;
|
|
22184
22290
|
|
|
22185
|
-
if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
|
|
22291
|
+
if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || props !== null && props !== void 0 && props.freeOrders)) return;
|
|
22186
22292
|
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;
|
|
22187
22293
|
|
|
22188
22294
|
if (taxesEnabled && type === "createPayment") {
|
|
@@ -22229,7 +22335,9 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22229
22335
|
});
|
|
22230
22336
|
|
|
22231
22337
|
if (err) {
|
|
22232
|
-
onFailure(err);
|
|
22338
|
+
onFailure(err); //reset the coupon code in local state
|
|
22339
|
+
|
|
22340
|
+
setUpdatedCouponCode("");
|
|
22233
22341
|
dispatch({
|
|
22234
22342
|
type: SET_COUPON_ERROR,
|
|
22235
22343
|
payload: getErrorMessages(err)
|
|
@@ -22289,7 +22397,9 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22289
22397
|
dispatch({
|
|
22290
22398
|
type: SET_COUPON,
|
|
22291
22399
|
payload: res.data.coupon
|
|
22292
|
-
});
|
|
22400
|
+
}); //set the coupon code in local state to be able to use with Vantiv
|
|
22401
|
+
|
|
22402
|
+
setUpdatedCouponCode(res.data.coupon.code);
|
|
22293
22403
|
dispatch({
|
|
22294
22404
|
type: SET_PERCENT_OFF,
|
|
22295
22405
|
payload: `${(_res$data$coupon = res.data.coupon) === null || _res$data$coupon === void 0 ? void 0 : _res$data$coupon.percent_off}%`
|
|
@@ -22364,7 +22474,9 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22364
22474
|
const debouncedApplyCouponCode = React.useRef(debounce$1(onApplyCouponCode, 1000)).current;
|
|
22365
22475
|
|
|
22366
22476
|
const removeAppliedCoupon = state => {
|
|
22367
|
-
state.couponCode = "";
|
|
22477
|
+
state.couponCode = ""; //reset the coupon code in local state
|
|
22478
|
+
|
|
22479
|
+
setUpdatedCouponCode("");
|
|
22368
22480
|
dispatch({
|
|
22369
22481
|
type: SET_COUPON_ERROR,
|
|
22370
22482
|
payload: ""
|
|
@@ -22821,6 +22933,31 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22821
22933
|
};
|
|
22822
22934
|
|
|
22823
22935
|
const submitPayment = (state, dispatch) => {
|
|
22936
|
+
if (skipPayment && props !== null && props !== void 0 && props.freeOrders) {
|
|
22937
|
+
const isQuickPurchase = !Array.isArray(order);
|
|
22938
|
+
const mappedOrderItems = isQuickPurchase ? [{
|
|
22939
|
+
sku_id: order.id,
|
|
22940
|
+
quantity: order.quantity
|
|
22941
|
+
}] : order.map(item => ({
|
|
22942
|
+
sku_id: item.id,
|
|
22943
|
+
quantity: item.quantity
|
|
22944
|
+
}));
|
|
22945
|
+
window.Pelcro.ecommerce.order.create({
|
|
22946
|
+
items: mappedOrderItems,
|
|
22947
|
+
campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
|
|
22948
|
+
...(selectedAddressId && {
|
|
22949
|
+
address_id: selectedAddressId
|
|
22950
|
+
})
|
|
22951
|
+
}, (err, res) => {
|
|
22952
|
+
if (err) {
|
|
22953
|
+
return handlePaymentError(err);
|
|
22954
|
+
}
|
|
22955
|
+
|
|
22956
|
+
return onSuccess(res);
|
|
22957
|
+
});
|
|
22958
|
+
return;
|
|
22959
|
+
}
|
|
22960
|
+
|
|
22824
22961
|
stripe.createSource({
|
|
22825
22962
|
type: "card"
|
|
22826
22963
|
}).then(({
|
|
@@ -23085,12 +23222,16 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
23085
23222
|
disableSubmit: true,
|
|
23086
23223
|
isLoading: true
|
|
23087
23224
|
}, (state, dispatch) => {
|
|
23225
|
+
if (skipPayment && props !== null && props !== void 0 && props.freeOrders) {
|
|
23226
|
+
return submitPayment(state);
|
|
23227
|
+
}
|
|
23228
|
+
|
|
23088
23229
|
if (getSiteCardProcessor() === "vantiv") {
|
|
23089
23230
|
return submitUsingVantiv();
|
|
23090
23231
|
}
|
|
23091
23232
|
|
|
23092
23233
|
if (getSiteCardProcessor() === "tap") {
|
|
23093
|
-
return submitUsingTap();
|
|
23234
|
+
return submitUsingTap(state);
|
|
23094
23235
|
}
|
|
23095
23236
|
|
|
23096
23237
|
if (selectedPaymentMethodId) {
|
|
@@ -23219,10 +23360,14 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
23219
23360
|
state,
|
|
23220
23361
|
dispatch
|
|
23221
23362
|
}
|
|
23222
|
-
}, children.length ? children.map((child, i) =>
|
|
23223
|
-
|
|
23224
|
-
|
|
23225
|
-
|
|
23363
|
+
}, children.length ? children.map((child, i) => {
|
|
23364
|
+
if (child) {
|
|
23365
|
+
return /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
23366
|
+
store: store$l,
|
|
23367
|
+
key: i
|
|
23368
|
+
});
|
|
23369
|
+
}
|
|
23370
|
+
}) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
23226
23371
|
store: store$l
|
|
23227
23372
|
})));
|
|
23228
23373
|
};
|
|
@@ -23253,11 +23398,13 @@ const PaymentMethodContainer = props => {
|
|
|
23253
23398
|
}, /*#__PURE__*/React__default['default'].createElement(es_11, null, /*#__PURE__*/React__default['default'].createElement(UnwrappedForm, Object.assign({
|
|
23254
23399
|
store: store$l
|
|
23255
23400
|
}, props))));
|
|
23256
|
-
} else {
|
|
23401
|
+
} else if (cardProcessor !== "stripe") {
|
|
23257
23402
|
return /*#__PURE__*/React__default['default'].createElement(PaymentMethodContainerWithoutStripe, Object.assign({
|
|
23258
23403
|
store: store$l
|
|
23259
23404
|
}, props));
|
|
23260
23405
|
}
|
|
23406
|
+
|
|
23407
|
+
return null;
|
|
23261
23408
|
};
|
|
23262
23409
|
|
|
23263
23410
|
const StripeInputStyle = {
|
|
@@ -24093,6 +24240,41 @@ const BankAuthenticationSuccess = () => {
|
|
|
24093
24240
|
}));
|
|
24094
24241
|
};
|
|
24095
24242
|
|
|
24243
|
+
const OrderCreateFreeButton = ({
|
|
24244
|
+
name,
|
|
24245
|
+
onClick,
|
|
24246
|
+
...otherProps
|
|
24247
|
+
}) => {
|
|
24248
|
+
const {
|
|
24249
|
+
state: {
|
|
24250
|
+
disableSubmit
|
|
24251
|
+
},
|
|
24252
|
+
dispatch
|
|
24253
|
+
} = React.useContext(store$l);
|
|
24254
|
+
const {
|
|
24255
|
+
t
|
|
24256
|
+
} = useTranslation("checkoutForm");
|
|
24257
|
+
const [isDisabled, setDisabled] = React.useState(true);
|
|
24258
|
+
React.useEffect(() => {
|
|
24259
|
+
setDisabled(disableSubmit);
|
|
24260
|
+
}, [disableSubmit]);
|
|
24261
|
+
return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
24262
|
+
className: "plc-w-full",
|
|
24263
|
+
onClick: () => {
|
|
24264
|
+
dispatch({
|
|
24265
|
+
type: DISABLE_SUBMIT,
|
|
24266
|
+
payload: true
|
|
24267
|
+
});
|
|
24268
|
+
dispatch({
|
|
24269
|
+
type: SUBMIT_PAYMENT
|
|
24270
|
+
});
|
|
24271
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
24272
|
+
},
|
|
24273
|
+
disabled: isDisabled,
|
|
24274
|
+
isLoading: disableSubmit
|
|
24275
|
+
}, otherProps), t("labels.submit"));
|
|
24276
|
+
};
|
|
24277
|
+
|
|
24096
24278
|
/**
|
|
24097
24279
|
*
|
|
24098
24280
|
*/
|
|
@@ -24104,9 +24286,11 @@ function PaymentMethodView({
|
|
|
24104
24286
|
type,
|
|
24105
24287
|
showCoupon,
|
|
24106
24288
|
showExternalPaymentMethods,
|
|
24107
|
-
showSubscriptionButton
|
|
24289
|
+
showSubscriptionButton,
|
|
24290
|
+
showOrderButton,
|
|
24291
|
+
order
|
|
24108
24292
|
}) {
|
|
24109
|
-
var _window$Pelcro$site$r, _window$Pelcro$site$r2
|
|
24293
|
+
var _window$Pelcro$site$r, _window$Pelcro$site$r2, _calcAndFormatItemsTo, _order$;
|
|
24110
24294
|
|
|
24111
24295
|
const {
|
|
24112
24296
|
t
|
|
@@ -24119,7 +24303,17 @@ function PaymentMethodView({
|
|
|
24119
24303
|
const isUserPhone = Boolean(window.Pelcro.user.read().phone);
|
|
24120
24304
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24121
24305
|
className: "plc-flex plc-flex-col plc-items-center plc-mt-4 sm:plc-px-8 pelcro-payment-block"
|
|
24122
|
-
},
|
|
24306
|
+
}, order && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24307
|
+
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"
|
|
24308
|
+
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
24309
|
+
className: "plc-text-gray-600"
|
|
24310
|
+
}, !Array.isArray(order) ? /*#__PURE__*/React__default['default'].createElement("span", {
|
|
24311
|
+
className: "plc-tracking-wider plc-uppercase"
|
|
24312
|
+
}, order === null || order === void 0 ? void 0 : order.name) : /*#__PURE__*/React__default['default'].createElement("span", {
|
|
24313
|
+
className: "plc-tracking-wider plc-uppercase"
|
|
24314
|
+
}, t("labels.freeItems")), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
24315
|
+
className: "plc-text-xl plc-font-semibold plc-text-primary-600"
|
|
24316
|
+
}, (_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['default'].createElement("div", {
|
|
24123
24317
|
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"
|
|
24124
24318
|
}, /*#__PURE__*/React__default['default'].createElement(SvgLock, {
|
|
24125
24319
|
className: "plc-w-5 plc-h-5 plc-mr-1"
|
|
@@ -24135,10 +24329,11 @@ function PaymentMethodView({
|
|
|
24135
24329
|
type: type,
|
|
24136
24330
|
onSuccess: onSuccess,
|
|
24137
24331
|
onGiftRenewalSuccess: onGiftRenewalSuccess,
|
|
24138
|
-
onFailure: onFailure
|
|
24332
|
+
onFailure: onFailure,
|
|
24333
|
+
freeOrders: showOrderButton
|
|
24139
24334
|
}, /*#__PURE__*/React__default['default'].createElement(AlertWithContext, {
|
|
24140
24335
|
className: "plc-mb-2"
|
|
24141
|
-
}), showSubscriptionButton
|
|
24336
|
+
}), showSubscriptionButton && /*#__PURE__*/React__default['default'].createElement(SubscriptionCreateFreePlanButton, null), showOrderButton && /*#__PURE__*/React__default['default'].createElement(OrderCreateFreeButton, null), !showSubscriptionButton && !showOrderButton && /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(BankRedirection, null), /*#__PURE__*/React__default['default'].createElement(BankAuthenticationSuccess, null), /*#__PURE__*/React__default['default'].createElement(SelectedPaymentMethod, null), supportsTap && (!isUserFirstName || !isUserLastName || !isUserPhone) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24142
24337
|
className: "plc-flex plc-items-start"
|
|
24143
24338
|
}, /*#__PURE__*/React__default['default'].createElement(IncludeFirstName, {
|
|
24144
24339
|
id: "pelcro-input-first-name",
|
|
@@ -26014,6 +26209,19 @@ function SubscriptionManageMembersList(props) {
|
|
|
26014
26209
|
icon: /*#__PURE__*/React__default['default'].createElement(SvgCheckMark, null)
|
|
26015
26210
|
};
|
|
26016
26211
|
}, []);
|
|
26212
|
+
const showMemberData = React.useCallback(member => {
|
|
26213
|
+
var _member$customer, _member$customer2, _member$customer3, _member$customer4;
|
|
26214
|
+
|
|
26215
|
+
let data;
|
|
26216
|
+
|
|
26217
|
+
if ((member === null || member === void 0 ? void 0 : member.status) !== "active") {
|
|
26218
|
+
data = member === null || member === void 0 ? void 0 : member.invitation_email;
|
|
26219
|
+
return data;
|
|
26220
|
+
}
|
|
26221
|
+
|
|
26222
|
+
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) || "-----";
|
|
26223
|
+
return data;
|
|
26224
|
+
}, []);
|
|
26017
26225
|
|
|
26018
26226
|
if (loading) {
|
|
26019
26227
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("tr", null, /*#__PURE__*/React__default['default'].createElement("td", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -26058,10 +26266,10 @@ function SubscriptionManageMembersList(props) {
|
|
|
26058
26266
|
className: `plc-w-full plc-align-middle plc-cursor-pointer accordion-header hover:plc-bg-gray-50 plc-text-center`
|
|
26059
26267
|
}, /*#__PURE__*/React__default['default'].createElement("td", {
|
|
26060
26268
|
className: "plc-truncate plc-text-left",
|
|
26061
|
-
title: member
|
|
26269
|
+
title: showMemberData(member)
|
|
26062
26270
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
26063
26271
|
className: "plc-font-semibold plc-text-gray-500"
|
|
26064
|
-
}, member
|
|
26272
|
+
}, showMemberData(member))), /*#__PURE__*/React__default['default'].createElement("td", {
|
|
26065
26273
|
className: "plc-py-2"
|
|
26066
26274
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
26067
26275
|
className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold ${getMemberStatus(member).bgColor} plc-uppercase ${getMemberStatus(member).textColor} plc-rounded-lg`
|
|
@@ -29738,6 +29946,14 @@ const OrderCreateContainer = props => /*#__PURE__*/React__default['default'].cre
|
|
|
29738
29946
|
}, props));
|
|
29739
29947
|
|
|
29740
29948
|
const OrderCreateView = props => {
|
|
29949
|
+
var _window$Pelcro, _window$Pelcro$uiSett;
|
|
29950
|
+
|
|
29951
|
+
useTranslation("payment");
|
|
29952
|
+
const {
|
|
29953
|
+
order
|
|
29954
|
+
} = usePelcro();
|
|
29955
|
+
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;
|
|
29956
|
+
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));
|
|
29741
29957
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
29742
29958
|
id: "pelcro-order-create-view"
|
|
29743
29959
|
}, /*#__PURE__*/React__default['default'].createElement("form", {
|
|
@@ -29746,7 +29962,9 @@ const OrderCreateView = props => {
|
|
|
29746
29962
|
}, /*#__PURE__*/React__default['default'].createElement(PaymentMethodView, Object.assign({
|
|
29747
29963
|
type: "orderCreate",
|
|
29748
29964
|
showCoupon: true,
|
|
29749
|
-
showExternalPaymentMethods: false
|
|
29965
|
+
showExternalPaymentMethods: false,
|
|
29966
|
+
showOrderButton: showOrderButton,
|
|
29967
|
+
order: order
|
|
29750
29968
|
}, props))));
|
|
29751
29969
|
};
|
|
29752
29970
|
|
|
@@ -31029,17 +31247,18 @@ const PaymentMethodSelectModal = ({
|
|
|
31029
31247
|
}) => {
|
|
31030
31248
|
var _window$Pelcro, _window$Pelcro$uiSett;
|
|
31031
31249
|
|
|
31250
|
+
const {
|
|
31251
|
+
t
|
|
31252
|
+
} = useTranslation("paymentMethod");
|
|
31032
31253
|
const {
|
|
31033
31254
|
switchToCheckoutForm,
|
|
31034
31255
|
set,
|
|
31035
|
-
plan
|
|
31256
|
+
plan,
|
|
31257
|
+
order
|
|
31036
31258
|
} = usePelcro();
|
|
31037
|
-
const {
|
|
31038
|
-
t
|
|
31039
|
-
} = useTranslation("paymentMethod");
|
|
31040
31259
|
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;
|
|
31041
31260
|
React.useEffect(() => {
|
|
31042
|
-
if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) {
|
|
31261
|
+
if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) {
|
|
31043
31262
|
switchToCheckoutForm();
|
|
31044
31263
|
}
|
|
31045
31264
|
}, []);
|
|
@@ -32397,254 +32616,14 @@ var _path$f;
|
|
|
32397
32616
|
|
|
32398
32617
|
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); }
|
|
32399
32618
|
|
|
32400
|
-
function SvgUser(props) {
|
|
32401
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
32402
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32403
|
-
fill: "none",
|
|
32404
|
-
viewBox: "0 0 24 24",
|
|
32405
|
-
stroke: "currentColor"
|
|
32406
|
-
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32407
|
-
strokeLinecap: "round",
|
|
32408
|
-
strokeLinejoin: "round",
|
|
32409
|
-
strokeWidth: 2,
|
|
32410
|
-
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"
|
|
32411
|
-
})));
|
|
32412
|
-
}
|
|
32413
|
-
|
|
32414
|
-
var _path$e;
|
|
32415
|
-
|
|
32416
|
-
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); }
|
|
32417
|
-
|
|
32418
|
-
function SvgNewsletter(props) {
|
|
32419
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
32420
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32421
|
-
className: "plc-h-5 plc-w-5",
|
|
32422
|
-
fill: "none",
|
|
32423
|
-
viewBox: "0 0 24 24",
|
|
32424
|
-
stroke: "currentColor"
|
|
32425
|
-
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32426
|
-
strokeLinecap: "round",
|
|
32427
|
-
strokeLinejoin: "round",
|
|
32428
|
-
strokeWidth: 2,
|
|
32429
|
-
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"
|
|
32430
|
-
})));
|
|
32431
|
-
}
|
|
32432
|
-
|
|
32433
|
-
var _path$d;
|
|
32434
|
-
|
|
32435
|
-
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); }
|
|
32436
|
-
|
|
32437
|
-
function SvgRefresh(props) {
|
|
32438
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
32439
|
-
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
32440
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32441
|
-
fill: "none",
|
|
32442
|
-
viewBox: "0 0 24 24",
|
|
32443
|
-
stroke: "currentColor"
|
|
32444
|
-
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32445
|
-
strokeLinecap: "round",
|
|
32446
|
-
strokeLinejoin: "round",
|
|
32447
|
-
strokeWidth: 2,
|
|
32448
|
-
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"
|
|
32449
|
-
})));
|
|
32450
|
-
}
|
|
32451
|
-
|
|
32452
|
-
var _path$c;
|
|
32453
|
-
|
|
32454
|
-
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); }
|
|
32455
|
-
|
|
32456
|
-
function SvgDocument(props) {
|
|
32457
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
32458
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32459
|
-
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
32460
|
-
fill: "none",
|
|
32461
|
-
viewBox: "0 0 24 24",
|
|
32462
|
-
stroke: "currentColor"
|
|
32463
|
-
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32464
|
-
strokeLinecap: "round",
|
|
32465
|
-
strokeLinejoin: "round",
|
|
32466
|
-
strokeWidth: 2,
|
|
32467
|
-
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"
|
|
32468
|
-
})));
|
|
32469
|
-
}
|
|
32470
|
-
|
|
32471
|
-
var _path$b;
|
|
32472
|
-
|
|
32473
|
-
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); }
|
|
32474
|
-
|
|
32475
|
-
function SvgPaymentCard(props) {
|
|
32476
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
32477
|
-
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
32478
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32479
|
-
fill: "none",
|
|
32480
|
-
viewBox: "0 0 24 24",
|
|
32481
|
-
stroke: "currentColor"
|
|
32482
|
-
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32483
|
-
strokeLinecap: "round",
|
|
32484
|
-
strokeLinejoin: "round",
|
|
32485
|
-
strokeWidth: 2,
|
|
32486
|
-
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"
|
|
32487
|
-
})));
|
|
32488
|
-
}
|
|
32489
|
-
|
|
32490
|
-
var _path$a, _path2;
|
|
32491
|
-
|
|
32492
|
-
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); }
|
|
32493
|
-
|
|
32494
|
-
function SvgLocationPin(props) {
|
|
32495
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
32496
|
-
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
32497
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32498
|
-
fill: "none",
|
|
32499
|
-
viewBox: "0 0 24 24",
|
|
32500
|
-
stroke: "currentColor"
|
|
32501
|
-
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32502
|
-
strokeLinecap: "round",
|
|
32503
|
-
strokeLinejoin: "round",
|
|
32504
|
-
strokeWidth: 2,
|
|
32505
|
-
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"
|
|
32506
|
-
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32507
|
-
strokeLinecap: "round",
|
|
32508
|
-
strokeLinejoin: "round",
|
|
32509
|
-
strokeWidth: 2,
|
|
32510
|
-
d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z"
|
|
32511
|
-
})));
|
|
32512
|
-
}
|
|
32513
|
-
|
|
32514
|
-
var _path$9;
|
|
32515
|
-
|
|
32516
|
-
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); }
|
|
32517
|
-
|
|
32518
|
-
function SvgShopping(props) {
|
|
32519
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
32520
|
-
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
32521
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32522
|
-
fill: "none",
|
|
32523
|
-
viewBox: "0 0 24 24",
|
|
32524
|
-
stroke: "currentColor"
|
|
32525
|
-
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32526
|
-
strokeLinecap: "round",
|
|
32527
|
-
strokeLinejoin: "round",
|
|
32528
|
-
strokeWidth: 2,
|
|
32529
|
-
d: "M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"
|
|
32530
|
-
})));
|
|
32531
|
-
}
|
|
32532
|
-
|
|
32533
|
-
var _path$8;
|
|
32534
|
-
|
|
32535
|
-
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); }
|
|
32536
|
-
|
|
32537
|
-
function SvgBookmark(props) {
|
|
32538
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
32539
|
-
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
32540
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32541
|
-
fill: "none",
|
|
32542
|
-
viewBox: "0 0 24 24",
|
|
32543
|
-
stroke: "currentColor"
|
|
32544
|
-
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32545
|
-
strokeLinecap: "round",
|
|
32546
|
-
strokeLinejoin: "round",
|
|
32547
|
-
strokeWidth: 2,
|
|
32548
|
-
d: "M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"
|
|
32549
|
-
})));
|
|
32550
|
-
}
|
|
32551
|
-
|
|
32552
|
-
var _path$7;
|
|
32553
|
-
|
|
32554
|
-
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); }
|
|
32555
|
-
|
|
32556
|
-
function SvgPlus(props) {
|
|
32557
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
32558
|
-
className: "plc-w-5 plc-h-5",
|
|
32559
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32560
|
-
fill: "none",
|
|
32561
|
-
viewBox: "0 0 24 24",
|
|
32562
|
-
stroke: "currentColor"
|
|
32563
|
-
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32564
|
-
strokeLinecap: "round",
|
|
32565
|
-
strokeLinejoin: "round",
|
|
32566
|
-
strokeWidth: 2,
|
|
32567
|
-
d: "M12 6v6m0 0v6m0-6h6m-6 0H6"
|
|
32568
|
-
})));
|
|
32569
|
-
}
|
|
32570
|
-
|
|
32571
|
-
var _path$6;
|
|
32572
|
-
|
|
32573
|
-
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); }
|
|
32574
|
-
|
|
32575
|
-
function SvgKey(props) {
|
|
32576
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
32577
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32578
|
-
viewBox: "0 0 20 20",
|
|
32579
|
-
fill: "currentColor"
|
|
32580
|
-
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32581
|
-
fillRule: "evenodd",
|
|
32582
|
-
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",
|
|
32583
|
-
clipRule: "evenodd"
|
|
32584
|
-
})));
|
|
32585
|
-
}
|
|
32586
|
-
|
|
32587
|
-
var _path$5;
|
|
32588
|
-
|
|
32589
|
-
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); }
|
|
32590
|
-
|
|
32591
|
-
function SvgDonate(props) {
|
|
32592
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
32593
|
-
width: 24,
|
|
32594
|
-
height: 24,
|
|
32595
|
-
fill: "currentColor",
|
|
32596
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
32597
|
-
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32598
|
-
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"
|
|
32599
|
-
})));
|
|
32600
|
-
}
|
|
32601
|
-
|
|
32602
|
-
var _path$4;
|
|
32603
|
-
|
|
32604
|
-
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); }
|
|
32605
|
-
|
|
32606
|
-
function SvgMemberships(props) {
|
|
32607
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
32608
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32609
|
-
fill: "none",
|
|
32610
|
-
strokeWidth: 1.5,
|
|
32611
|
-
stroke: "currentColor",
|
|
32612
|
-
width: 24,
|
|
32613
|
-
height: 24
|
|
32614
|
-
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32615
|
-
strokeLinecap: "round",
|
|
32616
|
-
strokeLinejoin: "round",
|
|
32617
|
-
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"
|
|
32618
|
-
})));
|
|
32619
|
-
}
|
|
32620
|
-
|
|
32621
|
-
var _path$3;
|
|
32622
|
-
|
|
32623
|
-
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); }
|
|
32624
|
-
|
|
32625
|
-
function SvgQrcode(props) {
|
|
32626
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
32627
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32628
|
-
width: 682.667,
|
|
32629
|
-
height: 682.667,
|
|
32630
|
-
viewBox: "0 0 512 512"
|
|
32631
|
-
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32632
|
-
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"
|
|
32633
|
-
})));
|
|
32634
|
-
}
|
|
32635
|
-
|
|
32636
|
-
var _path$2;
|
|
32637
|
-
|
|
32638
|
-
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); }
|
|
32639
|
-
|
|
32640
32619
|
function SvgChevronRight(props) {
|
|
32641
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
32620
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
32642
32621
|
className: "plc-w-6 plc-h-6",
|
|
32643
32622
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32644
32623
|
fill: "none",
|
|
32645
32624
|
viewBox: "0 0 24 24",
|
|
32646
32625
|
stroke: "currentColor"
|
|
32647
|
-
}, props), _path$
|
|
32626
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32648
32627
|
strokeLinecap: "round",
|
|
32649
32628
|
strokeLinejoin: "round",
|
|
32650
32629
|
strokeWidth: 2,
|
|
@@ -32773,23 +32752,61 @@ const SavedItems = ({
|
|
|
32773
32752
|
});
|
|
32774
32753
|
};
|
|
32775
32754
|
|
|
32776
|
-
var _path$
|
|
32755
|
+
var _path$e;
|
|
32777
32756
|
|
|
32778
|
-
function _extends$
|
|
32757
|
+
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); }
|
|
32758
|
+
|
|
32759
|
+
function SvgRefresh(props) {
|
|
32760
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
32761
|
+
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
32762
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
32763
|
+
fill: "none",
|
|
32764
|
+
viewBox: "0 0 24 24",
|
|
32765
|
+
stroke: "currentColor"
|
|
32766
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32767
|
+
strokeLinecap: "round",
|
|
32768
|
+
strokeLinejoin: "round",
|
|
32769
|
+
strokeWidth: 2,
|
|
32770
|
+
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"
|
|
32771
|
+
})));
|
|
32772
|
+
}
|
|
32773
|
+
|
|
32774
|
+
var _path$d;
|
|
32775
|
+
|
|
32776
|
+
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); }
|
|
32779
32777
|
|
|
32780
32778
|
function SvgCalendar(props) {
|
|
32781
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
32779
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
32782
32780
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32783
32781
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
32784
32782
|
viewBox: "0 0 20 20",
|
|
32785
32783
|
fill: "currentColor"
|
|
32786
|
-
}, props), _path$
|
|
32784
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32787
32785
|
fillRule: "evenodd",
|
|
32788
32786
|
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",
|
|
32789
32787
|
clipRule: "evenodd"
|
|
32790
32788
|
})));
|
|
32791
32789
|
}
|
|
32792
32790
|
|
|
32791
|
+
var _path$c;
|
|
32792
|
+
|
|
32793
|
+
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); }
|
|
32794
|
+
|
|
32795
|
+
function SvgPlus(props) {
|
|
32796
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
32797
|
+
className: "plc-w-5 plc-h-5",
|
|
32798
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
32799
|
+
fill: "none",
|
|
32800
|
+
viewBox: "0 0 24 24",
|
|
32801
|
+
stroke: "currentColor"
|
|
32802
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32803
|
+
strokeLinecap: "round",
|
|
32804
|
+
strokeLinejoin: "round",
|
|
32805
|
+
strokeWidth: 2,
|
|
32806
|
+
d: "M12 6v6m0 0v6m0-6h6m-6 0H6"
|
|
32807
|
+
})));
|
|
32808
|
+
}
|
|
32809
|
+
|
|
32793
32810
|
const AddNew = ({
|
|
32794
32811
|
title,
|
|
32795
32812
|
onClick
|
|
@@ -33448,6 +33465,25 @@ function formatStartDate(date) {
|
|
|
33448
33465
|
return new Intl.DateTimeFormat("en-CA").format(startDate);
|
|
33449
33466
|
}
|
|
33450
33467
|
|
|
33468
|
+
var _path$b;
|
|
33469
|
+
|
|
33470
|
+
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); }
|
|
33471
|
+
|
|
33472
|
+
function SvgDocument(props) {
|
|
33473
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
33474
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
33475
|
+
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
33476
|
+
fill: "none",
|
|
33477
|
+
viewBox: "0 0 24 24",
|
|
33478
|
+
stroke: "currentColor"
|
|
33479
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
33480
|
+
strokeLinecap: "round",
|
|
33481
|
+
strokeLinejoin: "round",
|
|
33482
|
+
strokeWidth: 2,
|
|
33483
|
+
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"
|
|
33484
|
+
})));
|
|
33485
|
+
}
|
|
33486
|
+
|
|
33451
33487
|
const InvoicesMenu = props => {
|
|
33452
33488
|
const {
|
|
33453
33489
|
t
|
|
@@ -33929,6 +33965,22 @@ const AddressesItems = props => {
|
|
|
33929
33965
|
})));
|
|
33930
33966
|
};
|
|
33931
33967
|
|
|
33968
|
+
const SUB_MENUS = {
|
|
33969
|
+
PROFILE: "profile",
|
|
33970
|
+
QRCODE: "qr-code",
|
|
33971
|
+
PASSWORDCHANGE: "passwordChange",
|
|
33972
|
+
SUBSCRIPTIONS: "subscriptions",
|
|
33973
|
+
DONATIONS: "donations",
|
|
33974
|
+
MEMBERSHIPS: "memberships",
|
|
33975
|
+
NEWSLETTERS: "Newsletters",
|
|
33976
|
+
PAYMENT_CARDS: "payment-cards",
|
|
33977
|
+
ADDRESSES: "addresses",
|
|
33978
|
+
GIFTS: "gifts",
|
|
33979
|
+
ORDERS: "orders",
|
|
33980
|
+
INVOICES: "invoices",
|
|
33981
|
+
LOGOUT: "logout",
|
|
33982
|
+
SAVED_ITEMS: "saved-items"
|
|
33983
|
+
};
|
|
33932
33984
|
const getPaymentCardIcon = name => {
|
|
33933
33985
|
var _icons$name$toLowerCa;
|
|
33934
33986
|
|
|
@@ -35635,24 +35687,8 @@ const PasswordChangeMenu = () => {
|
|
|
35635
35687
|
}, /*#__PURE__*/React__default['default'].createElement(PasswordChangeView, null));
|
|
35636
35688
|
};
|
|
35637
35689
|
|
|
35638
|
-
const SUB_MENUS = {
|
|
35639
|
-
PROFILE: "profile",
|
|
35640
|
-
QRCODE: "qr-code",
|
|
35641
|
-
PASSWORDCHANGE: "passwordChange",
|
|
35642
|
-
SUBSCRIPTIONS: "subscriptions",
|
|
35643
|
-
DONATIONS: "donations",
|
|
35644
|
-
MEMBERSHIPS: "memberships",
|
|
35645
|
-
NEWSLETTERS: "Newsletters",
|
|
35646
|
-
PAYMENT_CARDS: "payment-cards",
|
|
35647
|
-
ADDRESSES: "addresses",
|
|
35648
|
-
GIFTS: "gifts",
|
|
35649
|
-
ORDERS: "orders",
|
|
35650
|
-
INVOICES: "invoices",
|
|
35651
|
-
LOGOUT: "logout",
|
|
35652
|
-
SAVED_ITEMS: "saved-items"
|
|
35653
|
-
};
|
|
35654
35690
|
const DashboardContent = props => {
|
|
35655
|
-
var _window$Pelcro$user$r, _window$Pelcro, _window$Pelcro$uiSett;
|
|
35691
|
+
var _window$Pelcro$user$r, _window$Pelcro, _window$Pelcro$uiSett, _props$children;
|
|
35656
35692
|
|
|
35657
35693
|
const {
|
|
35658
35694
|
state: {
|
|
@@ -35878,147 +35914,656 @@ const DashboardContent = props => {
|
|
|
35878
35914
|
className: "plc-fill-current"
|
|
35879
35915
|
}))))), /*#__PURE__*/React__default['default'].createElement("section", {
|
|
35880
35916
|
className: "plc-mt-6 plc-shadow-sm"
|
|
35881
|
-
}, /*#__PURE__*/React__default['default'].
|
|
35882
|
-
|
|
35917
|
+
}, 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['default'].cloneElement(child, {
|
|
35918
|
+
store: store$4,
|
|
35919
|
+
key: i
|
|
35920
|
+
})) : /*#__PURE__*/React__default['default'].cloneElement(props === null || props === void 0 ? void 0 : props.children, {
|
|
35921
|
+
store: store$4
|
|
35922
|
+
})), /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35923
|
+
name: SUB_MENUS.LOGOUT,
|
|
35924
|
+
icon: /*#__PURE__*/React__default['default'].createElement(SvgExit, null),
|
|
35925
|
+
title: t("labels.logout"),
|
|
35926
|
+
setActiveDashboardLink: setActiveDashboardLink,
|
|
35927
|
+
activeDashboardLink: activeDashboardLink
|
|
35928
|
+
}))), activeDashboardLink && isOpen && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
35929
|
+
id: "pelcro-view-dashboard-submenus",
|
|
35930
|
+
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"
|
|
35931
|
+
}, activeDashboardLink === SUB_MENUS.PROFILE && /*#__PURE__*/React__default['default'].createElement(ProfileMenu, null), activeDashboardLink === SUB_MENUS.QRCODE && /*#__PURE__*/React__default['default'].createElement(QRCodeMenu, null), activeDashboardLink === SUB_MENUS.PASSWORDCHANGE && /*#__PURE__*/React__default['default'].createElement(PasswordChangeMenu, null), activeDashboardLink === SUB_MENUS.SAVED_ITEMS && /*#__PURE__*/React__default['default'].createElement(SavedItemsMenu, null), activeDashboardLink === SUB_MENUS.PAYMENT_CARDS && /*#__PURE__*/React__default['default'].createElement(PaymentCardsMenu, null), activeDashboardLink === SUB_MENUS.ADDRESSES && /*#__PURE__*/React__default['default'].createElement(AddressesMenu, null), activeDashboardLink === SUB_MENUS.SUBSCRIPTIONS && /*#__PURE__*/React__default['default'].createElement(SubscriptionsMenu, {
|
|
35932
|
+
displayProductSelect: displayProductSelect,
|
|
35933
|
+
setProductAndPlan: setProductAndPlan,
|
|
35934
|
+
setSubscriptionIdToRenew: setSubscriptionIdToRenew,
|
|
35935
|
+
getSubscriptionStatus: getSubscriptionStatus
|
|
35936
|
+
}), activeDashboardLink === SUB_MENUS.MEMBERSHIPS && /*#__PURE__*/React__default['default'].createElement(MembershipsMenu, {
|
|
35937
|
+
getSubscriptionStatus: getSubscriptionStatus
|
|
35938
|
+
}), activeDashboardLink === SUB_MENUS.NEWSLETTERS && /*#__PURE__*/React__default['default'].createElement(NewslettersMenu, null), activeDashboardLink === SUB_MENUS.DONATIONS && /*#__PURE__*/React__default['default'].createElement(DonationsMenu, {
|
|
35939
|
+
getSubscriptionStatus: getSubscriptionStatus
|
|
35940
|
+
}), activeDashboardLink === SUB_MENUS.GIFTS && /*#__PURE__*/React__default['default'].createElement(GiftsMenu, {
|
|
35941
|
+
getSubscriptionStatus: getSubscriptionStatus,
|
|
35942
|
+
displayProductSelect: displayProductSelect,
|
|
35943
|
+
setProductAndPlan: setProductAndPlan,
|
|
35944
|
+
setSubscriptionIdToRenew: setSubscriptionIdToRenew,
|
|
35945
|
+
disableSubmit: disableSubmit
|
|
35946
|
+
}), activeDashboardLink === SUB_MENUS.ORDERS && /*#__PURE__*/React__default['default'].createElement(OrdersMenu, null), activeDashboardLink === SUB_MENUS.INVOICES && /*#__PURE__*/React__default['default'].createElement(InvoicesMenu, null), activeDashboardLink === SUB_MENUS.LOGOUT && logout(), /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
35947
|
+
variant: "ghost",
|
|
35948
|
+
type: "button",
|
|
35949
|
+
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",
|
|
35950
|
+
onClick: closeDashboard
|
|
35951
|
+
}, /*#__PURE__*/React__default['default'].createElement(SvgXIcon, {
|
|
35952
|
+
className: "plc-fill-current"
|
|
35953
|
+
}))));
|
|
35954
|
+
};
|
|
35955
|
+
|
|
35956
|
+
const DashboardHeading = ({
|
|
35957
|
+
title
|
|
35958
|
+
}) => {
|
|
35959
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, title && /*#__PURE__*/React__default['default'].createElement("header", {
|
|
35960
|
+
className: "plc-pl-4 plc-my-2 sm:plc-pl-8"
|
|
35883
35961
|
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
35884
35962
|
className: "plc-font-bold plc-tracking-widest plc-text-gray-500"
|
|
35885
|
-
},
|
|
35963
|
+
}, title)));
|
|
35964
|
+
};
|
|
35965
|
+
|
|
35966
|
+
var _path$a;
|
|
35967
|
+
|
|
35968
|
+
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); }
|
|
35969
|
+
|
|
35970
|
+
function SvgUser(props) {
|
|
35971
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
35972
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35973
|
+
fill: "none",
|
|
35974
|
+
viewBox: "0 0 24 24",
|
|
35975
|
+
stroke: "currentColor"
|
|
35976
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
35977
|
+
strokeLinecap: "round",
|
|
35978
|
+
strokeLinejoin: "round",
|
|
35979
|
+
strokeWidth: 2,
|
|
35980
|
+
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"
|
|
35981
|
+
})));
|
|
35982
|
+
}
|
|
35983
|
+
|
|
35984
|
+
const DashboardProfile = ({
|
|
35985
|
+
title,
|
|
35986
|
+
icon,
|
|
35987
|
+
store
|
|
35988
|
+
}) => {
|
|
35989
|
+
const {
|
|
35990
|
+
state: {
|
|
35991
|
+
activeDashboardLink
|
|
35992
|
+
},
|
|
35993
|
+
dispatch
|
|
35994
|
+
} = React.useContext(store);
|
|
35995
|
+
const {
|
|
35996
|
+
t
|
|
35997
|
+
} = useTranslation("dashboard");
|
|
35998
|
+
|
|
35999
|
+
const setActiveDashboardLink = submenuName => {
|
|
36000
|
+
dispatch({
|
|
36001
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36002
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36003
|
+
});
|
|
36004
|
+
};
|
|
36005
|
+
|
|
36006
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35886
36007
|
name: SUB_MENUS.PROFILE,
|
|
35887
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgUser, {
|
|
36008
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgUser, {
|
|
35888
36009
|
className: "plc-w-6 plc-h-6 plc-mr-2"
|
|
35889
36010
|
}),
|
|
35890
|
-
title: t("labels.profile"),
|
|
36011
|
+
title: title !== null && title !== void 0 ? title : t("labels.profile"),
|
|
35891
36012
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35892
36013
|
activeDashboardLink: activeDashboardLink
|
|
35893
|
-
})
|
|
36014
|
+
});
|
|
36015
|
+
};
|
|
36016
|
+
|
|
36017
|
+
var _path$9;
|
|
36018
|
+
|
|
36019
|
+
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); }
|
|
36020
|
+
|
|
36021
|
+
function SvgQrcode(props) {
|
|
36022
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
36023
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36024
|
+
width: 682.667,
|
|
36025
|
+
height: 682.667,
|
|
36026
|
+
viewBox: "0 0 512 512"
|
|
36027
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
36028
|
+
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"
|
|
36029
|
+
})));
|
|
36030
|
+
}
|
|
36031
|
+
|
|
36032
|
+
const DashboardQRCode = ({
|
|
36033
|
+
title,
|
|
36034
|
+
icon,
|
|
36035
|
+
store
|
|
36036
|
+
}) => {
|
|
36037
|
+
const {
|
|
36038
|
+
state: {
|
|
36039
|
+
activeDashboardLink
|
|
36040
|
+
},
|
|
36041
|
+
dispatch
|
|
36042
|
+
} = React.useContext(store);
|
|
36043
|
+
useTranslation("dashboard");
|
|
36044
|
+
|
|
36045
|
+
const setActiveDashboardLink = submenuName => {
|
|
36046
|
+
dispatch({
|
|
36047
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36048
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36049
|
+
});
|
|
36050
|
+
};
|
|
36051
|
+
|
|
36052
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35894
36053
|
name: SUB_MENUS.QRCODE,
|
|
35895
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgQrcode, {
|
|
36054
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgQrcode, {
|
|
35896
36055
|
className: "plc-w-6 plc-h-6 plc-mr-2"
|
|
35897
36056
|
}),
|
|
35898
|
-
title: "My QR code",
|
|
36057
|
+
title: title !== null && title !== void 0 ? title : "My QR code",
|
|
35899
36058
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35900
36059
|
activeDashboardLink: activeDashboardLink
|
|
35901
|
-
})
|
|
36060
|
+
});
|
|
36061
|
+
};
|
|
36062
|
+
|
|
36063
|
+
var _path$8;
|
|
36064
|
+
|
|
36065
|
+
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); }
|
|
36066
|
+
|
|
36067
|
+
function SvgKey(props) {
|
|
36068
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
36069
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36070
|
+
viewBox: "0 0 20 20",
|
|
36071
|
+
fill: "currentColor"
|
|
36072
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
36073
|
+
fillRule: "evenodd",
|
|
36074
|
+
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",
|
|
36075
|
+
clipRule: "evenodd"
|
|
36076
|
+
})));
|
|
36077
|
+
}
|
|
36078
|
+
|
|
36079
|
+
const DashboardPasswordChange = ({
|
|
36080
|
+
title,
|
|
36081
|
+
icon,
|
|
36082
|
+
store
|
|
36083
|
+
}) => {
|
|
36084
|
+
const {
|
|
36085
|
+
state: {
|
|
36086
|
+
activeDashboardLink
|
|
36087
|
+
},
|
|
36088
|
+
dispatch
|
|
36089
|
+
} = React.useContext(store);
|
|
36090
|
+
const {
|
|
36091
|
+
t
|
|
36092
|
+
} = useTranslation("dashboard");
|
|
36093
|
+
|
|
36094
|
+
const setActiveDashboardLink = submenuName => {
|
|
36095
|
+
dispatch({
|
|
36096
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36097
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36098
|
+
});
|
|
36099
|
+
};
|
|
36100
|
+
|
|
36101
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35902
36102
|
name: SUB_MENUS.PASSWORDCHANGE,
|
|
35903
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgKey, {
|
|
36103
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgKey, {
|
|
35904
36104
|
className: "plc-w-6 plc-h-6 plc-mr-2"
|
|
35905
36105
|
}),
|
|
35906
|
-
title: t("labels.changePassword"),
|
|
36106
|
+
title: title !== null && title !== void 0 ? title : t("labels.changePassword"),
|
|
35907
36107
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35908
36108
|
activeDashboardLink: activeDashboardLink
|
|
35909
|
-
})
|
|
36109
|
+
});
|
|
36110
|
+
};
|
|
36111
|
+
|
|
36112
|
+
var _path$7;
|
|
36113
|
+
|
|
36114
|
+
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); }
|
|
36115
|
+
|
|
36116
|
+
function SvgBookmark(props) {
|
|
36117
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
36118
|
+
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
36119
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36120
|
+
fill: "none",
|
|
36121
|
+
viewBox: "0 0 24 24",
|
|
36122
|
+
stroke: "currentColor"
|
|
36123
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
36124
|
+
strokeLinecap: "round",
|
|
36125
|
+
strokeLinejoin: "round",
|
|
36126
|
+
strokeWidth: 2,
|
|
36127
|
+
d: "M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"
|
|
36128
|
+
})));
|
|
36129
|
+
}
|
|
36130
|
+
|
|
36131
|
+
const DashboardSavedItems = ({
|
|
36132
|
+
title,
|
|
36133
|
+
icon,
|
|
36134
|
+
store
|
|
36135
|
+
}) => {
|
|
36136
|
+
const {
|
|
36137
|
+
state: {
|
|
36138
|
+
activeDashboardLink
|
|
36139
|
+
},
|
|
36140
|
+
dispatch
|
|
36141
|
+
} = React.useContext(store);
|
|
36142
|
+
const {
|
|
36143
|
+
t
|
|
36144
|
+
} = useTranslation("dashboard");
|
|
36145
|
+
|
|
36146
|
+
const setActiveDashboardLink = submenuName => {
|
|
36147
|
+
dispatch({
|
|
36148
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36149
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36150
|
+
});
|
|
36151
|
+
};
|
|
36152
|
+
|
|
36153
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35910
36154
|
name: SUB_MENUS.SAVED_ITEMS,
|
|
35911
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgBookmark, null),
|
|
35912
|
-
title: t("labels.savedItems.label"),
|
|
36155
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgBookmark, null),
|
|
36156
|
+
title: title !== null && title !== void 0 ? title : t("labels.savedItems.label"),
|
|
35913
36157
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35914
36158
|
activeDashboardLink: activeDashboardLink
|
|
35915
|
-
})
|
|
35916
|
-
|
|
35917
|
-
|
|
35918
|
-
|
|
35919
|
-
|
|
36159
|
+
});
|
|
36160
|
+
};
|
|
36161
|
+
|
|
36162
|
+
var _path$6;
|
|
36163
|
+
|
|
36164
|
+
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); }
|
|
36165
|
+
|
|
36166
|
+
function SvgPaymentCard(props) {
|
|
36167
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
36168
|
+
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
36169
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36170
|
+
fill: "none",
|
|
36171
|
+
viewBox: "0 0 24 24",
|
|
36172
|
+
stroke: "currentColor"
|
|
36173
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
36174
|
+
strokeLinecap: "round",
|
|
36175
|
+
strokeLinejoin: "round",
|
|
36176
|
+
strokeWidth: 2,
|
|
36177
|
+
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"
|
|
36178
|
+
})));
|
|
36179
|
+
}
|
|
36180
|
+
|
|
36181
|
+
const DashboardPaymentCards = ({
|
|
36182
|
+
title,
|
|
36183
|
+
icon,
|
|
36184
|
+
store
|
|
36185
|
+
}) => {
|
|
36186
|
+
const {
|
|
36187
|
+
state: {
|
|
36188
|
+
activeDashboardLink
|
|
36189
|
+
},
|
|
36190
|
+
dispatch
|
|
36191
|
+
} = React.useContext(store);
|
|
36192
|
+
const {
|
|
36193
|
+
t
|
|
36194
|
+
} = useTranslation("dashboard");
|
|
36195
|
+
|
|
36196
|
+
const setActiveDashboardLink = submenuName => {
|
|
36197
|
+
dispatch({
|
|
36198
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36199
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36200
|
+
});
|
|
36201
|
+
};
|
|
36202
|
+
|
|
36203
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35920
36204
|
name: SUB_MENUS.PAYMENT_CARDS,
|
|
35921
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgPaymentCard, null),
|
|
35922
|
-
title: t("labels.paymentSource"),
|
|
36205
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgPaymentCard, null),
|
|
36206
|
+
title: title !== null && title !== void 0 ? title : t("labels.paymentSource"),
|
|
35923
36207
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35924
36208
|
activeDashboardLink: activeDashboardLink
|
|
35925
|
-
})
|
|
36209
|
+
});
|
|
36210
|
+
};
|
|
36211
|
+
|
|
36212
|
+
var _path$5, _path2;
|
|
36213
|
+
|
|
36214
|
+
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); }
|
|
36215
|
+
|
|
36216
|
+
function SvgLocationPin(props) {
|
|
36217
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
36218
|
+
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
36219
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36220
|
+
fill: "none",
|
|
36221
|
+
viewBox: "0 0 24 24",
|
|
36222
|
+
stroke: "currentColor"
|
|
36223
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
36224
|
+
strokeLinecap: "round",
|
|
36225
|
+
strokeLinejoin: "round",
|
|
36226
|
+
strokeWidth: 2,
|
|
36227
|
+
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"
|
|
36228
|
+
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
36229
|
+
strokeLinecap: "round",
|
|
36230
|
+
strokeLinejoin: "round",
|
|
36231
|
+
strokeWidth: 2,
|
|
36232
|
+
d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z"
|
|
36233
|
+
})));
|
|
36234
|
+
}
|
|
36235
|
+
|
|
36236
|
+
const DashboardAddresses = ({
|
|
36237
|
+
title,
|
|
36238
|
+
icon,
|
|
36239
|
+
store
|
|
36240
|
+
}) => {
|
|
36241
|
+
const {
|
|
36242
|
+
state: {
|
|
36243
|
+
activeDashboardLink
|
|
36244
|
+
},
|
|
36245
|
+
dispatch
|
|
36246
|
+
} = React.useContext(store);
|
|
36247
|
+
const {
|
|
36248
|
+
t
|
|
36249
|
+
} = useTranslation("dashboard");
|
|
36250
|
+
|
|
36251
|
+
const setActiveDashboardLink = submenuName => {
|
|
36252
|
+
dispatch({
|
|
36253
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36254
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36255
|
+
});
|
|
36256
|
+
};
|
|
36257
|
+
|
|
36258
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35926
36259
|
name: SUB_MENUS.ADDRESSES,
|
|
35927
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgLocationPin, null),
|
|
35928
|
-
title: t("labels.addresses"),
|
|
36260
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgLocationPin, null),
|
|
36261
|
+
title: title !== null && title !== void 0 ? title : t("labels.addresses"),
|
|
35929
36262
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35930
36263
|
activeDashboardLink: activeDashboardLink
|
|
35931
|
-
})
|
|
35932
|
-
|
|
35933
|
-
|
|
35934
|
-
|
|
35935
|
-
|
|
36264
|
+
});
|
|
36265
|
+
};
|
|
36266
|
+
|
|
36267
|
+
const DashboardSubscriptions = ({
|
|
36268
|
+
title,
|
|
36269
|
+
icon,
|
|
36270
|
+
store
|
|
36271
|
+
}) => {
|
|
36272
|
+
const {
|
|
36273
|
+
state: {
|
|
36274
|
+
activeDashboardLink
|
|
36275
|
+
},
|
|
36276
|
+
dispatch
|
|
36277
|
+
} = React.useContext(store);
|
|
36278
|
+
const {
|
|
36279
|
+
t
|
|
36280
|
+
} = useTranslation("dashboard");
|
|
36281
|
+
|
|
36282
|
+
const setActiveDashboardLink = submenuName => {
|
|
36283
|
+
dispatch({
|
|
36284
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36285
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36286
|
+
});
|
|
36287
|
+
};
|
|
36288
|
+
|
|
36289
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35936
36290
|
name: SUB_MENUS.SUBSCRIPTIONS,
|
|
35937
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgSubscription, {
|
|
36291
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgSubscription, {
|
|
35938
36292
|
className: "plc-w-10 plc-h-10 plc-pt-2 plc-pr-1 plc--ml-2"
|
|
35939
36293
|
}),
|
|
35940
|
-
title: t("labels.subscriptions"),
|
|
36294
|
+
title: title !== null && title !== void 0 ? title : t("labels.subscriptions"),
|
|
35941
36295
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35942
36296
|
activeDashboardLink: activeDashboardLink
|
|
35943
|
-
})
|
|
36297
|
+
});
|
|
36298
|
+
};
|
|
36299
|
+
|
|
36300
|
+
var _path$4;
|
|
36301
|
+
|
|
36302
|
+
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); }
|
|
36303
|
+
|
|
36304
|
+
function SvgNewsletter(props) {
|
|
36305
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
36306
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36307
|
+
className: "plc-h-5 plc-w-5",
|
|
36308
|
+
fill: "none",
|
|
36309
|
+
viewBox: "0 0 24 24",
|
|
36310
|
+
stroke: "currentColor"
|
|
36311
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
36312
|
+
strokeLinecap: "round",
|
|
36313
|
+
strokeLinejoin: "round",
|
|
36314
|
+
strokeWidth: 2,
|
|
36315
|
+
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"
|
|
36316
|
+
})));
|
|
36317
|
+
}
|
|
36318
|
+
|
|
36319
|
+
const DashboardNewsletters = ({
|
|
36320
|
+
title,
|
|
36321
|
+
icon,
|
|
36322
|
+
store
|
|
36323
|
+
}) => {
|
|
36324
|
+
const {
|
|
36325
|
+
state: {
|
|
36326
|
+
activeDashboardLink
|
|
36327
|
+
},
|
|
36328
|
+
dispatch
|
|
36329
|
+
} = React.useContext(store);
|
|
36330
|
+
const {
|
|
36331
|
+
t
|
|
36332
|
+
} = useTranslation("dashboard");
|
|
36333
|
+
|
|
36334
|
+
const setActiveDashboardLink = submenuName => {
|
|
36335
|
+
dispatch({
|
|
36336
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36337
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36338
|
+
});
|
|
36339
|
+
};
|
|
36340
|
+
|
|
36341
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35944
36342
|
show: showNewsletters(),
|
|
35945
36343
|
name: SUB_MENUS.NEWSLETTERS,
|
|
35946
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgNewsletter, {
|
|
36344
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgNewsletter, {
|
|
35947
36345
|
className: "plc-transform plc--translate-x-1 plc-scale-105 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
|
|
35948
36346
|
}),
|
|
35949
|
-
title: t("labels.Newsletters"),
|
|
36347
|
+
title: title !== null && title !== void 0 ? title : t("labels.Newsletters"),
|
|
35950
36348
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35951
36349
|
activeDashboardLink: activeDashboardLink
|
|
35952
|
-
})
|
|
36350
|
+
});
|
|
36351
|
+
};
|
|
36352
|
+
|
|
36353
|
+
var _path$3;
|
|
36354
|
+
|
|
36355
|
+
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); }
|
|
36356
|
+
|
|
36357
|
+
function SvgMemberships(props) {
|
|
36358
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
36359
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36360
|
+
fill: "none",
|
|
36361
|
+
strokeWidth: 1.5,
|
|
36362
|
+
stroke: "currentColor",
|
|
36363
|
+
width: 24,
|
|
36364
|
+
height: 24
|
|
36365
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
36366
|
+
strokeLinecap: "round",
|
|
36367
|
+
strokeLinejoin: "round",
|
|
36368
|
+
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"
|
|
36369
|
+
})));
|
|
36370
|
+
}
|
|
36371
|
+
|
|
36372
|
+
const DashboardMemberships = ({
|
|
36373
|
+
title,
|
|
36374
|
+
icon,
|
|
36375
|
+
store
|
|
36376
|
+
}) => {
|
|
36377
|
+
const {
|
|
36378
|
+
state: {
|
|
36379
|
+
activeDashboardLink
|
|
36380
|
+
},
|
|
36381
|
+
dispatch
|
|
36382
|
+
} = React.useContext(store);
|
|
36383
|
+
const {
|
|
36384
|
+
t
|
|
36385
|
+
} = useTranslation("dashboard");
|
|
36386
|
+
|
|
36387
|
+
const setActiveDashboardLink = submenuName => {
|
|
36388
|
+
dispatch({
|
|
36389
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36390
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36391
|
+
});
|
|
36392
|
+
};
|
|
36393
|
+
|
|
36394
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35953
36395
|
show: hasActiveMemberships(),
|
|
35954
36396
|
name: SUB_MENUS.MEMBERSHIPS,
|
|
35955
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgMemberships, {
|
|
36397
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgMemberships, {
|
|
35956
36398
|
className: "plc-transform plc-scale-120 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
|
|
35957
36399
|
}),
|
|
35958
|
-
title: t("labels.memberships"),
|
|
36400
|
+
title: title !== null && title !== void 0 ? title : t("labels.memberships"),
|
|
35959
36401
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35960
36402
|
activeDashboardLink: activeDashboardLink
|
|
35961
|
-
})
|
|
36403
|
+
});
|
|
36404
|
+
};
|
|
36405
|
+
|
|
36406
|
+
var _path$2;
|
|
36407
|
+
|
|
36408
|
+
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); }
|
|
36409
|
+
|
|
36410
|
+
function SvgDonate(props) {
|
|
36411
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
36412
|
+
width: 24,
|
|
36413
|
+
height: 24,
|
|
36414
|
+
fill: "currentColor",
|
|
36415
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
36416
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
36417
|
+
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"
|
|
36418
|
+
})));
|
|
36419
|
+
}
|
|
36420
|
+
|
|
36421
|
+
const DashboardDonations = ({
|
|
36422
|
+
title,
|
|
36423
|
+
icon,
|
|
36424
|
+
store
|
|
36425
|
+
}) => {
|
|
36426
|
+
const {
|
|
36427
|
+
state: {
|
|
36428
|
+
activeDashboardLink
|
|
36429
|
+
},
|
|
36430
|
+
dispatch
|
|
36431
|
+
} = React.useContext(store);
|
|
36432
|
+
const {
|
|
36433
|
+
t
|
|
36434
|
+
} = useTranslation("dashboard");
|
|
36435
|
+
|
|
36436
|
+
const setActiveDashboardLink = submenuName => {
|
|
36437
|
+
dispatch({
|
|
36438
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36439
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36440
|
+
});
|
|
36441
|
+
};
|
|
36442
|
+
|
|
36443
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35962
36444
|
show: hasDonationSubs(),
|
|
35963
36445
|
name: SUB_MENUS.DONATIONS,
|
|
35964
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgDonate, {
|
|
36446
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgDonate, {
|
|
35965
36447
|
className: "plc-transform plc-scale-120 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
|
|
35966
36448
|
}),
|
|
35967
|
-
title: t("labels.donations"),
|
|
36449
|
+
title: title !== null && title !== void 0 ? title : t("labels.donations"),
|
|
35968
36450
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35969
36451
|
activeDashboardLink: activeDashboardLink
|
|
35970
|
-
})
|
|
36452
|
+
});
|
|
36453
|
+
};
|
|
36454
|
+
|
|
36455
|
+
const DashboardGifts = ({
|
|
36456
|
+
title,
|
|
36457
|
+
icon,
|
|
36458
|
+
store
|
|
36459
|
+
}) => {
|
|
36460
|
+
const {
|
|
36461
|
+
state: {
|
|
36462
|
+
activeDashboardLink
|
|
36463
|
+
},
|
|
36464
|
+
dispatch
|
|
36465
|
+
} = React.useContext(store);
|
|
36466
|
+
const {
|
|
36467
|
+
t
|
|
36468
|
+
} = useTranslation("dashboard");
|
|
36469
|
+
|
|
36470
|
+
const setActiveDashboardLink = submenuName => {
|
|
36471
|
+
dispatch({
|
|
36472
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36473
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36474
|
+
});
|
|
36475
|
+
};
|
|
36476
|
+
|
|
36477
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35971
36478
|
name: SUB_MENUS.GIFTS,
|
|
35972
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgGift, null),
|
|
35973
|
-
title: t("labels.gifts"),
|
|
36479
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgGift, null),
|
|
36480
|
+
title: title !== null && title !== void 0 ? title : t("labels.gifts"),
|
|
35974
36481
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35975
36482
|
activeDashboardLink: activeDashboardLink
|
|
35976
|
-
})
|
|
36483
|
+
});
|
|
36484
|
+
};
|
|
36485
|
+
|
|
36486
|
+
var _path$1;
|
|
36487
|
+
|
|
36488
|
+
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); }
|
|
36489
|
+
|
|
36490
|
+
function SvgShopping(props) {
|
|
36491
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
36492
|
+
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
36493
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36494
|
+
fill: "none",
|
|
36495
|
+
viewBox: "0 0 24 24",
|
|
36496
|
+
stroke: "currentColor"
|
|
36497
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
36498
|
+
strokeLinecap: "round",
|
|
36499
|
+
strokeLinejoin: "round",
|
|
36500
|
+
strokeWidth: 2,
|
|
36501
|
+
d: "M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"
|
|
36502
|
+
})));
|
|
36503
|
+
}
|
|
36504
|
+
|
|
36505
|
+
const DashboardOrders = ({
|
|
36506
|
+
title,
|
|
36507
|
+
icon,
|
|
36508
|
+
store
|
|
36509
|
+
}) => {
|
|
36510
|
+
const {
|
|
36511
|
+
state: {
|
|
36512
|
+
activeDashboardLink
|
|
36513
|
+
},
|
|
36514
|
+
dispatch
|
|
36515
|
+
} = React.useContext(store);
|
|
36516
|
+
const {
|
|
36517
|
+
t
|
|
36518
|
+
} = useTranslation("dashboard");
|
|
36519
|
+
|
|
36520
|
+
const setActiveDashboardLink = submenuName => {
|
|
36521
|
+
dispatch({
|
|
36522
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36523
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36524
|
+
});
|
|
36525
|
+
};
|
|
36526
|
+
|
|
36527
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35977
36528
|
show: window.Pelcro.site.read().ecommerce_enabled,
|
|
35978
36529
|
name: SUB_MENUS.ORDERS,
|
|
35979
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgShopping, null),
|
|
35980
|
-
title: t("labels.orders.label"),
|
|
36530
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgShopping, null),
|
|
36531
|
+
title: title !== null && title !== void 0 ? title : t("labels.orders.label"),
|
|
35981
36532
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35982
36533
|
activeDashboardLink: activeDashboardLink
|
|
35983
|
-
})
|
|
36534
|
+
});
|
|
36535
|
+
};
|
|
36536
|
+
|
|
36537
|
+
const DashboardInvoices = ({
|
|
36538
|
+
title,
|
|
36539
|
+
icon,
|
|
36540
|
+
store
|
|
36541
|
+
}) => {
|
|
36542
|
+
const {
|
|
36543
|
+
state: {
|
|
36544
|
+
activeDashboardLink
|
|
36545
|
+
},
|
|
36546
|
+
dispatch
|
|
36547
|
+
} = React.useContext(store);
|
|
36548
|
+
const {
|
|
36549
|
+
t
|
|
36550
|
+
} = useTranslation("dashboard");
|
|
36551
|
+
|
|
36552
|
+
const setActiveDashboardLink = submenuName => {
|
|
36553
|
+
dispatch({
|
|
36554
|
+
type: SET_ACTIVE_DASHBOARD_LINK,
|
|
36555
|
+
payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
|
|
36556
|
+
});
|
|
36557
|
+
};
|
|
36558
|
+
|
|
36559
|
+
return /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35984
36560
|
show: hasInvoices(),
|
|
35985
36561
|
name: SUB_MENUS.INVOICES,
|
|
35986
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgDocument, null),
|
|
35987
|
-
title: t("labels.invoices"),
|
|
35988
|
-
setActiveDashboardLink: setActiveDashboardLink,
|
|
35989
|
-
activeDashboardLink: activeDashboardLink
|
|
35990
|
-
})), /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|
|
35991
|
-
name: SUB_MENUS.LOGOUT,
|
|
35992
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgExit, null),
|
|
35993
|
-
title: t("labels.logout"),
|
|
36562
|
+
icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default['default'].createElement(SvgDocument, null),
|
|
36563
|
+
title: title !== null && title !== void 0 ? title : t("labels.invoices"),
|
|
35994
36564
|
setActiveDashboardLink: setActiveDashboardLink,
|
|
35995
36565
|
activeDashboardLink: activeDashboardLink
|
|
35996
|
-
})
|
|
35997
|
-
id: "pelcro-view-dashboard-submenus",
|
|
35998
|
-
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"
|
|
35999
|
-
}, activeDashboardLink === SUB_MENUS.PROFILE && /*#__PURE__*/React__default['default'].createElement(ProfileMenu, null), activeDashboardLink === SUB_MENUS.QRCODE && /*#__PURE__*/React__default['default'].createElement(QRCodeMenu, null), activeDashboardLink === SUB_MENUS.PASSWORDCHANGE && /*#__PURE__*/React__default['default'].createElement(PasswordChangeMenu, null), activeDashboardLink === SUB_MENUS.SAVED_ITEMS && /*#__PURE__*/React__default['default'].createElement(SavedItemsMenu, null), activeDashboardLink === SUB_MENUS.PAYMENT_CARDS && /*#__PURE__*/React__default['default'].createElement(PaymentCardsMenu, null), activeDashboardLink === SUB_MENUS.ADDRESSES && /*#__PURE__*/React__default['default'].createElement(AddressesMenu, null), activeDashboardLink === SUB_MENUS.SUBSCRIPTIONS && /*#__PURE__*/React__default['default'].createElement(SubscriptionsMenu, {
|
|
36000
|
-
displayProductSelect: displayProductSelect,
|
|
36001
|
-
setProductAndPlan: setProductAndPlan,
|
|
36002
|
-
setSubscriptionIdToRenew: setSubscriptionIdToRenew,
|
|
36003
|
-
getSubscriptionStatus: getSubscriptionStatus
|
|
36004
|
-
}), activeDashboardLink === SUB_MENUS.MEMBERSHIPS && /*#__PURE__*/React__default['default'].createElement(MembershipsMenu, {
|
|
36005
|
-
getSubscriptionStatus: getSubscriptionStatus
|
|
36006
|
-
}), activeDashboardLink === SUB_MENUS.NEWSLETTERS && /*#__PURE__*/React__default['default'].createElement(NewslettersMenu, null), activeDashboardLink === SUB_MENUS.DONATIONS && /*#__PURE__*/React__default['default'].createElement(DonationsMenu, {
|
|
36007
|
-
getSubscriptionStatus: getSubscriptionStatus
|
|
36008
|
-
}), activeDashboardLink === SUB_MENUS.GIFTS && /*#__PURE__*/React__default['default'].createElement(GiftsMenu, {
|
|
36009
|
-
getSubscriptionStatus: getSubscriptionStatus,
|
|
36010
|
-
displayProductSelect: displayProductSelect,
|
|
36011
|
-
setProductAndPlan: setProductAndPlan,
|
|
36012
|
-
setSubscriptionIdToRenew: setSubscriptionIdToRenew,
|
|
36013
|
-
disableSubmit: disableSubmit
|
|
36014
|
-
}), activeDashboardLink === SUB_MENUS.ORDERS && /*#__PURE__*/React__default['default'].createElement(OrdersMenu, null), activeDashboardLink === SUB_MENUS.INVOICES && /*#__PURE__*/React__default['default'].createElement(InvoicesMenu, null), activeDashboardLink === SUB_MENUS.LOGOUT && logout(), /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
36015
|
-
variant: "ghost",
|
|
36016
|
-
type: "button",
|
|
36017
|
-
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",
|
|
36018
|
-
onClick: closeDashboard
|
|
36019
|
-
}, /*#__PURE__*/React__default['default'].createElement(SvgXIcon, {
|
|
36020
|
-
className: "plc-fill-current"
|
|
36021
|
-
}))));
|
|
36566
|
+
});
|
|
36022
36567
|
};
|
|
36023
36568
|
|
|
36024
36569
|
/**
|
|
@@ -36034,6 +36579,9 @@ function Dashboard(props) {
|
|
|
36034
36579
|
const {
|
|
36035
36580
|
resetView
|
|
36036
36581
|
} = usePelcro();
|
|
36582
|
+
const {
|
|
36583
|
+
t
|
|
36584
|
+
} = useTranslation("dashboard");
|
|
36037
36585
|
return /*#__PURE__*/React__default['default'].createElement(DashboardContainer, props, /*#__PURE__*/React__default['default'].createElement(DashboardContent, Object.assign({
|
|
36038
36586
|
onClose: () => {
|
|
36039
36587
|
var _props$onClose;
|
|
@@ -36041,7 +36589,13 @@ function Dashboard(props) {
|
|
|
36041
36589
|
(_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
|
|
36042
36590
|
resetView();
|
|
36043
36591
|
}
|
|
36044
|
-
}, props)
|
|
36592
|
+
}, props), /*#__PURE__*/React__default['default'].createElement(DashboardHeading, {
|
|
36593
|
+
title: t("labels.mySettings")
|
|
36594
|
+
}), /*#__PURE__*/React__default['default'].createElement(DashboardProfile, null), /*#__PURE__*/React__default['default'].createElement(DashboardQRCode, null), /*#__PURE__*/React__default['default'].createElement(DashboardPasswordChange, null), /*#__PURE__*/React__default['default'].createElement(DashboardSavedItems, null), /*#__PURE__*/React__default['default'].createElement(DashboardHeading, {
|
|
36595
|
+
title: t("labels.accountSettings")
|
|
36596
|
+
}), /*#__PURE__*/React__default['default'].createElement(DashboardPaymentCards, null), /*#__PURE__*/React__default['default'].createElement(DashboardAddresses, null), /*#__PURE__*/React__default['default'].createElement(DashboardHeading, {
|
|
36597
|
+
title: t("labels.purchases")
|
|
36598
|
+
}), /*#__PURE__*/React__default['default'].createElement(DashboardSubscriptions, null), /*#__PURE__*/React__default['default'].createElement(DashboardNewsletters, null), /*#__PURE__*/React__default['default'].createElement(DashboardMemberships, null), /*#__PURE__*/React__default['default'].createElement(DashboardDonations, null), /*#__PURE__*/React__default['default'].createElement(DashboardGifts, null), /*#__PURE__*/React__default['default'].createElement(DashboardOrders, null), /*#__PURE__*/React__default['default'].createElement(DashboardInvoices, null)));
|
|
36045
36599
|
}
|
|
36046
36600
|
Dashboard.viewId = "dashboard";
|
|
36047
36601
|
|
|
@@ -38534,7 +39088,6 @@ exports.AddressUpdateStateSelect = AddressUpdateStateSelect;
|
|
|
38534
39088
|
exports.AddressUpdateSubmit = AddressUpdateSubmit;
|
|
38535
39089
|
exports.AddressUpdateTextInput = AddressUpdateTextInput;
|
|
38536
39090
|
exports.AddressUpdateView = AddressUpdateView;
|
|
38537
|
-
exports.AddressesMenu = AddressesMenu;
|
|
38538
39091
|
exports.Alert = AlertWithContext;
|
|
38539
39092
|
exports.AlertElement = Alert;
|
|
38540
39093
|
exports.ApplyCouponButton = ApplyCouponButton;
|
|
@@ -38555,13 +39108,26 @@ exports.ConfirmPassword = ConfirmPassword;
|
|
|
38555
39108
|
exports.CouponCode = CouponCode;
|
|
38556
39109
|
exports.CouponCodeField = CouponCodeField;
|
|
38557
39110
|
exports.Dashboard = Dashboard;
|
|
39111
|
+
exports.DashboardAddresses = DashboardAddresses;
|
|
38558
39112
|
exports.DashboardContainer = DashboardContainer;
|
|
38559
39113
|
exports.DashboardContent = DashboardContent;
|
|
39114
|
+
exports.DashboardDonations = DashboardDonations;
|
|
39115
|
+
exports.DashboardGifts = DashboardGifts;
|
|
39116
|
+
exports.DashboardHeading = DashboardHeading;
|
|
39117
|
+
exports.DashboardInvoices = DashboardInvoices;
|
|
38560
39118
|
exports.DashboardLink = DashboardLink;
|
|
39119
|
+
exports.DashboardMemberships = DashboardMemberships;
|
|
39120
|
+
exports.DashboardNewsletters = DashboardNewsletters;
|
|
38561
39121
|
exports.DashboardOpenButton = DashboardOpenButton;
|
|
39122
|
+
exports.DashboardOrders = DashboardOrders;
|
|
39123
|
+
exports.DashboardPasswordChange = DashboardPasswordChange;
|
|
39124
|
+
exports.DashboardPaymentCards = DashboardPaymentCards;
|
|
39125
|
+
exports.DashboardProfile = DashboardProfile;
|
|
39126
|
+
exports.DashboardQRCode = DashboardQRCode;
|
|
39127
|
+
exports.DashboardSavedItems = DashboardSavedItems;
|
|
39128
|
+
exports.DashboardSubscriptions = DashboardSubscriptions;
|
|
38562
39129
|
exports.DatePicker = DatePicker;
|
|
38563
39130
|
exports.DiscountedPrice = DiscountedPrice;
|
|
38564
|
-
exports.DonationsMenu = DonationsMenu;
|
|
38565
39131
|
exports.Email = Email;
|
|
38566
39132
|
exports.EmailVerifyContainer = EmailVerifyContainer;
|
|
38567
39133
|
exports.EmailVerifyModal = EmailVerifyModal;
|
|
@@ -38582,7 +39148,6 @@ exports.GiftRedeemContainer = GiftRedeemContainer;
|
|
|
38582
39148
|
exports.GiftRedeemModal = GiftRedeemModal;
|
|
38583
39149
|
exports.GiftRedeemSubmitButton = GiftRedeemSubmitButton;
|
|
38584
39150
|
exports.GiftRedeemView = GiftRedeemView;
|
|
38585
|
-
exports.GiftsMenu = GiftsMenu;
|
|
38586
39151
|
exports.GoogleLoginButton = GoogleLoginButton;
|
|
38587
39152
|
exports.Input = Input;
|
|
38588
39153
|
exports.InvoiceDetailsContainer = InvoiceDetailsContainer;
|
|
@@ -38593,7 +39158,6 @@ exports.InvoiceDetailsView = InvoiceDetailsView;
|
|
|
38593
39158
|
exports.InvoicePaymentContainer = InvoicePaymentContainer;
|
|
38594
39159
|
exports.InvoicePaymentModal = InvoicePaymentModal;
|
|
38595
39160
|
exports.InvoicePaymentView = InvoicePaymentView;
|
|
38596
|
-
exports.InvoicesMenu = InvoicesMenu;
|
|
38597
39161
|
exports.Link = Link;
|
|
38598
39162
|
exports.LoginButton = LoginButton;
|
|
38599
39163
|
exports.LoginContainer = LoginContainer;
|
|
@@ -38604,7 +39168,6 @@ exports.LoginRequestLoginToken = LoginRequestLoginToken;
|
|
|
38604
39168
|
exports.LoginUsername = LoginUsername;
|
|
38605
39169
|
exports.LoginView = LoginView;
|
|
38606
39170
|
exports.Logout = Logout;
|
|
38607
|
-
exports.MembershipsMenu = MembershipsMenu;
|
|
38608
39171
|
exports.MeterModal = MeterModal;
|
|
38609
39172
|
exports.MeterView = MeterView;
|
|
38610
39173
|
exports.Modal = Modal;
|
|
@@ -38617,20 +39180,18 @@ exports.NewsletterUpdateContainer = NewsletterUpdateContainer;
|
|
|
38617
39180
|
exports.NewsletterUpdateList = NewsletterUpdateList;
|
|
38618
39181
|
exports.NewsletterUpdateModal = NewsletterUpdateModal;
|
|
38619
39182
|
exports.NewsletterUpdateView = NewsletterUpdateView;
|
|
38620
|
-
exports.NewslettersMenu = NewslettersMenu;
|
|
38621
39183
|
exports.Notification = Notification;
|
|
38622
39184
|
exports.OrderConfirmModal = OrderConfirmModal;
|
|
38623
39185
|
exports.OrderCreateContainer = OrderCreateContainer;
|
|
39186
|
+
exports.OrderCreateFreeButton = OrderCreateFreeButton;
|
|
38624
39187
|
exports.OrderCreateModal = OrderCreateModal;
|
|
38625
39188
|
exports.OrderCreateSubmitButton = OrderCreateSubmitButton;
|
|
38626
39189
|
exports.OrderCreateView = OrderCreateView;
|
|
38627
|
-
exports.OrderItems = OrderItems;
|
|
38628
39190
|
exports.Password = Password;
|
|
38629
39191
|
exports.PasswordChangeButton = PasswordChangeButton;
|
|
38630
39192
|
exports.PasswordChangeConfirmNewPassword = PasswordChangeConfirmNewPassword;
|
|
38631
39193
|
exports.PasswordChangeContainer = PasswordChangeContainer;
|
|
38632
39194
|
exports.PasswordChangeCurrentPassword = PasswordChangeCurrentPassword;
|
|
38633
|
-
exports.PasswordChangeMenu = PasswordChangeMenu;
|
|
38634
39195
|
exports.PasswordChangeModal = PasswordChangeModal;
|
|
38635
39196
|
exports.PasswordChangeNewPassword = PasswordChangeNewPassword;
|
|
38636
39197
|
exports.PasswordChangeView = PasswordChangeView;
|
|
@@ -38651,7 +39212,6 @@ exports.PasswordlessRequestEmail = PasswordlessRequestEmail;
|
|
|
38651
39212
|
exports.PasswordlessRequestModal = PasswordlessRequestModal;
|
|
38652
39213
|
exports.PasswordlessRequestView = PasswordlessRequestView;
|
|
38653
39214
|
exports.PasswordlessRequestViewButton = PasswordlessRequestViewButton;
|
|
38654
|
-
exports.PaymentCardsMenu = PaymentCardsMenu;
|
|
38655
39215
|
exports.PaymentCreateContainer = PaymentCreateContainer;
|
|
38656
39216
|
exports.PaymentCreateView = PaymentCreateView;
|
|
38657
39217
|
exports.PaymentMethodContainer = PaymentMethodContainer;
|
|
@@ -38672,7 +39232,6 @@ exports.PelcroCardExpiry = PelcroCardExpiry;
|
|
|
38672
39232
|
exports.PelcroCardNumber = PelcroCardNumber;
|
|
38673
39233
|
exports.PelcroModalController = PelcroModalController;
|
|
38674
39234
|
exports.PelcroPaymentRequestButton = PelcroPaymentRequestButton;
|
|
38675
|
-
exports.ProfileMenu = ProfileMenu;
|
|
38676
39235
|
exports.ProfilePicChangeButton = ProfilePicChangeButton;
|
|
38677
39236
|
exports.ProfilePicChangeContainer = ProfilePicChangeContainer;
|
|
38678
39237
|
exports.ProfilePicChangeCropper = ProfilePicChangeCropper;
|
|
@@ -38681,7 +39240,6 @@ exports.ProfilePicChangeRemoveButton = ProfilePicChangeRemoveButton;
|
|
|
38681
39240
|
exports.ProfilePicChangeSelectButton = ProfilePicChangeSelectButton;
|
|
38682
39241
|
exports.ProfilePicChangeView = ProfilePicChangeView;
|
|
38683
39242
|
exports.ProfilePicChangeZoom = ProfilePicChangeZoom;
|
|
38684
|
-
exports.QRCodeMenu = QRCodeMenu;
|
|
38685
39243
|
exports.QrCodeModal = QrCodeModal;
|
|
38686
39244
|
exports.QrCodeView = QrCodeView;
|
|
38687
39245
|
exports.Radio = Radio;
|
|
@@ -38695,7 +39253,6 @@ exports.RegisterLastName = RegisterLastName;
|
|
|
38695
39253
|
exports.RegisterModal = RegisterModal;
|
|
38696
39254
|
exports.RegisterPassword = RegisterPassword;
|
|
38697
39255
|
exports.RegisterView = RegisterView;
|
|
38698
|
-
exports.SavedItems = SavedItems;
|
|
38699
39256
|
exports.Select = Select;
|
|
38700
39257
|
exports.SelectModal = SelectModalWithHook;
|
|
38701
39258
|
exports.SelectedPaymentMethod = SelectedPaymentMethod;
|
|
@@ -38720,7 +39277,6 @@ exports.SubscriptionRenewView = SubscriptionRenewView;
|
|
|
38720
39277
|
exports.SubscriptionSuspendContainer = SubscriptionSuspendContainer;
|
|
38721
39278
|
exports.SubscriptionSuspendModal = SubscriptionSuspendModal;
|
|
38722
39279
|
exports.SubscriptionSuspendView = SubscriptionSuspendView;
|
|
38723
|
-
exports.SubscriptionsItems = SubscriptionsItems;
|
|
38724
39280
|
exports.TaxAmount = TaxAmount;
|
|
38725
39281
|
exports.TextArea = TextArea;
|
|
38726
39282
|
exports.Tooltip = Tooltip;
|