@gomusdev/web-components 1.48.0 → 1.49.0
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.
|
@@ -11197,6 +11197,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
11197
11197
|
return this.uuid + ":" + this.quantity;
|
|
11198
11198
|
},
|
|
11199
11199
|
get price_cents() {
|
|
11200
|
+
if (this.time && this.product.dynamic_prices?.[this.time] != null) {
|
|
11201
|
+
return this.product.dynamic_prices[this.time];
|
|
11202
|
+
}
|
|
11200
11203
|
return this.product.price_cents;
|
|
11201
11204
|
},
|
|
11202
11205
|
get price_formatted() {
|
|
@@ -11226,10 +11229,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
11226
11229
|
const type = cartItem.type;
|
|
11227
11230
|
switch (type) {
|
|
11228
11231
|
case "Ticket":
|
|
11229
|
-
if (cartItem.product.
|
|
11232
|
+
if (cartItem.product.type === "timeslot" && !inTheFuture(cartItem.time)) return;
|
|
11230
11233
|
const ticket = createUITicket(cartItem.product);
|
|
11231
11234
|
return createCartItem(ticket, { time: cartItem.time, quantity: cartItem.quantity });
|
|
11232
11235
|
case "Event":
|
|
11236
|
+
if (cartItem.time && !inTheFuture(cartItem.time)) return;
|
|
11233
11237
|
const event2 = createUIScaledPricesTicket(cartItem.product, cartItem.id);
|
|
11234
11238
|
return createCartItem(event2, { time: cartItem.time, quantity: cartItem.quantity });
|
|
11235
11239
|
default:
|
|
@@ -33573,7 +33577,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33573
33577
|
reset(ul);
|
|
33574
33578
|
reset(li);
|
|
33575
33579
|
var node_1 = sibling(li, 2);
|
|
33576
|
-
each(node_1, 17, () => get$2(details).preCart.items,
|
|
33580
|
+
each(node_1, 17, () => get$2(details).preCart.items, (ci) => ci.uuid, ($$anchor3, ci) => {
|
|
33577
33581
|
Item($$anchor3, {
|
|
33578
33582
|
get item() {
|
|
33579
33583
|
return get$2(ci);
|
|
@@ -11197,6 +11197,9 @@ function createCartItem(product, options) {
|
|
|
11197
11197
|
return this.uuid + ":" + this.quantity;
|
|
11198
11198
|
},
|
|
11199
11199
|
get price_cents() {
|
|
11200
|
+
if (this.time && this.product.dynamic_prices?.[this.time] != null) {
|
|
11201
|
+
return this.product.dynamic_prices[this.time];
|
|
11202
|
+
}
|
|
11200
11203
|
return this.product.price_cents;
|
|
11201
11204
|
},
|
|
11202
11205
|
get price_formatted() {
|
|
@@ -11226,10 +11229,11 @@ function generateCartItem(cartItem) {
|
|
|
11226
11229
|
const type = cartItem.type;
|
|
11227
11230
|
switch (type) {
|
|
11228
11231
|
case "Ticket":
|
|
11229
|
-
if (cartItem.product.
|
|
11232
|
+
if (cartItem.product.type === "timeslot" && !inTheFuture(cartItem.time)) return;
|
|
11230
11233
|
const ticket = createUITicket(cartItem.product);
|
|
11231
11234
|
return createCartItem(ticket, { time: cartItem.time, quantity: cartItem.quantity });
|
|
11232
11235
|
case "Event":
|
|
11236
|
+
if (cartItem.time && !inTheFuture(cartItem.time)) return;
|
|
11233
11237
|
const event2 = createUIScaledPricesTicket(cartItem.product, cartItem.id);
|
|
11234
11238
|
return createCartItem(event2, { time: cartItem.time, quantity: cartItem.quantity });
|
|
11235
11239
|
default:
|
|
@@ -33573,7 +33577,7 @@ function Body($$anchor, $$props) {
|
|
|
33573
33577
|
reset(ul);
|
|
33574
33578
|
reset(li);
|
|
33575
33579
|
var node_1 = sibling(li, 2);
|
|
33576
|
-
each(node_1, 17, () => get$2(details).preCart.items,
|
|
33580
|
+
each(node_1, 17, () => get$2(details).preCart.items, (ci) => ci.uuid, ($$anchor3, ci) => {
|
|
33577
33581
|
Item($$anchor3, {
|
|
33578
33582
|
get item() {
|
|
33579
33583
|
return get$2(ci);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -27,6 +27,7 @@ export declare function createUIScaledPricesTicket(apiTicket: EventScalePriceTic
|
|
|
27
27
|
id: number;
|
|
28
28
|
tax_included: boolean;
|
|
29
29
|
product_type: ProductType;
|
|
30
|
+
dynamic_prices?: Record<string, number> | null;
|
|
30
31
|
uid: number;
|
|
31
32
|
dateId: number;
|
|
32
33
|
scalePriceId: number;
|