@dropins/storefront-checkout 0.1.0-alpha45 → 0.1.0-alpha47
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/__generated__/types.d.ts +22 -20
- package/api/errors/index.d.ts +16 -0
- package/api/estimateShippingMethods/graphql/estimateShippingMethods.graphql.d.ts +16 -0
- package/api/estimateShippingMethods/graphql/index.d.ts +16 -0
- package/api/estimateShippingMethods/index.d.ts +16 -0
- package/api/fetch-graphql/fetch-graphql.d.ts +16 -0
- package/api/fetch-graphql/index.d.ts +16 -0
- package/api/fetchAddressFormFields/fetchAddressFormFields.d.ts +16 -0
- package/api/fetchAddressFormFields/graphql/fetchAddressFormFields.graphql.d.ts +16 -0
- package/api/fetchAddressFormFields/index.d.ts +16 -0
- package/api/getCart/getCart.d.ts +16 -0
- package/api/getCart/graphql/getCart.graphql.d.ts +16 -0
- package/api/getCart/graphql/index.d.ts +16 -0
- package/api/getCart/index.d.ts +16 -0
- package/api/getCheckoutData/getCheckoutData.d.ts +16 -0
- package/api/getCheckoutData/index.d.ts +16 -0
- package/api/getCountries/getCountries.d.ts +16 -0
- package/api/getCountries/graphql/getCountries.graphql.d.ts +16 -0
- package/api/getCountries/index.d.ts +16 -0
- package/api/getCustomer/graphql/getCustomer.graphql.d.ts +16 -0
- package/api/getCustomer/graphql/index.d.ts +16 -0
- package/api/getCustomer/index.d.ts +16 -0
- package/api/getRegions/graphql/getRegions.graphql.d.ts +16 -0
- package/api/getRegions/index.d.ts +16 -0
- package/api/getStoreConfig/graphql/getStoreConfig.graphql.d.ts +16 -0
- package/api/getStoreConfig/index.d.ts +16 -0
- package/api/index.d.ts +16 -0
- package/api/initialize/index.d.ts +16 -0
- package/api/initialize/listeners.d.ts +16 -0
- package/api/initializeCheckout/index.d.ts +16 -0
- package/api/initializeCheckout/initializeCheckout.d.ts +16 -0
- package/api/isEmailAvailable/graphql/isEmailAvailable.graphql.d.ts +16 -0
- package/api/isEmailAvailable/index.d.ts +16 -0
- package/api/placeOrder/graphql/index.d.ts +16 -0
- package/api/placeOrder/graphql/placeOrder.graphql.d.ts +17 -1
- package/api/placeOrder/index.d.ts +16 -0
- package/api/placeOrder/placeOrder.d.ts +16 -0
- package/api/redirect/index.d.ts +16 -0
- package/api/redirect/redirect.d.ts +16 -0
- package/api/resetCheckout/index.d.ts +16 -0
- package/api/resetCheckout/resetCheckout.d.ts +16 -0
- package/api/resetCustomer/index.d.ts +16 -0
- package/api/resetCustomer/resetCustomer.d.ts +16 -0
- package/api/setBillingAddress/graphql/setBillingAddress.graphql.d.ts +16 -0
- package/api/setBillingAddress/index.d.ts +16 -0
- package/api/setGuestEmailOnCart/graphql/setGuestEmailOnCart.graphql.d.ts +16 -0
- package/api/setGuestEmailOnCart/index.d.ts +16 -0
- package/api/setGuestEmailOnCart/setGuestEmailOnCart.d.ts +16 -0
- package/api/setPaymentMethod/graphql/setPaymentMethod.graphql.d.ts +16 -0
- package/api/setPaymentMethod/index.d.ts +16 -0
- package/api/setPaymentMethod/setPaymentMethod.d.ts +16 -0
- package/api/setShippingAddress/graphql/setShippingAddress.graphql.d.ts +16 -0
- package/api/setShippingAddress/index.d.ts +16 -0
- package/api/setShippingAddress/setShippingAddress.d.ts +17 -1
- package/api/setShippingMethods/graphql/setShippingMethodsOnCart.graphql.d.ts +16 -0
- package/api/setShippingMethods/index.d.ts +16 -0
- package/api/setShippingMethods/setShippingMethods.d.ts +16 -0
- package/api/utils/enqueueRequest.d.ts +16 -0
- package/api.js +1 -1
- package/chunks/BillToShippingAddress.js +1 -1
- package/chunks/OrderError.js +1 -0
- package/chunks/ShippingMethods.js +1 -1
- package/chunks/fixtures.js +15 -0
- package/chunks/getCart.graphql.js +6 -20
- package/chunks/getCustomer.js +1 -1
- package/chunks/getMultilineValues.js +43 -0
- package/chunks/placeOrder.js +6 -2
- package/chunks/resetCustomer.js +1 -1
- package/chunks/setBillingAddress.js +3 -3
- package/chunks/setGuestEmailOnCart.js +17 -0
- package/chunks/setPaymentMethod.js +13 -0
- package/chunks/setShippingAddress.js +16 -0
- package/chunks/setShippingMethods.js +3 -85
- package/chunks/transform-shipping-methods.js +1 -0
- package/chunks/withConditionalRendering.js +1 -0
- package/components/AddressForm/constants.d.ts +16 -0
- package/components/AddressForm/index.d.ts +16 -0
- package/components/BillToShippingAddress/index.d.ts +16 -0
- package/components/EstimateShipping/index.d.ts +16 -0
- package/components/FieldsForm/index.d.ts +16 -0
- package/components/Heading/index.d.ts +16 -0
- package/components/LoginForm/index.d.ts +16 -0
- package/components/OutOfStock/index.d.ts +16 -0
- package/components/OverlayLoader/index.d.ts +16 -0
- package/components/PaymentMethods/index.d.ts +16 -0
- package/components/PlaceOrder/PlaceOrder.d.ts +1 -1
- package/components/PlaceOrder/index.d.ts +16 -0
- package/components/ServerError/index.d.ts +16 -0
- package/components/ShippingMethods/index.d.ts +16 -0
- package/components/ToggleButton/assets/icons/index.d.ts +16 -0
- package/components/ToggleButton/assets/images/index.d.ts +16 -0
- package/components/ToggleButton/index.d.ts +16 -0
- package/components/index.d.ts +16 -2
- package/containers/BillToShippingAddress/BillToShippingAddress.d.ts +1 -1
- package/containers/BillToShippingAddress/constants.d.ts +16 -0
- package/containers/BillToShippingAddress/index.d.ts +16 -0
- package/containers/BillToShippingAddress.js +1 -1
- package/containers/BillingForm/BillingForm.d.ts +1 -1
- package/containers/BillingForm/constants.d.ts +16 -0
- package/containers/BillingForm/index.d.ts +16 -0
- package/containers/BillingForm.js +1 -1
- package/containers/ErrorBanner/index.d.ts +16 -0
- package/containers/ErrorBanner.js +1 -1
- package/containers/EstimateShipping/index.d.ts +16 -0
- package/containers/EstimateShipping.js +1 -1
- package/containers/LoginForm/LoginForm.d.ts +1 -1
- package/containers/LoginForm/constants.d.ts +16 -0
- package/containers/LoginForm/index.d.ts +16 -0
- package/containers/LoginForm.js +1 -1
- package/containers/MergedCartBanner/index.d.ts +16 -0
- package/containers/MergedCartBanner.js +1 -1
- package/containers/OutOfStock/index.d.ts +16 -0
- package/containers/OutOfStock.js +1 -1
- package/containers/PaymentMethods/PaymentMethods.d.ts +10 -11
- package/containers/PaymentMethods/defaultHandlers.d.ts +2 -9
- package/containers/PaymentMethods/index.d.ts +16 -0
- package/containers/PaymentMethods.js +1 -1
- package/containers/PlaceOrder/PlaceOrder.d.ts +10 -3
- package/containers/PlaceOrder/index.d.ts +16 -0
- package/containers/PlaceOrder.js +1 -1
- package/containers/ServerError/ServerError.d.ts +8 -0
- package/containers/ServerError/index.d.ts +19 -0
- package/containers/ServerError.d.ts +3 -0
- package/containers/ServerError.js +1 -0
- package/containers/ShippingForm/ShippingForm.d.ts +1 -1
- package/containers/ShippingForm/constants.d.ts +16 -0
- package/containers/ShippingForm/index.d.ts +17 -1
- package/containers/ShippingForm.js +1 -1
- package/containers/ShippingMethods/ShippingMethods.d.ts +7 -3
- package/containers/ShippingMethods/hooks/useShippingEstimateEventEmitter.d.ts +16 -0
- package/containers/ShippingMethods/index.d.ts +16 -0
- package/containers/ShippingMethods.js +1 -1
- package/containers/index.d.ts +17 -2
- package/data/models/acdl.d.ts +16 -0
- package/data/models/country.d.ts +16 -0
- package/data/models/custom-attribute.d.ts +16 -0
- package/data/models/email-availability.d.ts +16 -0
- package/data/models/index.d.ts +16 -0
- package/data/models/payment-method.d.ts +16 -0
- package/data/models/price.d.ts +16 -0
- package/data/models/region.d.ts +16 -0
- package/data/models/store-config.d.ts +16 -0
- package/data/transforms/index.d.ts +16 -0
- package/hocs/index.d.ts +16 -0
- package/hocs/withConditionalRendering.d.ts +1 -1
- package/hooks/index.d.ts +16 -0
- package/hooks/useBreakpoint/index.d.ts +16 -0
- package/hooks/useBreakpoint/useBreakpoint.d.ts +16 -0
- package/hooks/useLockScroll/index.d.ts +16 -0
- package/hooks/useLockScroll/useLockScroll.d.ts +16 -0
- package/hooks/useValidity/index.d.ts +16 -0
- package/hooks/useValidity/useValidity.d.ts +16 -0
- package/i18n/en_US.json.d.ts +0 -8
- package/lib/backup-data.d.ts +16 -0
- package/lib/fetch-error.d.ts +16 -0
- package/lib/index.d.ts +16 -0
- package/lib/network-error.d.ts +16 -0
- package/lib/redirect.d.ts +16 -0
- package/lib/state.d.ts +16 -0
- package/msw/browser.d.ts +16 -0
- package/msw/fixtures/fragments/billing-address.d.ts +16 -0
- package/msw/fixtures/fragments/cart.d.ts +16 -0
- package/msw/fixtures/fragments/index.d.ts +16 -0
- package/msw/fixtures/fragments/shipping-address.d.ts +16 -0
- package/msw/fixtures/index.d.ts +16 -0
- package/msw/fixtures/mutations/index.d.ts +16 -0
- package/msw/fixtures/queries/index.d.ts +16 -0
- package/msw/server.d.ts +16 -0
- package/package.json +1 -1
- package/render/index.d.ts +16 -0
- package/render.js +4 -3
- package/signals/IsBillToShippingSignal.d.ts +16 -0
- package/signals/ServerErrorSignal.d.ts +18 -0
- package/signals/index.d.ts +17 -0
- package/tests/constants.d.ts +16 -0
- package/tests/integration/utils/index.d.ts +16 -0
- package/tests/integration/utils/setup.d.ts +6 -4
- package/tests/integration/utils/user-actions.d.ts +16 -0
- package/tests/mocks/svg.d.ts +16 -0
- package/tests/utils/expectError.d.ts +16 -0
- package/tests/utils/index.d.ts +16 -0
- package/tests/utils/mockEvents.d.ts +16 -0
- package/utils/autocompleteFieldCodes/autocompleteFieldCodes.d.ts +16 -0
- package/utils/autocompleteFieldCodes/index.d.ts +16 -0
- package/utils/getDisplayName/index.d.ts +16 -0
- package/utils/getMultilineValues/getMultilineValues.d.ts +16 -0
- package/utils/getMultilineValues/index.d.ts +16 -0
- package/utils/index.d.ts +19 -0
- package/utils/isEmpty/index.d.ts +16 -0
- package/utils/isEmpty/isEmpty.d.ts +16 -0
- package/utils/isNullish/index.d.ts +16 -0
- package/utils/isNullish/isNullish.d.ts +16 -0
- package/utils/isUnexpectedError/index.d.ts +18 -0
- package/utils/isUnexpectedError/isUnexpectedError.d.ts +18 -0
- package/utils/parseRegionId/index.d.ts +16 -0
- package/utils/parseRegionId/parseRegionId.d.ts +16 -0
- package/utils/processFormFields/index.d.ts +16 -0
- package/utils/refetchEstimatedShippingMethods/index.d.ts +16 -0
- package/utils/scrollToElement/index.d.ts +18 -0
- package/utils/scrollToElement/scrollToElement.d.ts +18 -0
- package/utils/shippingMethods/index.d.ts +16 -0
- package/utils/validateForms/index.d.ts +18 -0
- package/utils/validateForms/validateForms.d.ts +18 -0
- package/chunks/EmptyCart.js +0 -1
- package/chunks/ErrorBanner.js +0 -1
- package/chunks/MergedCartBanner.js +0 -1
- package/chunks/OutOfStock.js +0 -1
- package/components/Checkout/Checkout.d.ts +0 -28
- package/components/Checkout/index.d.ts +0 -3
- package/components/EmptyCart/EmptyCart.d.ts +0 -9
- package/components/EmptyCart/index.d.ts +0 -3
- package/containers/Checkout/Checkout.d.ts +0 -35
- package/containers/Checkout/constants.d.ts +0 -2
- package/containers/Checkout/index.d.ts +0 -4
- package/containers/Checkout.d.ts +0 -3
- package/containers/Checkout.js +0 -1
- package/containers/EmptyCart/EmptyCart.d.ts +0 -8
- package/containers/EmptyCart/index.d.ts +0 -3
- package/containers/EmptyCart.d.ts +0 -3
- package/containers/EmptyCart.js +0 -1
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './initializeCheckout';
|
|
2
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const initializeCheckout: () => Promise<[import('../../data/models/store-config').StoreConfig | undefined, import('../../data/models/country').Country[] | undefined, import('../../data/models/address-form-fields').AddressFormField[] | undefined]>;
|
|
2
18
|
//# sourceMappingURL=initializeCheckout.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const isEmailAvailableQuery = "\n query isEmailAvailable($email: String!) {\n isEmailAvailable(email: $email) {\n is_email_available\n }\n }\n";
|
|
2
18
|
//# sourceMappingURL=isEmailAvailable.graphql.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './isEmailAvailable';
|
|
2
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './placeOrder.graphql';
|
|
2
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export declare const placeOrderMutation = "\n mutation placeOrder($cartId: String!) {\n placeOrder(input: { cart_id: $cartId }) {\n errors {\n code\n message\n }\n orderV2 {\n number\n status\n token\n is_virtual\n applied_coupons {\n code\n }\n email\n id\n total {\n grand_total {\n currency\n value\n }\n subtotal {\n currency\n value\n }\n total_shipping {\n currency\n value\n }\n total_tax {\n currency\n value\n }\n }\n shipping_method\n payment_methods {\n name\n type\n }\n billing_address {\n firstname\n middlename\n lastname\n street\n city\n postcode\n telephone\n country_code\n region\n region_id\n company\n custom_attributesV2 {\n code\n ... on AttributeValue {\n value\n }\n }\n }\n shipping_address {\n firstname\n middlename\n lastname\n street\n city\n postcode\n telephone\n country_code\n region\n region_id\n company\n custom_attributesV2 {\n code\n ... on AttributeValue {\n value\n }\n }\n }\n items {\n __typename\n id\n discounts {\n amount {\n value\n }\n }\n product {\n __typename\n canonical_url\n image {\n url\n }\n thumbnail {\n label\n url\n }\n name\n sku\n uid\n price_range {\n maximum_price {\n regular_price {\n currency\n value\n }\n }\n }\n }\n selected_options {\n label\n value\n }\n product_sale_price {\n value\n currency\n }\n quantity_ordered\n ... on GiftCardOrderItem {\n gift_card {\n recipient_name\n recipient_email\n sender_name\n sender_email\n message\n }\n }\n }\n }\n }\n }\n";
|
|
2
18
|
//# sourceMappingURL=placeOrder.graphql.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './placeOrder';
|
|
2
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const placeOrder: () => Promise<import('../../data/models/order').Order>;
|
|
2
18
|
//# sourceMappingURL=placeOrder.d.ts.map
|
package/api/redirect/index.d.ts
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './redirect';
|
|
2
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const redirect: (url: string) => void;
|
|
2
18
|
//# sourceMappingURL=redirect.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './resetCheckout';
|
|
2
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const resetCheckout: () => void;
|
|
2
18
|
//# sourceMappingURL=resetCheckout.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './resetCustomer';
|
|
2
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const resetCustomer: () => void;
|
|
2
18
|
//# sourceMappingURL=resetCustomer.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const setBillingAddressMutation: string;
|
|
2
18
|
//# sourceMappingURL=setBillingAddress.graphql.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './setBillingAddress';
|
|
2
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const setGuestEmailMutation: string;
|
|
2
18
|
//# sourceMappingURL=setGuestEmailOnCart.graphql.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './setGuestEmailOnCart';
|
|
2
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const setGuestEmailOnCart: (email: string) => Promise<import('../../data/models/cart').Cart | null | undefined>;
|
|
2
18
|
//# sourceMappingURL=setGuestEmailOnCart.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const setPaymentMethodMutation: string;
|
|
2
18
|
//# sourceMappingURL=setPaymentMethod.graphql.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './setPaymentMethod';
|
|
2
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const setPaymentMethod: (paymentMethod: string) => Promise<import('../../data/models/cart').Cart | null | undefined>;
|
|
2
18
|
//# sourceMappingURL=setPaymentMethod.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const setShippingAddressMutation: string;
|
|
2
18
|
//# sourceMappingURL=setShippingAddress.graphql.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './setShippingAddress';
|
|
2
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const STANDARD_ATTRIBUTES: string[];
|
|
2
18
|
export interface AddressInput {
|
|
3
19
|
city: string;
|
|
@@ -26,5 +42,5 @@ export interface setShippingAddressParams {
|
|
|
26
42
|
signal?: AbortSignal;
|
|
27
43
|
}
|
|
28
44
|
export declare const prepareAddress: (formFields: Record<string, any>) => AddressInput;
|
|
29
|
-
export declare const setShippingAddress: ({ signal,
|
|
45
|
+
export declare const setShippingAddress: ({ signal, ...variables }: setShippingAddressParams) => Promise<import('../../data/models').Cart | null | undefined>;
|
|
30
46
|
//# sourceMappingURL=setShippingAddress.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const setShippingMethodsMutation: string;
|
|
2
18
|
//# sourceMappingURL=setShippingMethodsOnCart.graphql.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './setShippingMethods';
|
|
2
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare const setShippingMethodsOnCart: (shippingMethods: import('../../__generated__/types').InputMaybe<import('../../__generated__/types').ShippingMethodInput>[]) => Promise<import('../../data/models/cart').Cart | null | undefined>;
|
|
2
18
|
//# sourceMappingURL=setShippingMethods.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export declare function enqueueRequest<T>(requestFn: () => Promise<T>): Promise<T>;
|
|
2
18
|
//# sourceMappingURL=enqueueRequest.d.ts.map
|
package/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as
|
|
1
|
+
import{D as g,F as h,I as l,c as f,M as c,d as C,a as x,b as A,S as F,U as u,i as E,g as M,h as S,j as T,r as D,s as G,e as O,f as U}from"./chunks/fixtures.js";import{e as b,g as I}from"./chunks/getMultilineValues.js";import{c as _,f as k,g as v,i as y,a as B,r as H,b as N}from"./chunks/resetCustomer.js";import{g as z,a as L,b as P}from"./chunks/getCustomer.js";import{i as Y,s as q}from"./chunks/setGuestEmailOnCart.js";import{p as K}from"./chunks/placeOrder.js";import{s as W}from"./chunks/setBillingAddress.js";import{s as Z}from"./chunks/setPaymentMethod.js";import{S as ss,p as es,s as as}from"./chunks/setShippingAddress.js";import{s as rs}from"./chunks/setShippingMethods.js";import"@dropins/tools/event-bus.js";import"@dropins/tools/signals.js";import"@dropins/tools/fetch-graphql.js";import"./chunks/transform-shipping-methods.js";import"@dropins/tools/lib.js";import"./chunks/getCart.graphql.js";const n=e=>{var s;(s=window==null?void 0:window.location)==null||s.assign(e)};export{g as DEFAULT_COUNTRY,h as FetchError,l as InvalidArgument,f as MissingBillingAddress,c as MissingCart,C as MissingCountry,x as MissingEmail,A as MissingPaymentMethod,ss as STANDARD_ATTRIBUTES,F as STORE_CONFIG_DEFAULTS,u as UnexpectedError,_ as config,E as defaultFormFields,b as estimateShippingMethods,k as fetchAddressFormFields,M as fetchGraphQl,z as getCart,L as getCheckoutData,S as getConfig,v as getCountries,P as getCustomer,I as getRegions,T as getStoreConfig,y as initialize,B as initializeCheckout,Y as isEmailAvailable,K as placeOrder,es as prepareAddress,n as redirect,D as removeFetchGraphQlHeader,H as resetCheckout,N as resetCustomer,W as setBillingAddress,G as setEndpoint,O as setFetchGraphQlHeader,U as setFetchGraphQlHeaders,q as setGuestEmailOnCart,Z as setPaymentMethod,as as setShippingAddress,rs as setShippingMethodsOnCart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as o}from"@dropins/tools/preact-jsx-runtime.js";import"@dropins/tools/event-bus.js";import{m as p,q as f,o as k}from"./fixtures.js";import{s as S}from"./setBillingAddress.js";import{classes as b}from"@dropins/tools/lib.js";import{Checkbox as _,Skeleton as v,SkeletonRow as A}from"@dropins/tools/components.js";/* empty css */import{useText as B}from"@dropins/tools/i18n.js";import{w as C}from"./withConditionalRendering.js";import{useState as I,useEffect as g}from"@dropins/tools/preact-compat.js";const x=({className:n,isInitialized:s=!0,checked:i=!0,...t})=>{const e=B({title:"Checkout.BillToShippingAddress.title"});return s?o("div",{className:b(["checkout-bill-to-shipping-address",n]),children:o(_,{"data-testid":"bill-to-shipping-checkbox",className:"checkout-bill-to-shipping-address__checkbox",checked:i,name:"checkout-bill-to-shipping-address__checkbox",label:e.title,...t})}):o(y,{})},y=()=>o(v,{className:"bill-to-shipping-address__skeleton",children:o(A,{variant:"row",size:"small"})}),m="is_bill_to_shipping_address";function T(n,s,i){const t=n[i],e=s[i];return t===void 0&&e===void 0||t===null&&e===null?!0:typeof t=="object"&&typeof e=="object"?JSON.stringify(t)===JSON.stringify(e):t===e}function N(n,s,i){return!s&&!i?!0:!s||!i?!1:n.every(t=>{const e=t.code;return T(s,i,e)})}const w=({isBillToShipping:n})=>{var d;const[s,i]=I(!1),t=k.value.data,e=f.value.data,h=(e==null?void 0:e.id)||"",l=!!e,a=e==null?void 0:e.billingAddress,r=(d=e==null?void 0:e.shippingAddresses)==null?void 0:d[0],c=!!r;return g(()=>{if(s)return;const u=localStorage.getItem(m);u&&(i(!0),n.value={checked:u==="true",setByUser:!1})},[s,n]),g(()=>{if(s||!t||!l)return;i(!0);const u=N(t,a,r);n.value={checked:a?u:n.value.checked,setByUser:!1}},[a,t,l,n,s,r]),{cartId:h,isInitialized:s,hasShippingAddress:c}},z=({children:n,...s})=>{const i=p.value.checked,{hasShippingAddress:t,isInitialized:e}=w({isBillToShipping:p});return o("div",{children:o(x,{...s,checked:i,isInitialized:e,onChange:l=>{const r=l.target.checked;if(p.value={checked:r,setByUser:!0},localStorage.setItem(m,r.toString()),!e||!r||!t)return;const c=new AbortController;return S({signal:c.signal,input:{same_as_shipping:!0}}).catch(d=>{console.error(d)}),()=>{c.abort()}},disabled:f.value.pending})})},V=C(z);export{V as B,m as a,N as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"@dropins/tools/preact-compat.js";const t=r=>e.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r},e.createElement("g",{clipPath:"url(#clip0_4797_15331)"},e.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M10.25 20.91L1.5 17.55V6.51996L10.25 9.92996V20.91Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M6.24023 4.64001L14.9902 8.06001V11.42",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{className:"error-icon",vectorEffect:"non-scaling-stroke",d:"M19 13.31L15.5 19.37H22.5L19 13.31Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{className:"error-icon",vectorEffect:"non-scaling-stroke",d:"M19.0202 17.11H18.9802L18.9502 15.56H19.0502L19.0202 17.11ZM18.9602 18.29V18.06H19.0502V18.29H18.9602Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M19 12.16V6.51996L10.25 9.92996V20.91L14.27 19.37L14.4 19.32",stroke:"currentColor",strokeLinejoin:"round"}),e.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M1.5 6.51999L10.25 3.04999L19 6.51999L10.25 9.92999L1.5 6.51999Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_4797_15331"},e.createElement("rect",{width:22,height:18.86,fill:"white",transform:"translate(1 2.54999)"}))));export{t as S};
|