@merchi/cart 1.4.4
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/LICENSE +21 -0
- package/README.md +134 -0
- package/esm/Cart.js +62 -0
- package/esm/CartAlert.js +47 -0
- package/esm/CartHeader.js +29 -0
- package/esm/CartProvider.js +1101 -0
- package/esm/CartTotals.js +89 -0
- package/esm/assets/merchi-monster-loader.gif +0 -0
- package/esm/assets/merchi-swipe-outline.png +0 -0
- package/esm/assets/product-not-found.png +0 -0
- package/esm/assets/stripe-payment-secure.png +0 -0
- package/esm/buttons/Button.js +23 -0
- package/esm/buttons/ButtonBack.js +35 -0
- package/esm/buttons/ButtonClearCart.js +17 -0
- package/esm/buttons/ButtonInvoiceDownload.js +88 -0
- package/esm/buttons/ButtonNext.js +39 -0
- package/esm/buttons/ButtonNextDynamic.js +19 -0
- package/esm/buttons/ButtonOpenCartMerchiCartModal.js +47 -0
- package/esm/buttons/ButtonPay.js +26 -0
- package/esm/buttons/ButtonShipmentTabNext.js +28 -0
- package/esm/buttons/index.js +7 -0
- package/esm/components/Alert.js +26 -0
- package/esm/components/CartBody.js +14 -0
- package/esm/components/CartClient.js +62 -0
- package/esm/components/CartFooter.js +12 -0
- package/esm/components/CartItemRow.js +230 -0
- package/esm/components/CartPaymentSettingsInvalid.js +13 -0
- package/esm/components/CartShipment.js +52 -0
- package/esm/components/CartTabContent.js +12 -0
- package/esm/components/CartTabPanel.js +25 -0
- package/esm/components/CartTableContainer.js +12 -0
- package/esm/components/CartTitle.js +26 -0
- package/esm/components/CartTotalsListGroup.js +71 -0
- package/esm/components/Collapse.js +32 -0
- package/esm/components/CustomCartProductForm.js +128 -0
- package/esm/components/CustomerCheckoutMethodTabs.js +94 -0
- package/esm/components/DiscountInputGroup.js +293 -0
- package/esm/components/LoadingTemplate.js +23 -0
- package/esm/components/NoCartItems.js +20 -0
- package/esm/components/ShipmentGroupCard.js +207 -0
- package/esm/components/Table.js +13 -0
- package/esm/components/containers.js +31 -0
- package/esm/components/index.js +18 -0
- package/esm/components/product-form-sdk-externals.js +36 -0
- package/esm/forms/FormNewCustomer.js +243 -0
- package/esm/forms/FormReturningCustomer.js +165 -0
- package/esm/forms/FormShipmentAddressAndNotes.js +195 -0
- package/esm/forms/FormSquarePayment.js +19 -0
- package/esm/forms/FormStripePayment.js +19 -0
- package/esm/forms/FormWhatsappCustomer.js +253 -0
- package/esm/forms/InputAcceptUserTermsAndConditions.js +35 -0
- package/esm/forms/InputError.js +16 -0
- package/esm/forms/InputSelect.js +48 -0
- package/esm/forms/InputText.js +56 -0
- package/esm/forms/InputsAddress.js +476 -0
- package/esm/forms/index.js +8 -0
- package/esm/index.js +13 -0
- package/esm/modals.js +51 -0
- package/esm/panels/PanelCartItems.js +49 -0
- package/esm/panels/PanelCartShipment.js +66 -0
- package/esm/panels/PanelClearCart.js +56 -0
- package/esm/panels/PanelClientCheckout.js +81 -0
- package/esm/panels/PanelEditCartItem.js +199 -0
- package/esm/panels/PanelPaymentSuccess.js +63 -0
- package/esm/panels/index.js +7 -0
- package/esm/square/SquareCard.js +106 -0
- package/esm/stripe/LegacyStripeCardForm.js +157 -0
- package/esm/stripe/StripeCardFields.js +126 -0
- package/esm/stripe/StripeCardForm.js +33 -0
- package/esm/stripe/StripePaymentButtons.js +98 -0
- package/esm/stripe/actions.js +192 -0
- package/esm/stripe/utils.js +20 -0
- package/esm/styles/globals.css +463 -0
- package/esm/styles/globals.css.map +1 -0
- package/esm/tabs/CartNav.js +28 -0
- package/esm/tabs/NavTab.js +31 -0
- package/esm/types/assets.d.js +0 -0
- package/esm/types/index.js +1 -0
- package/esm/types/merchi_product_form/index.d.js +0 -0
- package/esm/types/merchi_sdk_ts/index.d.js +0 -0
- package/esm/types/react-redux/index.d.js +0 -0
- package/esm/utilities/address.js +457 -0
- package/esm/utilities/area.js +297 -0
- package/esm/utilities/cart.js +95 -0
- package/esm/utilities/company.js +6 -0
- package/esm/utilities/cookie.js +156 -0
- package/esm/utilities/currency.js +219 -0
- package/esm/utilities/customForm.js +57 -0
- package/esm/utilities/helpers.js +229 -0
- package/esm/utilities/index.js +14 -0
- package/esm/utilities/invoice.js +112 -0
- package/esm/utilities/job.js +9 -0
- package/esm/utilities/local_storage.js +85 -0
- package/esm/utilities/product.js +13 -0
- package/esm/utilities/shipment.js +11 -0
- package/esm/utilities/tabs.js +51 -0
- package/esm/utilities/user.js +65 -0
- package/esm/utilities/variations.js +58 -0
- package/lib/Cart.d.ts +9 -0
- package/lib/Cart.js +69 -0
- package/lib/CartAlert.d.ts +3 -0
- package/lib/CartAlert.js +53 -0
- package/lib/CartHeader.d.ts +3 -0
- package/lib/CartHeader.js +37 -0
- package/lib/CartProvider.d.ts +236 -0
- package/lib/CartProvider.js +1107 -0
- package/lib/CartTotals.d.ts +7 -0
- package/lib/CartTotals.js +96 -0
- package/lib/assets/merchi-monster-loader.gif +0 -0
- package/lib/assets/merchi-swipe-outline.png +0 -0
- package/lib/assets/product-not-found.png +0 -0
- package/lib/assets/stripe-payment-secure.png +0 -0
- package/lib/buttons/Button.d.ts +11 -0
- package/lib/buttons/Button.js +31 -0
- package/lib/buttons/ButtonBack.d.ts +6 -0
- package/lib/buttons/ButtonBack.js +44 -0
- package/lib/buttons/ButtonClearCart.d.ts +3 -0
- package/lib/buttons/ButtonClearCart.js +24 -0
- package/lib/buttons/ButtonInvoiceDownload.d.ts +3 -0
- package/lib/buttons/ButtonInvoiceDownload.js +96 -0
- package/lib/buttons/ButtonNext.d.ts +3 -0
- package/lib/buttons/ButtonNext.js +48 -0
- package/lib/buttons/ButtonNextDynamic.d.ts +3 -0
- package/lib/buttons/ButtonNextDynamic.js +28 -0
- package/lib/buttons/ButtonOpenCartMerchiCartModal.d.ts +9 -0
- package/lib/buttons/ButtonOpenCartMerchiCartModal.js +57 -0
- package/lib/buttons/ButtonPay.d.ts +7 -0
- package/lib/buttons/ButtonPay.js +35 -0
- package/lib/buttons/ButtonShipmentTabNext.d.ts +2 -0
- package/lib/buttons/ButtonShipmentTabNext.js +37 -0
- package/lib/buttons/index.d.ts +7 -0
- package/lib/buttons/index.js +48 -0
- package/lib/components/Alert.d.ts +7 -0
- package/lib/components/Alert.js +34 -0
- package/lib/components/CartBody.d.ts +7 -0
- package/lib/components/CartBody.js +22 -0
- package/lib/components/CartClient.d.ts +4 -0
- package/lib/components/CartClient.js +71 -0
- package/lib/components/CartFooter.d.ts +6 -0
- package/lib/components/CartFooter.js +20 -0
- package/lib/components/CartItemRow.d.ts +7 -0
- package/lib/components/CartItemRow.js +236 -0
- package/lib/components/CartPaymentSettingsInvalid.d.ts +2 -0
- package/lib/components/CartPaymentSettingsInvalid.js +21 -0
- package/lib/components/CartShipment.d.ts +6 -0
- package/lib/components/CartShipment.js +59 -0
- package/lib/components/CartTabContent.d.ts +6 -0
- package/lib/components/CartTabContent.js +20 -0
- package/lib/components/CartTabPanel.d.ts +7 -0
- package/lib/components/CartTabPanel.js +31 -0
- package/lib/components/CartTableContainer.d.ts +6 -0
- package/lib/components/CartTableContainer.js +20 -0
- package/lib/components/CartTitle.d.ts +2 -0
- package/lib/components/CartTitle.js +34 -0
- package/lib/components/CartTotalsListGroup.d.ts +3 -0
- package/lib/components/CartTotalsListGroup.js +78 -0
- package/lib/components/Collapse.d.ts +3 -0
- package/lib/components/Collapse.js +40 -0
- package/lib/components/CustomCartProductForm.d.ts +18 -0
- package/lib/components/CustomCartProductForm.js +136 -0
- package/lib/components/CustomerCheckoutMethodTabs.d.ts +6 -0
- package/lib/components/CustomerCheckoutMethodTabs.js +103 -0
- package/lib/components/DiscountInputGroup.d.ts +2 -0
- package/lib/components/DiscountInputGroup.js +301 -0
- package/lib/components/LoadingTemplate.d.ts +7 -0
- package/lib/components/LoadingTemplate.js +30 -0
- package/lib/components/NoCartItems.d.ts +3 -0
- package/lib/components/NoCartItems.js +27 -0
- package/lib/components/ShipmentGroupCard.d.ts +7 -0
- package/lib/components/ShipmentGroupCard.js +215 -0
- package/lib/components/Table.d.ts +7 -0
- package/lib/components/Table.js +19 -0
- package/lib/components/containers.d.ts +14 -0
- package/lib/components/containers.js +40 -0
- package/lib/components/index.d.ts +18 -0
- package/lib/components/index.js +133 -0
- package/lib/components/product-form-sdk-externals.d.ts +46 -0
- package/lib/components/product-form-sdk-externals.js +43 -0
- package/lib/forms/FormNewCustomer.d.ts +4 -0
- package/lib/forms/FormNewCustomer.js +252 -0
- package/lib/forms/FormReturningCustomer.d.ts +3 -0
- package/lib/forms/FormReturningCustomer.js +173 -0
- package/lib/forms/FormShipmentAddressAndNotes.d.ts +15 -0
- package/lib/forms/FormShipmentAddressAndNotes.js +203 -0
- package/lib/forms/FormSquarePayment.d.ts +3 -0
- package/lib/forms/FormSquarePayment.js +27 -0
- package/lib/forms/FormStripePayment.d.ts +3 -0
- package/lib/forms/FormStripePayment.js +27 -0
- package/lib/forms/FormWhatsappCustomer.d.ts +3 -0
- package/lib/forms/FormWhatsappCustomer.js +261 -0
- package/lib/forms/InputAcceptUserTermsAndConditions.d.ts +7 -0
- package/lib/forms/InputAcceptUserTermsAndConditions.js +41 -0
- package/lib/forms/InputError.d.ts +8 -0
- package/lib/forms/InputError.js +24 -0
- package/lib/forms/InputSelect.d.ts +14 -0
- package/lib/forms/InputSelect.js +55 -0
- package/lib/forms/InputText.d.ts +12 -0
- package/lib/forms/InputText.js +63 -0
- package/lib/forms/InputsAddress.d.ts +11 -0
- package/lib/forms/InputsAddress.js +485 -0
- package/lib/forms/index.d.ts +8 -0
- package/lib/forms/index.js +63 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +93 -0
- package/lib/modals.d.ts +17 -0
- package/lib/modals.js +59 -0
- package/lib/panels/PanelCartItems.d.ts +3 -0
- package/lib/panels/PanelCartItems.js +56 -0
- package/lib/panels/PanelCartShipment.d.ts +3 -0
- package/lib/panels/PanelCartShipment.js +72 -0
- package/lib/panels/PanelClearCart.d.ts +3 -0
- package/lib/panels/PanelClearCart.js +62 -0
- package/lib/panels/PanelClientCheckout.d.ts +3 -0
- package/lib/panels/PanelClientCheckout.js +88 -0
- package/lib/panels/PanelEditCartItem.d.ts +6 -0
- package/lib/panels/PanelEditCartItem.js +206 -0
- package/lib/panels/PanelPaymentSuccess.d.ts +3 -0
- package/lib/panels/PanelPaymentSuccess.js +69 -0
- package/lib/panels/index.d.ts +7 -0
- package/lib/panels/index.js +48 -0
- package/lib/square/SquareCard.d.ts +3 -0
- package/lib/square/SquareCard.js +114 -0
- package/lib/stripe/LegacyStripeCardForm.d.ts +3 -0
- package/lib/stripe/LegacyStripeCardForm.js +166 -0
- package/lib/stripe/StripeCardFields.d.ts +15 -0
- package/lib/stripe/StripeCardFields.js +135 -0
- package/lib/stripe/StripeCardForm.d.ts +2 -0
- package/lib/stripe/StripeCardForm.js +42 -0
- package/lib/stripe/StripePaymentButtons.d.ts +8 -0
- package/lib/stripe/StripePaymentButtons.js +106 -0
- package/lib/stripe/actions.d.ts +4 -0
- package/lib/stripe/actions.js +200 -0
- package/lib/stripe/utils.d.ts +18 -0
- package/lib/stripe/utils.js +27 -0
- package/lib/styles/globals.css +463 -0
- package/lib/styles/globals.css.map +1 -0
- package/lib/tabs/CartNav.d.ts +3 -0
- package/lib/tabs/CartNav.js +36 -0
- package/lib/tabs/NavTab.d.ts +9 -0
- package/lib/tabs/NavTab.js +39 -0
- package/lib/types/index.d.ts +13 -0
- package/lib/types/index.js +1 -0
- package/lib/utilities/address.d.ts +30 -0
- package/lib/utilities/address.js +468 -0
- package/lib/utilities/area.d.ts +77 -0
- package/lib/utilities/area.js +328 -0
- package/lib/utilities/cart.d.ts +9 -0
- package/lib/utilities/cart.js +108 -0
- package/lib/utilities/company.d.ts +2 -0
- package/lib/utilities/company.js +13 -0
- package/lib/utilities/cookie.d.ts +4 -0
- package/lib/utilities/cookie.js +165 -0
- package/lib/utilities/currency.d.ts +5 -0
- package/lib/utilities/currency.js +229 -0
- package/lib/utilities/customForm.d.ts +17 -0
- package/lib/utilities/customForm.js +64 -0
- package/lib/utilities/helpers.d.ts +24 -0
- package/lib/utilities/helpers.js +240 -0
- package/lib/utilities/index.d.ts +14 -0
- package/lib/utilities/index.js +159 -0
- package/lib/utilities/invoice.d.ts +3 -0
- package/lib/utilities/invoice.js +118 -0
- package/lib/utilities/job.d.ts +1 -0
- package/lib/utilities/job.js +15 -0
- package/lib/utilities/local_storage.d.ts +31 -0
- package/lib/utilities/local_storage.js +96 -0
- package/lib/utilities/product.d.ts +2 -0
- package/lib/utilities/product.js +21 -0
- package/lib/utilities/shipment.d.ts +2 -0
- package/lib/utilities/shipment.js +18 -0
- package/lib/utilities/tabs.d.ts +14 -0
- package/lib/utilities/tabs.js +60 -0
- package/lib/utilities/user.d.ts +5 -0
- package/lib/utilities/user.js +75 -0
- package/lib/utilities/variations.d.ts +18 -0
- package/lib/utilities/variations.js +66 -0
- package/package.json +109 -0
- package/src/Cart.tsx +96 -0
- package/src/CartAlert.tsx +35 -0
- package/src/CartHeader.tsx +28 -0
- package/src/CartProvider.tsx +992 -0
- package/src/CartTotals.tsx +102 -0
- package/src/assets/merchi-monster-loader.gif +0 -0
- package/src/assets/merchi-swipe-outline.png +0 -0
- package/src/assets/product-not-found.png +0 -0
- package/src/assets/stripe-payment-secure.png +0 -0
- package/src/buttons/Button.tsx +35 -0
- package/src/buttons/ButtonBack.tsx +42 -0
- package/src/buttons/ButtonClearCart.tsx +17 -0
- package/src/buttons/ButtonInvoiceDownload.tsx +60 -0
- package/src/buttons/ButtonNext.tsx +35 -0
- package/src/buttons/ButtonNextDynamic.tsx +31 -0
- package/src/buttons/ButtonOpenCartMerchiCartModal.tsx +61 -0
- package/src/buttons/ButtonPay.tsx +32 -0
- package/src/buttons/ButtonShipmentTabNext.tsx +24 -0
- package/src/buttons/index.ts +15 -0
- package/src/components/Alert.tsx +31 -0
- package/src/components/CartBody.tsx +16 -0
- package/src/components/CartClient.tsx +52 -0
- package/src/components/CartFooter.tsx +15 -0
- package/src/components/CartItemRow.tsx +212 -0
- package/src/components/CartPaymentSettingsInvalid.tsx +12 -0
- package/src/components/CartShipment.tsx +56 -0
- package/src/components/CartTabContent.tsx +15 -0
- package/src/components/CartTabPanel.tsx +25 -0
- package/src/components/CartTableContainer.tsx +15 -0
- package/src/components/CartTitle.tsx +22 -0
- package/src/components/CartTotalsListGroup.tsx +58 -0
- package/src/components/Collapse.tsx +23 -0
- package/src/components/CustomCartProductForm.tsx +123 -0
- package/src/components/CustomerCheckoutMethodTabs.tsx +106 -0
- package/src/components/DiscountInputGroup.tsx +160 -0
- package/src/components/LoadingTemplate.tsx +22 -0
- package/src/components/NoCartItems.tsx +20 -0
- package/src/components/ShipmentGroupCard.tsx +170 -0
- package/src/components/Table.tsx +15 -0
- package/src/components/containers.tsx +40 -0
- package/src/components/index.ts +38 -0
- package/src/components/product-form-sdk-externals.ts +67 -0
- package/src/forms/FormNewCustomer.tsx +170 -0
- package/src/forms/FormReturningCustomer.tsx +117 -0
- package/src/forms/FormShipmentAddressAndNotes.tsx +165 -0
- package/src/forms/FormSquarePayment.tsx +19 -0
- package/src/forms/FormStripePayment.tsx +19 -0
- package/src/forms/FormWhatsappCustomer.tsx +179 -0
- package/src/forms/InputAcceptUserTermsAndConditions.tsx +43 -0
- package/src/forms/InputError.tsx +23 -0
- package/src/forms/InputSelect.tsx +58 -0
- package/src/forms/InputText.tsx +56 -0
- package/src/forms/InputsAddress.tsx +438 -0
- package/src/forms/index.ts +18 -0
- package/src/index.ts +31 -0
- package/src/modals.tsx +65 -0
- package/src/panels/PanelCartItems.tsx +56 -0
- package/src/panels/PanelCartShipment.tsx +86 -0
- package/src/panels/PanelClearCart.tsx +50 -0
- package/src/panels/PanelClientCheckout.tsx +102 -0
- package/src/panels/PanelEditCartItem.tsx +172 -0
- package/src/panels/PanelPaymentSuccess.tsx +66 -0
- package/src/panels/index.ts +15 -0
- package/src/square/SquareCard.tsx +84 -0
- package/src/stripe/LegacyStripeCardForm.tsx +91 -0
- package/src/stripe/StripeCardFields.tsx +173 -0
- package/src/stripe/StripeCardForm.tsx +18 -0
- package/src/stripe/StripePaymentButtons.tsx +117 -0
- package/src/stripe/actions.ts +94 -0
- package/src/stripe/utils.ts +22 -0
- package/src/styles/globals.scss +475 -0
- package/src/tabs/CartNav.tsx +18 -0
- package/src/tabs/NavTab.tsx +36 -0
- package/src/types/assets.d.ts +4 -0
- package/src/types/index.ts +15 -0
- package/src/types/merchi_product_form/index.d.ts +1 -0
- package/src/types/merchi_sdk_ts/index.d.ts +1 -0
- package/src/types/react-redux/index.d.ts +0 -0
- package/src/utilities/address.ts +463 -0
- package/src/utilities/area.ts +359 -0
- package/src/utilities/cart.ts +80 -0
- package/src/utilities/company.ts +8 -0
- package/src/utilities/cookie.ts +58 -0
- package/src/utilities/currency.ts +216 -0
- package/src/utilities/customForm.ts +71 -0
- package/src/utilities/helpers.ts +213 -0
- package/src/utilities/index.ts +14 -0
- package/src/utilities/invoice.ts +60 -0
- package/src/utilities/job.ts +13 -0
- package/src/utilities/local_storage.ts +130 -0
- package/src/utilities/product.ts +14 -0
- package/src/utilities/shipment.ts +11 -0
- package/src/utilities/tabs.ts +38 -0
- package/src/utilities/user.ts +33 -0
- package/src/utilities/variations.ts +80 -0
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
.merchi-cart-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
padding: 1.5rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.merchi-cart-header h5 {
|
|
8
|
+
margin-bottom: 0;
|
|
9
|
+
line-height: 1.5;
|
|
10
|
+
font-size: 20px;
|
|
11
|
+
margin-top: 0px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.merchi-cart-footer {
|
|
15
|
+
display: flex;
|
|
16
|
+
padding: 1rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.merchi-cart-body {
|
|
20
|
+
display: block;
|
|
21
|
+
min-height: 450px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.merchi-cart-title {
|
|
25
|
+
margin-bottom: 2rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.merchi-loading-container {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
height: var(--bs-height-md, 500px);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.merchi-loading-container-text {
|
|
37
|
+
font-size: 1.2rem;
|
|
38
|
+
font-weight: bold;
|
|
39
|
+
text-align: center;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.merchi-payment-gateway-inactive {
|
|
43
|
+
height: 300px;
|
|
44
|
+
background: url("../assets/merchi-swipe-outline.png");
|
|
45
|
+
background-repeat: no-repeat;
|
|
46
|
+
background-position: center center;
|
|
47
|
+
background-size: 276px 215px;
|
|
48
|
+
margin-top: 100px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.merchi-tab-panel {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.merchi-cart-tab-content {
|
|
56
|
+
padding: 15px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.merchi-cart-tab-content > .merchi-cart-tab-panel {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.merchi-cart-tab-content > .active {
|
|
64
|
+
display: block;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.merchi-cart-total-container {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: flex-end;
|
|
71
|
+
border-bottom-right-radius: calc(0.3rem - 1px);
|
|
72
|
+
border-bottom-left-radius: calc(0.3rem - 1px);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.merchi-cart-total-table {
|
|
76
|
+
width: 100%;
|
|
77
|
+
margin-bottom: 20px;
|
|
78
|
+
max-width: 400px;
|
|
79
|
+
margin-bottom: 0px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.merchi-cart-clear-container {
|
|
83
|
+
display: block;
|
|
84
|
+
text-align: center;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.merchi-cart-clear-text {
|
|
88
|
+
font-size: 16px;
|
|
89
|
+
margin-top: 3rem;
|
|
90
|
+
margin-bottom: 3rem;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.merchi-cart-item-table-head {
|
|
94
|
+
border: none;
|
|
95
|
+
padding: 0.5rem;
|
|
96
|
+
padding-left: 0.75rem;
|
|
97
|
+
padding-right: 0.75rem;
|
|
98
|
+
text-transform: uppercase;
|
|
99
|
+
border-bottom: 0px !important;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.merchi-cart-item-table-head-right {
|
|
103
|
+
border: none;
|
|
104
|
+
padding: 0.5rem;
|
|
105
|
+
padding-left: 0.75rem;
|
|
106
|
+
padding-right: 0.75rem;
|
|
107
|
+
text-transform: uppercase;
|
|
108
|
+
text-align: right;
|
|
109
|
+
border-bottom: 0px !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.merchi-cart-success-message {
|
|
113
|
+
font-size: 16px;
|
|
114
|
+
padding-bottom: 4rem;
|
|
115
|
+
padding-top: 4rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Merchi checkout */
|
|
119
|
+
.merchi-row {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media (min-width: 768px) {
|
|
125
|
+
.merchi-row {
|
|
126
|
+
flex-direction: row;
|
|
127
|
+
}
|
|
128
|
+
.merchi-column {
|
|
129
|
+
width: 50%;
|
|
130
|
+
padding-right: 10px;
|
|
131
|
+
}
|
|
132
|
+
.merchi-column:last-child {
|
|
133
|
+
padding-left: 10px;
|
|
134
|
+
padding-right: 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
.merchi-collapse {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.merchi-collapse.show {
|
|
142
|
+
display: block;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.merchi-nav {
|
|
146
|
+
display: flex;
|
|
147
|
+
flex-wrap: wrap;
|
|
148
|
+
padding-left: 0;
|
|
149
|
+
margin-bottom: 0;
|
|
150
|
+
list-style: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.merchi-nav-link {
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
display: block;
|
|
156
|
+
border-radius: 0.25rem;
|
|
157
|
+
padding: 10px 15px;
|
|
158
|
+
width: 100%;
|
|
159
|
+
border: 0px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.merchi-cart-client-info-list {
|
|
163
|
+
list-style: none;
|
|
164
|
+
margin-left: 0px;
|
|
165
|
+
padding-left: 0px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.merchi-nav-link:hover,
|
|
169
|
+
.merchi-nav-link:focus {
|
|
170
|
+
text-decoration: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.merchi-nav-link.disabled {
|
|
174
|
+
color: #6c757d;
|
|
175
|
+
pointer-events: none;
|
|
176
|
+
cursor: default;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.merchi-nav-tabs .merchi-nav-item {
|
|
180
|
+
margin-bottom: -1px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
button.merchi-nav-link {
|
|
184
|
+
background: #fff;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.merchi-nav-tabs .merchi-nav-link {
|
|
188
|
+
border-top-left-radius: 0.25rem;
|
|
189
|
+
border-top-right-radius: 0.25rem;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.merchi-nav-tabs .merchi-nav-link:hover,
|
|
193
|
+
.merchi-nav-tabs .merchi-nav-link:focus {
|
|
194
|
+
border-color: #e9ecef #e9ecef #dee2e6;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.merchi-nav-tabs .merchi-nav-link.disabled {
|
|
198
|
+
color: #6c757d;
|
|
199
|
+
background-color: transparent;
|
|
200
|
+
border-color: transparent;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.merchi-nav-tabs .merchi-nav-link.active,
|
|
204
|
+
.merchi-nav-tabs .merchi-nav-item.show .merchi-nav-link {
|
|
205
|
+
color: #495057;
|
|
206
|
+
background-color: #fff;
|
|
207
|
+
border-color: #dee2e6 #dee2e6 #fff;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.merchi-nav-pills .merchi-nav-link {
|
|
211
|
+
border-radius: 0.25rem;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.merchi-nav-pills .merchi-nav-link.active,
|
|
215
|
+
.merchi-nav-pills .show > .merchi-nav-link {
|
|
216
|
+
color: #fff;
|
|
217
|
+
background-color: #303dbf;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.merchi-nav-fill .merchi-nav-item {
|
|
221
|
+
flex: 1 1 auto;
|
|
222
|
+
text-align: center;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.merchi-no-cart-items {
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: column;
|
|
228
|
+
align-items: center;
|
|
229
|
+
justify-content: center;
|
|
230
|
+
height: 450px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.merchi-btn-close {
|
|
234
|
+
background: transparent;
|
|
235
|
+
border: 0px;
|
|
236
|
+
cursor: pointer;
|
|
237
|
+
color: inherit;
|
|
238
|
+
margin-left: auto;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.merchi-loading-template {
|
|
242
|
+
height: 500px;
|
|
243
|
+
background: url("../assets/merchi-monster-loader.gif");
|
|
244
|
+
background-repeat: no-repeat;
|
|
245
|
+
background-position: center center;
|
|
246
|
+
background-size: 150px 150px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* Badge.css */
|
|
250
|
+
.merchi-cart-badge {
|
|
251
|
+
display: inline-block;
|
|
252
|
+
padding: 0.25em 0.4em;
|
|
253
|
+
font-size: 75%;
|
|
254
|
+
font-weight: 700;
|
|
255
|
+
line-height: 1;
|
|
256
|
+
text-align: center;
|
|
257
|
+
white-space: nowrap;
|
|
258
|
+
vertical-align: baseline;
|
|
259
|
+
border-radius: 0.25rem;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.merchi-cart-modal-alert {
|
|
263
|
+
align-items: center;
|
|
264
|
+
display: flex;
|
|
265
|
+
padding: 15px;
|
|
266
|
+
border: 1px solid transparent;
|
|
267
|
+
border-radius: 4px;
|
|
268
|
+
position: fixed;
|
|
269
|
+
top: 0;
|
|
270
|
+
left: 50%;
|
|
271
|
+
transform: translateX(-50%);
|
|
272
|
+
z-index: 1000;
|
|
273
|
+
max-width: 1140px;
|
|
274
|
+
margin-left: auto;
|
|
275
|
+
margin-right: auto;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.merchi-form-group {
|
|
279
|
+
text-align: left;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.merchi-form-group-button {
|
|
283
|
+
text-align: center;
|
|
284
|
+
margin-bottom: 15px;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.merchi-content-container {
|
|
288
|
+
display: flex;
|
|
289
|
+
justify-content: center;
|
|
290
|
+
text-align: center;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.merchi-discount-group-container {
|
|
294
|
+
display: flex;
|
|
295
|
+
justify-content: center;
|
|
296
|
+
margin-bottom: 1.5rem;
|
|
297
|
+
-webkit-box-align: end !important;
|
|
298
|
+
-ms-flex-align: end !important;
|
|
299
|
+
align-items: flex-end !important;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.merchi-cart-stripe-input-container {
|
|
303
|
+
display: flex;
|
|
304
|
+
-webkit-box-orient: vertical !important;
|
|
305
|
+
-webkit-box-direction: normal !important;
|
|
306
|
+
-ms-flex-direction: column !important;
|
|
307
|
+
flex-direction: column !important;
|
|
308
|
+
gap: 1rem !important;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.merchi-cart-stripe-input-container img {
|
|
312
|
+
margin: 0 auto;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.merchi-cart-stripe-input-error {
|
|
316
|
+
text-align: center;
|
|
317
|
+
color: #a94442;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.merchi-cart-total-list-container {
|
|
321
|
+
display: flex;
|
|
322
|
+
align-items: center;
|
|
323
|
+
justify-content: center;
|
|
324
|
+
border-bottom-right-radius: calc(0.3rem - 1px);
|
|
325
|
+
border-bottom-left-radius: calc(0.3rem - 1px);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.merchi-customer-checkout__heading {
|
|
329
|
+
margin: 0 0 1rem;
|
|
330
|
+
color: #52525b;
|
|
331
|
+
font-size: 0.8125rem;
|
|
332
|
+
font-weight: 600;
|
|
333
|
+
text-transform: uppercase;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.merchi-customer-checkout-options {
|
|
337
|
+
display: flex;
|
|
338
|
+
flex-direction: column;
|
|
339
|
+
overflow: hidden;
|
|
340
|
+
border: 1.5px solid #b8bec8;
|
|
341
|
+
border-radius: 0.5rem;
|
|
342
|
+
background: #fff;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.merchi-customer-checkout-option {
|
|
346
|
+
border-bottom: 1px solid #e4e4e7;
|
|
347
|
+
background: #fff;
|
|
348
|
+
}
|
|
349
|
+
.merchi-customer-checkout-option:last-child {
|
|
350
|
+
border-bottom: none;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.merchi-customer-checkout-option__header {
|
|
354
|
+
display: flex;
|
|
355
|
+
align-items: center;
|
|
356
|
+
justify-content: space-between;
|
|
357
|
+
gap: 0.75rem;
|
|
358
|
+
width: 100%;
|
|
359
|
+
min-height: 3rem;
|
|
360
|
+
padding: 0.75rem 1rem;
|
|
361
|
+
border: none;
|
|
362
|
+
background: #fff;
|
|
363
|
+
color: #3f3f46;
|
|
364
|
+
font-size: 0.9375rem;
|
|
365
|
+
text-align: left;
|
|
366
|
+
cursor: pointer;
|
|
367
|
+
}
|
|
368
|
+
.merchi-customer-checkout-option__header:hover, .merchi-customer-checkout-option.is-selected .merchi-customer-checkout-option__header {
|
|
369
|
+
background: color-mix(in srgb, var(--color-brand, #303dbf) 8%, #fff);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.merchi-customer-checkout-option__title {
|
|
373
|
+
display: flex;
|
|
374
|
+
align-items: center;
|
|
375
|
+
gap: 0.75rem;
|
|
376
|
+
flex: 1;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.merchi-customer-checkout-option__label {
|
|
380
|
+
font-weight: 600;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.merchi-customer-checkout-option__icon {
|
|
384
|
+
display: inline-flex;
|
|
385
|
+
align-items: center;
|
|
386
|
+
justify-content: center;
|
|
387
|
+
width: 2rem;
|
|
388
|
+
height: 2rem;
|
|
389
|
+
border-radius: 0.375rem;
|
|
390
|
+
background: #f4f4f5;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.merchi-customer-checkout-option__icon-svg {
|
|
394
|
+
width: 1.125rem;
|
|
395
|
+
height: 1.125rem;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.merchi-customer-checkout-option__icon-svg--whatsapp {
|
|
399
|
+
color: #25d366;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.merchi-customer-checkout-option__checkbox {
|
|
403
|
+
display: inline-flex;
|
|
404
|
+
flex-shrink: 0;
|
|
405
|
+
align-items: center;
|
|
406
|
+
justify-content: center;
|
|
407
|
+
width: 1.25rem;
|
|
408
|
+
height: 1.25rem;
|
|
409
|
+
border: 2px solid #a1a1aa;
|
|
410
|
+
border-radius: 0.25rem;
|
|
411
|
+
background: #fff;
|
|
412
|
+
font-size: 1rem;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.merchi-customer-checkout-option.is-selected .merchi-customer-checkout-option__checkbox {
|
|
416
|
+
border-color: var(--color-brand, #303dbf);
|
|
417
|
+
background: var(--color-brand, #303dbf);
|
|
418
|
+
color: #fff;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.merchi-customer-checkout-option__body {
|
|
422
|
+
padding: 0.75rem 1rem 1rem;
|
|
423
|
+
background: #fff;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.merchi-cart-google-suggest-list {
|
|
427
|
+
position: absolute;
|
|
428
|
+
left: 0;
|
|
429
|
+
right: 0;
|
|
430
|
+
top: 100%;
|
|
431
|
+
z-index: 1050;
|
|
432
|
+
margin: 0.25rem 0 0;
|
|
433
|
+
padding: 0;
|
|
434
|
+
list-style: none;
|
|
435
|
+
background: #fff;
|
|
436
|
+
color: #18181b;
|
|
437
|
+
border: 1px solid #dee2e6;
|
|
438
|
+
border-radius: 0.375rem;
|
|
439
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
|
|
440
|
+
max-height: 280px;
|
|
441
|
+
overflow-y: auto;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.merchi-cart-google-suggest-list-item {
|
|
445
|
+
padding: 0.5rem 0.75rem;
|
|
446
|
+
cursor: pointer;
|
|
447
|
+
color: #18181b;
|
|
448
|
+
border-bottom: 1px solid #f4f4f5;
|
|
449
|
+
}
|
|
450
|
+
.merchi-cart-google-suggest-list-item strong {
|
|
451
|
+
color: #18181b;
|
|
452
|
+
}
|
|
453
|
+
.merchi-cart-google-suggest-list-item .text-muted {
|
|
454
|
+
color: #71717a !important;
|
|
455
|
+
}
|
|
456
|
+
.merchi-cart-google-suggest-list-item:last-child {
|
|
457
|
+
border-bottom: none;
|
|
458
|
+
}
|
|
459
|
+
.merchi-cart-google-suggest-list-item:hover, .merchi-cart-google-suggest-list-item.active {
|
|
460
|
+
background: #f4f4f5;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/*# sourceMappingURL=globals.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/styles/globals.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;AACA;EACE;EACA;;;AAGF;EACE;IACE;;EAGF;IACE;IACA;;EAGF;IACE;IACA;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;AAAA;EAEE;;;AAGF;EACE;EACA;EACA;;;AAKF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;AAAA;EAEE;;;AAGF;EACE;EACA;EACA;;;AAGF;AAAA;EAEE;EACA;EACA;;;AAGF;EACE;;;AAGF;AAAA;EAEE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;AAEA;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAEE;;;AAIJ;EACE;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EAEE","file":"globals.css"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var React = _react;
|
|
9
|
+
var _CartProvider = require("../CartProvider");
|
|
10
|
+
var _tabs = require("../utilities/tabs");
|
|
11
|
+
var _NavTab = _interopRequireDefault(require("./NavTab"));
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
16
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21
|
+
function CartNav() {
|
|
22
|
+
var _useCartContext = (0, _CartProvider.useCartContext)(),
|
|
23
|
+
classNameCartNav = _useCartContext.classNameCartNav,
|
|
24
|
+
tabs = _useCartContext.tabs;
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
26
|
+
className: classNameCartNav,
|
|
27
|
+
children: tabs.filter(function (tab) {
|
|
28
|
+
return tab.tabId !== _tabs.tabIdPaymentSuccess;
|
|
29
|
+
}).map(function (tab, index) {
|
|
30
|
+
return /*#__PURE__*/(0, _react.createElement)(_NavTab["default"], _objectSpread(_objectSpread({}, tab), {}, {
|
|
31
|
+
key: "".concat(index, "-tab")
|
|
32
|
+
}));
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
var _default = exports["default"] = CartNav;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _CartProvider = require("../CartProvider");
|
|
10
|
+
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
|
+
function NavTab(_ref) {
|
|
14
|
+
var disabled = _ref.disabled,
|
|
15
|
+
icon = _ref.icon,
|
|
16
|
+
name = _ref.name,
|
|
17
|
+
tabId = _ref.tabId;
|
|
18
|
+
var _useCartContext = (0, _CartProvider.useCartContext)(),
|
|
19
|
+
activeTabIndex = _useCartContext.activeTabIndex,
|
|
20
|
+
classNameCartTabItem = _useCartContext.classNameCartTabItem,
|
|
21
|
+
classNameCartTabItemLink = _useCartContext.classNameCartTabItemLink,
|
|
22
|
+
setActiveTabIndex = _useCartContext.setActiveTabIndex;
|
|
23
|
+
function toggle() {
|
|
24
|
+
setActiveTabIndex(tabId);
|
|
25
|
+
}
|
|
26
|
+
var active = activeTabIndex === tabId;
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
28
|
+
className: classNameCartTabItem,
|
|
29
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
30
|
+
className: "".concat(classNameCartTabItemLink, " ").concat(active ? 'active' : ''),
|
|
31
|
+
onClick: toggle,
|
|
32
|
+
disabled: disabled,
|
|
33
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFontawesome.FontAwesomeIcon, {
|
|
34
|
+
icon: icon
|
|
35
|
+
}), " ", name]
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
var _default = exports["default"] = NavTab;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface Alert {
|
|
2
|
+
icon: any;
|
|
3
|
+
message: string;
|
|
4
|
+
show: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
type: "info" | "success" | "danger" | "warning" | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface Tab {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
icon: any;
|
|
11
|
+
name: string;
|
|
12
|
+
tabId: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare function makeAddress(addressJson: any, makeDirty?: boolean): any;
|
|
2
|
+
/** Plain address fields only — never reuse an existing address id (cart-token auth cannot PATCH it). */
|
|
3
|
+
export declare function sanitizeAddressFields(address?: any): {
|
|
4
|
+
city: any;
|
|
5
|
+
country: any;
|
|
6
|
+
lineOne: any;
|
|
7
|
+
lineTwo: any;
|
|
8
|
+
postcode: any;
|
|
9
|
+
state: any;
|
|
10
|
+
};
|
|
11
|
+
export declare function addressInOneLine(address: any): string;
|
|
12
|
+
export declare const addressComponentsSettings: any;
|
|
13
|
+
export declare const addressComponentsSettingsBackend: any;
|
|
14
|
+
export declare function googlePlacesResultAsNewAddress(placeDetails: any): {
|
|
15
|
+
city: string;
|
|
16
|
+
country: string;
|
|
17
|
+
lineOne: any;
|
|
18
|
+
lineTwo: string;
|
|
19
|
+
postcode: string;
|
|
20
|
+
state: string;
|
|
21
|
+
};
|
|
22
|
+
/** @deprecated Legacy react-geosuggest parser; use googlePlacesResultAsNewAddress instead. */
|
|
23
|
+
export declare function geoSuggestResultAsNewAddress(resp: any): {
|
|
24
|
+
city: string;
|
|
25
|
+
country: string;
|
|
26
|
+
lineOne: any;
|
|
27
|
+
lineTwo: string;
|
|
28
|
+
postcode: string;
|
|
29
|
+
state: string;
|
|
30
|
+
};
|