@gomusdev/web-components 1.38.0 → 1.39.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.
|
@@ -56,6 +56,7 @@ export declare class SegmentDetails {
|
|
|
56
56
|
ticketGroupIds: number[] | undefined;
|
|
57
57
|
languageIds: number[] | undefined;
|
|
58
58
|
catchWordIds: number[] | undefined;
|
|
59
|
+
museumIds: number[] | undefined;
|
|
59
60
|
constructor(type: TicketSegmentFilter, tsdWrapper: DetailsWrapper<TicketSelectionDetails>);
|
|
60
61
|
clear(): void;
|
|
61
62
|
toString(): string;
|
|
@@ -30642,7 +30642,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
30642
30642
|
append($$anchor4, a_2);
|
|
30643
30643
|
};
|
|
30644
30644
|
if_block(node_5, ($$render) => {
|
|
30645
|
-
if (item().attributes.barcodes[index2]) $$render(consequent_3);
|
|
30645
|
+
if (item().attributes.barcodes[index2] && item().attributes.barcodes[index2]?.passbook_url) $$render(consequent_3);
|
|
30646
30646
|
});
|
|
30647
30647
|
}
|
|
30648
30648
|
reset(li_4);
|
|
@@ -31006,7 +31006,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31006
31006
|
valid_at: tsd.selectedDate?.toString(),
|
|
31007
31007
|
// @ts-ignore
|
|
31008
31008
|
"by_ticket_types[]": ["normal"],
|
|
31009
|
-
"by_museum_ids[]": tsd.museumIds,
|
|
31009
|
+
"by_museum_ids[]": segment.museumIds ?? tsd.museumIds,
|
|
31010
31010
|
"by_exhibition_ids[]": tsd.exhibitionIds,
|
|
31011
31011
|
"by_ticket_ids[]": tsd.ticketIds,
|
|
31012
31012
|
"by_ticket_group_ids[]": segment.ticketGroupIds ?? tsd.ticketGroupIds
|
|
@@ -31121,7 +31121,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31121
31121
|
let dates = await shop.asyncFetch(() => shop.getDates({
|
|
31122
31122
|
// q?: string
|
|
31123
31123
|
by_bookable: true,
|
|
31124
|
-
"by_museum_ids[]": tsd.museumIds,
|
|
31124
|
+
"by_museum_ids[]": segment.museumIds ?? tsd.museumIds,
|
|
31125
31125
|
"by_exhibition_ids[]": tsd.exhibitionIds,
|
|
31126
31126
|
"by_event_ids[]": tsd.eventIds,
|
|
31127
31127
|
"by_language_ids[]": segment.languageIds,
|
|
@@ -31175,7 +31175,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31175
31175
|
valid_at: tsd.selectedDate?.toString(),
|
|
31176
31176
|
// @ts-ignore
|
|
31177
31177
|
by_ticket_type: "time_slot",
|
|
31178
|
-
"by_museum_ids[]": tsd.museumIds,
|
|
31178
|
+
"by_museum_ids[]": segment.museumIds ?? tsd.museumIds,
|
|
31179
31179
|
"by_exhibition_ids[]": tsd.exhibitionIds,
|
|
31180
31180
|
"by_ticket_ids[]": tsd.ticketIds,
|
|
31181
31181
|
"by_ticket_group_ids[]": segment.ticketGroupIds ?? tsd.ticketGroupIds
|
|
@@ -31249,6 +31249,13 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31249
31249
|
set catchWordIds(value) {
|
|
31250
31250
|
set(this.#catchWordIds, value, true);
|
|
31251
31251
|
}
|
|
31252
|
+
#museumIds = /* @__PURE__ */ state(proxy([]));
|
|
31253
|
+
get museumIds() {
|
|
31254
|
+
return get$2(this.#museumIds);
|
|
31255
|
+
}
|
|
31256
|
+
set museumIds(value) {
|
|
31257
|
+
set(this.#museumIds, value, true);
|
|
31258
|
+
}
|
|
31252
31259
|
constructor(type, tsdWrapper) {
|
|
31253
31260
|
this.filters = type;
|
|
31254
31261
|
this.#ticketSelectionDetails = /* @__PURE__ */ user_derived(() => tsdWrapper.value);
|
|
@@ -31278,7 +31285,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31278
31285
|
const getSegmentDetails = createGetDetails(KEY);
|
|
31279
31286
|
function TicketSegment($$anchor, $$props) {
|
|
31280
31287
|
push($$props, true);
|
|
31281
|
-
const filters = prop($$props, "filters", 7), dateId = prop($$props, "dateId", 7), query = prop($$props, "query", 7), limit = prop($$props, "limit", 7), ticketGroupIds = prop($$props, "ticketGroupIds", 7), languageIds = prop($$props, "languageIds", 7), catchWordIds = prop($$props, "catchWordIds", 7);
|
|
31288
|
+
const filters = prop($$props, "filters", 7), dateId = prop($$props, "dateId", 7), query = prop($$props, "query", 7), limit = prop($$props, "limit", 7), ticketGroupIds = prop($$props, "ticketGroupIds", 7), languageIds = prop($$props, "languageIds", 7), catchWordIds = prop($$props, "catchWordIds", 7), museumIds = prop($$props, "museumIds", 7);
|
|
31282
31289
|
if (!filters()) throw new Error("filters is required");
|
|
31283
31290
|
const tsdWrapper = getTicketSelectionDetails($$props.$$host);
|
|
31284
31291
|
const tsd = tsdWrapper.value;
|
|
@@ -31292,15 +31299,22 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31292
31299
|
details.ticketGroupIds = parseIds(ticketGroupIds());
|
|
31293
31300
|
details.languageIds = parseIds(languageIds());
|
|
31294
31301
|
details.catchWordIds = parseIds(catchWordIds());
|
|
31302
|
+
details.museumIds = parseIds(museumIds());
|
|
31295
31303
|
});
|
|
31296
31304
|
user_effect(() => {
|
|
31297
31305
|
details.dateId;
|
|
31298
31306
|
details.filters;
|
|
31299
31307
|
details.dateId;
|
|
31300
31308
|
details.ticketGroupIds;
|
|
31309
|
+
details.museumIds;
|
|
31310
|
+
details.languageIds;
|
|
31311
|
+
details.catchWordIds;
|
|
31312
|
+
details.query;
|
|
31313
|
+
details.limit;
|
|
31301
31314
|
tsd?.selectedTimeslot;
|
|
31302
31315
|
tsd?.selectedTime;
|
|
31303
31316
|
tsd?.selectedDate;
|
|
31317
|
+
tsd?.museumIds;
|
|
31304
31318
|
untrack(() => {
|
|
31305
31319
|
details.loadTickets();
|
|
31306
31320
|
});
|
|
@@ -31363,6 +31377,13 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31363
31377
|
set catchWordIds($$value) {
|
|
31364
31378
|
catchWordIds($$value);
|
|
31365
31379
|
flushSync();
|
|
31380
|
+
},
|
|
31381
|
+
get museumIds() {
|
|
31382
|
+
return museumIds();
|
|
31383
|
+
},
|
|
31384
|
+
set museumIds($$value) {
|
|
31385
|
+
museumIds($$value);
|
|
31386
|
+
flushSync();
|
|
31366
31387
|
}
|
|
31367
31388
|
};
|
|
31368
31389
|
return pop($$exports);
|
|
@@ -31376,7 +31397,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31376
31397
|
languageIds: { attribute: "language-ids", reflect: true, type: "String" },
|
|
31377
31398
|
limit: { attribute: "limit", reflect: true, type: "Number" },
|
|
31378
31399
|
query: { attribute: "query", reflect: true, type: "String" },
|
|
31379
|
-
ticketGroupIds: { attribute: "ticket-group-ids", reflect: true, type: "String" }
|
|
31400
|
+
ticketGroupIds: { attribute: "ticket-group-ids", reflect: true, type: "String" },
|
|
31401
|
+
museumIds: { attribute: "museum-ids", reflect: true, type: "String" }
|
|
31380
31402
|
},
|
|
31381
31403
|
[],
|
|
31382
31404
|
["details"],
|
|
@@ -30642,7 +30642,7 @@ function TicketSale($$anchor, $$props) {
|
|
|
30642
30642
|
append($$anchor4, a_2);
|
|
30643
30643
|
};
|
|
30644
30644
|
if_block(node_5, ($$render) => {
|
|
30645
|
-
if (item().attributes.barcodes[index2]) $$render(consequent_3);
|
|
30645
|
+
if (item().attributes.barcodes[index2] && item().attributes.barcodes[index2]?.passbook_url) $$render(consequent_3);
|
|
30646
30646
|
});
|
|
30647
30647
|
}
|
|
30648
30648
|
reset(li_4);
|
|
@@ -31006,7 +31006,7 @@ async function loadDayTickets(segment) {
|
|
|
31006
31006
|
valid_at: tsd.selectedDate?.toString(),
|
|
31007
31007
|
// @ts-ignore
|
|
31008
31008
|
"by_ticket_types[]": ["normal"],
|
|
31009
|
-
"by_museum_ids[]": tsd.museumIds,
|
|
31009
|
+
"by_museum_ids[]": segment.museumIds ?? tsd.museumIds,
|
|
31010
31010
|
"by_exhibition_ids[]": tsd.exhibitionIds,
|
|
31011
31011
|
"by_ticket_ids[]": tsd.ticketIds,
|
|
31012
31012
|
"by_ticket_group_ids[]": segment.ticketGroupIds ?? tsd.ticketGroupIds
|
|
@@ -31121,7 +31121,7 @@ async function load_Events_ScaledPricesTickets(segment) {
|
|
|
31121
31121
|
let dates = await shop.asyncFetch(() => shop.getDates({
|
|
31122
31122
|
// q?: string
|
|
31123
31123
|
by_bookable: true,
|
|
31124
|
-
"by_museum_ids[]": tsd.museumIds,
|
|
31124
|
+
"by_museum_ids[]": segment.museumIds ?? tsd.museumIds,
|
|
31125
31125
|
"by_exhibition_ids[]": tsd.exhibitionIds,
|
|
31126
31126
|
"by_event_ids[]": tsd.eventIds,
|
|
31127
31127
|
"by_language_ids[]": segment.languageIds,
|
|
@@ -31175,7 +31175,7 @@ async function loadTimeslotTickets(segment) {
|
|
|
31175
31175
|
valid_at: tsd.selectedDate?.toString(),
|
|
31176
31176
|
// @ts-ignore
|
|
31177
31177
|
by_ticket_type: "time_slot",
|
|
31178
|
-
"by_museum_ids[]": tsd.museumIds,
|
|
31178
|
+
"by_museum_ids[]": segment.museumIds ?? tsd.museumIds,
|
|
31179
31179
|
"by_exhibition_ids[]": tsd.exhibitionIds,
|
|
31180
31180
|
"by_ticket_ids[]": tsd.ticketIds,
|
|
31181
31181
|
"by_ticket_group_ids[]": segment.ticketGroupIds ?? tsd.ticketGroupIds
|
|
@@ -31249,6 +31249,13 @@ class SegmentDetails {
|
|
|
31249
31249
|
set catchWordIds(value) {
|
|
31250
31250
|
set(this.#catchWordIds, value, true);
|
|
31251
31251
|
}
|
|
31252
|
+
#museumIds = /* @__PURE__ */ state(proxy([]));
|
|
31253
|
+
get museumIds() {
|
|
31254
|
+
return get$2(this.#museumIds);
|
|
31255
|
+
}
|
|
31256
|
+
set museumIds(value) {
|
|
31257
|
+
set(this.#museumIds, value, true);
|
|
31258
|
+
}
|
|
31252
31259
|
constructor(type, tsdWrapper) {
|
|
31253
31260
|
this.filters = type;
|
|
31254
31261
|
this.#ticketSelectionDetails = /* @__PURE__ */ user_derived(() => tsdWrapper.value);
|
|
@@ -31278,7 +31285,7 @@ const setSegmentDetails = createSetDetails(KEY);
|
|
|
31278
31285
|
const getSegmentDetails = createGetDetails(KEY);
|
|
31279
31286
|
function TicketSegment($$anchor, $$props) {
|
|
31280
31287
|
push($$props, true);
|
|
31281
|
-
const filters = prop($$props, "filters", 7), dateId = prop($$props, "dateId", 7), query = prop($$props, "query", 7), limit = prop($$props, "limit", 7), ticketGroupIds = prop($$props, "ticketGroupIds", 7), languageIds = prop($$props, "languageIds", 7), catchWordIds = prop($$props, "catchWordIds", 7);
|
|
31288
|
+
const filters = prop($$props, "filters", 7), dateId = prop($$props, "dateId", 7), query = prop($$props, "query", 7), limit = prop($$props, "limit", 7), ticketGroupIds = prop($$props, "ticketGroupIds", 7), languageIds = prop($$props, "languageIds", 7), catchWordIds = prop($$props, "catchWordIds", 7), museumIds = prop($$props, "museumIds", 7);
|
|
31282
31289
|
if (!filters()) throw new Error("filters is required");
|
|
31283
31290
|
const tsdWrapper = getTicketSelectionDetails($$props.$$host);
|
|
31284
31291
|
const tsd = tsdWrapper.value;
|
|
@@ -31292,15 +31299,22 @@ function TicketSegment($$anchor, $$props) {
|
|
|
31292
31299
|
details.ticketGroupIds = parseIds(ticketGroupIds());
|
|
31293
31300
|
details.languageIds = parseIds(languageIds());
|
|
31294
31301
|
details.catchWordIds = parseIds(catchWordIds());
|
|
31302
|
+
details.museumIds = parseIds(museumIds());
|
|
31295
31303
|
});
|
|
31296
31304
|
user_effect(() => {
|
|
31297
31305
|
details.dateId;
|
|
31298
31306
|
details.filters;
|
|
31299
31307
|
details.dateId;
|
|
31300
31308
|
details.ticketGroupIds;
|
|
31309
|
+
details.museumIds;
|
|
31310
|
+
details.languageIds;
|
|
31311
|
+
details.catchWordIds;
|
|
31312
|
+
details.query;
|
|
31313
|
+
details.limit;
|
|
31301
31314
|
tsd?.selectedTimeslot;
|
|
31302
31315
|
tsd?.selectedTime;
|
|
31303
31316
|
tsd?.selectedDate;
|
|
31317
|
+
tsd?.museumIds;
|
|
31304
31318
|
untrack(() => {
|
|
31305
31319
|
details.loadTickets();
|
|
31306
31320
|
});
|
|
@@ -31363,6 +31377,13 @@ function TicketSegment($$anchor, $$props) {
|
|
|
31363
31377
|
set catchWordIds($$value) {
|
|
31364
31378
|
catchWordIds($$value);
|
|
31365
31379
|
flushSync();
|
|
31380
|
+
},
|
|
31381
|
+
get museumIds() {
|
|
31382
|
+
return museumIds();
|
|
31383
|
+
},
|
|
31384
|
+
set museumIds($$value) {
|
|
31385
|
+
museumIds($$value);
|
|
31386
|
+
flushSync();
|
|
31366
31387
|
}
|
|
31367
31388
|
};
|
|
31368
31389
|
return pop($$exports);
|
|
@@ -31376,7 +31397,8 @@ customElements.define("go-ticket-segment", create_custom_element(
|
|
|
31376
31397
|
languageIds: { attribute: "language-ids", reflect: true, type: "String" },
|
|
31377
31398
|
limit: { attribute: "limit", reflect: true, type: "Number" },
|
|
31378
31399
|
query: { attribute: "query", reflect: true, type: "String" },
|
|
31379
|
-
ticketGroupIds: { attribute: "ticket-group-ids", reflect: true, type: "String" }
|
|
31400
|
+
ticketGroupIds: { attribute: "ticket-group-ids", reflect: true, type: "String" },
|
|
31401
|
+
museumIds: { attribute: "museum-ids", reflect: true, type: "String" }
|
|
31380
31402
|
},
|
|
31381
31403
|
[],
|
|
31382
31404
|
["details"],
|