@riverbankcms/sdk 0.142.0 → 0.144.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-Dk6Dt11f.mjs → PreviewEditorSidebar-CQZNnFiM.mjs} +20 -26
- package/dist/{PreviewEditorUI-D6EQTsCA.mjs → PreviewEditorUI-DCNxnmI0.mjs} +3 -3
- package/dist/{PreviewQueryProvider-CC-EPkyQ.mjs → PreviewQueryProvider-BCYICImX.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DH1n4ytY.mjs → SdkPreviewModeRuntime-BJolUbr1.mjs} +17 -8
- package/dist/{SiteChromeCustomizeContext-DunIzY0K.mjs → SiteChromeCustomizeContext-CKgEpoxi.mjs} +2406 -1988
- package/dist/_dts/api/src/billing.d.ts +1 -1
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +8 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +3 -1
- package/dist/_dts/api/src/endpoints.d.ts +7 -0
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +4 -4
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +49 -41
- package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkSettingsContracts.d.ts +8 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -8
- package/dist/_dts/api/src/siteSettings.d.ts +17 -7
- package/dist/_dts/billing/src/membership/index.d.ts +3 -0
- package/dist/_dts/block-form/src/backend/types.d.ts +14 -0
- package/dist/_dts/block-form/src/client/index.d.ts +1 -0
- package/dist/_dts/block-form/src/context/RepeaterHostActionsContext.d.ts +30 -0
- package/dist/_dts/block-form/src/context/index.d.ts +1 -0
- package/dist/_dts/block-form/src/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +4 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +5 -2
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +11 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useEmptyStateFocusAfterRemoval.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +15 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterRowActionsDomain.d.ts +5 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +34 -10
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +3 -0
- package/dist/_dts/blocks/src/system/constants/events.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +7 -1
- package/dist/_dts/blocks/src/system/runtime/api/context.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/api/readAuthority.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +95 -35
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -13
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -6
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +9 -4
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +7 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentStatusStep.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +0 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +14 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +1 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.d.ts +4 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +9 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +56 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +12 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +23 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +7 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/header-control.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/layout.d.ts +6 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/ThemedButton.d.ts +58 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/chromeLogo.d.ts +23 -0
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +4 -1
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -4
- package/dist/_dts/commerce/src/purchase/eventCheckoutRecoveryWindow.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +2 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +1 -13
- package/dist/_dts/core/src/event-catalogue.d.ts +27 -0
- package/dist/_dts/core/src/event-preset-vocabulary.d.ts +7 -0
- package/dist/_dts/core/src/index.d.ts +2 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +3126 -3077
- package/dist/_dts/db/src/schemas/forms.d.ts +286 -2
- package/dist/_dts/editor-blocks/src/block-editor/{BlockCardHeader.d.ts → BlockCardFrame.d.ts} +11 -3
- package/dist/_dts/logger/src/console.d.ts +3 -0
- package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +1 -0
- package/dist/_dts/sdk/src/client/types.d.ts +3 -0
- package/dist/_dts/sdk/src/navigation/index.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +15 -7
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/client.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +7 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/islands/enhancers/shopShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/classNames.d.ts +3 -13
- package/dist/_dts/theme-core/src/customCss/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/customCss/patch.d.ts +0 -5
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/logoVariant.d.ts +26 -0
- package/dist/_dts/theme-core/src/utils/colorStyles.d.ts +10 -0
- package/dist/_dts/ui/src/editor-item-card.d.ts +116 -0
- package/dist/_dts/ui/src/index.d.ts +1 -0
- package/dist/client/{BookingConsentAgreement-CnJeq3_r.mjs → BookingConsentAgreement-DoAILrkN.mjs} +4 -55
- package/dist/client/{DiscountCodeDisclosure-BINEO6J9.mjs → DiscountCodeDisclosure-X528hUTf.mjs} +27 -17
- package/dist/client/{EventCombined.client-srxNQ6sZ.mjs → EventCombined.client-DSBVwq5m.mjs} +54 -46
- package/dist/client/{EventListing.client-DbyVyGkX.mjs → EventListing.client-DmFAX7Vb.mjs} +3 -4
- package/dist/client/{LeafletStaticMap-B-wpijzL.mjs → LeafletStaticMap-BAqXdfhq.mjs} +1 -1
- package/dist/client/ThemedButton-BwNFVwi4.mjs +412 -0
- package/dist/client/{accordion-B-iUXU7n.mjs → accordion-DRhMdkbd.mjs} +1 -1
- package/dist/client/{bookingForm-BXYPke5q.mjs → bookingForm-iJ_nCsNF.mjs} +26 -32
- package/dist/client/bookings.mjs +657 -650
- package/dist/client/{carousel-Cr4aj63H.mjs → carousel-D8zuffZr.mjs} +2 -2
- package/dist/client/{carousel.client-DQTjCVQT.mjs → carousel.client-jahpU9Vz.mjs} +1 -1
- package/dist/client/{cart-DibP9WWa.mjs → cart-DeMGJViN.mjs} +3 -3
- package/dist/client/{checkout-CrSBVnL8.mjs → checkout-DXc06Km2.mjs} +3 -3
- package/dist/client/{checkoutUrls-FL6lRkrt.mjs → checkoutUrls-CW3-78uu.mjs} +1 -1
- package/dist/client/client.mjs +2714 -2448
- package/dist/client/{colorStyles-3013aRAY.mjs → colorStyles-CuJBiS-1.mjs} +16 -4
- package/dist/client/{context-Ces-AgdR.mjs → context-CDLCfDep.mjs} +35 -8
- package/dist/client/{dates-BXyNeNhB.mjs → dates-ClFx7Epy.mjs} +2 -2
- package/dist/client/{eventCalendar-HwpPeqrH.mjs → eventCalendar-BaGpnOGN.mjs} +39 -50
- package/dist/client/{eventCombined-BpFUkuEI.mjs → eventCombined-ywONOx2m.mjs} +5 -4
- package/dist/client/{eventDetails-DK_agiWy.mjs → eventDetails-B2LlOTYY.mjs} +4 -4
- package/dist/client/{eventListing-DhzHqP1c.mjs → eventListing-CMgxWpqP.mjs} +5 -4
- package/dist/client/{eventRegistration-BdQ_Dn2d.mjs → eventRegistration-BarLDNHR.mjs} +549 -592
- package/dist/client/{form-B1frcuzy.mjs → form-BjqKaBJ7.mjs} +9 -10
- package/dist/client/{headerSection-CT5z460s.mjs → headerSection-CP4XDwz1.mjs} +23 -30
- package/dist/client/hooks.mjs +269 -63
- package/dist/client/{locationMap-CIQXB9i2.mjs → locationMap-C5gW-d-w.mjs} +9 -10
- package/dist/client/{media-DHpfFwd3.mjs → media-BtJ37tzS.mjs} +1 -1
- package/dist/client/{newsletterForm-BYNYZSes.mjs → newsletterForm-afXlVSA0.mjs} +8 -9
- package/dist/client/{pricing-CbTlAsmt.mjs → pricing-Bl1CAl28.mjs} +1 -1
- package/dist/client/{productDetail-CR7Z3yjS.mjs → productDetail-CvQ3jWQe.mjs} +3 -3
- package/dist/client/{productList-DXj00vzR.mjs → productList-U874PGO7.mjs} +3 -3
- package/dist/client/{propsDecoder-DiLiBdek.mjs → propsDecoder-DPXtCZWP.mjs} +100 -29
- package/dist/client/rendering/client.mjs +2397 -2279
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2742 -2452
- package/dist/client/{routeIslandApiConfig-UNsfPcYq.mjs → routeIslandApiConfig-NGYiUWXu.mjs} +8 -1
- package/dist/client/{scrollToBlock-CrcbBf0h.mjs → scrollToBlock-0-C3DVhK.mjs} +1 -1
- package/dist/client/{shop-DgqiB_1b.mjs → shop-BXjXhM9P.mjs} +45 -58
- package/dist/client/{shop-commerce-D_J781in.mjs → shop-commerce-BZ6UlWJ7.mjs} +42 -55
- package/dist/client/{shop-commerce-store-PGUbDwqe.mjs → shop-commerce-store-DlSBXb3D.mjs} +1 -1
- package/dist/client/{shopShared-C_Bb2zwG.mjs → shopShared-kkEOiLPA.mjs} +6 -5
- package/dist/client/{useEventFilters-CM17Xpr1.mjs → useEventFilters-zvnnE1ro.mjs} +66 -355
- package/dist/preview-next/before-render.mjs +11 -0
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-chrome.css +8 -0
- package/dist/preview-next/keepAlive.mjs +11 -0
- package/dist/preview-next/middleware.mjs +11 -0
- package/dist/{previewAuthStore-oVttoRDO.mjs → previewAuthStore-JA6-I_sL.mjs} +11 -0
- package/dist/{sdk-runtime-DhmuRhIX.mjs → sdk-runtime-DFJlQt3q.mjs} +2 -2
- package/dist/{separator-C3hlg9LH.mjs → separator-o8GHb1xh.mjs} +1 -1
- package/dist/server/components.mjs +840 -625
- package/dist/server/config-validation.mjs +269 -63
- package/dist/server/config.mjs +269 -63
- package/dist/server/data.mjs +269 -63
- package/dist/server/index.mjs +20 -5
- package/dist/server/navigation.mjs +28 -1
- package/dist/server/next.mjs +14129 -13937
- package/dist/server/page-converter.mjs +111 -59
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +844 -624
- package/dist/server/rendering.mjs +842 -626
- package/dist/server/routing.mjs +306 -69
- package/dist/server/server.mjs +278 -68
- package/dist/server/theme-bridge.mjs +40 -1
- package/dist/styles/index.css +6 -0
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/checkoutRecovery.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useCheckoutRecovery.d.ts +0 -8
package/dist/server/routing.mjs
CHANGED
|
@@ -2097,6 +2097,12 @@ var init_booking_verticals = __esmMin((() => {
|
|
|
2097
2097
|
//#region ../core/src/navigation-locations.ts
|
|
2098
2098
|
var init_navigation_locations = __esmMin((() => {}));
|
|
2099
2099
|
//#endregion
|
|
2100
|
+
//#region ../core/src/event-preset-vocabulary.ts
|
|
2101
|
+
var init_event_preset_vocabulary = __esmMin((() => {}));
|
|
2102
|
+
//#endregion
|
|
2103
|
+
//#region ../core/src/event-catalogue.ts
|
|
2104
|
+
var init_event_catalogue = __esmMin((() => {}));
|
|
2105
|
+
//#endregion
|
|
2100
2106
|
//#region ../core/src/index.ts
|
|
2101
2107
|
var init_src$4 = __esmMin((() => {
|
|
2102
2108
|
init_branded();
|
|
@@ -2171,6 +2177,8 @@ var init_src$4 = __esmMin((() => {
|
|
|
2171
2177
|
init_booking_verticals();
|
|
2172
2178
|
init_event_series_behaviour();
|
|
2173
2179
|
init_navigation_locations();
|
|
2180
|
+
init_event_preset_vocabulary();
|
|
2181
|
+
init_event_catalogue();
|
|
2174
2182
|
}));
|
|
2175
2183
|
//#endregion
|
|
2176
2184
|
//#region ../media-core/src/types.ts
|
|
@@ -3352,6 +3360,45 @@ function srgbToLinear(u) {
|
|
|
3352
3360
|
function linearToSrgb(x) {
|
|
3353
3361
|
return clamp01(x <= .0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - .055) * 255;
|
|
3354
3362
|
}
|
|
3363
|
+
function rgbToHsl$1(r, g, b) {
|
|
3364
|
+
const R = r / 255, G = g / 255, B = b / 255;
|
|
3365
|
+
const max = Math.max(R, G, B), min = Math.min(R, G, B);
|
|
3366
|
+
const d = max - min;
|
|
3367
|
+
let h = 0;
|
|
3368
|
+
if (d !== 0) {
|
|
3369
|
+
switch (max) {
|
|
3370
|
+
case R:
|
|
3371
|
+
h = (G - B) / d + (G < B ? 6 : 0);
|
|
3372
|
+
break;
|
|
3373
|
+
case G:
|
|
3374
|
+
h = (B - R) / d + 2;
|
|
3375
|
+
break;
|
|
3376
|
+
case B:
|
|
3377
|
+
h = (R - G) / d + 4;
|
|
3378
|
+
break;
|
|
3379
|
+
}
|
|
3380
|
+
h *= 60;
|
|
3381
|
+
}
|
|
3382
|
+
const l = (max + min) / 2;
|
|
3383
|
+
const s = d === 0 ? 0 : d / (1 - Math.abs(2 * l - 1));
|
|
3384
|
+
return {
|
|
3385
|
+
h,
|
|
3386
|
+
s,
|
|
3387
|
+
l
|
|
3388
|
+
};
|
|
3389
|
+
}
|
|
3390
|
+
function srgbToOklab(r, g, b) {
|
|
3391
|
+
const R = srgbToLinear(r), G = srgbToLinear(g), B = srgbToLinear(b);
|
|
3392
|
+
const l = .4122214708 * R + .5363325363 * G + .0514459929 * B;
|
|
3393
|
+
const m = .2119034982 * R + .6806995451 * G + .1073969566 * B;
|
|
3394
|
+
const s = .0883024619 * R + .2817188376 * G + .6299787005 * B;
|
|
3395
|
+
const l_ = Math.cbrt(l), m_ = Math.cbrt(m), s_ = Math.cbrt(s);
|
|
3396
|
+
return {
|
|
3397
|
+
L: .2104542553 * l_ + .793617785 * m_ - .0040720468 * s_,
|
|
3398
|
+
a: 1.9779984951 * l_ - 2.428592205 * m_ + .4505937099 * s_,
|
|
3399
|
+
b: .0259040371 * l_ + .7827717662 * m_ - .808675766 * s_
|
|
3400
|
+
};
|
|
3401
|
+
}
|
|
3355
3402
|
function oklabToSrgb(L, a, b) {
|
|
3356
3403
|
const l_ = Math.pow(L + .3963377774 * a + .2158037573 * b, 3);
|
|
3357
3404
|
const m_ = Math.pow(L - .1055613458 * a - .0638541728 * b, 3);
|
|
@@ -3365,6 +3412,14 @@ function oklabToSrgb(L, a, b) {
|
|
|
3365
3412
|
b: linearToSrgb(B)
|
|
3366
3413
|
};
|
|
3367
3414
|
}
|
|
3415
|
+
function oklabToOklch(L, a, b) {
|
|
3416
|
+
const C = Math.sqrt(a * a + b * b);
|
|
3417
|
+
return {
|
|
3418
|
+
L,
|
|
3419
|
+
C,
|
|
3420
|
+
h: C < 1e-7 ? 0 : deg(Math.atan2(b, a) * 180 / Math.PI)
|
|
3421
|
+
};
|
|
3422
|
+
}
|
|
3368
3423
|
function oklchToOklab(L, C, h) {
|
|
3369
3424
|
const hr = h * Math.PI / 180;
|
|
3370
3425
|
return {
|
|
@@ -3373,9 +3428,32 @@ function oklchToOklab(L, C, h) {
|
|
|
3373
3428
|
b: C * Math.sin(hr)
|
|
3374
3429
|
};
|
|
3375
3430
|
}
|
|
3376
|
-
|
|
3431
|
+
function featuresFromHex(hex) {
|
|
3432
|
+
const { r, g, b } = hexToRgb(hex);
|
|
3433
|
+
const { h, s, l } = rgbToHsl$1(r, g, b);
|
|
3434
|
+
const { L, a, b: b2 } = srgbToOklab(r, g, b);
|
|
3435
|
+
const { L: okL, C: okC, h: okH } = oklabToOklch(L, a, b2);
|
|
3436
|
+
return {
|
|
3437
|
+
r,
|
|
3438
|
+
g,
|
|
3439
|
+
b,
|
|
3440
|
+
h,
|
|
3441
|
+
s,
|
|
3442
|
+
l,
|
|
3443
|
+
v: Math.max(r, g, b) / 255,
|
|
3444
|
+
Y: .2126 * srgbToLinear(r) + .7152 * srgbToLinear(g) + .0722 * srgbToLinear(b),
|
|
3445
|
+
chroma: s,
|
|
3446
|
+
okL,
|
|
3447
|
+
okC,
|
|
3448
|
+
okH,
|
|
3449
|
+
hex
|
|
3450
|
+
};
|
|
3451
|
+
}
|
|
3452
|
+
var clamp01, mod, deg;
|
|
3377
3453
|
var init_colorConversion = __esmMin((() => {
|
|
3378
3454
|
clamp01 = (x) => Math.max(0, Math.min(1, x));
|
|
3455
|
+
mod = (a, n) => (a % n + n) % n;
|
|
3456
|
+
deg = (x) => mod(x, 360);
|
|
3379
3457
|
}));
|
|
3380
3458
|
//#endregion
|
|
3381
3459
|
//#region ../theme-core/src/palette/generateShades.ts
|
|
@@ -4506,12 +4584,47 @@ var init_resolveSurfaceForeground = __esmMin((() => {
|
|
|
4506
4584
|
];
|
|
4507
4585
|
}));
|
|
4508
4586
|
//#endregion
|
|
4587
|
+
//#region ../theme-core/src/surfaces/logoVariant.ts
|
|
4588
|
+
/** Concrete hex behind a plain, opaque palette token, or null otherwise. */
|
|
4589
|
+
function opaquePaletteHexForToken(expandedPalette, token) {
|
|
4590
|
+
if (!token) return null;
|
|
4591
|
+
const parts = parseColorTokenParts(token);
|
|
4592
|
+
if (parts.kind !== "token" || parts.opacityPercent !== null) return null;
|
|
4593
|
+
return expandedPalette[parts.token] ?? null;
|
|
4594
|
+
}
|
|
4595
|
+
/**
|
|
4596
|
+
* Tone of the surface a foreground token was resolved for.
|
|
4597
|
+
*
|
|
4598
|
+
* A token with opacity has no known underlay to composite against, and a raw
|
|
4599
|
+
* or unrecognised token has no palette hex, so both are `unknown` rather than
|
|
4600
|
+
* a guess.
|
|
4601
|
+
*/
|
|
4602
|
+
function surfaceToneFromForegroundToken(expandedPalette, foregroundToken) {
|
|
4603
|
+
const hex = opaquePaletteHexForToken(expandedPalette, foregroundToken);
|
|
4604
|
+
if (!hex) return "unknown";
|
|
4605
|
+
return featuresFromHex(hex).Y >= .5 ? "dark" : "light";
|
|
4606
|
+
}
|
|
4607
|
+
/**
|
|
4608
|
+
* The logo to draw on a surface of the given tone. A missing variant falls
|
|
4609
|
+
* back to the other one, and an unknown tone uses the light-backgrounds logo,
|
|
4610
|
+
* which is what every site rendered before variants existed.
|
|
4611
|
+
*/
|
|
4612
|
+
function selectLogoVariant(tone, variants) {
|
|
4613
|
+
const { forLightBackgrounds, forDarkBackgrounds } = variants;
|
|
4614
|
+
return tone === "dark" ? forDarkBackgrounds ?? forLightBackgrounds : forLightBackgrounds ?? forDarkBackgrounds;
|
|
4615
|
+
}
|
|
4616
|
+
var init_logoVariant = __esmMin((() => {
|
|
4617
|
+
init_colorConversion();
|
|
4618
|
+
init_colorTokenParts();
|
|
4619
|
+
}));
|
|
4620
|
+
//#endregion
|
|
4509
4621
|
//#region ../theme-core/src/surfaces/index.ts
|
|
4510
4622
|
var init_surfaces = __esmMin((() => {
|
|
4511
4623
|
init_foregroundContract();
|
|
4512
4624
|
init_foregroundInteraction();
|
|
4513
4625
|
init_foregroundRoles();
|
|
4514
4626
|
init_resolveSurfaceForeground();
|
|
4627
|
+
init_logoVariant();
|
|
4515
4628
|
}));
|
|
4516
4629
|
//#endregion
|
|
4517
4630
|
//#region ../theme-core/src/utils/colorStyles.ts
|
|
@@ -4559,16 +4672,28 @@ function backgroundColorStyle(token) {
|
|
|
4559
4672
|
return { backgroundColor: rgbColorValue(token) };
|
|
4560
4673
|
}
|
|
4561
4674
|
/**
|
|
4675
|
+
* Converts a text color token to a CSS color value that follows the enclosing
|
|
4676
|
+
* surface. The semantic text tokens (`text`, `heading`, `mutedText`) resolve
|
|
4677
|
+
* to the surface foreground variables, so text adapts when a section's
|
|
4678
|
+
* background changes; any other token is a fixed theme color.
|
|
4679
|
+
*
|
|
4680
|
+
* @param token - Theme color token
|
|
4681
|
+
* @returns CSS color value
|
|
4682
|
+
*/
|
|
4683
|
+
function textColorValue(token) {
|
|
4684
|
+
const parsed = parseToken(token);
|
|
4685
|
+
const surfaceRole = parsed.raw ? null : surfaceRoleForTextToken(parsed.token);
|
|
4686
|
+
if (!surfaceRole) return rgbColorValue(token);
|
|
4687
|
+
return parsed.opacityPercent === void 0 ? surfaceForegroundValue(surfaceRole) : surfaceForegroundValueWithOpacity(surfaceRole, parsed.opacityPercent);
|
|
4688
|
+
}
|
|
4689
|
+
/**
|
|
4562
4690
|
* Creates a text color style object from a theme token.
|
|
4563
4691
|
*
|
|
4564
4692
|
* @param token - Theme color token
|
|
4565
4693
|
* @returns CSSProperties with color
|
|
4566
4694
|
*/
|
|
4567
4695
|
function textColorStyle(token) {
|
|
4568
|
-
|
|
4569
|
-
const surfaceRole = parsed.raw ? null : surfaceRoleForTextToken(parsed.token);
|
|
4570
|
-
if (surfaceRole) return { color: parsed.opacityPercent === void 0 ? surfaceForegroundValue(surfaceRole) : surfaceForegroundValueWithOpacity(surfaceRole, parsed.opacityPercent) };
|
|
4571
|
-
return { color: rgbColorValue(token) };
|
|
4696
|
+
return { color: textColorValue(token) };
|
|
4572
4697
|
}
|
|
4573
4698
|
/**
|
|
4574
4699
|
* Creates a border color style object from a theme token.
|
|
@@ -7189,7 +7314,7 @@ var init_generateCardCss = __esmMin((() => {
|
|
|
7189
7314
|
}));
|
|
7190
7315
|
//#endregion
|
|
7191
7316
|
//#region ../theme-core/src/cards/core.ts
|
|
7192
|
-
var init_core$
|
|
7317
|
+
var init_core$3 = __esmMin((() => {
|
|
7193
7318
|
init_surfaces();
|
|
7194
7319
|
}));
|
|
7195
7320
|
//#endregion
|
|
@@ -7202,7 +7327,7 @@ var init_cards = __esmMin((() => {
|
|
|
7202
7327
|
init_openCardVariant();
|
|
7203
7328
|
init_generateCardCss();
|
|
7204
7329
|
init_generateDefaultCardSystem();
|
|
7205
|
-
init_core$
|
|
7330
|
+
init_core$3();
|
|
7206
7331
|
}));
|
|
7207
7332
|
//#endregion
|
|
7208
7333
|
//#region ../theme-core/src/accordions/types.ts
|
|
@@ -9443,6 +9568,33 @@ function normalizeEventCalendarDisplayMode$1(input) {
|
|
|
9443
9568
|
if (isEventCalendarDisplayMode(input.variant)) return input.variant;
|
|
9444
9569
|
return isEventCalendarDisplayMode(input.displayMode) ? input.displayMode : void 0;
|
|
9445
9570
|
}
|
|
9571
|
+
/** One closed authority for the projections required by each rendered mode. */
|
|
9572
|
+
function resolveEventCalendarReadPlan(input) {
|
|
9573
|
+
const mode = normalizeEventCalendarDisplayMode$1(input) ?? "combined";
|
|
9574
|
+
switch (mode) {
|
|
9575
|
+
case "combined": return {
|
|
9576
|
+
mode,
|
|
9577
|
+
jobs: "both",
|
|
9578
|
+
readProfile: "listing-card"
|
|
9579
|
+
};
|
|
9580
|
+
case "list": return {
|
|
9581
|
+
mode,
|
|
9582
|
+
jobs: "list",
|
|
9583
|
+
readProfile: "listing-card"
|
|
9584
|
+
};
|
|
9585
|
+
case "calendar": return {
|
|
9586
|
+
mode,
|
|
9587
|
+
jobs: "calendar",
|
|
9588
|
+
readProfile: "listing-card"
|
|
9589
|
+
};
|
|
9590
|
+
case "timetable":
|
|
9591
|
+
case "week-board": return {
|
|
9592
|
+
mode,
|
|
9593
|
+
jobs: "calendar",
|
|
9594
|
+
readProfile: "timetable"
|
|
9595
|
+
};
|
|
9596
|
+
}
|
|
9597
|
+
}
|
|
9446
9598
|
function isEventCalendarDefaultView(value) {
|
|
9447
9599
|
return typeof value === "string" && eventCalendarDefaultViewValues.includes(value);
|
|
9448
9600
|
}
|
|
@@ -9482,8 +9634,7 @@ var init_events$1 = __esmMin((() => {
|
|
|
9482
9634
|
//#endregion
|
|
9483
9635
|
//#region ../blocks/src/system/blocks/events/shared/calendarWindow.ts
|
|
9484
9636
|
function resolveCalendarReadProfile(content) {
|
|
9485
|
-
|
|
9486
|
-
return mode === "timetable" || mode === "week-board" ? "timetable" : "listing-card";
|
|
9637
|
+
return resolveEventCalendarReadPlan(content).readProfile;
|
|
9487
9638
|
}
|
|
9488
9639
|
/** Runtime picker sentinels and bound loader IDs must describe the same query. */
|
|
9489
9640
|
function normalizeCalendarFilterId(value) {
|
|
@@ -10901,6 +11052,17 @@ var init_publicEventEndpointDefinitions = __esmMin((() => {
|
|
|
10901
11052
|
init_src$4();
|
|
10902
11053
|
init_defineEndpointDefinitions();
|
|
10903
11054
|
PUBLIC_EVENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
11055
|
+
checkPublicEventRegistrationNextStep: {
|
|
11056
|
+
path: "/public/sites/{siteId}/events/registration-next-step",
|
|
11057
|
+
method: "POST",
|
|
11058
|
+
auth: "public",
|
|
11059
|
+
responseKind: "json",
|
|
11060
|
+
errors: [
|
|
11061
|
+
"validation:invalid_input",
|
|
11062
|
+
"auth:forbidden",
|
|
11063
|
+
"server:internal_error"
|
|
11064
|
+
]
|
|
11065
|
+
},
|
|
10904
11066
|
listPublicEventCalendarWindow: {
|
|
10905
11067
|
path: "/public/sites/{siteId}/events/calendar-window",
|
|
10906
11068
|
method: "GET",
|
|
@@ -20500,16 +20662,22 @@ var init_ResponsiveScope = __esmMin((() => {
|
|
|
20500
20662
|
var init_fonts = __esmMin((() => {}));
|
|
20501
20663
|
//#endregion
|
|
20502
20664
|
//#region ../theme-core/src/buttons/core.ts
|
|
20503
|
-
var init_core$
|
|
20665
|
+
var init_core$2 = __esmMin((() => {
|
|
20504
20666
|
init_resolveButtonColourStates();
|
|
20505
20667
|
init_resolvedButtonCss();
|
|
20506
20668
|
init_types$13();
|
|
20507
20669
|
}));
|
|
20670
|
+
//#endregion
|
|
20671
|
+
//#region ../theme-core/src/inputs/core.ts
|
|
20672
|
+
var init_core$1 = __esmMin((() => {
|
|
20673
|
+
init_colorStyles();
|
|
20674
|
+
}));
|
|
20508
20675
|
var init_buildThemeRuntimeFromBridge = __esmMin((() => {
|
|
20509
20676
|
init_shadow();
|
|
20510
20677
|
init_customCss();
|
|
20511
|
-
init_core$1();
|
|
20512
20678
|
init_core$2();
|
|
20679
|
+
init_core$3();
|
|
20680
|
+
init_core$1();
|
|
20513
20681
|
init_status();
|
|
20514
20682
|
init_typography$1();
|
|
20515
20683
|
init_blocks$2();
|
|
@@ -25386,9 +25554,7 @@ function navRow(opts) {
|
|
|
25386
25554
|
rel: { $bind: { from: `${childItemName}.rel` } },
|
|
25387
25555
|
"data-active": { $bind: { from: `${childItemName}.active` } }
|
|
25388
25556
|
}, [text({ as: "span" }, bind$1(`${childItemName}.label`))], repeat(`${itemName}.children`, childItemName));
|
|
25389
|
-
const dropdown = el$1("div", { className: "nav-dropdown rb-relative" }, [
|
|
25390
|
-
type: "button",
|
|
25391
|
-
variantId: "",
|
|
25557
|
+
const dropdown = el$1("div", { className: "nav-dropdown rb-relative" }, [el$1("headerControl", {
|
|
25392
25558
|
className: prependClassName("nav-dropdown-trigger", linkClassName),
|
|
25393
25559
|
"aria-haspopup": "menu",
|
|
25394
25560
|
"aria-expanded": "false",
|
|
@@ -25456,9 +25622,7 @@ function navColumn(opts) {
|
|
|
25456
25622
|
const dropdown = el$1("div", {
|
|
25457
25623
|
className: "nav-mobile-dropdown",
|
|
25458
25624
|
"data-nav-mobile-dropdown": "true"
|
|
25459
|
-
}, [
|
|
25460
|
-
type: "button",
|
|
25461
|
-
variantId: "",
|
|
25625
|
+
}, [el$1("headerControl", {
|
|
25462
25626
|
className: triggerClassName,
|
|
25463
25627
|
"aria-expanded": "false",
|
|
25464
25628
|
"aria-controls": childrenId,
|
|
@@ -32169,6 +32333,57 @@ var init_layout$2 = __esmMin((() => {
|
|
|
32169
32333
|
];
|
|
32170
32334
|
}));
|
|
32171
32335
|
//#endregion
|
|
32336
|
+
//#region ../blocks/src/system/transforms/registry/chromeLogo.ts
|
|
32337
|
+
/** The brand foreground shares the logo's surface; navigation may own a separate capsule. */
|
|
32338
|
+
function chromeSurfaceTextToken(surface, theme, palette) {
|
|
32339
|
+
switch (surface) {
|
|
32340
|
+
case "header-root": {
|
|
32341
|
+
const header = theme.header;
|
|
32342
|
+
const foreground = resolveHeaderRootForeground(header, palette, resolveHeaderVisualStyles(header).isTransparent);
|
|
32343
|
+
return foreground.kind === "known" ? foreground.roles.text : resolveHeaderLeafTextColor(header);
|
|
32344
|
+
}
|
|
32345
|
+
case "header-mobile-panel": return theme.header?.dropdownStyle?.textColor ?? "text";
|
|
32346
|
+
case "footer-root": {
|
|
32347
|
+
const foreground = resolveFooterRootForeground(theme.footer, palette);
|
|
32348
|
+
return foreground.kind === "known" ? foreground.roles.text : void 0;
|
|
32349
|
+
}
|
|
32350
|
+
}
|
|
32351
|
+
}
|
|
32352
|
+
function readChromeTheme(viewModel) {
|
|
32353
|
+
return asPartialObject(asPartialObject(viewModel?.["$root"])?.theme) ?? {};
|
|
32354
|
+
}
|
|
32355
|
+
function resolveChromeSurfaceTone(surface, context) {
|
|
32356
|
+
return surfaceToneFromForegroundToken(context.theme.palette, chromeSurfaceTextToken(surface, readChromeTheme(context.viewModel), context.theme.palette));
|
|
32357
|
+
}
|
|
32358
|
+
var chromeLogoSchema, chromeLogoTransform, chromeLogoTransforms;
|
|
32359
|
+
var init_chromeLogo = __esmMin((() => {
|
|
32360
|
+
init_surfaces();
|
|
32361
|
+
init_core();
|
|
32362
|
+
init_layout$2();
|
|
32363
|
+
init_surfaceForegroundStyles();
|
|
32364
|
+
chromeLogoSchema = z.object({ surface: z.enum([
|
|
32365
|
+
"header-root",
|
|
32366
|
+
"header-mobile-panel",
|
|
32367
|
+
"footer-root"
|
|
32368
|
+
]) });
|
|
32369
|
+
chromeLogoTransform = {
|
|
32370
|
+
id: "layout.chromeLogo",
|
|
32371
|
+
kind: "formatter",
|
|
32372
|
+
summary: "Select the light- or dark-background site logo for a header or footer surface",
|
|
32373
|
+
schema: chromeLogoSchema,
|
|
32374
|
+
run: (value, options, context) => {
|
|
32375
|
+
const content = asPartialObject(value);
|
|
32376
|
+
const variants = asPartialObject(content?.logoVariants);
|
|
32377
|
+
if (!variants) return content?.logo ?? null;
|
|
32378
|
+
return selectLogoVariant(resolveChromeSurfaceTone(options.surface, context), {
|
|
32379
|
+
forLightBackgrounds: variants.forLightBackgrounds ?? null,
|
|
32380
|
+
forDarkBackgrounds: variants.forDarkBackgrounds ?? null
|
|
32381
|
+
});
|
|
32382
|
+
}
|
|
32383
|
+
};
|
|
32384
|
+
chromeLogoTransforms = [chromeLogoTransform];
|
|
32385
|
+
}));
|
|
32386
|
+
//#endregion
|
|
32172
32387
|
//#region ../blocks/src/system/transforms/registry/headerRuntime.ts
|
|
32173
32388
|
var headerRuntimeContractTransform, headerRuntimeTransforms;
|
|
32174
32389
|
var init_headerRuntime = __esmMin((() => {
|
|
@@ -32382,7 +32597,7 @@ var init_shared$3 = __esmMin((() => {
|
|
|
32382
32597
|
}));
|
|
32383
32598
|
//#endregion
|
|
32384
32599
|
//#region ../blocks/src/system/blocks/site-header.ts
|
|
32385
|
-
var whenTransformed, logoRow, centeredLogoRow, createNavRow, headerCta, mobileCta, mobileToggleIcon, mobileToggleButton, mobileOverlayToggleButton, mobileNavList, mobileOverlayHeader, mobileOverlayBody, mobileOverlay, mobileHeaderBar, classicLayout, centeredLayout, floatingLayout, headerLayout, siteHeaderManifest, siteHeaderBlockDefinition;
|
|
32600
|
+
var whenTransformed, bindChromeLogo, createLogoRow, logoRow, centeredLogoRow, createNavRow, headerCta, mobileCta, mobileToggleIcon, mobileToggleButton, mobileOverlayToggleButton, mobileNavList, mobileOverlayHeader, mobileOverlayBody, mobileOverlay, mobileHeaderBar, classicLayout, centeredLayout, floatingLayout, headerLayout, siteHeaderManifest, siteHeaderBlockDefinition;
|
|
32386
32601
|
var init_site_header = __esmMin((() => {
|
|
32387
32602
|
init_builder$1();
|
|
32388
32603
|
init_fragments$1();
|
|
@@ -32401,46 +32616,37 @@ var init_site_header = __esmMin((() => {
|
|
|
32401
32616
|
equals
|
|
32402
32617
|
}
|
|
32403
32618
|
});
|
|
32404
|
-
|
|
32619
|
+
bindChromeLogo = (surface) => bind$1("content", { transforms: [{
|
|
32620
|
+
id: "layout.chromeLogo",
|
|
32621
|
+
options: { surface }
|
|
32622
|
+
}] });
|
|
32623
|
+
createLogoRow = (surface) => link({
|
|
32405
32624
|
href: "/",
|
|
32406
32625
|
className: bindProp("$root.theme.header.logo", {
|
|
32407
32626
|
transforms: pipe(tx("layout.headerLogoClass")),
|
|
32408
32627
|
fallback: "header-logo rb-flex rb-min-w-0 rb-items-center rb-gap-3 rb-no-underline rb-transition-opacity rb-hover-opacity-80"
|
|
32409
32628
|
})
|
|
32410
|
-
}, [
|
|
32411
|
-
|
|
32412
|
-
|
|
32413
|
-
|
|
32414
|
-
|
|
32415
|
-
|
|
32416
|
-
|
|
32417
|
-
|
|
32418
|
-
}) }, when("site.logo"), bind$1("site.logo"))], when("content.logo", { not: true })),
|
|
32419
|
-
text({
|
|
32420
|
-
as: "strong",
|
|
32421
|
-
className: "header-logo-text rb-truncate"
|
|
32422
|
-
}, whenTransformed("$root.theme.header.logo", "layout.headerLogoTextVisible"), bind$1("site.title", { fallback: "Your Site" }))
|
|
32423
|
-
]);
|
|
32629
|
+
}, [media({ className: bindProp("$root.theme.header.logo", {
|
|
32630
|
+
transforms: pipe(tx("layout.headerLogoMediaClass", { base: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300" })),
|
|
32631
|
+
fallback: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300"
|
|
32632
|
+
}) }, when("content.logo"), bindChromeLogo(surface)), text({
|
|
32633
|
+
as: "strong",
|
|
32634
|
+
className: "header-logo-text rb-truncate"
|
|
32635
|
+
}, whenTransformed("$root.theme.header.logo", "layout.headerLogoTextVisible"), bind$1("site.title", { fallback: "Your Site" }))]);
|
|
32636
|
+
logoRow = createLogoRow("header-root");
|
|
32424
32637
|
centeredLogoRow = link({
|
|
32425
32638
|
href: "/",
|
|
32426
32639
|
className: bindProp("$root.theme.header.logo", {
|
|
32427
32640
|
transforms: pipe(tx("layout.headerLogoClass", { base: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80" })),
|
|
32428
32641
|
fallback: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80"
|
|
32429
32642
|
})
|
|
32430
|
-
}, [
|
|
32431
|
-
|
|
32432
|
-
|
|
32433
|
-
|
|
32434
|
-
|
|
32435
|
-
|
|
32436
|
-
|
|
32437
|
-
fallback: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300"
|
|
32438
|
-
}) }, when("site.logo"), bind$1("site.logo"))], when("content.logo", { not: true })),
|
|
32439
|
-
text({
|
|
32440
|
-
as: "strong",
|
|
32441
|
-
className: "header-logo-text"
|
|
32442
|
-
}, whenTransformed("$root.theme.header.logo", "layout.headerLogoTextVisible"), bind$1("site.title", { fallback: "Your Site" }))
|
|
32443
|
-
]);
|
|
32643
|
+
}, [media({ className: bindProp("$root.theme.header.logo", {
|
|
32644
|
+
transforms: pipe(tx("layout.headerLogoMediaClass", { base: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300" })),
|
|
32645
|
+
fallback: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300"
|
|
32646
|
+
}) }, when("content.logo"), bindChromeLogo("header-root")), text({
|
|
32647
|
+
as: "strong",
|
|
32648
|
+
className: "header-logo-text"
|
|
32649
|
+
}, whenTransformed("$root.theme.header.logo", "layout.headerLogoTextVisible"), bind$1("site.title", { fallback: "Your Site" }))]);
|
|
32444
32650
|
createNavRow = (className, align = "end") => navRow({
|
|
32445
32651
|
className: `${className} header-nav-row`,
|
|
32446
32652
|
align,
|
|
@@ -32480,10 +32686,8 @@ var init_site_header = __esmMin((() => {
|
|
|
32480
32686
|
}
|
|
32481
32687
|
]);
|
|
32482
32688
|
mobileToggleButton = {
|
|
32483
|
-
type: "
|
|
32689
|
+
type: "headerControl",
|
|
32484
32690
|
props: {
|
|
32485
|
-
type: "button",
|
|
32486
|
-
variantId: "",
|
|
32487
32691
|
className: `nav-mobile-toggle ${mobileOnlyDisplay("inline-flex")} rb-h-10 rb-w-10 rb-items-center rb-justify-center rb-rounded-md transition-theme-standard`,
|
|
32488
32692
|
"aria-label": "Open menu",
|
|
32489
32693
|
"aria-expanded": "false",
|
|
@@ -32493,10 +32697,8 @@ var init_site_header = __esmMin((() => {
|
|
|
32493
32697
|
children: [mobileToggleIcon]
|
|
32494
32698
|
};
|
|
32495
32699
|
mobileOverlayToggleButton = {
|
|
32496
|
-
type: "
|
|
32700
|
+
type: "headerControl",
|
|
32497
32701
|
props: {
|
|
32498
|
-
type: "button",
|
|
32499
|
-
variantId: "",
|
|
32500
32702
|
className: "nav-mobile-toggle rb-inline-flex rb-h-10 rb-w-10 rb-items-center rb-justify-center rb-rounded-md transition-theme-standard",
|
|
32501
32703
|
"aria-label": "Open menu",
|
|
32502
32704
|
"aria-expanded": "false",
|
|
@@ -32520,7 +32722,7 @@ var init_site_header = __esmMin((() => {
|
|
|
32520
32722
|
align: "center",
|
|
32521
32723
|
justify: "between",
|
|
32522
32724
|
style: borderColorStyle("border")
|
|
32523
|
-
}, [
|
|
32725
|
+
}, [createLogoRow("header-mobile-panel"), mobileOverlayToggleButton]);
|
|
32524
32726
|
mobileOverlayBody = stack({
|
|
32525
32727
|
className: "rb-flex-1 rb-px-6 rb-py-6",
|
|
32526
32728
|
gap: "md",
|
|
@@ -32725,7 +32927,10 @@ var init_site_footer = __esmMin((() => {
|
|
|
32725
32927
|
options: { base: "rb-h-10 rb-w-auto" }
|
|
32726
32928
|
}],
|
|
32727
32929
|
fallback: "rb-h-10 rb-w-auto"
|
|
32728
|
-
} } }, when("module.showLogo", { equals: true }), when("content.logo"), bind$1("content
|
|
32930
|
+
} } }, when("module.showLogo", { equals: true }), when("content.logo"), bind$1("content", { transforms: [{
|
|
32931
|
+
id: "layout.chromeLogo",
|
|
32932
|
+
options: { surface: "footer-root" }
|
|
32933
|
+
}] })), text({
|
|
32729
32934
|
as: "strong",
|
|
32730
32935
|
className: "footer-logo-text rb-nav-text"
|
|
32731
32936
|
}, when("module.showTitle", { equals: true }), bind$1("site.title", { fallback: "Your Site" }))], when("module.kind", { equals: "brand" }));
|
|
@@ -35013,6 +35218,15 @@ var init_event_registration_shared = __esmMin((() => {
|
|
|
35013
35218
|
}).nullable();
|
|
35014
35219
|
}));
|
|
35015
35220
|
//#endregion
|
|
35221
|
+
//#region ../blocks/src/system/runtime/api/readAuthority.ts
|
|
35222
|
+
var browserReadAuthoritySchema;
|
|
35223
|
+
var init_readAuthority = __esmMin((() => {
|
|
35224
|
+
browserReadAuthoritySchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("published") }).strict(), z.object({
|
|
35225
|
+
kind: z.literal("preview"),
|
|
35226
|
+
token: z.string().min(1)
|
|
35227
|
+
}).strict()]);
|
|
35228
|
+
}));
|
|
35229
|
+
//#endregion
|
|
35016
35230
|
//#region ../blocks/src/system/runtime/nodes/event-registration/eventScope.ts
|
|
35017
35231
|
function resolveEventRegistrationScope(context) {
|
|
35018
35232
|
const occurrenceSeriesId = context.occurrenceContext?.seriesId;
|
|
@@ -35375,6 +35589,7 @@ function shellLabelForRegistrationStep(step, events) {
|
|
|
35375
35589
|
case "redirecting":
|
|
35376
35590
|
case "verifying-payment":
|
|
35377
35591
|
case "verifying-timeout":
|
|
35592
|
+
case "payment-status":
|
|
35378
35593
|
case "payment-failed": return "Details";
|
|
35379
35594
|
}
|
|
35380
35595
|
}
|
|
@@ -35399,6 +35614,7 @@ function isRecord$6(value) {
|
|
|
35399
35614
|
}
|
|
35400
35615
|
var EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS, EVENT_REGISTRATION_SHELL_STEP_LABELS, eventRegistrationPublicEventSchema, eventRegistrationHydrationSchemaShape, eventRegistrationEventSourceSchema, eventRegistrationSourceSchema, eventRegistrationDisplaySchema, eventRegistrationHydrationSchema, eventRegistrationRenderSchema, eventRegistrationBlockRuntime;
|
|
35401
35616
|
var init_event_registration_interactive = __esmMin((() => {
|
|
35617
|
+
init_readAuthority();
|
|
35402
35618
|
init_schemas();
|
|
35403
35619
|
init_runGrouping();
|
|
35404
35620
|
init_shop_shared();
|
|
@@ -35451,6 +35667,7 @@ var init_event_registration_interactive = __esmMin((() => {
|
|
|
35451
35667
|
apiBaseUrl: z.string().optional(),
|
|
35452
35668
|
portalToken: z.string().nullable().optional(),
|
|
35453
35669
|
previewToken: z.string().nullable().optional(),
|
|
35670
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
35454
35671
|
...eventRegistrationHydrationSchemaShape,
|
|
35455
35672
|
events: z.array(eventRegistrationPublicEventSchema).nullable().optional(),
|
|
35456
35673
|
wholeSeriesRunEvents: z.array(eventRegistrationPublicEventSchema).nullable().optional(),
|
|
@@ -35488,6 +35705,7 @@ var init_event_registration_interactive = __esmMin((() => {
|
|
|
35488
35705
|
apiBaseUrl: z.string().optional(),
|
|
35489
35706
|
portalToken: z.string().nullable().optional(),
|
|
35490
35707
|
previewToken: z.string().nullable().optional(),
|
|
35708
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
35491
35709
|
stage: previewStageSchema.optional()
|
|
35492
35710
|
});
|
|
35493
35711
|
eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
@@ -35664,6 +35882,7 @@ var init_event_registration = __esmMin((() => {
|
|
|
35664
35882
|
text({ as: "h2" }, bind$1("content.heading"), when("content.heading")),
|
|
35665
35883
|
richText({ className: "rb-prose rb-max-w-none" }, bind$1("content.description"), when("content.description")),
|
|
35666
35884
|
eventRegistration(withApiBindings$1({
|
|
35885
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
35667
35886
|
occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
|
|
35668
35887
|
subject: { $bind: { from: "$root.subject" } },
|
|
35669
35888
|
portalToken: { $bind: {
|
|
@@ -36380,7 +36599,6 @@ function buildEventCollectionHydration(source, now = /* @__PURE__ */ new Date())
|
|
|
36380
36599
|
return {
|
|
36381
36600
|
calendarWindow: source.calendarWindow ?? void 0,
|
|
36382
36601
|
siteId: source.siteId,
|
|
36383
|
-
stage: source.stage,
|
|
36384
36602
|
prefetchedEvents: source.events != null,
|
|
36385
36603
|
eventSurface: selected ? "all" : normalizeEventSurfaceScope(source.eventSurface),
|
|
36386
36604
|
filterEventPresets: selected ? null : normalizeEventSurfacePresetsCsv(source.filterEventPresets),
|
|
@@ -36393,6 +36611,7 @@ function buildEventCollectionHydration(source, now = /* @__PURE__ */ new Date())
|
|
|
36393
36611
|
}
|
|
36394
36612
|
var eventSurfaceScopeSchema$1, eventScheduleScopeSchema$1, eventCollectionFilterSourceSchemaShape, eventCollectionSourceSchemaShape, eventCollectionDisplaySchemaShape, eventCollectionHydrationSchema, init_eventCollectionContract = __esmMin((() => {
|
|
36395
36613
|
init_eventSelection();
|
|
36614
|
+
init_readAuthority();
|
|
36396
36615
|
init_calendarWindow();
|
|
36397
36616
|
init_cards();
|
|
36398
36617
|
init_src$4();
|
|
@@ -36420,6 +36639,7 @@ var eventSurfaceScopeSchema$1, eventScheduleScopeSchema$1, eventCollectionFilter
|
|
|
36420
36639
|
events: z.array(publicEventSchema).nullable().optional(),
|
|
36421
36640
|
siteId: z.string(),
|
|
36422
36641
|
apiBaseUrl: z.string().optional(),
|
|
36642
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
36423
36643
|
stage: previewStageSchema.optional(),
|
|
36424
36644
|
listLayout: eventLayoutSchema.optional(),
|
|
36425
36645
|
listColumns: columnOptionSchema.optional(),
|
|
@@ -36472,7 +36692,6 @@ var eventSurfaceScopeSchema$1, eventScheduleScopeSchema$1, eventCollectionFilter
|
|
|
36472
36692
|
eventCollectionHydrationSchema = z.object({
|
|
36473
36693
|
siteId: z.string(),
|
|
36474
36694
|
calendarWindow: calendarWindowPageSchema.optional(),
|
|
36475
|
-
stage: previewStageSchema.optional(),
|
|
36476
36695
|
prefetchedEvents: z.boolean(),
|
|
36477
36696
|
eventSurface: eventSurfaceScopeSchema$1,
|
|
36478
36697
|
filterEventPresets: z.string().nullable(),
|
|
@@ -36498,6 +36717,7 @@ var init_EventListing_interactive = __esmMin((() => {
|
|
|
36498
36717
|
init_contract_schemas();
|
|
36499
36718
|
init_listOptions();
|
|
36500
36719
|
init_eventCollectionContract();
|
|
36720
|
+
init_readAuthority();
|
|
36501
36721
|
cardOrientationSchema = z.enum(["vertical", "horizontal"]);
|
|
36502
36722
|
eventSurfaceScopeSchema = z.enum(eventSurfaceScopeValues);
|
|
36503
36723
|
eventScheduleScopeSchema = z.enum(eventScheduleScopeValues);
|
|
@@ -36505,6 +36725,7 @@ var init_EventListing_interactive = __esmMin((() => {
|
|
|
36505
36725
|
events: z.array(publicEventSchema).nullable().optional(),
|
|
36506
36726
|
siteId: z.string(),
|
|
36507
36727
|
apiBaseUrl: z.string().optional(),
|
|
36728
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
36508
36729
|
stage: previewStageSchema.optional(),
|
|
36509
36730
|
layout: eventLayoutSchema.optional(),
|
|
36510
36731
|
columns: columnOptionSchema.optional(),
|
|
@@ -36545,7 +36766,6 @@ var init_EventListing_interactive = __esmMin((() => {
|
|
|
36545
36766
|
});
|
|
36546
36767
|
eventListingHydrationSchema = z.object({
|
|
36547
36768
|
siteId: z.string(),
|
|
36548
|
-
stage: previewStageSchema.optional(),
|
|
36549
36769
|
eventsPerPage: eventPageSizeSchema,
|
|
36550
36770
|
paginationAction: eventListPaginationActionSchema,
|
|
36551
36771
|
showFilters: z.boolean(),
|
|
@@ -36568,6 +36788,7 @@ var init_EventListing_interactive = __esmMin((() => {
|
|
|
36568
36788
|
z.object({
|
|
36569
36789
|
siteId: z.string(),
|
|
36570
36790
|
apiBaseUrl: z.string().optional(),
|
|
36791
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
36571
36792
|
stage: previewStageSchema.optional()
|
|
36572
36793
|
});
|
|
36573
36794
|
eventListingBlockRuntime = defineProgressiveBlockRuntime({
|
|
@@ -36602,7 +36823,6 @@ var init_EventListing_interactive = __esmMin((() => {
|
|
|
36602
36823
|
},
|
|
36603
36824
|
hydration: {
|
|
36604
36825
|
siteId: source.siteId,
|
|
36605
|
-
stage: source.stage,
|
|
36606
36826
|
eventsPerPage: pageSize,
|
|
36607
36827
|
paginationAction: resolveEventListPaginationAction({
|
|
36608
36828
|
paginationMode: source.paginationMode,
|
|
@@ -36862,6 +37082,7 @@ var init_event_listing = __esmMin((() => {
|
|
|
36862
37082
|
rootType: "stack",
|
|
36863
37083
|
rootProps: { gap: "lg" },
|
|
36864
37084
|
children: [...eventSectionHeaderLayoutNodes(), el$1("event-listing", withApiBindings$1({
|
|
37085
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
36865
37086
|
events: { $bind: { from: "data.events" } },
|
|
36866
37087
|
stage: { $bind: {
|
|
36867
37088
|
from: "$root.previewStage",
|
|
@@ -37092,7 +37313,7 @@ function buildEventCalendarDisplay(source) {
|
|
|
37092
37313
|
listColumns: source.listColumns ?? source.columns
|
|
37093
37314
|
}),
|
|
37094
37315
|
kind: "event-calendar",
|
|
37095
|
-
displayMode:
|
|
37316
|
+
displayMode: resolveEventCalendarReadPlan(source).mode,
|
|
37096
37317
|
className: source.className ?? null,
|
|
37097
37318
|
events: (source.events ?? []).slice().sort((left, right) => new Date(left.startsAt).getTime() - new Date(right.startsAt).getTime()),
|
|
37098
37319
|
boardTitle: normalizeOptionalText(source.boardTitle),
|
|
@@ -37105,6 +37326,7 @@ function buildEventCalendarDisplay(source) {
|
|
|
37105
37326
|
}
|
|
37106
37327
|
var eventCalendarSourceSchema, eventCalendarDisplaySchema, eventCalendarHydrationSchema, eventCalendarRenderSchema, eventCalendarBlockRuntime;
|
|
37107
37328
|
var init_EventCalendar_interactive = __esmMin((() => {
|
|
37329
|
+
init_readAuthority();
|
|
37108
37330
|
init_events$1();
|
|
37109
37331
|
init_islands();
|
|
37110
37332
|
init_runtime$1();
|
|
@@ -37141,6 +37363,7 @@ var init_EventCalendar_interactive = __esmMin((() => {
|
|
|
37141
37363
|
z.object({
|
|
37142
37364
|
siteId: z.string(),
|
|
37143
37365
|
apiBaseUrl: z.string().optional(),
|
|
37366
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
37144
37367
|
stage: previewStageSchema.optional()
|
|
37145
37368
|
});
|
|
37146
37369
|
eventCalendarBlockRuntime = defineProgressiveBlockRuntime({
|
|
@@ -37149,13 +37372,16 @@ var init_EventCalendar_interactive = __esmMin((() => {
|
|
|
37149
37372
|
source: createZodCodec(eventCalendarSourceSchema),
|
|
37150
37373
|
render: createZodCodec(eventCalendarRenderSchema)
|
|
37151
37374
|
},
|
|
37152
|
-
buildRender: (source) =>
|
|
37153
|
-
|
|
37154
|
-
|
|
37155
|
-
|
|
37156
|
-
|
|
37157
|
-
|
|
37158
|
-
|
|
37375
|
+
buildRender: (source) => {
|
|
37376
|
+
const plan = resolveEventCalendarReadPlan(source);
|
|
37377
|
+
return {
|
|
37378
|
+
display: buildEventCalendarDisplay(source.calendarWindow && plan.jobs === "calendar" ? {
|
|
37379
|
+
...source,
|
|
37380
|
+
events: source.calendarWindow.events
|
|
37381
|
+
} : source),
|
|
37382
|
+
hydration: buildEventCollectionHydration(source)
|
|
37383
|
+
};
|
|
37384
|
+
}
|
|
37159
37385
|
});
|
|
37160
37386
|
}));
|
|
37161
37387
|
//#endregion
|
|
@@ -37306,6 +37532,7 @@ var init_event_calendar = __esmMin((() => {
|
|
|
37306
37532
|
rootType: "stack",
|
|
37307
37533
|
rootProps: { gap: "lg" },
|
|
37308
37534
|
children: [...eventSectionHeaderLayoutNodes({ splitClassName: "event-section-head event-section-head--split" }), el$1("event-calendar", withApiBindings$1({
|
|
37535
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
37309
37536
|
events: { $bind: { from: "data.events" } },
|
|
37310
37537
|
calendarWindow: { $bind: { from: "data.calendarWindow" } },
|
|
37311
37538
|
stage: { $bind: {
|
|
@@ -41182,6 +41409,7 @@ var init_shop_interactive = __esmMin((() => {
|
|
|
41182
41409
|
init_islands();
|
|
41183
41410
|
init_runtime$1();
|
|
41184
41411
|
init_contract_schemas();
|
|
41412
|
+
init_readAuthority();
|
|
41185
41413
|
shopModeSchema = z.enum([
|
|
41186
41414
|
"passes-memberships",
|
|
41187
41415
|
"product-list",
|
|
@@ -41229,6 +41457,7 @@ var init_shop_interactive = __esmMin((() => {
|
|
|
41229
41457
|
products: z.array(publicProductSchema).nullable().optional(),
|
|
41230
41458
|
siteId: z.string().optional(),
|
|
41231
41459
|
apiBaseUrl: z.string().optional(),
|
|
41460
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
41232
41461
|
stage: previewStageSchema.optional()
|
|
41233
41462
|
});
|
|
41234
41463
|
productVariantOptionDisplaySchema = z.object({
|
|
@@ -41393,6 +41622,7 @@ var init_shop_interactive = __esmMin((() => {
|
|
|
41393
41622
|
z.object({
|
|
41394
41623
|
siteId: z.string().optional(),
|
|
41395
41624
|
apiBaseUrl: z.string().optional(),
|
|
41625
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
41396
41626
|
stage: previewStageSchema.optional()
|
|
41397
41627
|
});
|
|
41398
41628
|
shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
@@ -41742,6 +41972,7 @@ var init_shop = __esmMin((() => {
|
|
|
41742
41972
|
baseClass: "",
|
|
41743
41973
|
spacing: "spacious",
|
|
41744
41974
|
children: sectionContainer([shop(withApiBindings$1({
|
|
41975
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
41745
41976
|
mode: "passes-memberships",
|
|
41746
41977
|
showPasses: { $bind: {
|
|
41747
41978
|
from: "content.showPasses",
|
|
@@ -41951,6 +42182,7 @@ var init_product_list = __esmMin((() => {
|
|
|
41951
42182
|
baseClass: "",
|
|
41952
42183
|
spacing: "spacious",
|
|
41953
42184
|
children: sectionContainer([productList(withApiBindings$1({
|
|
42185
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
41954
42186
|
mode: "product-list",
|
|
41955
42187
|
heading: { $bind: {
|
|
41956
42188
|
from: "content.heading",
|
|
@@ -42107,6 +42339,7 @@ var init_product_detail = __esmMin((() => {
|
|
|
42107
42339
|
baseClass: "",
|
|
42108
42340
|
spacing: "spacious",
|
|
42109
42341
|
children: sectionContainer([productDetail(withApiBindings$1({
|
|
42342
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
42110
42343
|
mode: "product-detail",
|
|
42111
42344
|
heading: { $bind: {
|
|
42112
42345
|
from: "content.heading",
|
|
@@ -42236,6 +42469,7 @@ var init_cart = __esmMin((() => {
|
|
|
42236
42469
|
baseClass: "",
|
|
42237
42470
|
spacing: "spacious",
|
|
42238
42471
|
children: sectionContainer([cart(withApiBindings$1({
|
|
42472
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
42239
42473
|
mode: "cart",
|
|
42240
42474
|
heading: { $bind: {
|
|
42241
42475
|
from: "content.heading",
|
|
@@ -42332,6 +42566,7 @@ var init_checkout = __esmMin((() => {
|
|
|
42332
42566
|
baseClass: "",
|
|
42333
42567
|
spacing: "spacious",
|
|
42334
42568
|
children: sectionContainer([checkout(withApiBindings$1({
|
|
42569
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
42335
42570
|
mode: "checkout",
|
|
42336
42571
|
heading: { $bind: {
|
|
42337
42572
|
from: "content.heading",
|
|
@@ -45205,8 +45440,8 @@ var init_eventCalendar = __esmMin((() => {
|
|
|
45205
45440
|
summary: "Choose the read projection required by the calendar display mode",
|
|
45206
45441
|
schema: readJobSchema,
|
|
45207
45442
|
run(value, options) {
|
|
45208
|
-
const
|
|
45209
|
-
return
|
|
45443
|
+
const plan = resolveEventCalendarReadPlan(asPartialObject(value) ?? {});
|
|
45444
|
+
return plan.jobs === "both" || plan.jobs === options.job;
|
|
45210
45445
|
}
|
|
45211
45446
|
};
|
|
45212
45447
|
}));
|
|
@@ -45217,6 +45452,7 @@ var init_registry$2 = __esmMin((() => {
|
|
|
45217
45452
|
init_core();
|
|
45218
45453
|
init_formatting();
|
|
45219
45454
|
init_layout$2();
|
|
45455
|
+
init_chromeLogo();
|
|
45220
45456
|
init_ui();
|
|
45221
45457
|
init_media$1();
|
|
45222
45458
|
init_background();
|
|
@@ -45232,6 +45468,7 @@ var init_registry$2 = __esmMin((() => {
|
|
|
45232
45468
|
eventCalendarReadProfile,
|
|
45233
45469
|
...formattingTransforms,
|
|
45234
45470
|
...layoutTransforms,
|
|
45471
|
+
...chromeLogoTransforms,
|
|
45235
45472
|
...uiTransforms,
|
|
45236
45473
|
...mediaTransforms,
|
|
45237
45474
|
...backgroundTransforms,
|