@riverbankcms/sdk 0.124.0 → 0.125.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.
- package/dist/{PreviewEditorSidebar-DBmAJJkQ.mjs → PreviewEditorSidebar-BezDOtQ7.mjs} +3 -3
- package/dist/{PreviewEditorUI-CfGaz9cY.mjs → PreviewEditorUI-CgSqmfo2.mjs} +2 -2
- package/dist/{SdkPreviewModeRuntime-BW9Z8j8T.mjs → SdkPreviewModeRuntime-Co3AHfj0.mjs} +14 -6
- package/dist/{SiteChromeCustomizeContext-2z8moxYf.mjs → SiteChromeCustomizeContext-BHF-KANn.mjs} +82 -78
- package/dist/_dts/api/src/accessAdmin.d.ts +2 -14
- package/dist/_dts/api/src/siteAccessAdmin.d.ts +23 -0
- package/dist/_dts/billing/src/plans/types.d.ts +24 -5
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +4 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +2 -1
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +149 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/cli/index.mjs +20 -4
- package/dist/client/{DiscountCodeDisclosure-DxvjKvck.mjs → DiscountCodeDisclosure-CyPpekBp.mjs} +1 -1
- package/dist/client/{EventCombined.client-BydMGc4c.mjs → EventCombined.client-zywit-60.mjs} +2 -2
- package/dist/client/{EventListing.client-vpzhhysN.mjs → EventListing.client-J2nLhkKT.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CB07rpf8.mjs → LeafletStaticMap-CSubXWt6.mjs} +1 -1
- package/dist/client/{MagicLinkForm-BzyRJ8VF.mjs → MagicLinkForm-DDLIfiq9.mjs} +1 -1
- package/dist/client/{StepIndicator-CTcGf8Be.mjs → StepIndicator-DE8EvHIp.mjs} +2 -2
- package/dist/client/{accordion-B-DUDLRD.mjs → accordion-Ct5T5NiA.mjs} +1 -1
- package/dist/client/{bookingForm-DSbClLcZ.mjs → bookingForm-DMxtLPxw.mjs} +5 -5
- package/dist/client/{carousel-B6Ccdx8M.mjs → carousel--FMqgvob.mjs} +1 -1
- package/dist/client/{cart-BZh8G8wM.mjs → cart-BKX1bWiU.mjs} +3 -3
- package/dist/client/{checkout-o6zaC-kM.mjs → checkout-B_jxi4WW.mjs} +3 -3
- package/dist/client/client.mjs +20 -4
- package/dist/client/{courseRegistration-Cf11pNDs.mjs → courseRegistration-DH4MlkRD.mjs} +6 -6
- package/dist/client/{eventCalendar-BeXrdsSE.mjs → eventCalendar-BQILwAcL.mjs} +4 -4
- package/dist/client/{eventCombined-DA76PZgG.mjs → eventCombined-DFFW_Vmo.mjs} +2 -2
- package/dist/client/{eventDetails-BLxg0rok.mjs → eventDetails-B045CTSJ.mjs} +10 -5
- package/dist/client/{eventListing-tO9LheBX.mjs → eventListing-BDMYNVzS.mjs} +2 -2
- package/dist/client/{eventRegistration-Cnene9D9.mjs → eventRegistration-CQ2-BSnB.mjs} +6 -6
- package/dist/client/{form-DZf72CHB.mjs → form-DJKuyZgN.mjs} +1 -1
- package/dist/client/{headerSection-Hioja5Cr.mjs → headerSection-DeTjfiDo.mjs} +2 -2
- package/dist/client/hooks.mjs +4 -0
- package/dist/client/{locationMap-DwhUXEix.mjs → locationMap-i2wDA8gB.mjs} +2 -2
- package/dist/client/{newsletterForm-C350bEQf.mjs → newsletterForm-DKiueauk.mjs} +1 -1
- package/dist/client/{pricing-BYWN_ATa.mjs → pricing-C01J3Epx.mjs} +1 -1
- package/dist/client/{productDetail-CCqCyXgU.mjs → productDetail-Dfc1sZaX.mjs} +3 -3
- package/dist/client/{productList-BAiNJrOU.mjs → productList-BXbvXWTF.mjs} +3 -3
- package/dist/client/{propsDecoder-DeunRj6m.mjs → propsDecoder-CIR5DQ1l.mjs} +5 -0
- package/dist/client/rendering/client.mjs +103 -87
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +103 -87
- package/dist/client/{shop-DUmCdBtw.mjs → shop-BbNwPKM-.mjs} +5 -5
- package/dist/client/{shop-commerce-CY27mEUr.mjs → shop-commerce-XO-XMFEt.mjs} +4 -4
- package/dist/client/{shop-commerce-store-ChXPbWfa.mjs → shop-commerce-store-Byh6OUGK.mjs} +1 -1
- package/dist/client/{shopShared-q0kin1cv.mjs → shopShared-Bbq39mwr.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-I-92-x2V.mjs → useDiscountCodeUi-Bcyh4508.mjs} +1 -1
- package/dist/client/{useEventFilters-DlcVluZh.mjs → useEventFilters-C8OOJ3el.mjs} +2 -2
- package/dist/client/{usePolling-Bz7GFV_a.mjs → usePolling-CyJVo9kF.mjs} +2 -2
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-OnPM8Z69.mjs → sdk-runtime-BGhyuE-E.mjs} +1 -1
- package/dist/{separator-CPtfzHqA.mjs → separator-BFs-Kmv5.mjs} +1 -1
- package/dist/server/components.mjs +12 -2
- package/dist/server/config-validation.mjs +4 -0
- package/dist/server/config.mjs +4 -0
- package/dist/server/data.mjs +4 -0
- package/dist/server/index.mjs +1 -1
- package/dist/server/next.mjs +13 -3
- package/dist/server/page-converter.mjs +4 -0
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +12 -2
- package/dist/server/rendering.mjs +12 -2
- package/dist/server/routing.mjs +4 -0
- package/dist/server/server.mjs +5 -1
- package/package.json +1 -1
|
@@ -25899,6 +25899,10 @@ var init_event_details = __esmMin((() => {
|
|
|
25899
25899
|
from: "$root.occurrenceContext",
|
|
25900
25900
|
fallback: null
|
|
25901
25901
|
} },
|
|
25902
|
+
subject: { $bind: {
|
|
25903
|
+
from: "$root.subject",
|
|
25904
|
+
fallback: null
|
|
25905
|
+
} },
|
|
25902
25906
|
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
25903
25907
|
showVenue: { $bind: { from: "content.showVenue" } },
|
|
25904
25908
|
showMap: { $bind: { from: "content.showMap" } },
|
|
@@ -25980,6 +25984,90 @@ var init_event_details = __esmMin((() => {
|
|
|
25980
25984
|
};
|
|
25981
25985
|
}));
|
|
25982
25986
|
//#endregion
|
|
25987
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/eventScope.ts
|
|
25988
|
+
function parseEventRegistrationPageSurfaceSubject(value) {
|
|
25989
|
+
return parseEventPageSurfaceSubject(value);
|
|
25990
|
+
}
|
|
25991
|
+
function normalizeEventRegistrationPageSurfaceSubject(value) {
|
|
25992
|
+
const parsed = parseEventRegistrationPageSurfaceSubject(value);
|
|
25993
|
+
if (parsed.ok) return parsed.value;
|
|
25994
|
+
switch (parsed.error.kind) {
|
|
25995
|
+
case "notObject": return null;
|
|
25996
|
+
case "unsupportedSubject": return {
|
|
25997
|
+
kind: "unsupported",
|
|
25998
|
+
reason: "unsupportedSubject"
|
|
25999
|
+
};
|
|
26000
|
+
case "invalidEventSeriesId": return {
|
|
26001
|
+
kind: "unsupported",
|
|
26002
|
+
reason: "invalidEventSeriesId"
|
|
26003
|
+
};
|
|
26004
|
+
case "invalidEventOfferingId": return {
|
|
26005
|
+
kind: "unsupported",
|
|
26006
|
+
reason: "invalidEventOfferingId"
|
|
26007
|
+
};
|
|
26008
|
+
}
|
|
26009
|
+
}
|
|
26010
|
+
function resolveEventRegistrationScope(context) {
|
|
26011
|
+
const occurrenceSeriesId = context.occurrenceContext?.seriesId;
|
|
26012
|
+
if (occurrenceSeriesId) return {
|
|
26013
|
+
kind: "occurrenceSeries",
|
|
26014
|
+
seriesId: occurrenceSeriesId
|
|
26015
|
+
};
|
|
26016
|
+
if (context.subject?.kind === "eventSeries") return {
|
|
26017
|
+
kind: "pageSurfaceSeries",
|
|
26018
|
+
seriesId: context.subject.eventSeriesId
|
|
26019
|
+
};
|
|
26020
|
+
if (context.subject?.kind === "eventOffering") return {
|
|
26021
|
+
kind: "pageSurfaceOffering",
|
|
26022
|
+
offeringId: context.subject.eventOfferingId,
|
|
26023
|
+
seriesIds: context.subject.availableEventSeriesIds
|
|
26024
|
+
};
|
|
26025
|
+
if (context.subject?.kind === "unsupported") return {
|
|
26026
|
+
kind: "unsupportedPageSurfaceSubject",
|
|
26027
|
+
reason: context.subject.reason
|
|
26028
|
+
};
|
|
26029
|
+
return { kind: "unscoped" };
|
|
26030
|
+
}
|
|
26031
|
+
function applyEventRegistrationScope(events, scope) {
|
|
26032
|
+
switch (scope.kind) {
|
|
26033
|
+
case "occurrenceSeries":
|
|
26034
|
+
case "pageSurfaceSeries": return events.filter((event) => event.seriesId === scope.seriesId);
|
|
26035
|
+
case "pageSurfaceOffering": {
|
|
26036
|
+
const seriesIds = new Set(scope.seriesIds);
|
|
26037
|
+
return events.filter((event) => seriesIds.has(event.seriesId));
|
|
26038
|
+
}
|
|
26039
|
+
case "unsupportedPageSurfaceSubject": return [];
|
|
26040
|
+
case "unscoped": return [...events];
|
|
26041
|
+
}
|
|
26042
|
+
}
|
|
26043
|
+
function resolveEventRegistrationScopedEvents(events, context) {
|
|
26044
|
+
return applyEventRegistrationScope(events, resolveEventRegistrationScope(context));
|
|
26045
|
+
}
|
|
26046
|
+
var unsupportedEventRegistrationPageSurfaceSubjectReasons, unsupportedEventRegistrationPageSurfaceSubjectSchema, eventRegistrationPageSurfaceSubjectSchema;
|
|
26047
|
+
var init_eventScope = __esmMin((() => {
|
|
26048
|
+
init_src$3();
|
|
26049
|
+
unsupportedEventRegistrationPageSurfaceSubjectReasons = [
|
|
26050
|
+
"unsupportedSubject",
|
|
26051
|
+
"invalidEventSeriesId",
|
|
26052
|
+
"invalidEventOfferingId"
|
|
26053
|
+
];
|
|
26054
|
+
unsupportedEventRegistrationPageSurfaceSubjectSchema = z$1.object({
|
|
26055
|
+
kind: z$1.literal("unsupported"),
|
|
26056
|
+
reason: z$1.enum(unsupportedEventRegistrationPageSurfaceSubjectReasons)
|
|
26057
|
+
});
|
|
26058
|
+
eventRegistrationPageSurfaceSubjectSchema = z$1.unknown().transform((value, ctx) => {
|
|
26059
|
+
const unsupported = unsupportedEventRegistrationPageSurfaceSubjectSchema.safeParse(value);
|
|
26060
|
+
if (unsupported.success) return unsupported.data;
|
|
26061
|
+
const parsed = parseEventPageSurfaceSubject(value);
|
|
26062
|
+
if (parsed.ok) return parsed.value;
|
|
26063
|
+
ctx.addIssue({
|
|
26064
|
+
code: z$1.ZodIssueCode.custom,
|
|
26065
|
+
message: `Invalid event page-surface subject (${parsed.error.kind})`
|
|
26066
|
+
});
|
|
26067
|
+
return z$1.NEVER;
|
|
26068
|
+
});
|
|
26069
|
+
}));
|
|
26070
|
+
//#endregion
|
|
25983
26071
|
//#region ../blocks/src/contracts/non-block-islands.ts
|
|
25984
26072
|
var accordionIslandSchema, headerSectionIslandSchema, responsiveSlidesToShowSchema, carouselIslandSchema, eventDetailsOccurrenceContextSchema, eventDetailsIslandSchema, locationMapIslandSchema, accordionIslandPropsCodec, headerSectionIslandPropsCodec, carouselIslandPropsCodec, eventDetailsIslandPropsCodec, locationMapIslandPropsCodec;
|
|
25985
26073
|
var init_non_block_islands = __esmMin((() => {
|
|
@@ -25987,6 +26075,7 @@ var init_non_block_islands = __esmMin((() => {
|
|
|
25987
26075
|
init_shop_shared();
|
|
25988
26076
|
init_schemas();
|
|
25989
26077
|
init_event_details();
|
|
26078
|
+
init_eventScope();
|
|
25990
26079
|
accordionIslandSchema = z$1.object({
|
|
25991
26080
|
type: z$1.enum(["single", "multiple"]).optional(),
|
|
25992
26081
|
defaultValue: z$1.union([z$1.string(), z$1.array(z$1.string())]).optional(),
|
|
@@ -26028,6 +26117,7 @@ var init_non_block_islands = __esmMin((() => {
|
|
|
26028
26117
|
});
|
|
26029
26118
|
eventDetailsIslandSchema = z$1.object({
|
|
26030
26119
|
occurrenceContext: eventDetailsOccurrenceContextSchema.nullable().optional(),
|
|
26120
|
+
subject: eventRegistrationPageSurfaceSubjectSchema.nullable().optional(),
|
|
26031
26121
|
events: z$1.array(publicEventSchema).nullable().optional(),
|
|
26032
26122
|
showVenue: z$1.boolean().optional(),
|
|
26033
26123
|
showMap: z$1.boolean().optional(),
|
|
@@ -27002,90 +27092,6 @@ var init_contract_schemas = __esmMin((() => {
|
|
|
27002
27092
|
]);
|
|
27003
27093
|
}));
|
|
27004
27094
|
//#endregion
|
|
27005
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/eventScope.ts
|
|
27006
|
-
function parseEventRegistrationPageSurfaceSubject(value) {
|
|
27007
|
-
return parseEventPageSurfaceSubject(value);
|
|
27008
|
-
}
|
|
27009
|
-
function normalizeEventRegistrationPageSurfaceSubject(value) {
|
|
27010
|
-
const parsed = parseEventRegistrationPageSurfaceSubject(value);
|
|
27011
|
-
if (parsed.ok) return parsed.value;
|
|
27012
|
-
switch (parsed.error.kind) {
|
|
27013
|
-
case "notObject": return null;
|
|
27014
|
-
case "unsupportedSubject": return {
|
|
27015
|
-
kind: "unsupported",
|
|
27016
|
-
reason: "unsupportedSubject"
|
|
27017
|
-
};
|
|
27018
|
-
case "invalidEventSeriesId": return {
|
|
27019
|
-
kind: "unsupported",
|
|
27020
|
-
reason: "invalidEventSeriesId"
|
|
27021
|
-
};
|
|
27022
|
-
case "invalidEventOfferingId": return {
|
|
27023
|
-
kind: "unsupported",
|
|
27024
|
-
reason: "invalidEventOfferingId"
|
|
27025
|
-
};
|
|
27026
|
-
}
|
|
27027
|
-
}
|
|
27028
|
-
function resolveEventRegistrationScope(context) {
|
|
27029
|
-
const occurrenceSeriesId = context.occurrenceContext?.seriesId;
|
|
27030
|
-
if (occurrenceSeriesId) return {
|
|
27031
|
-
kind: "occurrenceSeries",
|
|
27032
|
-
seriesId: occurrenceSeriesId
|
|
27033
|
-
};
|
|
27034
|
-
if (context.subject?.kind === "eventSeries") return {
|
|
27035
|
-
kind: "pageSurfaceSeries",
|
|
27036
|
-
seriesId: context.subject.eventSeriesId
|
|
27037
|
-
};
|
|
27038
|
-
if (context.subject?.kind === "eventOffering") return {
|
|
27039
|
-
kind: "pageSurfaceOffering",
|
|
27040
|
-
offeringId: context.subject.eventOfferingId,
|
|
27041
|
-
seriesIds: context.subject.availableEventSeriesIds
|
|
27042
|
-
};
|
|
27043
|
-
if (context.subject?.kind === "unsupported") return {
|
|
27044
|
-
kind: "unsupportedPageSurfaceSubject",
|
|
27045
|
-
reason: context.subject.reason
|
|
27046
|
-
};
|
|
27047
|
-
return { kind: "unscoped" };
|
|
27048
|
-
}
|
|
27049
|
-
function applyEventRegistrationScope(events, scope) {
|
|
27050
|
-
switch (scope.kind) {
|
|
27051
|
-
case "occurrenceSeries":
|
|
27052
|
-
case "pageSurfaceSeries": return events.filter((event) => event.seriesId === scope.seriesId);
|
|
27053
|
-
case "pageSurfaceOffering": {
|
|
27054
|
-
const seriesIds = new Set(scope.seriesIds);
|
|
27055
|
-
return events.filter((event) => seriesIds.has(event.seriesId));
|
|
27056
|
-
}
|
|
27057
|
-
case "unsupportedPageSurfaceSubject": return [];
|
|
27058
|
-
case "unscoped": return [...events];
|
|
27059
|
-
}
|
|
27060
|
-
}
|
|
27061
|
-
function resolveEventRegistrationScopedEvents(events, context) {
|
|
27062
|
-
return applyEventRegistrationScope(events, resolveEventRegistrationScope(context));
|
|
27063
|
-
}
|
|
27064
|
-
var unsupportedEventRegistrationPageSurfaceSubjectReasons, unsupportedEventRegistrationPageSurfaceSubjectSchema, eventRegistrationPageSurfaceSubjectSchema;
|
|
27065
|
-
var init_eventScope = __esmMin((() => {
|
|
27066
|
-
init_src$3();
|
|
27067
|
-
unsupportedEventRegistrationPageSurfaceSubjectReasons = [
|
|
27068
|
-
"unsupportedSubject",
|
|
27069
|
-
"invalidEventSeriesId",
|
|
27070
|
-
"invalidEventOfferingId"
|
|
27071
|
-
];
|
|
27072
|
-
unsupportedEventRegistrationPageSurfaceSubjectSchema = z$1.object({
|
|
27073
|
-
kind: z$1.literal("unsupported"),
|
|
27074
|
-
reason: z$1.enum(unsupportedEventRegistrationPageSurfaceSubjectReasons)
|
|
27075
|
-
});
|
|
27076
|
-
eventRegistrationPageSurfaceSubjectSchema = z$1.unknown().transform((value, ctx) => {
|
|
27077
|
-
const unsupported = unsupportedEventRegistrationPageSurfaceSubjectSchema.safeParse(value);
|
|
27078
|
-
if (unsupported.success) return unsupported.data;
|
|
27079
|
-
const parsed = parseEventPageSurfaceSubject(value);
|
|
27080
|
-
if (parsed.ok) return parsed.value;
|
|
27081
|
-
ctx.addIssue({
|
|
27082
|
-
code: z$1.ZodIssueCode.custom,
|
|
27083
|
-
message: `Invalid event page-surface subject (${parsed.error.kind})`
|
|
27084
|
-
});
|
|
27085
|
-
return z$1.NEVER;
|
|
27086
|
-
});
|
|
27087
|
-
}));
|
|
27088
|
-
//#endregion
|
|
27089
27095
|
//#region ../blocks/src/system/runtime/nodes/course-registration.interactive.ts
|
|
27090
27096
|
function buildCourseRegistrationDisplay(source) {
|
|
27091
27097
|
return {
|
|
@@ -103269,7 +103275,10 @@ function uniqByOccurrenceId(events) {
|
|
|
103269
103275
|
return out;
|
|
103270
103276
|
}
|
|
103271
103277
|
function selectEventDetails(args) {
|
|
103272
|
-
const all = uniqByOccurrenceId((args.events ?? []).filter(Boolean)
|
|
103278
|
+
const all = uniqByOccurrenceId(resolveEventRegistrationScopedEvents((args.events ?? []).filter(Boolean), {
|
|
103279
|
+
occurrenceContext: args.occurrenceContext,
|
|
103280
|
+
subject: args.subject
|
|
103281
|
+
}));
|
|
103273
103282
|
const occurrenceContext = args.occurrenceContext ?? null;
|
|
103274
103283
|
const otherLimit = parseLimit$1(args.otherDatesLimit, 5);
|
|
103275
103284
|
const selectedFromContext = (() => {
|
|
@@ -103308,6 +103317,7 @@ function selectEventDetails(args) {
|
|
|
103308
103317
|
}
|
|
103309
103318
|
var init_logic = __esmMin((() => {
|
|
103310
103319
|
init_src$3();
|
|
103320
|
+
init_eventScope();
|
|
103311
103321
|
init_eventProductEligibility();
|
|
103312
103322
|
}));
|
|
103313
103323
|
//#endregion
|
|
@@ -103719,6 +103729,7 @@ var init_view$1 = __esmMin((() => {
|
|
|
103719
103729
|
function toEventDetailsClientProps(props) {
|
|
103720
103730
|
return {
|
|
103721
103731
|
occurrenceContext: props.occurrenceContext,
|
|
103732
|
+
subject: props.subject,
|
|
103722
103733
|
events: props.events ? [...props.events] : props.events,
|
|
103723
103734
|
showVenue: props.showVenue,
|
|
103724
103735
|
showMap: props.showMap,
|
|
@@ -103734,10 +103745,11 @@ function toEventDetailsClientProps(props) {
|
|
|
103734
103745
|
nowIso: props.nowIso
|
|
103735
103746
|
};
|
|
103736
103747
|
}
|
|
103737
|
-
function EventDetailsClient({ occurrenceContext, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, nowIso, children }) {
|
|
103748
|
+
function EventDetailsClient({ occurrenceContext, subject, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, nowIso, children }) {
|
|
103738
103749
|
const selection = selectEventDetails({
|
|
103739
103750
|
events: events ?? null,
|
|
103740
103751
|
occurrenceContext: occurrenceContext ?? null,
|
|
103752
|
+
subject,
|
|
103741
103753
|
nowIso: nowIso ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
103742
103754
|
otherDatesLimit
|
|
103743
103755
|
});
|
|
@@ -127854,11 +127866,14 @@ function BookingFormSSR({ blockId, siteId, apiBaseUrl, portalToken, formId, serv
|
|
|
127854
127866
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
127855
127867
|
init_logic();
|
|
127856
127868
|
init_view$1();
|
|
127857
|
-
|
|
127869
|
+
init_eventScope();
|
|
127870
|
+
function EventDetailsSSR({ blockId, occurrenceContext, subject, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, children }) {
|
|
127858
127871
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
127872
|
+
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
127859
127873
|
const selection = selectEventDetails({
|
|
127860
127874
|
events: events ?? null,
|
|
127861
127875
|
occurrenceContext: occurrenceContext ?? null,
|
|
127876
|
+
subject: normalizedSubject,
|
|
127862
127877
|
nowIso,
|
|
127863
127878
|
otherDatesLimit
|
|
127864
127879
|
});
|
|
@@ -127873,6 +127888,7 @@ function EventDetailsSSR({ blockId, occurrenceContext, events, showVenue = true,
|
|
|
127873
127888
|
children: [
|
|
127874
127889
|
/* @__PURE__ */ jsx(IslandPropsScript, { value: {
|
|
127875
127890
|
occurrenceContext,
|
|
127891
|
+
subject: normalizedSubject,
|
|
127876
127892
|
events,
|
|
127877
127893
|
showVenue,
|
|
127878
127894
|
showMap,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Gt as assertNever$1, X as themeButtonClassName, o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder, yt as assertNever } from "./propsDecoder-
|
|
2
|
+
import { Gt as assertNever$1, X as themeButtonClassName, o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder, yt as assertNever } from "./propsDecoder-CIR5DQ1l.mjs";
|
|
3
3
|
import { n as useBlockApi } from "./context-CJz1Vlsz.mjs";
|
|
4
|
-
import { i as CheckIcon, n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
5
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
4
|
+
import { i as CheckIcon, n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-Bcyh4508.mjs";
|
|
5
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-CyPpekBp.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
7
7
|
import { t as scrollToBlock } from "./scrollToBlock-C86BYkyV.mjs";
|
|
8
8
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
|
|
9
9
|
import { n as consumeSearchParams } from "./urlParams-D71VXFGx.mjs";
|
|
10
10
|
import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
|
|
11
|
-
import { _ as MembershipCardView, a as getDiscountApplyFeedback, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassesMembershipsSectionView } from "./shopShared-
|
|
12
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store-
|
|
11
|
+
import { _ as MembershipCardView, a as getDiscountApplyFeedback, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassesMembershipsSectionView } from "./shopShared-Bbq39mwr.mjs";
|
|
12
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-Byh6OUGK.mjs";
|
|
13
13
|
import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
|
|
14
14
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { X as themeButtonClassName, a as buildProductDetailDisplay, bt as clearWorkflowFeedback, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, q as RichTextDocSchema, rt as logger, u as buildProductCartItem, wt as reportWorkflowError, yt as assertNever } from "./propsDecoder-
|
|
2
|
+
import { X as themeButtonClassName, a as buildProductDetailDisplay, bt as clearWorkflowFeedback, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, q as RichTextDocSchema, rt as logger, u as buildProductCartItem, wt as reportWorkflowError, yt as assertNever } from "./propsDecoder-CIR5DQ1l.mjs";
|
|
3
3
|
import { a as getCurrentResolveImageUrlContext, c as resolveImageUrlWithContext, t as ImagePresets } from "./media-CNE1Z-wb.mjs";
|
|
4
4
|
import { n as useBlockApi } from "./context-CJz1Vlsz.mjs";
|
|
5
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
5
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-CyPpekBp.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
7
7
|
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-Ct8Mxna3.mjs";
|
|
8
8
|
import { t as consumeSearchParam } from "./urlParams-D71VXFGx.mjs";
|
|
9
9
|
import { t as CarouselNodeClient } from "./carousel.client-CpwTUhIo.mjs";
|
|
10
10
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
|
|
11
|
-
import { C as ProductListSectionView, S as ProductGalleryFrameView, a as getDiscountApplyFeedback, b as ProductCardView, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as VariantSelectView, x as ProductDetailView } from "./shopShared-
|
|
12
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
11
|
+
import { C as ProductListSectionView, S as ProductGalleryFrameView, a as getDiscountApplyFeedback, b as ProductCardView, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as VariantSelectView, x as ProductDetailView } from "./shopShared-Bbq39mwr.mjs";
|
|
12
|
+
import { n as useCommerceCart } from "./shop-commerce-store-Byh6OUGK.mjs";
|
|
13
13
|
import * as React$1 from "react";
|
|
14
14
|
import React, { useEffect, useState } from "react";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-
|
|
2
|
+
import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-CIR5DQ1l.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
|
|
5
5
|
const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { b as ok, y as err } from "./colorStyles-BWpj_h4C.mjs";
|
|
3
|
-
import { yt as assertNever } from "./propsDecoder-
|
|
3
|
+
import { yt as assertNever } from "./propsDecoder-CIR5DQ1l.mjs";
|
|
4
4
|
import { t as BlockApiProvider } from "./context-CJz1Vlsz.mjs";
|
|
5
|
-
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-
|
|
5
|
+
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-CyPpekBp.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
7
7
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
8
8
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-
|
|
2
|
+
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-CyPpekBp.mjs";
|
|
3
3
|
import { useEffect, useReducer, useRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/CheckIcon.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as isCssColorLiteral, A as formatDate, B as resolveEventCta, D as normalizeCsvIds, E as getEventRuntimeFiltersKey, F as formatEventTeacherLine, I as formatTime, N as formatEventPrice, O as normalizeCsvString, Q as hexToRgb, U as getEventAvailability, X as themeButtonClassName, Z as relativeLuminance, et as resolveOnColorForThemeToken, j as formatEventCompactDateRail, k as normalizeOptionalId, nt as normalizeCardVariantRole, tt as resolveTokenOrCssColorValue, yt as assertNever } from "./propsDecoder-
|
|
2
|
+
import { $ as isCssColorLiteral, A as formatDate, B as resolveEventCta, D as normalizeCsvIds, E as getEventRuntimeFiltersKey, F as formatEventTeacherLine, I as formatTime, N as formatEventPrice, O as normalizeCsvString, Q as hexToRgb, U as getEventAvailability, X as themeButtonClassName, Z as relativeLuminance, et as resolveOnColorForThemeToken, j as formatEventCompactDateRail, k as normalizeOptionalId, nt as normalizeCardVariantRole, tt as resolveTokenOrCssColorValue, yt as assertNever } from "./propsDecoder-CIR5DQ1l.mjs";
|
|
3
3
|
import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-CNE1Z-wb.mjs";
|
|
4
4
|
import { n as useBlockApi } from "./context-CJz1Vlsz.mjs";
|
|
5
|
-
import { t as LeafletStaticMap } from "./LeafletStaticMap-
|
|
5
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-CSubXWt6.mjs";
|
|
6
6
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region ../theme-core/src/palette/utils/textColor.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { yt as assertNever$2 } from "./propsDecoder-
|
|
3
|
-
import { r as formatPrice } from "./StepIndicator-
|
|
2
|
+
import { yt as assertNever$2 } from "./propsDecoder-CIR5DQ1l.mjs";
|
|
3
|
+
import { r as formatPrice } from "./StepIndicator-DE8EvHIp.mjs";
|
|
4
4
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
5
5
|
//#region ../core/src/date-math.ts
|
|
6
6
|
function addDaysToDate(date, dayCount) {
|
|
@@ -4,13 +4,13 @@ import React from "react";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/preview-next/client/runtime.tsx
|
|
6
6
|
const LazySdkPreviewMode = React.lazy(async () => {
|
|
7
|
-
return { default: (await import("../../SdkPreviewModeRuntime-
|
|
7
|
+
return { default: (await import("../../SdkPreviewModeRuntime-Co3AHfj0.mjs").then((n) => n.n)).SdkPreviewModeRuntime };
|
|
8
8
|
});
|
|
9
9
|
const LazyPreviewShell = React.lazy(async () => {
|
|
10
|
-
return { default: (await import("../../sdk-runtime-
|
|
10
|
+
return { default: (await import("../../sdk-runtime-BGhyuE-E.mjs")).PreviewShell };
|
|
11
11
|
});
|
|
12
12
|
const LazyPreviewShellLayout = React.lazy(async () => {
|
|
13
|
-
return { default: (await import("../../sdk-runtime-
|
|
13
|
+
return { default: (await import("../../sdk-runtime-BGhyuE-E.mjs")).PreviewShellLayout };
|
|
14
14
|
});
|
|
15
15
|
function SdkPreviewMode(props) {
|
|
16
16
|
return /* @__PURE__ */ jsx(React.Suspense, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./PreviewQueryProvider-BH-3-jSj.mjs";
|
|
3
|
-
import { i as PreviewShellLayout, r as PreviewShell } from "./SdkPreviewModeRuntime-
|
|
3
|
+
import { i as PreviewShellLayout, r as PreviewShell } from "./SdkPreviewModeRuntime-Co3AHfj0.mjs";
|
|
4
4
|
export { PreviewShell, PreviewShellLayout };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Pc as Primitive, Rc as cn } from "./SiteChromeCustomizeContext-
|
|
2
|
+
import { Pc as Primitive, Rc as cn } from "./SiteChromeCustomizeContext-BHF-KANn.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@radix-ui+react-separator@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.17__@types+r_adfab47c9055efb8b0c4b77a2b96b053/node_modules/@radix-ui/react-separator/dist/index.mjs
|
|
@@ -33398,6 +33398,10 @@ const eventDetailsManifest = createBlockManifest({
|
|
|
33398
33398
|
from: "$root.occurrenceContext",
|
|
33399
33399
|
fallback: null
|
|
33400
33400
|
} },
|
|
33401
|
+
subject: { $bind: {
|
|
33402
|
+
from: "$root.subject",
|
|
33403
|
+
fallback: null
|
|
33404
|
+
} },
|
|
33401
33405
|
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
33402
33406
|
showVenue: { $bind: { from: "content.showVenue" } },
|
|
33403
33407
|
showMap: { $bind: { from: "content.showMap" } },
|
|
@@ -46519,7 +46523,10 @@ function uniqByOccurrenceId(events) {
|
|
|
46519
46523
|
return out;
|
|
46520
46524
|
}
|
|
46521
46525
|
function selectEventDetails(args) {
|
|
46522
|
-
const all = uniqByOccurrenceId((args.events ?? []).filter(Boolean)
|
|
46526
|
+
const all = uniqByOccurrenceId(resolveEventRegistrationScopedEvents((args.events ?? []).filter(Boolean), {
|
|
46527
|
+
occurrenceContext: args.occurrenceContext,
|
|
46528
|
+
subject: args.subject
|
|
46529
|
+
}));
|
|
46523
46530
|
const occurrenceContext = args.occurrenceContext ?? null;
|
|
46524
46531
|
const otherLimit = parseLimit$1(args.otherDatesLimit, 5);
|
|
46525
46532
|
const selectedFromContext = (() => {
|
|
@@ -46785,11 +46792,13 @@ function EventDetailsView({ selection, showVenue, showMap, showOtherDates, showC
|
|
|
46785
46792
|
}
|
|
46786
46793
|
//#endregion
|
|
46787
46794
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
46788
|
-
function EventDetailsSSR({ blockId, occurrenceContext, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, children }) {
|
|
46795
|
+
function EventDetailsSSR({ blockId, occurrenceContext, subject, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, children }) {
|
|
46789
46796
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
46797
|
+
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
46790
46798
|
const selection = selectEventDetails({
|
|
46791
46799
|
events: events ?? null,
|
|
46792
46800
|
occurrenceContext: occurrenceContext ?? null,
|
|
46801
|
+
subject: normalizedSubject,
|
|
46793
46802
|
nowIso,
|
|
46794
46803
|
otherDatesLimit
|
|
46795
46804
|
});
|
|
@@ -46804,6 +46813,7 @@ function EventDetailsSSR({ blockId, occurrenceContext, events, showVenue = true,
|
|
|
46804
46813
|
children: [
|
|
46805
46814
|
/* @__PURE__ */ jsx(IslandPropsScript, { value: {
|
|
46806
46815
|
occurrenceContext,
|
|
46816
|
+
subject: normalizedSubject,
|
|
46807
46817
|
events,
|
|
46808
46818
|
showVenue,
|
|
46809
46819
|
showMap,
|
|
@@ -27427,6 +27427,10 @@ const eventDetailsManifest = createBlockManifest({
|
|
|
27427
27427
|
from: "$root.occurrenceContext",
|
|
27428
27428
|
fallback: null
|
|
27429
27429
|
} },
|
|
27430
|
+
subject: { $bind: {
|
|
27431
|
+
from: "$root.subject",
|
|
27432
|
+
fallback: null
|
|
27433
|
+
} },
|
|
27430
27434
|
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
27431
27435
|
showVenue: { $bind: { from: "content.showVenue" } },
|
|
27432
27436
|
showMap: { $bind: { from: "content.showMap" } },
|
package/dist/server/config.mjs
CHANGED
|
@@ -27503,6 +27503,10 @@ const eventDetailsManifest = createBlockManifest({
|
|
|
27503
27503
|
from: "$root.occurrenceContext",
|
|
27504
27504
|
fallback: null
|
|
27505
27505
|
} },
|
|
27506
|
+
subject: { $bind: {
|
|
27507
|
+
from: "$root.subject",
|
|
27508
|
+
fallback: null
|
|
27509
|
+
} },
|
|
27506
27510
|
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
27507
27511
|
showVenue: { $bind: { from: "content.showVenue" } },
|
|
27508
27512
|
showMap: { $bind: { from: "content.showMap" } },
|
package/dist/server/data.mjs
CHANGED
|
@@ -27433,6 +27433,10 @@ const eventDetailsManifest = createBlockManifest({
|
|
|
27433
27433
|
from: "$root.occurrenceContext",
|
|
27434
27434
|
fallback: null
|
|
27435
27435
|
} },
|
|
27436
|
+
subject: { $bind: {
|
|
27437
|
+
from: "$root.subject",
|
|
27438
|
+
fallback: null
|
|
27439
|
+
} },
|
|
27436
27440
|
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
27437
27441
|
showVenue: { $bind: { from: "content.showVenue" } },
|
|
27438
27442
|
showMap: { $bind: { from: "content.showMap" } },
|
package/dist/server/index.mjs
CHANGED
|
@@ -7924,7 +7924,7 @@ var SimpleCache = class {
|
|
|
7924
7924
|
* 1. This constant
|
|
7925
7925
|
* 2. The "version" field in package.json
|
|
7926
7926
|
*/
|
|
7927
|
-
const SDK_VERSION = "0.
|
|
7927
|
+
const SDK_VERSION = "0.125.0";
|
|
7928
7928
|
//#endregion
|
|
7929
7929
|
//#region src/client/error.ts
|
|
7930
7930
|
let _Symbol$for;
|
package/dist/server/next.mjs
CHANGED
|
@@ -41583,6 +41583,10 @@ const eventDetailsManifest = createBlockManifest({
|
|
|
41583
41583
|
from: "$root.occurrenceContext",
|
|
41584
41584
|
fallback: null
|
|
41585
41585
|
} },
|
|
41586
|
+
subject: { $bind: {
|
|
41587
|
+
from: "$root.subject",
|
|
41588
|
+
fallback: null
|
|
41589
|
+
} },
|
|
41586
41590
|
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
41587
41591
|
showVenue: { $bind: { from: "content.showVenue" } },
|
|
41588
41592
|
showMap: { $bind: { from: "content.showMap" } },
|
|
@@ -54986,7 +54990,10 @@ function uniqByOccurrenceId(events) {
|
|
|
54986
54990
|
return out;
|
|
54987
54991
|
}
|
|
54988
54992
|
function selectEventDetails(args) {
|
|
54989
|
-
const all = uniqByOccurrenceId((args.events ?? []).filter(Boolean)
|
|
54993
|
+
const all = uniqByOccurrenceId(resolveEventRegistrationScopedEvents((args.events ?? []).filter(Boolean), {
|
|
54994
|
+
occurrenceContext: args.occurrenceContext,
|
|
54995
|
+
subject: args.subject
|
|
54996
|
+
}));
|
|
54990
54997
|
const occurrenceContext = args.occurrenceContext ?? null;
|
|
54991
54998
|
const otherLimit = parseLimit$1(args.otherDatesLimit, 5);
|
|
54992
54999
|
const selectedFromContext = (() => {
|
|
@@ -55252,11 +55259,13 @@ function EventDetailsView({ selection, showVenue, showMap, showOtherDates, showC
|
|
|
55252
55259
|
}
|
|
55253
55260
|
//#endregion
|
|
55254
55261
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
55255
|
-
function EventDetailsSSR({ blockId, occurrenceContext, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, children }) {
|
|
55262
|
+
function EventDetailsSSR({ blockId, occurrenceContext, subject, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, children }) {
|
|
55256
55263
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
55264
|
+
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
55257
55265
|
const selection = selectEventDetails({
|
|
55258
55266
|
events: events ?? null,
|
|
55259
55267
|
occurrenceContext: occurrenceContext ?? null,
|
|
55268
|
+
subject: normalizedSubject,
|
|
55260
55269
|
nowIso,
|
|
55261
55270
|
otherDatesLimit
|
|
55262
55271
|
});
|
|
@@ -55271,6 +55280,7 @@ function EventDetailsSSR({ blockId, occurrenceContext, events, showVenue = true,
|
|
|
55271
55280
|
children: [
|
|
55272
55281
|
/* @__PURE__ */ jsx(IslandPropsScript, { value: {
|
|
55273
55282
|
occurrenceContext,
|
|
55283
|
+
subject: normalizedSubject,
|
|
55274
55284
|
events,
|
|
55275
55285
|
showVenue,
|
|
55276
55286
|
showMap,
|
|
@@ -84221,7 +84231,7 @@ var CircuitOpenError = class extends Error {
|
|
|
84221
84231
|
* 1. This constant
|
|
84222
84232
|
* 2. The "version" field in package.json
|
|
84223
84233
|
*/
|
|
84224
|
-
const SDK_VERSION = "0.
|
|
84234
|
+
const SDK_VERSION = "0.125.0";
|
|
84225
84235
|
//#endregion
|
|
84226
84236
|
//#region src/next/content-load-failure.ts
|
|
84227
84237
|
const SdkContentLoadError = RiverbankContentLoadError;
|
|
@@ -23933,6 +23933,10 @@ const eventDetailsManifest = createBlockManifest({
|
|
|
23933
23933
|
from: "$root.occurrenceContext",
|
|
23934
23934
|
fallback: null
|
|
23935
23935
|
} },
|
|
23936
|
+
subject: { $bind: {
|
|
23937
|
+
from: "$root.subject",
|
|
23938
|
+
fallback: null
|
|
23939
|
+
} },
|
|
23936
23940
|
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
23937
23941
|
showVenue: { $bind: { from: "content.showVenue" } },
|
|
23938
23942
|
showMap: { $bind: { from: "content.showMap" } },
|
package/dist/server/prebuild.mjs
CHANGED
|
@@ -32480,6 +32480,10 @@ const eventDetailsManifest = createBlockManifest({
|
|
|
32480
32480
|
from: "$root.occurrenceContext",
|
|
32481
32481
|
fallback: null
|
|
32482
32482
|
} },
|
|
32483
|
+
subject: { $bind: {
|
|
32484
|
+
from: "$root.subject",
|
|
32485
|
+
fallback: null
|
|
32486
|
+
} },
|
|
32483
32487
|
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
32484
32488
|
showVenue: { $bind: { from: "content.showVenue" } },
|
|
32485
32489
|
showMap: { $bind: { from: "content.showMap" } },
|
|
@@ -45894,7 +45898,10 @@ function uniqByOccurrenceId(events) {
|
|
|
45894
45898
|
return out;
|
|
45895
45899
|
}
|
|
45896
45900
|
function selectEventDetails(args) {
|
|
45897
|
-
const all = uniqByOccurrenceId((args.events ?? []).filter(Boolean)
|
|
45901
|
+
const all = uniqByOccurrenceId(resolveEventRegistrationScopedEvents((args.events ?? []).filter(Boolean), {
|
|
45902
|
+
occurrenceContext: args.occurrenceContext,
|
|
45903
|
+
subject: args.subject
|
|
45904
|
+
}));
|
|
45898
45905
|
const occurrenceContext = args.occurrenceContext ?? null;
|
|
45899
45906
|
const otherLimit = parseLimit$1(args.otherDatesLimit, 5);
|
|
45900
45907
|
const selectedFromContext = (() => {
|
|
@@ -46183,11 +46190,13 @@ function EventDetailsView({ selection, showVenue, showMap, showOtherDates, showC
|
|
|
46183
46190
|
}
|
|
46184
46191
|
//#endregion
|
|
46185
46192
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
46186
|
-
function EventDetailsSSR({ blockId, occurrenceContext, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, children }) {
|
|
46193
|
+
function EventDetailsSSR({ blockId, occurrenceContext, subject, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, children }) {
|
|
46187
46194
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
46195
|
+
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
46188
46196
|
const selection = selectEventDetails({
|
|
46189
46197
|
events: events ?? null,
|
|
46190
46198
|
occurrenceContext: occurrenceContext ?? null,
|
|
46199
|
+
subject: normalizedSubject,
|
|
46191
46200
|
nowIso,
|
|
46192
46201
|
otherDatesLimit
|
|
46193
46202
|
});
|
|
@@ -46202,6 +46211,7 @@ function EventDetailsSSR({ blockId, occurrenceContext, events, showVenue = true,
|
|
|
46202
46211
|
children: [
|
|
46203
46212
|
/* @__PURE__ */ jsx(IslandPropsScript, { value: {
|
|
46204
46213
|
occurrenceContext,
|
|
46214
|
+
subject: normalizedSubject,
|
|
46205
46215
|
events,
|
|
46206
46216
|
showVenue,
|
|
46207
46217
|
showMap,
|