@gomusdev/web-components 1.26.0 → 1.26.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.
|
@@ -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;
|
|
@@ -31729,9 +31729,10 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31729
31729
|
"by_ticket_ids[]": tsd.ticketIds,
|
|
31730
31730
|
"by_ticket_group_ids[]": tsd.ticketGroupIds
|
|
31731
31731
|
}));
|
|
31732
|
-
|
|
31733
|
-
|
|
31734
|
-
|
|
31732
|
+
let timeslot;
|
|
31733
|
+
if (quotas && Object.values(quotas).length > 0 && Object.keys(Object.values(quotas)[0].capacities).length > 0) {
|
|
31734
|
+
timeslot = Object.keys(Object.values(quotas)[0].capacities)[0];
|
|
31735
|
+
}
|
|
31735
31736
|
shop.capacityManager.addQuotas(quotas);
|
|
31736
31737
|
const uiTickets = initUITimeslotTickets(tickets, timeslot);
|
|
31737
31738
|
segment.preCart = createCart(uiTickets);
|
|
@@ -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;
|
|
@@ -31729,9 +31729,10 @@ async function loadDayTickets(segment) {
|
|
|
31729
31729
|
"by_ticket_ids[]": tsd.ticketIds,
|
|
31730
31730
|
"by_ticket_group_ids[]": tsd.ticketGroupIds
|
|
31731
31731
|
}));
|
|
31732
|
-
|
|
31733
|
-
|
|
31734
|
-
|
|
31732
|
+
let timeslot;
|
|
31733
|
+
if (quotas && Object.values(quotas).length > 0 && Object.keys(Object.values(quotas)[0].capacities).length > 0) {
|
|
31734
|
+
timeslot = Object.keys(Object.values(quotas)[0].capacities)[0];
|
|
31735
|
+
}
|
|
31735
31736
|
shop.capacityManager.addQuotas(quotas);
|
|
31736
31737
|
const uiTickets = initUITimeslotTickets(tickets, timeslot);
|
|
31737
31738
|
segment.preCart = createCart(uiTickets);
|