@gomusdev/web-components 1.26.0 → 1.26.1
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.
|
@@ -16108,7 +16108,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
16108
16108
|
function CheckoutForm($$anchor, $$props) {
|
|
16109
16109
|
push($$props, true);
|
|
16110
16110
|
let custom2 = prop($$props, "custom", 7, false);
|
|
16111
|
-
|
|
16111
|
+
let cart = /* @__PURE__ */ user_derived(() => shop.cart);
|
|
16112
16112
|
Forms.defineForm({
|
|
16113
16113
|
id: "checkoutGuest",
|
|
16114
16114
|
fields: [
|
|
@@ -16128,7 +16128,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
16128
16128
|
form.details.apiErrors = auth.error.errors;
|
|
16129
16129
|
return;
|
|
16130
16130
|
}
|
|
16131
|
-
const checkout = await shop.checkout(cart.orderData());
|
|
16131
|
+
const checkout = await shop.checkout(get$2(cart).orderData());
|
|
16132
16132
|
if (checkout.error) {
|
|
16133
16133
|
form.details.apiErrors = checkout.error;
|
|
16134
16134
|
return;
|
|
@@ -16108,7 +16108,7 @@ customElements.define("go-cart-counter", create_custom_element(CartCounter, {},
|
|
|
16108
16108
|
function CheckoutForm($$anchor, $$props) {
|
|
16109
16109
|
push($$props, true);
|
|
16110
16110
|
let custom2 = prop($$props, "custom", 7, false);
|
|
16111
|
-
|
|
16111
|
+
let cart = /* @__PURE__ */ user_derived(() => shop.cart);
|
|
16112
16112
|
Forms.defineForm({
|
|
16113
16113
|
id: "checkoutGuest",
|
|
16114
16114
|
fields: [
|
|
@@ -16128,7 +16128,7 @@ function CheckoutForm($$anchor, $$props) {
|
|
|
16128
16128
|
form.details.apiErrors = auth.error.errors;
|
|
16129
16129
|
return;
|
|
16130
16130
|
}
|
|
16131
|
-
const checkout = await shop.checkout(cart.orderData());
|
|
16131
|
+
const checkout = await shop.checkout(get$2(cart).orderData());
|
|
16132
16132
|
if (checkout.error) {
|
|
16133
16133
|
form.details.apiErrors = checkout.error;
|
|
16134
16134
|
return;
|