@ecomiq/storefront 3.0.0 → 3.0.2
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/README.md +358 -104
- package/dist/{account-Dx4e3syi.js → account-DTahJyuQ.js} +3 -3
- package/dist/analytics/{config-DJr-GRhs.js → config-C1-n2Zx-.js} +1 -1
- package/dist/{bank-accounts-DlEczQQ5.js → bank-accounts-8PuqC0GW.js} +1 -1
- package/dist/{captcha-DAqaIx8m.js → captcha-CsBwlX74.js} +1 -1
- package/dist/{cart-actions-Bsub_FFG.js → cart-actions-C58VRCAp.js} +1 -1
- package/dist/{catalog-hooks-B7ZP4wYY.js → catalog-hooks-CV6zETMZ.js} +1 -1
- package/dist/{checkout-DVWSXANi.js → checkout-CrDtrDrV.js} +3 -3
- package/dist/{complaint-book-BvwLvfx0.js → complaint-book-CQkiQ0M-.js} +2 -2
- package/dist/{culqi-authentication-BGr20vAJ.js → culqi-authentication-Ckq_e5B7.js} +1 -1
- package/dist/{customer-document-fields-C1K-_DAD.js → customer-document-fields-B4RtDYe-.js} +1 -1
- package/dist/{customer-login-form-C7AC6vXd.js → customer-login-form-Cg1xa3UR.js} +2 -2
- package/dist/{customer-registration-form-BEm_NEfP.js → customer-registration-form-Cy7n-Y42.js} +1 -1
- package/dist/entries/account.js +4 -4
- package/dist/entries/analytics.js +1 -1
- package/dist/entries/cart.js +1 -1
- package/dist/entries/checkout.js +7 -7
- package/dist/entries/order.js +7 -7
- package/dist/index.js +28 -28
- package/dist/{invoice-fields-BG0HjL6T.js → invoice-fields-BmAF1Bdv.js} +1 -1
- package/dist/{mercadopago-dialog-UTQev0MG.js → mercadopago-dialog-BzboyTG1.js} +2 -2
- package/dist/{order-display-DTt5WBbc.js → order-display-NqS81m9p.js} +1 -1
- package/dist/{order-draft-DxV1Uhm3.js → order-draft-CvtfTp4H.js} +1 -1
- package/dist/{order-payment-continuation-D_d5PGA4.js → order-payment-continuation-B2oNgu94.js} +3 -3
- package/dist/{order-payment-in-review-x4gdLFHZ.js → order-payment-in-review-DB6bCNsB.js} +1 -1
- package/dist/{order-status-BJXLJwxq.js → order-status-YIcJmCVH.js} +2 -2
- package/dist/{page-seo-a5FJl8x5.js → page-seo-CXj_ZxJc.js} +3 -3
- package/dist/{pages-Ca_Gt6mq.js → pages-DoVOQVlP.js} +3 -3
- package/dist/{payment-dialog-frame-B-Q_xQ94.js → payment-dialog-frame-Yqptx9Ze.js} +1 -1
- package/dist/{preview-BiIBif3C.js → preview-C3sqXLu7.js} +2 -2
- package/dist/{preview-address-Cf0sJ-9p.js → preview-address-BQLjWNrr.js} +1 -1
- package/dist/{preview-cart-Dg2CVktS.js → preview-cart-D1tZo7HE.js} +1 -1
- package/dist/{public-pages-XtwlaLwt.js → public-pages-BH4jw2xh.js} +2 -2
- package/dist/{registration-CpDcv8ql.js → registration-B99Qz9FK.js} +3 -3
- package/dist/{route-text-DcJw2SsK.js → route-text-TU3xed68.js} +1 -1
- package/dist/{section-preview-CmsMl3yu.js → section-preview-NzNw6sAL.js} +2 -2
- package/dist/sections/account-addresses.js +2 -2
- package/dist/sections/account-order.js +3 -3
- package/dist/sections/account-orders.js +3 -3
- package/dist/sections/account-profile.js +2 -2
- package/dist/sections/checkout.js +9 -9
- package/dist/sections/complaint-book.js +3 -3
- package/dist/sections/design-system.js +1 -1
- package/dist/sections/draft-invoice.js +1 -1
- package/dist/{sections-CNUMWTF_.js → sections-DyCN6unE.js} +1 -1
- package/dist/{seo-GpDRhAAA.js → seo-CXnoXxGZ.js} +2 -2
- package/dist/{session-CKvmFJyg.js → session-l0xbh3uY.js} +30 -6
- package/dist/{store-8Q-_LFrQ.js → store-CuxOWbsb.js} +2 -2
- package/dist/{storefront-language-DrMjVbmk.js → storefront-language-3jED0mSM.js} +1 -1
- package/dist/{storefront-text-D25ae1qf.js → storefront-text-Cdo69zlx.js} +2 -2
- package/dist/{storefront-text-en-ljjjSS4q.js → storefront-text-en-Bzm4qMCo.js} +1 -0
- package/dist/{storefront-text-pt-BtHaJLcp.js → storefront-text-pt-BeMGHI7h.js} +1 -0
- package/dist/{stripe-dialog-Ev9s3Z62.js → stripe-dialog-C7WM3gEI.js} +2 -2
- package/dist/{templates-CAqoNyTW.js → templates-B4TX5AB0.js} +2 -2
- package/dist/{urls-CpGQPxvf.js → urls-wCZ6LnmG.js} +1 -1
- package/dist/{use-checkout-CZcxXJXi.js → use-checkout-C7IG5Xnz.js} +1 -1
- package/dist/{use-checkout-payment-9R-zacrJ.js → use-checkout-payment-t1R-GdW1.js} +1 -1
- package/dist/{voucher-payment-CVFDZ1L8.js → voucher-payment-DUopOxhl.js} +1 -1
- package/dist/{worker-CNi-gzCu.js → worker-xF0YKH8T.js} +2 -2
- package/package.json +1 -1
package/dist/{customer-registration-form-BEm_NEfP.js → customer-registration-form-Cy7n-Y42.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useStorefrontText } from "./storefront-language-
|
|
1
|
+
import { useStorefrontText } from "./storefront-language-3jED0mSM.js";
|
|
2
2
|
import { CustomerCsrfField } from "./customer-csrf-C1oDX-Py.js";
|
|
3
3
|
import { Form, useNavigation } from "react-router";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/dist/entries/account.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { addressAction, loadAccount, loadAddresses, loadOrder, loadOrders, loadProfile, orderFiltersQuery, orderRequestAction, profileAction, readOrderFilters } from "../account-
|
|
1
|
+
import { addressAction, loadAccount, loadAddresses, loadOrder, loadOrders, loadProfile, orderFiltersQuery, orderRequestAction, profileAction, readOrderFilters } from "../account-DTahJyuQ.js";
|
|
2
2
|
import { mainPayment, orderStepLabel, orderStepOf, paymentLabel, paymentStatusLabel } from "../order-view-9IlBg5AF.js";
|
|
3
3
|
import { useOrderPages } from "../order-pages-Dm6l5m0m.js";
|
|
4
|
-
import { PayButton, PaymentPreview, ReorderButton, useOrderHeadline, useOrderStepDetail } from "../order-display-
|
|
4
|
+
import { PayButton, PaymentPreview, ReorderButton, useOrderHeadline, useOrderStepDetail } from "../order-display-NqS81m9p.js";
|
|
5
5
|
import { AddressForm, ProfileForm } from "../account-forms-AVk71ko7.js";
|
|
6
6
|
import { addressDefaults } from "../address-defaults-BqjRhS82.js";
|
|
7
|
-
import { placeValue, useGeoCascade } from "../catalog-hooks-
|
|
7
|
+
import { placeValue, useGeoCascade } from "../catalog-hooks-CV6zETMZ.js";
|
|
8
8
|
import { orderSummaryLines } from "../cart-summary-ur2VWKr-.js";
|
|
9
|
-
import { CustomerDocumentFields } from "../customer-document-fields-
|
|
9
|
+
import { CustomerDocumentFields } from "../customer-document-fields-B4RtDYe-.js";
|
|
10
10
|
export { AddressForm, CustomerDocumentFields, PayButton, PaymentPreview, ProfileForm, ReorderButton, addressAction, addressDefaults, loadAccount, loadAddresses, loadOrder, loadOrders, loadProfile, mainPayment, orderFiltersQuery, orderRequestAction, orderStepLabel, orderStepOf, orderSummaryLines, paymentLabel, paymentStatusLabel, placeValue, profileAction, readOrderFilters, useGeoCascade, useOrderHeadline, useOrderPages, useOrderStepDetail };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Analytics } from "../analytics/analytics-CG1Qagwl.js";
|
|
2
|
-
import { readAnalytics } from "../analytics/config-
|
|
2
|
+
import { readAnalytics } from "../analytics/config-C1-n2Zx-.js";
|
|
3
3
|
import { ConsentBanner, ConsentLink } from "../analytics/consent-banner-9QvRRy8v.js";
|
|
4
4
|
import { catalogAnalytics } from "../analytics/events-Dt81tIp1.js";
|
|
5
5
|
export { Analytics, ConsentBanner, ConsentLink, catalogAnalytics, readAnalytics };
|
package/dist/entries/cart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readCart } from "../cart-D7DxZ2lD.js";
|
|
2
|
-
import { cartAction, loadCart } from "../cart-actions-
|
|
2
|
+
import { cartAction, loadCart } from "../cart-actions-C58VRCAp.js";
|
|
3
3
|
import { CartForm, useCart } from "../cart-form-y9P1r_EX.js";
|
|
4
4
|
import { useOptimisticCart } from "../optimistic-cart-BveVOHuh.js";
|
|
5
5
|
import { CartDrawerProvider, useCartDrawer } from "../cart-drawer-B7PPsR69.js";
|
package/dist/entries/checkout.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { checkoutAction, loadCheckout, shouldRevalidateCheckout } from "../checkout-
|
|
2
|
-
import { useCheckout } from "../use-checkout-
|
|
3
|
-
import { useCheckoutPayment } from "../use-checkout-payment-
|
|
4
|
-
import { MercadoPagoDialog } from "../mercadopago-dialog-
|
|
5
|
-
import { StripeAuthentication, StripeDialog, findStripeWallet, useAvailableStripeWallets } from "../stripe-dialog-
|
|
1
|
+
import { checkoutAction, loadCheckout, shouldRevalidateCheckout } from "../checkout-CrDtrDrV.js";
|
|
2
|
+
import { useCheckout } from "../use-checkout-C7IG5Xnz.js";
|
|
3
|
+
import { useCheckoutPayment } from "../use-checkout-payment-t1R-GdW1.js";
|
|
4
|
+
import { MercadoPagoDialog } from "../mercadopago-dialog-BzboyTG1.js";
|
|
5
|
+
import { StripeAuthentication, StripeDialog, findStripeWallet, useAvailableStripeWallets } from "../stripe-dialog-C7WM3gEI.js";
|
|
6
6
|
import { CheckoutForm, OrderBumpForm, PromoCodeForm } from "../checkout-form-CbOIdENC.js";
|
|
7
|
-
import { InvoiceFields } from "../invoice-fields-
|
|
7
|
+
import { InvoiceFields } from "../invoice-fields-BmAF1Bdv.js";
|
|
8
8
|
import { PaymentMethods } from "../payment-methods-B8ocTgFZ.js";
|
|
9
9
|
import { summaryLines } from "../cart-summary-ur2VWKr-.js";
|
|
10
|
-
import { CulqiAuthentication } from "../culqi-authentication-
|
|
10
|
+
import { CulqiAuthentication } from "../culqi-authentication-Ckq_e5B7.js";
|
|
11
11
|
export { CheckoutForm, CulqiAuthentication, InvoiceFields, MercadoPagoDialog, OrderBumpForm, PaymentMethods, PromoCodeForm, StripeAuthentication, StripeDialog, checkoutAction, findStripeWallet, loadCheckout, shouldRevalidateCheckout, summaryLines, useAvailableStripeWallets, useCheckout, useCheckoutPayment };
|
package/dist/entries/order.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { hasOrderPaymentContinuation, loadOrderStatus, orderPaymentAction, orderProgress, orderStepTitle } from "../order-status-
|
|
2
|
-
import { loadOrderDraft, orderDraftAction } from "../order-draft-
|
|
1
|
+
import { hasOrderPaymentContinuation, loadOrderStatus, orderPaymentAction, orderProgress, orderStepTitle } from "../order-status-YIcJmCVH.js";
|
|
2
|
+
import { loadOrderDraft, orderDraftAction } from "../order-draft-CvtfTp4H.js";
|
|
3
3
|
import { useOrderPayment } from "../use-order-payment-BKIz_IO0.js";
|
|
4
|
-
import { OrderPaymentContinuation } from "../order-payment-continuation-
|
|
5
|
-
import { OrderPaymentInReview } from "../order-payment-in-review-
|
|
6
|
-
import { BankAccountList } from "../bank-accounts-
|
|
4
|
+
import { OrderPaymentContinuation } from "../order-payment-continuation-B2oNgu94.js";
|
|
5
|
+
import { OrderPaymentInReview } from "../order-payment-in-review-DB6bCNsB.js";
|
|
6
|
+
import { BankAccountList } from "../bank-accounts-8PuqC0GW.js";
|
|
7
7
|
import { PaymentMethods } from "../payment-methods-B8ocTgFZ.js";
|
|
8
8
|
import { orderSummaryLines } from "../cart-summary-ur2VWKr-.js";
|
|
9
|
-
import { MercadoPagoDialog } from "../mercadopago-dialog-
|
|
10
|
-
import { useOrderAuthentication } from "../culqi-authentication-
|
|
9
|
+
import { MercadoPagoDialog } from "../mercadopago-dialog-BzboyTG1.js";
|
|
10
|
+
import { useOrderAuthentication } from "../culqi-authentication-Ckq_e5B7.js";
|
|
11
11
|
export { BankAccountList, MercadoPagoDialog, OrderPaymentContinuation, OrderPaymentInReview, PaymentMethods, hasOrderPaymentContinuation, loadOrderDraft, loadOrderStatus, orderDraftAction, orderPaymentAction, orderProgress, orderStepTitle, orderSummaryLines, useOrderAuthentication, useOrderPayment };
|
package/dist/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { createRequestHandler, worker } from "./worker-
|
|
2
|
-
import { collectionImageCandidates, found, readCountries, store, withImages } from "./store-
|
|
1
|
+
import { createRequestHandler, worker } from "./worker-xF0YKH8T.js";
|
|
2
|
+
import { collectionImageCandidates, found, readCountries, store, withImages } from "./store-CuxOWbsb.js";
|
|
3
3
|
import { cartCookie, cartToken, readCart } from "./cart-D7DxZ2lD.js";
|
|
4
|
-
import { MAX_CART_QUANTITY, cartAction, loadCart } from "./cart-actions-
|
|
5
|
-
import { checkoutAction, checkoutAddressDefaults, checkoutProgress, checkoutStep, defaultPaymentMethod, loadCheckout, needsShipping } from "./checkout-
|
|
4
|
+
import { MAX_CART_QUANTITY, cartAction, loadCart } from "./cart-actions-C58VRCAp.js";
|
|
5
|
+
import { checkoutAction, checkoutAddressDefaults, checkoutProgress, checkoutStep, defaultPaymentMethod, loadCheckout, needsShipping } from "./checkout-CrDtrDrV.js";
|
|
6
6
|
import { paymentMethodSaving } from "./payment-methods-B8ocTgFZ.js";
|
|
7
|
-
import { useCheckout } from "./use-checkout-
|
|
8
|
-
import { addressAction, loadAccount, loadAddresses, loadOrder, loadOrders, loadProfile, profileAction, readCustomerAddress } from "./account-
|
|
9
|
-
import { loadGeo, loadPage, loadReview, loadSearchSuggestions, loadTracking, productReviewAction, readPage, reviewAction } from "./public-pages-
|
|
10
|
-
import { hasOrderPaymentContinuation, loadOrderStatus, orderPaymentAction, orderProgress, orderStepTitle } from "./order-status-
|
|
11
|
-
import { isOrderDraftPayable, loadOrderDraft, orderDraftAction } from "./order-draft-
|
|
7
|
+
import { useCheckout } from "./use-checkout-C7IG5Xnz.js";
|
|
8
|
+
import { addressAction, loadAccount, loadAddresses, loadOrder, loadOrders, loadProfile, profileAction, readCustomerAddress } from "./account-DTahJyuQ.js";
|
|
9
|
+
import { loadGeo, loadPage, loadReview, loadSearchSuggestions, loadTracking, productReviewAction, readPage, reviewAction } from "./public-pages-BH4jw2xh.js";
|
|
10
|
+
import { hasOrderPaymentContinuation, loadOrderStatus, orderPaymentAction, orderProgress, orderStepTitle } from "./order-status-YIcJmCVH.js";
|
|
11
|
+
import { isOrderDraftPayable, loadOrderDraft, orderDraftAction } from "./order-draft-CvtfTp4H.js";
|
|
12
12
|
import { useOrderPayment } from "./use-order-payment-BKIz_IO0.js";
|
|
13
|
-
import { OrderPaymentContinuation } from "./order-payment-continuation-
|
|
14
|
-
import { OrderPaymentInReview } from "./order-payment-in-review-
|
|
13
|
+
import { OrderPaymentContinuation } from "./order-payment-continuation-B2oNgu94.js";
|
|
14
|
+
import { OrderPaymentInReview } from "./order-payment-in-review-DB6bCNsB.js";
|
|
15
15
|
import { discountPercent, isVariantAvailable, pickVariant, variantOptions, variantSwatches } from "./product-variants-BNDHvs1y.js";
|
|
16
|
-
import { SORT_OPTIONS, activeFilterChips, activeFilterCount, clearedFiltersHref, filterLabel, filterValueLabel, isSingleChoiceFilter, pageItems, selectedFacetCount, useFacets, useGeoCascade, usePagination, useSearchSuggestions, useSort } from "./catalog-hooks-
|
|
17
|
-
import { completeCustomerLogin, customer, customerCsrfToken, customerHeaders, logout, requireCustomer, requireCustomerRegistration, startCustomerLogin, submitCustomerLogin } from "./session-
|
|
16
|
+
import { SORT_OPTIONS, activeFilterChips, activeFilterCount, clearedFiltersHref, filterLabel, filterValueLabel, isSingleChoiceFilter, pageItems, selectedFacetCount, useFacets, useGeoCascade, usePagination, useSearchSuggestions, useSort } from "./catalog-hooks-CV6zETMZ.js";
|
|
17
|
+
import { completeCustomerLogin, customer, customerCsrfToken, customerHeaders, logout, requireCustomer, requireCustomerRegistration, startCustomerLogin, submitCustomerLogin } from "./session-l0xbh3uY.js";
|
|
18
18
|
import { CustomerCsrfField, useCustomerCsrfToken } from "./customer-csrf-C1oDX-Py.js";
|
|
19
19
|
import { CUSTOMER_CSRF_FIELD, FORM_CONTRACTS } from "./form-contracts-BNpHaTGJ.js";
|
|
20
20
|
import { culqiSourceKey } from "./culqi-three-ds-HP3mfrvV.js";
|
|
21
21
|
import { readCatalog, shouldRevalidateCatalogRoot } from "./catalog-7gJ-l5hW.js";
|
|
22
|
-
import { categorySeo, collectionSeo, homeSeo, pageSeo, productSeo, seoMeta } from "./page-seo-
|
|
23
|
-
import { canonicalUrl, loadCategory, loadProduct, requireCanonical, resolveUrl } from "./urls-
|
|
24
|
-
import { collectionPage, productPage, productReviews, resolvePage } from "./pages-
|
|
22
|
+
import { categorySeo, collectionSeo, homeSeo, pageSeo, productSeo, seoMeta } from "./page-seo-CXj_ZxJc.js";
|
|
23
|
+
import { canonicalUrl, loadCategory, loadProduct, requireCanonical, resolveUrl } from "./urls-wCZ6LnmG.js";
|
|
24
|
+
import { collectionPage, productPage, productReviews, resolvePage } from "./pages-DoVOQVlP.js";
|
|
25
25
|
import { money } from "./money-DtGOtDri.js";
|
|
26
26
|
import { readPlace } from "./place-CmW4hBWY.js";
|
|
27
27
|
import { optional, safeNext, text } from "./form-BtQcbXlJ.js";
|
|
@@ -30,21 +30,21 @@ import { Favicon } from "./favicon-YpyhVJ9H.js";
|
|
|
30
30
|
import { Hidden } from "./hidden-CCWtOWKR.js";
|
|
31
31
|
import { SourceProvider, source, sourceValue } from "./sources-B-3JFJfb.js";
|
|
32
32
|
import { RichText } from "./rich-text-M-Ju8RL4.js";
|
|
33
|
-
import { loadSections, sectionKey, useSection, withSectionBoundary, withSections } from "./sections-
|
|
34
|
-
import { templateComponent, templateName, templatePath, templated } from "./templates-
|
|
35
|
-
import { SectionPreview, sectionPreview, sectionPreviewMeta } from "./section-preview-
|
|
33
|
+
import { loadSections, sectionKey, useSection, withSectionBoundary, withSections } from "./sections-DyCN6unE.js";
|
|
34
|
+
import { templateComponent, templateName, templatePath, templated } from "./templates-B4TX5AB0.js";
|
|
35
|
+
import { SectionPreview, sectionPreview, sectionPreviewMeta } from "./section-preview-NzNw6sAL.js";
|
|
36
36
|
import { StorefrontAnchor, StorefrontLink, readStorefrontLayout, readStorefrontLinks, storefrontHref, useStorefrontLinkPublished } from "./links-kFxBZfdb.js";
|
|
37
37
|
import { PaymentLogo, paymentLogoCodes } from "./payment-logo-BoPaGJc_.js";
|
|
38
|
-
import { BankAccountList } from "./bank-accounts-
|
|
38
|
+
import { BankAccountList } from "./bank-accounts-8PuqC0GW.js";
|
|
39
39
|
import { CustomerAvatar } from "./customer-avatar-CJXSDroK.js";
|
|
40
|
-
import { CustomerLoginForm } from "./customer-login-form-
|
|
41
|
-
import { Captcha } from "./captcha-
|
|
40
|
+
import { CustomerLoginForm } from "./customer-login-form-Cg1xa3UR.js";
|
|
41
|
+
import { Captcha } from "./captcha-CsBwlX74.js";
|
|
42
42
|
import { COMPLAINT_DOCUMENT_TYPES, IDENTITY_DOCUMENT_TYPES, identityDocumentRule } from "./documents-T1mzc_j8.js";
|
|
43
|
-
import { complaintBookAction, complaintBookAttachmentError, complaintBookLinks, complaintBookNumber, loadComplaintBook } from "./complaint-book-
|
|
44
|
-
import { loadCustomerRegistration, submitCustomerRegistration } from "./registration-
|
|
45
|
-
import { CustomerRegistrationForm } from "./customer-registration-form-
|
|
43
|
+
import { complaintBookAction, complaintBookAttachmentError, complaintBookLinks, complaintBookNumber, loadComplaintBook } from "./complaint-book-CQkiQ0M-.js";
|
|
44
|
+
import { loadCustomerRegistration, submitCustomerRegistration } from "./registration-B99Qz9FK.js";
|
|
45
|
+
import { CustomerRegistrationForm } from "./customer-registration-form-Cy7n-Y42.js";
|
|
46
46
|
import { storefrontContact } from "./store-contact--hY6CoFb.js";
|
|
47
|
-
import { loadStorefrontTranslations, storefrontText } from "./storefront-text-
|
|
48
|
-
import { StorefrontLanguageProvider, useStorefrontLocale, useStorefrontText } from "./storefront-language-
|
|
49
|
-
import { storefrontRouteText } from "./route-text-
|
|
47
|
+
import { loadStorefrontTranslations, storefrontText } from "./storefront-text-Cdo69zlx.js";
|
|
48
|
+
import { StorefrontLanguageProvider, useStorefrontLocale, useStorefrontText } from "./storefront-language-3jED0mSM.js";
|
|
49
|
+
import { storefrontRouteText } from "./route-text-TU3xed68.js";
|
|
50
50
|
export { BankAccountList, COMPLAINT_DOCUMENT_TYPES, CUSTOMER_CSRF_FIELD, Captcha, CustomerAvatar, CustomerCsrfField, CustomerLoginForm, CustomerRegistrationForm, FORM_CONTRACTS, Favicon, Hidden, IDENTITY_DOCUMENT_TYPES, MAX_CART_QUANTITY, OrderPaymentContinuation, OrderPaymentInReview, PaymentLogo, RichText, SORT_OPTIONS, SectionPreview, SourceProvider, StorefrontAnchor, StorefrontLanguageProvider, StorefrontLink, activeFilterChips, activeFilterCount, addressAction, canonicalUrl, cartAction, cartCookie, cartToken, categorySeo, checkoutAction, checkoutAddressDefaults, checkoutProgress, checkoutStep, clearedFiltersHref, collectionImageCandidates, collectionPage, collectionSeo, complaintBookAction, complaintBookAttachmentError, complaintBookLinks, complaintBookNumber, completeCustomerLogin, createRequestHandler, culqiSourceKey, customer, customerCsrfToken, customerHeaders, defaultPaymentMethod, discountPercent, filterLabel, filterValueLabel, found, hasOrderPaymentContinuation, homeSeo, identityDocumentRule, isOrderDraftPayable, isSingleChoiceFilter, isVariantAvailable, loadAccount, loadAddresses, loadCart, loadCategory, loadCheckout, loadComplaintBook, loadCustomerRegistration, loadGeo, loadOrder, loadOrderDraft, loadOrderStatus, loadOrders, loadPage, loadProduct, loadProfile, loadReview, loadSearchSuggestions, loadSections, loadStorefrontTranslations, loadTracking, logout, money, needsShipping, optional, orderDraftAction, orderPaymentAction, orderProgress, orderStepTitle, pageItems, pageSeo, paymentLogoCodes, paymentMethodSaving, pickProducts, pickVariant, productPage, productReviewAction, productReviews, productSeo, profileAction, readCart, readCatalog, readCountries, readCustomerAddress, readPage, readPlace, readStorefrontLayout, readStorefrontLinks, requireCanonical, requireCustomer, requireCustomerRegistration, resolvePage, resolveUrl, reviewAction, safeNext, section, sectionKey, sectionPreview, sectionPreviewMeta, selectedFacetCount, seoMeta, setting, shouldRevalidateCatalogRoot, source, sourceValue, startCustomerLogin, store, storefrontContact, storefrontHref, storefrontRouteText, storefrontText, submitCustomerLogin, submitCustomerRegistration, templateComponent, templateName, templatePath, templated, text, useCheckout, useCustomerCsrfToken, useFacets, useGeoCascade, useOrderPayment, usePagination, useSearchSuggestions, useSection, useSort, useStorefrontLinkPublished, useStorefrontLocale, useStorefrontText, variantOptions, variantSwatches, withImages, withSectionBoundary, withSections, worker };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useStorefrontText } from "./storefront-language-
|
|
1
|
+
import { useStorefrontText } from "./storefront-language-3jED0mSM.js";
|
|
2
2
|
import { IDENTITY_DOCUMENT_TYPES, identityDocumentError, identityDocumentRule, isIdentityDocumentType } from "./documents-T1mzc_j8.js";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useStorefrontLocale, useStorefrontText } from "./storefront-language-
|
|
1
|
+
import { useStorefrontLocale, useStorefrontText } from "./storefront-language-3jED0mSM.js";
|
|
2
2
|
import { loadMercadoPago } from "./mercadopago-checkout-DC7RXa8k.js";
|
|
3
3
|
import { money } from "./money-DtGOtDri.js";
|
|
4
4
|
import { PaymentLogo } from "./payment-logo-BoPaGJc_.js";
|
|
5
|
-
import { PaymentDialogFrame } from "./payment-dialog-frame-
|
|
5
|
+
import { PaymentDialogFrame } from "./payment-dialog-frame-Yqptx9Ze.js";
|
|
6
6
|
import { useEffect, useId, useRef, useState } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
// src/mercadopago-dialog.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { orderStepLabel, orderStepOf, paymentLabel } from "./order-view-9IlBg5AF.js";
|
|
2
2
|
import { PaymentLogo, hasPaymentLogo } from "./payment-logo-BoPaGJc_.js";
|
|
3
|
-
import { useStorefrontLocale, useStorefrontText } from "./storefront-language-
|
|
3
|
+
import { useStorefrontLocale, useStorefrontText } from "./storefront-language-3jED0mSM.js";
|
|
4
4
|
import { Form } from "react-router";
|
|
5
5
|
import { formatOrderDate } from "@ecomiq/core";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/dist/{order-payment-continuation-D_d5PGA4.js → order-payment-continuation-B2oNgu94.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useStorefrontText } from "./storefront-language-
|
|
2
|
-
import { VoucherPayment } from "./voucher-payment-
|
|
1
|
+
import { useStorefrontText } from "./storefront-language-3jED0mSM.js";
|
|
2
|
+
import { VoucherPayment } from "./voucher-payment-DUopOxhl.js";
|
|
3
3
|
import { useCulqiCheckout } from "./use-culqi-checkout-CrjLAipU.js";
|
|
4
|
-
import { CulqiAuthentication } from "./culqi-authentication-
|
|
4
|
+
import { CulqiAuthentication } from "./culqi-authentication-Ckq_e5B7.js";
|
|
5
5
|
import { useRevalidator } from "react-router";
|
|
6
6
|
import { useEffect, useRef, useState } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { money } from "./money-DtGOtDri.js";
|
|
2
|
-
import { useStorefrontLocale, useStorefrontText } from "./storefront-language-
|
|
2
|
+
import { useStorefrontLocale, useStorefrontText } from "./storefront-language-3jED0mSM.js";
|
|
3
3
|
import { Link, useLocation, useRevalidator } from "react-router";
|
|
4
4
|
import { useEffect, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { orderAnalytics } from "./analytics/events-Dt81tIp1.js";
|
|
2
2
|
import { text } from "./form-BtQcbXlJ.js";
|
|
3
|
-
import { found, store } from "./store-
|
|
4
|
-
import { worker } from "./worker-
|
|
3
|
+
import { found, store } from "./store-CuxOWbsb.js";
|
|
4
|
+
import { worker } from "./worker-xF0YKH8T.js";
|
|
5
5
|
import { PAYMENT_RETURN_CONFIRMING, PAYMENT_RETURN_PARAM } from "./payment-return-5cjypwIw.js";
|
|
6
6
|
import { data, redirect } from "react-router";
|
|
7
7
|
import { ApiError, AuthenticateOrderPaymentInputSchema } from "@ecomiq/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { loadStorefrontTranslations, storefrontText } from "./storefront-text-
|
|
2
|
-
import { store } from "./store-
|
|
3
|
-
import { absoluteUrl, canonicalOrigin, requestUrl } from "./urls-
|
|
1
|
+
import { loadStorefrontTranslations, storefrontText } from "./storefront-text-Cdo69zlx.js";
|
|
2
|
+
import { store } from "./store-CuxOWbsb.js";
|
|
3
|
+
import { absoluteUrl, canonicalOrigin, requestUrl } from "./urls-wCZ6LnmG.js";
|
|
4
4
|
// src/page-seo.ts
|
|
5
5
|
const DESCRIPTION_LENGTH = 160;
|
|
6
6
|
const TITLE_LENGTH = 65;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { categoryAnalytics, collectionAnalytics, productAnalytics } from "./analytics/events-Dt81tIp1.js";
|
|
2
2
|
import { readCatalog } from "./catalog-7gJ-l5hW.js";
|
|
3
|
-
import { store } from "./store-
|
|
4
|
-
import { requestUrl, requireCanonical } from "./urls-
|
|
5
|
-
import { worker } from "./worker-
|
|
3
|
+
import { store } from "./store-CuxOWbsb.js";
|
|
4
|
+
import { requestUrl, requireCanonical } from "./urls-wCZ6LnmG.js";
|
|
5
|
+
import { worker } from "./worker-xF0YKH8T.js";
|
|
6
6
|
import { data, redirect } from "react-router";
|
|
7
7
|
import { CategoryDetailSchema, CollectionSchema, GraphQLResponseError, ProductDetailSchema, ProductSummarySchema, ProductsResponseSchema, graphQLSelection, sanitizeHtml } from "@ecomiq/core";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { previewAddress } from "./preview-address-
|
|
2
|
-
import { paymentMethods, previewCart } from "./preview-cart-
|
|
1
|
+
import { previewAddress } from "./preview-address-BQLjWNrr.js";
|
|
2
|
+
import { paymentMethods, previewCart } from "./preview-cart-D1tZo7HE.js";
|
|
3
3
|
// src/preview.ts
|
|
4
4
|
const PREVIEW_TOKEN = "ecomiq-editor-preview";
|
|
5
5
|
const PREVIEW_REVIEW = "preview-review";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadStorefrontTranslations, storefrontText } from "./storefront-text-
|
|
1
|
+
import { loadStorefrontTranslations, storefrontText } from "./storefront-text-Cdo69zlx.js";
|
|
2
2
|
// src/preview-address.ts
|
|
3
3
|
async function previewAddress(store) {
|
|
4
4
|
const translations = await loadStorefrontTranslations(store.language);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { text } from "./form-BtQcbXlJ.js";
|
|
2
|
-
import { customer, customerHeaders } from "./session-
|
|
3
|
-
import { found, store, storeHeaders } from "./store-
|
|
2
|
+
import { customer, customerHeaders } from "./session-l0xbh3uY.js";
|
|
3
|
+
import { found, store, storeHeaders } from "./store-CuxOWbsb.js";
|
|
4
4
|
import { data, redirect } from "react-router";
|
|
5
5
|
import { ApiError, getOrderReviewContext, getOrderTracking, sanitizeHtml } from "@ecomiq/core";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { safeNext, text } from "./form-BtQcbXlJ.js";
|
|
2
2
|
import { rejectCrossOriginAction, rejectCustomerCsrf } from "./request-security-CRsRMgwj.js";
|
|
3
|
-
import { customer, customerHeaders } from "./session-
|
|
4
|
-
import { store } from "./store-
|
|
5
|
-
import { worker } from "./worker-
|
|
3
|
+
import { customer, customerHeaders } from "./session-l0xbh3uY.js";
|
|
4
|
+
import { store } from "./store-CuxOWbsb.js";
|
|
5
|
+
import { worker } from "./worker-xF0YKH8T.js";
|
|
6
6
|
import { data, redirect } from "react-router";
|
|
7
7
|
import { ApiError, CustomerRegistrationInputSchema } from "@ecomiq/core";
|
|
8
8
|
// src/registration.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { storefrontText } from "./storefront-text-
|
|
1
|
+
import { storefrontText } from "./storefront-text-Cdo69zlx.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
// src/route-text.ts
|
|
4
4
|
const RootLanguage = z.object({ shop: z.object({ translations: z.record(z.string(), z.string()).default({}) }) });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { loadSections, withSections } from "./sections-
|
|
2
|
-
import { worker } from "./worker-
|
|
1
|
+
import { loadSections, withSections } from "./sections-DyCN6unE.js";
|
|
2
|
+
import { worker } from "./worker-xF0YKH8T.js";
|
|
3
3
|
import { data, useLoaderData } from "react-router";
|
|
4
4
|
import { createElement, useState } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useStorefrontText } from "../storefront-language-
|
|
1
|
+
import { useStorefrontText } from "../storefront-language-3jED0mSM.js";
|
|
2
2
|
import { AddressForm } from "../account-forms-AVk71ko7.js";
|
|
3
3
|
import { addressDefaults } from "../address-defaults-BqjRhS82.js";
|
|
4
|
-
import { placeValue, useGeoCascade } from "../catalog-hooks-
|
|
4
|
+
import { placeValue, useGeoCascade } from "../catalog-hooks-CV6zETMZ.js";
|
|
5
5
|
import { useNavigation } from "react-router";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CustomerCsrfField } from "../customer-csrf-C1oDX-Py.js";
|
|
2
2
|
import { money } from "../money-DtGOtDri.js";
|
|
3
|
-
import { orderProgress } from "../order-status-
|
|
4
|
-
import { useStorefrontLocale, useStorefrontText } from "../storefront-language-
|
|
5
|
-
import { PayButton, PaymentPreview, ReorderButton, useOrderStepDetail } from "../order-display-
|
|
3
|
+
import { orderProgress } from "../order-status-YIcJmCVH.js";
|
|
4
|
+
import { useStorefrontLocale, useStorefrontText } from "../storefront-language-3jED0mSM.js";
|
|
5
|
+
import { PayButton, PaymentPreview, ReorderButton, useOrderStepDetail } from "../order-display-NqS81m9p.js";
|
|
6
6
|
import { orderStepLabel, orderStepOf, paymentStatusLabel } from "../order-view-9IlBg5AF.js";
|
|
7
7
|
import { orderSummaryLines } from "../cart-summary-ur2VWKr-.js";
|
|
8
8
|
import { Form, Link, useNavigation } from "react-router";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { money } from "../money-DtGOtDri.js";
|
|
2
|
-
import { useStorefrontLocale, useStorefrontText } from "../storefront-language-
|
|
3
|
-
import { PayButton, PaymentPreview, ReorderButton, useOrderHeadline, useOrderStepDetail } from "../order-display-
|
|
2
|
+
import { useStorefrontLocale, useStorefrontText } from "../storefront-language-3jED0mSM.js";
|
|
3
|
+
import { PayButton, PaymentPreview, ReorderButton, useOrderHeadline, useOrderStepDetail } from "../order-display-NqS81m9p.js";
|
|
4
4
|
import { mainPayment, orderStepLabel, orderStepOf } from "../order-view-9IlBg5AF.js";
|
|
5
|
-
import { orderFiltersQuery } from "../account-
|
|
5
|
+
import { orderFiltersQuery } from "../account-DTahJyuQ.js";
|
|
6
6
|
import { useOrderPages } from "../order-pages-Dm6l5m0m.js";
|
|
7
7
|
import { Form, Link, useLocation, useNavigate } from "react-router";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useStorefrontText } from "../storefront-language-
|
|
2
|
-
import { CustomerDocumentFields } from "../customer-document-fields-
|
|
1
|
+
import { useStorefrontText } from "../storefront-language-3jED0mSM.js";
|
|
2
|
+
import { CustomerDocumentFields } from "../customer-document-fields-B4RtDYe-.js";
|
|
3
3
|
import { ProfileForm } from "../account-forms-AVk71ko7.js";
|
|
4
4
|
import { useNavigation } from "react-router";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { BankAccountList } from "../bank-accounts-
|
|
2
|
-
import { useStorefrontText } from "../storefront-language-
|
|
1
|
+
import { BankAccountList } from "../bank-accounts-8PuqC0GW.js";
|
|
2
|
+
import { useStorefrontText } from "../storefront-language-3jED0mSM.js";
|
|
3
3
|
import { PaymentLogo } from "../payment-logo-BoPaGJc_.js";
|
|
4
4
|
import { money } from "../money-DtGOtDri.js";
|
|
5
5
|
import { section, setting } from "../settings-B0NO2A6Y.js";
|
|
6
|
-
import { placeValue, useGeoCascade } from "../catalog-hooks-
|
|
6
|
+
import { placeValue, useGeoCascade } from "../catalog-hooks-CV6zETMZ.js";
|
|
7
7
|
import { CheckoutForm, OrderBumpForm, PromoCodeForm } from "../checkout-form-CbOIdENC.js";
|
|
8
|
-
import { CulqiAuthentication } from "../culqi-authentication-
|
|
9
|
-
import { InvoiceFields } from "../invoice-fields-
|
|
10
|
-
import { MercadoPagoDialog } from "../mercadopago-dialog-
|
|
8
|
+
import { CulqiAuthentication } from "../culqi-authentication-Ckq_e5B7.js";
|
|
9
|
+
import { InvoiceFields } from "../invoice-fields-BmAF1Bdv.js";
|
|
10
|
+
import { MercadoPagoDialog } from "../mercadopago-dialog-BzboyTG1.js";
|
|
11
11
|
import { PaymentMethods } from "../payment-methods-B8ocTgFZ.js";
|
|
12
|
-
import { StripeAuthentication, StripeDialog, findStripeWallet, useAvailableStripeWallets } from "../stripe-dialog-
|
|
12
|
+
import { StripeAuthentication, StripeDialog, findStripeWallet, useAvailableStripeWallets } from "../stripe-dialog-C7WM3gEI.js";
|
|
13
13
|
import { summaryLines } from "../cart-summary-ur2VWKr-.js";
|
|
14
|
-
import { useCheckout } from "../use-checkout-
|
|
15
|
-
import { useCheckoutPayment } from "../use-checkout-payment-
|
|
14
|
+
import { useCheckout } from "../use-checkout-C7IG5Xnz.js";
|
|
15
|
+
import { useCheckoutPayment } from "../use-checkout-payment-t1R-GdW1.js";
|
|
16
16
|
import { Link, useRouteLoaderData } from "react-router";
|
|
17
17
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
18
|
import { Button } from "@theme/ui/button";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Captcha } from "../captcha-
|
|
1
|
+
import { Captcha } from "../captcha-CsBwlX74.js";
|
|
2
2
|
import { COMPLAINT_DOCUMENT_TYPES, identityDocumentRule } from "../documents-T1mzc_j8.js";
|
|
3
|
-
import { useStorefrontText } from "../storefront-language-
|
|
4
|
-
import { complaintBookAttachmentError, complaintBookNumber } from "../complaint-book-
|
|
3
|
+
import { useStorefrontText } from "../storefront-language-3jED0mSM.js";
|
|
4
|
+
import { complaintBookAttachmentError, complaintBookNumber } from "../complaint-book-CQkiQ0M-.js";
|
|
5
5
|
import { CustomerCsrfField } from "../customer-csrf-C1oDX-Py.js";
|
|
6
6
|
import { money } from "../money-DtGOtDri.js";
|
|
7
7
|
import { Form, useNavigation } from "react-router";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useStorefrontText } from "../storefront-language-
|
|
1
|
+
import { useStorefrontText } from "../storefront-language-3jED0mSM.js";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Button } from "@theme/ui/button";
|
|
4
4
|
import { Input } from "@theme/ui/input";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useStorefrontText } from "../storefront-language-
|
|
1
|
+
import { useStorefrontText } from "../storefront-language-3jED0mSM.js";
|
|
2
2
|
import { CustomerCsrfField } from "../customer-csrf-C1oDX-Py.js";
|
|
3
3
|
import { money } from "../money-DtGOtDri.js";
|
|
4
4
|
import { setting } from "../settings-B0NO2A6Y.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { store } from "./store-
|
|
2
|
-
import { absoluteUrl, canonicalOrigin } from "./urls-
|
|
1
|
+
import { store } from "./store-CuxOWbsb.js";
|
|
2
|
+
import { absoluteUrl, canonicalOrigin } from "./urls-wCZ6LnmG.js";
|
|
3
3
|
// src/seo.ts
|
|
4
4
|
const PRIVATE_PATHS = [
|
|
5
5
|
"/cart",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { loadStorefrontTranslations, storefrontText } from "./storefront-text-
|
|
2
|
-
import { captchaResponse } from "./captcha-
|
|
1
|
+
import { loadStorefrontTranslations, storefrontText } from "./storefront-text-Cdo69zlx.js";
|
|
2
|
+
import { captchaResponse } from "./captcha-CsBwlX74.js";
|
|
3
3
|
import { base64Url, customerCookies, customerSessionId, equalSecret } from "./customer-cookies-DHOgFAMV.js";
|
|
4
4
|
import { safeNext } from "./form-BtQcbXlJ.js";
|
|
5
|
-
import { PREVIEW_TOKEN } from "./preview-
|
|
5
|
+
import { PREVIEW_TOKEN } from "./preview-C3sqXLu7.js";
|
|
6
6
|
import { customerClientHeaders, customerCsrfTokenForRequest, rejectCrossOriginAction } from "./request-security-CRsRMgwj.js";
|
|
7
|
-
import { store } from "./store-
|
|
8
|
-
import { requestUrl } from "./urls-
|
|
9
|
-
import { worker } from "./worker-
|
|
7
|
+
import { store } from "./store-CuxOWbsb.js";
|
|
8
|
+
import { requestUrl } from "./urls-wCZ6LnmG.js";
|
|
9
|
+
import { worker } from "./worker-xF0YKH8T.js";
|
|
10
10
|
import { data, redirect } from "react-router";
|
|
11
11
|
import { ApiError } from "@ecomiq/core";
|
|
12
12
|
import { z } from "zod";
|
|
@@ -38,6 +38,12 @@ const ChallengeErrorSchema = z.object({
|
|
|
38
38
|
message: z.string(),
|
|
39
39
|
needsSecondFactor: z.boolean().optional()
|
|
40
40
|
});
|
|
41
|
+
const EDITOR_CAPTCHA = {
|
|
42
|
+
provider: "off",
|
|
43
|
+
siteKey: null,
|
|
44
|
+
isConfigured: true
|
|
45
|
+
};
|
|
46
|
+
const EDITOR_LOGIN_NOTICE = "El ingreso de clientes solo funciona en la tienda publicada.";
|
|
41
47
|
function validLoginTransaction(transaction, configuration, origin) {
|
|
42
48
|
if (Date.now() - transaction.createdAt > 6e5 || transaction.createdAt > Date.now() || transaction.redirectUri !== new URL("/account/callback", origin).href || transaction.redirectUri !== configuration.redirectUri || transaction.authorizationEndpoint !== configuration.authorizationEndpoint || transaction.loginMode !== configuration.loginMode) return false;
|
|
43
49
|
const authorize = new URL(transaction.returnUrl, configuration.authority);
|
|
@@ -68,6 +74,15 @@ async function customerCsrfToken(request, context) {
|
|
|
68
74
|
function previewing(request, env) {
|
|
69
75
|
return env.ECOMIQ_PREVIEW === "1" && !/^\/account\/(login|callback)(\/|$)/.test(requestUrl(request).pathname);
|
|
70
76
|
}
|
|
77
|
+
function editorLoginForm(email, error) {
|
|
78
|
+
return data({
|
|
79
|
+
step: "email",
|
|
80
|
+
email,
|
|
81
|
+
captcha: EDITOR_CAPTCHA,
|
|
82
|
+
retryAt: 0,
|
|
83
|
+
error
|
|
84
|
+
}, { headers: PRIVATE_HEADERS });
|
|
85
|
+
}
|
|
71
86
|
async function readCustomer(request, context) {
|
|
72
87
|
const env = context.get(worker).env;
|
|
73
88
|
if (previewing(request, env)) return {
|
|
@@ -168,6 +183,7 @@ async function loginFailure(message, status, headers, context) {
|
|
|
168
183
|
});
|
|
169
184
|
}
|
|
170
185
|
async function startCustomerLogin(request, context) {
|
|
186
|
+
if (context.get(worker).env.ECOMIQ_PREVIEW === "1") return editorLoginForm("", null);
|
|
171
187
|
const url = new URL(request.url);
|
|
172
188
|
const next = safeNext(url.searchParams.get("next"));
|
|
173
189
|
const current = await customer(request, context);
|
|
@@ -222,6 +238,10 @@ async function startCustomerLogin(request, context) {
|
|
|
222
238
|
async function submitCustomerLogin(request, context) {
|
|
223
239
|
const rejected = rejectCrossOriginAction(request);
|
|
224
240
|
if (rejected) return rejected;
|
|
241
|
+
if (context.get(worker).env.ECOMIQ_PREVIEW === "1") {
|
|
242
|
+
const email = (await request.formData()).get("email");
|
|
243
|
+
return editorLoginForm(typeof email === "string" ? email.trim() : "", EDITOR_LOGIN_NOTICE);
|
|
244
|
+
}
|
|
225
245
|
const origin = new URL(request.url).origin;
|
|
226
246
|
const configuration = await store(context).upsertCustomerAuthConfiguration(origin);
|
|
227
247
|
const cookies = customerCookies(context.get(worker).env);
|
|
@@ -354,6 +374,10 @@ async function completeCustomerLogin(request, context) {
|
|
|
354
374
|
}
|
|
355
375
|
async function logout(request, context) {
|
|
356
376
|
const env = context.get(worker).env;
|
|
377
|
+
if (env.ECOMIQ_PREVIEW === "1") return redirect("/", {
|
|
378
|
+
status: 303,
|
|
379
|
+
headers: PRIVATE_HEADERS
|
|
380
|
+
});
|
|
357
381
|
const origin = new URL(request.url).origin;
|
|
358
382
|
const configuration = await store(context).upsertCustomerAuthConfiguration(origin);
|
|
359
383
|
if (configuration.redirectUri !== new URL("/account/callback", origin).href) throw new Error("El dominio de salida no corresponde a esta tienda.");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { apiCacheFetch, uncachedFetch } from "./api-cache-DsuIn5hX.js";
|
|
2
|
-
import { previewClient } from "./preview-
|
|
2
|
+
import { previewClient } from "./preview-C3sqXLu7.js";
|
|
3
3
|
import { productPreviewClient } from "./product-preview-BspMAecJ.js";
|
|
4
4
|
import { observeStorefrontClient } from "./telemetry-HuZXWBPi.js";
|
|
5
|
-
import { worker } from "./worker-
|
|
5
|
+
import { worker } from "./worker-xF0YKH8T.js";
|
|
6
6
|
import { data } from "react-router";
|
|
7
7
|
import { ApiError, GraphQLResponseError, createClient } from "@ecomiq/core";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/storefront-text.ts
|
|
2
2
|
async function loadStorefrontTranslations(language) {
|
|
3
3
|
const code = language.split("-")[0];
|
|
4
|
-
if (code === "en") return (await import("./storefront-text-en-
|
|
5
|
-
if (code === "pt") return (await import("./storefront-text-pt-
|
|
4
|
+
if (code === "en") return (await import("./storefront-text-en-Bzm4qMCo.js")).default;
|
|
5
|
+
if (code === "pt") return (await import("./storefront-text-pt-BeMGHI7h.js")).default;
|
|
6
6
|
return {};
|
|
7
7
|
}
|
|
8
8
|
function storefrontText(translations, source, values = {}) {
|
|
@@ -419,6 +419,7 @@ const translations = {
|
|
|
419
419
|
"Completa la verificación antes de continuar.": "Complete verification before continuing.",
|
|
420
420
|
"No pudimos enviar el código. Intenta de nuevo en unos minutos.": "We couldn't send the code. Try again in a few minutes.",
|
|
421
421
|
"Solicita un código para continuar.": "Request a code to continue.",
|
|
422
|
+
"El ingreso de clientes solo funciona en la tienda publicada.": "Customer sign-in only works in the published store.",
|
|
422
423
|
"Ingresa el código de seis dígitos que enviamos a tu correo.": "Enter the six-digit code sent to your email.",
|
|
423
424
|
"Ingresa el código de tu aplicación de autenticación o uno de recuperación.": "Enter your authenticator app code or a recovery code.",
|
|
424
425
|
"No pudimos completar el acceso. Intenta de nuevo en unos minutos.": "We couldn't sign you in. Try again in a few minutes.",
|
|
@@ -419,6 +419,7 @@ const translations = {
|
|
|
419
419
|
"Completa la verificación antes de continuar.": "Conclua a verificação antes de continuar.",
|
|
420
420
|
"No pudimos enviar el código. Intenta de nuevo en unos minutos.": "Não foi possível enviar o código. Tente novamente em alguns minutos.",
|
|
421
421
|
"Solicita un código para continuar.": "Solicite um código para continuar.",
|
|
422
|
+
"El ingreso de clientes solo funciona en la tienda publicada.": "O acesso de clientes só funciona na loja publicada.",
|
|
422
423
|
"Ingresa el código de seis dígitos que enviamos a tu correo.": "Informe o código de seis dígitos enviado ao seu e-mail.",
|
|
423
424
|
"Ingresa el código de tu aplicación de autenticación o uno de recuperación.": "Informe o código do aplicativo autenticador ou um código de recuperação.",
|
|
424
425
|
"No pudimos completar el acceso. Intenta de nuevo en unos minutos.": "Não foi possível entrar. Tente novamente em alguns minutos.",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useStorefrontLocale, useStorefrontText } from "./storefront-language-
|
|
1
|
+
import { useStorefrontLocale, useStorefrontText } from "./storefront-language-3jED0mSM.js";
|
|
2
2
|
import { money } from "./money-DtGOtDri.js";
|
|
3
|
-
import { PaymentDialogFrame } from "./payment-dialog-frame-
|
|
3
|
+
import { PaymentDialogFrame } from "./payment-dialog-frame-Yqptx9Ze.js";
|
|
4
4
|
import { confirmingPaymentUrl } from "./payment-return-5cjypwIw.js";
|
|
5
5
|
import { useNavigate } from "react-router";
|
|
6
6
|
import { useEffect, useRef, useState } from "react";
|